Release glog 0.3.3
[platform/upstream/glog.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for glog 0.3.3.
4 #
5 # Report bugs to <opensource@google.com>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: opensource@google.com about your system, including any
251 $0: error possibly output before this message. Then install
252 $0: a modern shell, or manually run the script under such a
253 $0: shell if you do have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='glog'
572 PACKAGE_TARNAME='glog'
573 PACKAGE_VERSION='0.3.3'
574 PACKAGE_STRING='glog 0.3.3'
575 PACKAGE_BUGREPORT='opensource@google.com'
576 PACKAGE_URL=''
577
578 ac_unique_file="README"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 #  include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #  include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 LIBOBJS
619 GMOCK_LIBS
620 GTEST_LIBS
621 GFLAGS_LIBS
622 GMOCK_CFLAGS
623 GTEST_CFLAGS
624 GFLAGS_CFLAGS
625 ac_cv_have_libgflags
626 ac_cv_have___uint16
627 ac_cv_have_u_int16_t
628 ac_cv_have_uint16_t
629 ac_cv_have_unistd_h
630 ac_cv_have_inttypes_h
631 ac_cv_have_systypes_h
632 ac_cv_have_stdint_h
633 ac_cv_have___builtin_expect
634 ac_cv___attribute___printf_4_5
635 ac_cv___attribute___noinline
636 ac_cv___attribute___noreturn
637 ac_cv_cxx_using_operator
638 ac_google_namespace
639 ac_google_end_namespace
640 ac_google_start_namespace
641 UNWIND_LIBS
642 HAVE_GMOCK_FALSE
643 HAVE_GMOCK_TRUE
644 GMOCK_CONFIG
645 GTEST_CONFIG
646 PTHREAD_CFLAGS
647 PTHREAD_LIBS
648 PTHREAD_CC
649 acx_pthread_config
650 DISABLE_RTTI_FALSE
651 DISABLE_RTTI_TRUE
652 X86_64_FALSE
653 X86_64_TRUE
654 ENABLE_FRAME_POINTERS_FALSE
655 ENABLE_FRAME_POINTERS_TRUE
656 LIBTOOL_DEPS
657 CXXCPP
658 OTOOL64
659 OTOOL
660 LIPO
661 NMEDIT
662 DSYMUTIL
663 MANIFEST_TOOL
664 RANLIB
665 ac_ct_AR
666 AR
667 DLLTOOL
668 OBJDUMP
669 LN_S
670 NM
671 ac_ct_DUMPBIN
672 DUMPBIN
673 LD
674 FGREP
675 EGREP
676 GREP
677 SED
678 host_os
679 host_vendor
680 host_cpu
681 host
682 build_os
683 build_vendor
684 build_cpu
685 build
686 LIBTOOL
687 GCC_FALSE
688 GCC_TRUE
689 am__fastdepCXX_FALSE
690 am__fastdepCXX_TRUE
691 CXXDEPMODE
692 ac_ct_CXX
693 CXXFLAGS
694 CXX
695 CPP
696 am__fastdepCC_FALSE
697 am__fastdepCC_TRUE
698 CCDEPMODE
699 am__nodep
700 AMDEPBACKSLASH
701 AMDEP_FALSE
702 AMDEP_TRUE
703 am__quote
704 am__include
705 DEPDIR
706 OBJEXT
707 EXEEXT
708 ac_ct_CC
709 CPPFLAGS
710 LDFLAGS
711 CFLAGS
712 CC
713 am__untar
714 am__tar
715 AMTAR
716 am__leading_dot
717 SET_MAKE
718 AWK
719 mkdir_p
720 MKDIR_P
721 INSTALL_STRIP_PROGRAM
722 STRIP
723 install_sh
724 MAKEINFO
725 AUTOHEADER
726 AUTOMAKE
727 AUTOCONF
728 ACLOCAL
729 VERSION
730 PACKAGE
731 CYGPATH_W
732 am__isrc
733 INSTALL_DATA
734 INSTALL_SCRIPT
735 INSTALL_PROGRAM
736 target_alias
737 host_alias
738 build_alias
739 LIBS
740 ECHO_T
741 ECHO_N
742 ECHO_C
743 DEFS
744 mandir
745 localedir
746 libdir
747 psdir
748 pdfdir
749 dvidir
750 htmldir
751 infodir
752 docdir
753 oldincludedir
754 includedir
755 localstatedir
756 sharedstatedir
757 sysconfdir
758 datadir
759 datarootdir
760 libexecdir
761 sbindir
762 bindir
763 program_transform_name
764 prefix
765 exec_prefix
766 PACKAGE_URL
767 PACKAGE_BUGREPORT
768 PACKAGE_STRING
769 PACKAGE_VERSION
770 PACKAGE_TARNAME
771 PACKAGE_NAME
772 PATH_SEPARATOR
773 SHELL'
774 ac_subst_files=''
775 ac_user_opts='
776 enable_option_checking
777 enable_dependency_tracking
778 enable_shared
779 enable_static
780 with_pic
781 enable_fast_install
782 with_gnu_ld
783 with_sysroot
784 enable_libtool_lock
785 enable_frame_pointers
786 enable_rtti
787 with_gflags
788 enable_namespace
789 '
790       ac_precious_vars='build_alias
791 host_alias
792 target_alias
793 CC
794 CFLAGS
795 LDFLAGS
796 LIBS
797 CPPFLAGS
798 CPP
799 CXX
800 CXXFLAGS
801 CCC
802 CXXCPP'
803
804
805 # Initialize some variables set by options.
806 ac_init_help=
807 ac_init_version=false
808 ac_unrecognized_opts=
809 ac_unrecognized_sep=
810 # The variables have the same names as the options, with
811 # dashes changed to underlines.
812 cache_file=/dev/null
813 exec_prefix=NONE
814 no_create=
815 no_recursion=
816 prefix=NONE
817 program_prefix=NONE
818 program_suffix=NONE
819 program_transform_name=s,x,x,
820 silent=
821 site=
822 srcdir=
823 verbose=
824 x_includes=NONE
825 x_libraries=NONE
826
827 # Installation directory options.
828 # These are left unexpanded so users can "make install exec_prefix=/foo"
829 # and all the variables that are supposed to be based on exec_prefix
830 # by default will actually change.
831 # Use braces instead of parens because sh, perl, etc. also accept them.
832 # (The list follows the same order as the GNU Coding Standards.)
833 bindir='${exec_prefix}/bin'
834 sbindir='${exec_prefix}/sbin'
835 libexecdir='${exec_prefix}/libexec'
836 datarootdir='${prefix}/share'
837 datadir='${datarootdir}'
838 sysconfdir='${prefix}/etc'
839 sharedstatedir='${prefix}/com'
840 localstatedir='${prefix}/var'
841 includedir='${prefix}/include'
842 oldincludedir='/usr/include'
843 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
844 infodir='${datarootdir}/info'
845 htmldir='${docdir}'
846 dvidir='${docdir}'
847 pdfdir='${docdir}'
848 psdir='${docdir}'
849 libdir='${exec_prefix}/lib'
850 localedir='${datarootdir}/locale'
851 mandir='${datarootdir}/man'
852
853 ac_prev=
854 ac_dashdash=
855 for ac_option
856 do
857   # If the previous option needs an argument, assign it.
858   if test -n "$ac_prev"; then
859     eval $ac_prev=\$ac_option
860     ac_prev=
861     continue
862   fi
863
864   case $ac_option in
865   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866   *=)   ac_optarg= ;;
867   *)    ac_optarg=yes ;;
868   esac
869
870   # Accept the important Cygnus configure options, so we can diagnose typos.
871
872   case $ac_dashdash$ac_option in
873   --)
874     ac_dashdash=yes ;;
875
876   -bindir | --bindir | --bindi | --bind | --bin | --bi)
877     ac_prev=bindir ;;
878   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879     bindir=$ac_optarg ;;
880
881   -build | --build | --buil | --bui | --bu)
882     ac_prev=build_alias ;;
883   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884     build_alias=$ac_optarg ;;
885
886   -cache-file | --cache-file | --cache-fil | --cache-fi \
887   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888     ac_prev=cache_file ;;
889   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891     cache_file=$ac_optarg ;;
892
893   --config-cache | -C)
894     cache_file=config.cache ;;
895
896   -datadir | --datadir | --datadi | --datad)
897     ac_prev=datadir ;;
898   -datadir=* | --datadir=* | --datadi=* | --datad=*)
899     datadir=$ac_optarg ;;
900
901   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902   | --dataroo | --dataro | --datar)
903     ac_prev=datarootdir ;;
904   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906     datarootdir=$ac_optarg ;;
907
908   -disable-* | --disable-*)
909     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910     # Reject names that are not valid shell variable names.
911     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912       as_fn_error $? "invalid feature name: $ac_useropt"
913     ac_useropt_orig=$ac_useropt
914     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915     case $ac_user_opts in
916       *"
917 "enable_$ac_useropt"
918 "*) ;;
919       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920          ac_unrecognized_sep=', ';;
921     esac
922     eval enable_$ac_useropt=no ;;
923
924   -docdir | --docdir | --docdi | --doc | --do)
925     ac_prev=docdir ;;
926   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927     docdir=$ac_optarg ;;
928
929   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930     ac_prev=dvidir ;;
931   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932     dvidir=$ac_optarg ;;
933
934   -enable-* | --enable-*)
935     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936     # Reject names that are not valid shell variable names.
937     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938       as_fn_error $? "invalid feature name: $ac_useropt"
939     ac_useropt_orig=$ac_useropt
940     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941     case $ac_user_opts in
942       *"
943 "enable_$ac_useropt"
944 "*) ;;
945       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946          ac_unrecognized_sep=', ';;
947     esac
948     eval enable_$ac_useropt=\$ac_optarg ;;
949
950   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952   | --exec | --exe | --ex)
953     ac_prev=exec_prefix ;;
954   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956   | --exec=* | --exe=* | --ex=*)
957     exec_prefix=$ac_optarg ;;
958
959   -gas | --gas | --ga | --g)
960     # Obsolete; use --with-gas.
961     with_gas=yes ;;
962
963   -help | --help | --hel | --he | -h)
964     ac_init_help=long ;;
965   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966     ac_init_help=recursive ;;
967   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968     ac_init_help=short ;;
969
970   -host | --host | --hos | --ho)
971     ac_prev=host_alias ;;
972   -host=* | --host=* | --hos=* | --ho=*)
973     host_alias=$ac_optarg ;;
974
975   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976     ac_prev=htmldir ;;
977   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978   | --ht=*)
979     htmldir=$ac_optarg ;;
980
981   -includedir | --includedir | --includedi | --included | --include \
982   | --includ | --inclu | --incl | --inc)
983     ac_prev=includedir ;;
984   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985   | --includ=* | --inclu=* | --incl=* | --inc=*)
986     includedir=$ac_optarg ;;
987
988   -infodir | --infodir | --infodi | --infod | --info | --inf)
989     ac_prev=infodir ;;
990   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991     infodir=$ac_optarg ;;
992
993   -libdir | --libdir | --libdi | --libd)
994     ac_prev=libdir ;;
995   -libdir=* | --libdir=* | --libdi=* | --libd=*)
996     libdir=$ac_optarg ;;
997
998   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999   | --libexe | --libex | --libe)
1000     ac_prev=libexecdir ;;
1001   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002   | --libexe=* | --libex=* | --libe=*)
1003     libexecdir=$ac_optarg ;;
1004
1005   -localedir | --localedir | --localedi | --localed | --locale)
1006     ac_prev=localedir ;;
1007   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008     localedir=$ac_optarg ;;
1009
1010   -localstatedir | --localstatedir | --localstatedi | --localstated \
1011   | --localstate | --localstat | --localsta | --localst | --locals)
1012     ac_prev=localstatedir ;;
1013   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015     localstatedir=$ac_optarg ;;
1016
1017   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018     ac_prev=mandir ;;
1019   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020     mandir=$ac_optarg ;;
1021
1022   -nfp | --nfp | --nf)
1023     # Obsolete; use --without-fp.
1024     with_fp=no ;;
1025
1026   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027   | --no-cr | --no-c | -n)
1028     no_create=yes ;;
1029
1030   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032     no_recursion=yes ;;
1033
1034   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036   | --oldin | --oldi | --old | --ol | --o)
1037     ac_prev=oldincludedir ;;
1038   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041     oldincludedir=$ac_optarg ;;
1042
1043   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044     ac_prev=prefix ;;
1045   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046     prefix=$ac_optarg ;;
1047
1048   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049   | --program-pre | --program-pr | --program-p)
1050     ac_prev=program_prefix ;;
1051   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053     program_prefix=$ac_optarg ;;
1054
1055   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056   | --program-suf | --program-su | --program-s)
1057     ac_prev=program_suffix ;;
1058   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060     program_suffix=$ac_optarg ;;
1061
1062   -program-transform-name | --program-transform-name \
1063   | --program-transform-nam | --program-transform-na \
1064   | --program-transform-n | --program-transform- \
1065   | --program-transform | --program-transfor \
1066   | --program-transfo | --program-transf \
1067   | --program-trans | --program-tran \
1068   | --progr-tra | --program-tr | --program-t)
1069     ac_prev=program_transform_name ;;
1070   -program-transform-name=* | --program-transform-name=* \
1071   | --program-transform-nam=* | --program-transform-na=* \
1072   | --program-transform-n=* | --program-transform-=* \
1073   | --program-transform=* | --program-transfor=* \
1074   | --program-transfo=* | --program-transf=* \
1075   | --program-trans=* | --program-tran=* \
1076   | --progr-tra=* | --program-tr=* | --program-t=*)
1077     program_transform_name=$ac_optarg ;;
1078
1079   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080     ac_prev=pdfdir ;;
1081   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082     pdfdir=$ac_optarg ;;
1083
1084   -psdir | --psdir | --psdi | --psd | --ps)
1085     ac_prev=psdir ;;
1086   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087     psdir=$ac_optarg ;;
1088
1089   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090   | -silent | --silent | --silen | --sile | --sil)
1091     silent=yes ;;
1092
1093   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094     ac_prev=sbindir ;;
1095   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096   | --sbi=* | --sb=*)
1097     sbindir=$ac_optarg ;;
1098
1099   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101   | --sharedst | --shareds | --shared | --share | --shar \
1102   | --sha | --sh)
1103     ac_prev=sharedstatedir ;;
1104   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107   | --sha=* | --sh=*)
1108     sharedstatedir=$ac_optarg ;;
1109
1110   -site | --site | --sit)
1111     ac_prev=site ;;
1112   -site=* | --site=* | --sit=*)
1113     site=$ac_optarg ;;
1114
1115   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116     ac_prev=srcdir ;;
1117   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118     srcdir=$ac_optarg ;;
1119
1120   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121   | --syscon | --sysco | --sysc | --sys | --sy)
1122     ac_prev=sysconfdir ;;
1123   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125     sysconfdir=$ac_optarg ;;
1126
1127   -target | --target | --targe | --targ | --tar | --ta | --t)
1128     ac_prev=target_alias ;;
1129   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130     target_alias=$ac_optarg ;;
1131
1132   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133     verbose=yes ;;
1134
1135   -version | --version | --versio | --versi | --vers | -V)
1136     ac_init_version=: ;;
1137
1138   -with-* | --with-*)
1139     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140     # Reject names that are not valid shell variable names.
1141     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142       as_fn_error $? "invalid package name: $ac_useropt"
1143     ac_useropt_orig=$ac_useropt
1144     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145     case $ac_user_opts in
1146       *"
1147 "with_$ac_useropt"
1148 "*) ;;
1149       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1150          ac_unrecognized_sep=', ';;
1151     esac
1152     eval with_$ac_useropt=\$ac_optarg ;;
1153
1154   -without-* | --without-*)
1155     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156     # Reject names that are not valid shell variable names.
1157     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158       as_fn_error $? "invalid package name: $ac_useropt"
1159     ac_useropt_orig=$ac_useropt
1160     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161     case $ac_user_opts in
1162       *"
1163 "with_$ac_useropt"
1164 "*) ;;
1165       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1166          ac_unrecognized_sep=', ';;
1167     esac
1168     eval with_$ac_useropt=no ;;
1169
1170   --x)
1171     # Obsolete; use --with-x.
1172     with_x=yes ;;
1173
1174   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175   | --x-incl | --x-inc | --x-in | --x-i)
1176     ac_prev=x_includes ;;
1177   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179     x_includes=$ac_optarg ;;
1180
1181   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183     ac_prev=x_libraries ;;
1184   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186     x_libraries=$ac_optarg ;;
1187
1188   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1189 Try \`$0 --help' for more information"
1190     ;;
1191
1192   *=*)
1193     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194     # Reject names that are not valid shell variable names.
1195     case $ac_envvar in #(
1196       '' | [0-9]* | *[!_$as_cr_alnum]* )
1197       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1198     esac
1199     eval $ac_envvar=\$ac_optarg
1200     export $ac_envvar ;;
1201
1202   *)
1203     # FIXME: should be removed in autoconf 3.0.
1204     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1208     ;;
1209
1210   esac
1211 done
1212
1213 if test -n "$ac_prev"; then
1214   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215   as_fn_error $? "missing argument to $ac_option"
1216 fi
1217
1218 if test -n "$ac_unrecognized_opts"; then
1219   case $enable_option_checking in
1220     no) ;;
1221     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1222     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1223   esac
1224 fi
1225
1226 # Check all directory arguments for consistency.
1227 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1228                 datadir sysconfdir sharedstatedir localstatedir includedir \
1229                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1230                 libdir localedir mandir
1231 do
1232   eval ac_val=\$$ac_var
1233   # Remove trailing slashes.
1234   case $ac_val in
1235     */ )
1236       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1237       eval $ac_var=\$ac_val;;
1238   esac
1239   # Be sure to have absolute directory names.
1240   case $ac_val in
1241     [\\/$]* | ?:[\\/]* )  continue;;
1242     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1243   esac
1244   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1245 done
1246
1247 # There might be people who depend on the old broken behavior: `$host'
1248 # used to hold the argument of --host etc.
1249 # FIXME: To remove some day.
1250 build=$build_alias
1251 host=$host_alias
1252 target=$target_alias
1253
1254 # FIXME: To remove some day.
1255 if test "x$host_alias" != x; then
1256   if test "x$build_alias" = x; then
1257     cross_compiling=maybe
1258     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1259     If a cross compiler is detected then cross compile mode will be used" >&2
1260   elif test "x$build_alias" != "x$host_alias"; then
1261     cross_compiling=yes
1262   fi
1263 fi
1264
1265 ac_tool_prefix=
1266 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267
1268 test "$silent" = yes && exec 6>/dev/null
1269
1270
1271 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272 ac_ls_di=`ls -di .` &&
1273 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274   as_fn_error $? "working directory cannot be determined"
1275 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276   as_fn_error $? "pwd does not report name of working directory"
1277
1278
1279 # Find the source files, if location was not specified.
1280 if test -z "$srcdir"; then
1281   ac_srcdir_defaulted=yes
1282   # Try the directory containing this script, then the parent directory.
1283   ac_confdir=`$as_dirname -- "$as_myself" ||
1284 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285          X"$as_myself" : 'X\(//\)[^/]' \| \
1286          X"$as_myself" : 'X\(//\)$' \| \
1287          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288 $as_echo X"$as_myself" |
1289     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290             s//\1/
1291             q
1292           }
1293           /^X\(\/\/\)[^/].*/{
1294             s//\1/
1295             q
1296           }
1297           /^X\(\/\/\)$/{
1298             s//\1/
1299             q
1300           }
1301           /^X\(\/\).*/{
1302             s//\1/
1303             q
1304           }
1305           s/.*/./; q'`
1306   srcdir=$ac_confdir
1307   if test ! -r "$srcdir/$ac_unique_file"; then
1308     srcdir=..
1309   fi
1310 else
1311   ac_srcdir_defaulted=no
1312 fi
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316 fi
1317 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318 ac_abs_confdir=`(
1319         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320         pwd)`
1321 # When building in place, set srcdir=.
1322 if test "$ac_abs_confdir" = "$ac_pwd"; then
1323   srcdir=.
1324 fi
1325 # Remove unnecessary trailing slashes from srcdir.
1326 # Double slashes in file names in object file debugging info
1327 # mess up M-x gdb in Emacs.
1328 case $srcdir in
1329 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330 esac
1331 for ac_var in $ac_precious_vars; do
1332   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333   eval ac_env_${ac_var}_value=\$${ac_var}
1334   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336 done
1337
1338 #
1339 # Report the --help message.
1340 #
1341 if test "$ac_init_help" = "long"; then
1342   # Omit some internal or obsolete options to make the list less imposing.
1343   # This message is too long to be a string in the A/UX 3.1 sh.
1344   cat <<_ACEOF
1345 \`configure' configures glog 0.3.3 to adapt to many kinds of systems.
1346
1347 Usage: $0 [OPTION]... [VAR=VALUE]...
1348
1349 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350 VAR=VALUE.  See below for descriptions of some of the useful variables.
1351
1352 Defaults for the options are specified in brackets.
1353
1354 Configuration:
1355   -h, --help              display this help and exit
1356       --help=short        display options specific to this package
1357       --help=recursive    display the short help of all the included packages
1358   -V, --version           display version information and exit
1359   -q, --quiet, --silent   do not print \`checking ...' messages
1360       --cache-file=FILE   cache test results in FILE [disabled]
1361   -C, --config-cache      alias for \`--cache-file=config.cache'
1362   -n, --no-create         do not create output files
1363       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1364
1365 Installation directories:
1366   --prefix=PREFIX         install architecture-independent files in PREFIX
1367                           [$ac_default_prefix]
1368   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1369                           [PREFIX]
1370
1371 By default, \`make install' will install all the files in
1372 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1373 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374 for instance \`--prefix=\$HOME'.
1375
1376 For better control, use the options below.
1377
1378 Fine tuning of the installation directories:
1379   --bindir=DIR            user executables [EPREFIX/bin]
1380   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1381   --libexecdir=DIR        program executables [EPREFIX/libexec]
1382   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1383   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1384   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1385   --libdir=DIR            object code libraries [EPREFIX/lib]
1386   --includedir=DIR        C header files [PREFIX/include]
1387   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1388   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1389   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1390   --infodir=DIR           info documentation [DATAROOTDIR/info]
1391   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1392   --mandir=DIR            man documentation [DATAROOTDIR/man]
1393   --docdir=DIR            documentation root [DATAROOTDIR/doc/glog]
1394   --htmldir=DIR           html documentation [DOCDIR]
1395   --dvidir=DIR            dvi documentation [DOCDIR]
1396   --pdfdir=DIR            pdf documentation [DOCDIR]
1397   --psdir=DIR             ps documentation [DOCDIR]
1398 _ACEOF
1399
1400   cat <<\_ACEOF
1401
1402 Program names:
1403   --program-prefix=PREFIX            prepend PREFIX to installed program names
1404   --program-suffix=SUFFIX            append SUFFIX to installed program names
1405   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1406
1407 System types:
1408   --build=BUILD     configure for building on BUILD [guessed]
1409   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1410 _ACEOF
1411 fi
1412
1413 if test -n "$ac_init_help"; then
1414   case $ac_init_help in
1415      short | recursive ) echo "Configuration of glog 0.3.3:";;
1416    esac
1417   cat <<\_ACEOF
1418
1419 Optional Features:
1420   --disable-option-checking  ignore unrecognized --enable/--with options
1421   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1422   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1423   --disable-dependency-tracking  speeds up one-time build
1424   --enable-dependency-tracking   do not reject slow dependency extractors
1425   --enable-shared[=PKGS]  build shared libraries [default=yes]
1426   --enable-static[=PKGS]  build static libraries [default=yes]
1427   --enable-fast-install[=PKGS]
1428                           optimize for fast installation [default=yes]
1429   --disable-libtool-lock  avoid locking (might break parallel builds)
1430   --enable-frame-pointers On x86_64 systems, compile with
1431                           -fno-omit-frame-pointer (see INSTALL)
1432   --disable-rtti          Disable RTTI in glog
1433   --enable-namespace=FOO to define these Google
1434                              classes in the FOO namespace. --disable-namespace
1435                              to define them in the global namespace. Default
1436                              is to define them in namespace google.
1437
1438 Optional Packages:
1439   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1440   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1441   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1442                           both]
1443   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1444   --with-sysroot=DIR Search for dependent libraries within DIR
1445                         (or the compiler's sysroot if not specified).
1446                           --with-gflags=GFLAGS_DIR
1447
1448 Some influential environment variables:
1449   CC          C compiler command
1450   CFLAGS      C compiler flags
1451   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1452               nonstandard directory <lib dir>
1453   LIBS        libraries to pass to the linker, e.g. -l<library>
1454   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1455               you have headers in a nonstandard directory <include dir>
1456   CPP         C preprocessor
1457   CXX         C++ compiler command
1458   CXXFLAGS    C++ compiler flags
1459   CXXCPP      C++ preprocessor
1460
1461 Use these variables to override the choices made by `configure' or to help
1462 it to find libraries and programs with nonstandard names/locations.
1463
1464 Report bugs to <opensource@google.com>.
1465 _ACEOF
1466 ac_status=$?
1467 fi
1468
1469 if test "$ac_init_help" = "recursive"; then
1470   # If there are subdirs, report their specific --help.
1471   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1472     test -d "$ac_dir" ||
1473       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1474       continue
1475     ac_builddir=.
1476
1477 case "$ac_dir" in
1478 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479 *)
1480   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1481   # A ".." for each directory in $ac_dir_suffix.
1482   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1483   case $ac_top_builddir_sub in
1484   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486   esac ;;
1487 esac
1488 ac_abs_top_builddir=$ac_pwd
1489 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490 # for backward compatibility:
1491 ac_top_builddir=$ac_top_build_prefix
1492
1493 case $srcdir in
1494   .)  # We are building in place.
1495     ac_srcdir=.
1496     ac_top_srcdir=$ac_top_builddir_sub
1497     ac_abs_top_srcdir=$ac_pwd ;;
1498   [\\/]* | ?:[\\/]* )  # Absolute name.
1499     ac_srcdir=$srcdir$ac_dir_suffix;
1500     ac_top_srcdir=$srcdir
1501     ac_abs_top_srcdir=$srcdir ;;
1502   *) # Relative name.
1503     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504     ac_top_srcdir=$ac_top_build_prefix$srcdir
1505     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1506 esac
1507 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1508
1509     cd "$ac_dir" || { ac_status=$?; continue; }
1510     # Check for guested configure.
1511     if test -f "$ac_srcdir/configure.gnu"; then
1512       echo &&
1513       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514     elif test -f "$ac_srcdir/configure"; then
1515       echo &&
1516       $SHELL "$ac_srcdir/configure" --help=recursive
1517     else
1518       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1519     fi || ac_status=$?
1520     cd "$ac_pwd" || { ac_status=$?; break; }
1521   done
1522 fi
1523
1524 test -n "$ac_init_help" && exit $ac_status
1525 if $ac_init_version; then
1526   cat <<\_ACEOF
1527 glog configure 0.3.3
1528 generated by GNU Autoconf 2.68
1529
1530 Copyright (C) 2010 Free Software Foundation, Inc.
1531 This configure script is free software; the Free Software Foundation
1532 gives unlimited permission to copy, distribute and modify it.
1533 _ACEOF
1534   exit
1535 fi
1536
1537 ## ------------------------ ##
1538 ## Autoconf initialization. ##
1539 ## ------------------------ ##
1540
1541 # ac_fn_c_try_compile LINENO
1542 # --------------------------
1543 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1544 ac_fn_c_try_compile ()
1545 {
1546   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547   rm -f conftest.$ac_objext
1548   if { { ac_try="$ac_compile"
1549 case "(($ac_try" in
1550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551   *) ac_try_echo=$ac_try;;
1552 esac
1553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554 $as_echo "$ac_try_echo"; } >&5
1555   (eval "$ac_compile") 2>conftest.err
1556   ac_status=$?
1557   if test -s conftest.err; then
1558     grep -v '^ *+' conftest.err >conftest.er1
1559     cat conftest.er1 >&5
1560     mv -f conftest.er1 conftest.err
1561   fi
1562   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563   test $ac_status = 0; } && {
1564          test -z "$ac_c_werror_flag" ||
1565          test ! -s conftest.err
1566        } && test -s conftest.$ac_objext; then :
1567   ac_retval=0
1568 else
1569   $as_echo "$as_me: failed program was:" >&5
1570 sed 's/^/| /' conftest.$ac_ext >&5
1571
1572         ac_retval=1
1573 fi
1574   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575   as_fn_set_status $ac_retval
1576
1577 } # ac_fn_c_try_compile
1578
1579 # ac_fn_c_try_cpp LINENO
1580 # ----------------------
1581 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1582 ac_fn_c_try_cpp ()
1583 {
1584   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585   if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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; } > conftest.i && {
1601          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1602          test ! -s conftest.err
1603        }; then :
1604   ac_retval=0
1605 else
1606   $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1608
1609     ac_retval=1
1610 fi
1611   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612   as_fn_set_status $ac_retval
1613
1614 } # ac_fn_c_try_cpp
1615
1616 # ac_fn_cxx_try_compile LINENO
1617 # ----------------------------
1618 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1619 ac_fn_cxx_try_compile ()
1620 {
1621   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622   rm -f conftest.$ac_objext
1623   if { { ac_try="$ac_compile"
1624 case "(($ac_try" in
1625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626   *) ac_try_echo=$ac_try;;
1627 esac
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630   (eval "$ac_compile") 2>conftest.err
1631   ac_status=$?
1632   if test -s conftest.err; then
1633     grep -v '^ *+' conftest.err >conftest.er1
1634     cat conftest.er1 >&5
1635     mv -f conftest.er1 conftest.err
1636   fi
1637   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638   test $ac_status = 0; } && {
1639          test -z "$ac_cxx_werror_flag" ||
1640          test ! -s conftest.err
1641        } && test -s conftest.$ac_objext; then :
1642   ac_retval=0
1643 else
1644   $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1646
1647         ac_retval=1
1648 fi
1649   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650   as_fn_set_status $ac_retval
1651
1652 } # ac_fn_cxx_try_compile
1653
1654 # ac_fn_c_try_link LINENO
1655 # -----------------------
1656 # Try to link conftest.$ac_ext, and return whether this succeeded.
1657 ac_fn_c_try_link ()
1658 {
1659   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660   rm -f conftest.$ac_objext conftest$ac_exeext
1661   if { { ac_try="$ac_link"
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_link") 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; } && {
1677          test -z "$ac_c_werror_flag" ||
1678          test ! -s conftest.err
1679        } && test -s conftest$ac_exeext && {
1680          test "$cross_compiling" = yes ||
1681          $as_test_x conftest$ac_exeext
1682        }; then :
1683   ac_retval=0
1684 else
1685   $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1687
1688         ac_retval=1
1689 fi
1690   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1691   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1692   # interfere with the next link command; also delete a directory that is
1693   # left behind by Apple's compiler.  We do this before executing the actions.
1694   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1695   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696   as_fn_set_status $ac_retval
1697
1698 } # ac_fn_c_try_link
1699
1700 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1701 # -------------------------------------------------------
1702 # Tests whether HEADER exists and can be compiled using the include files in
1703 # INCLUDES, setting the cache variable VAR accordingly.
1704 ac_fn_c_check_header_compile ()
1705 {
1706   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708 $as_echo_n "checking for $2... " >&6; }
1709 if eval \${$3+:} false; then :
1710   $as_echo_n "(cached) " >&6
1711 else
1712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h.  */
1714 $4
1715 #include <$2>
1716 _ACEOF
1717 if ac_fn_c_try_compile "$LINENO"; then :
1718   eval "$3=yes"
1719 else
1720   eval "$3=no"
1721 fi
1722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1723 fi
1724 eval ac_res=\$$3
1725                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726 $as_echo "$ac_res" >&6; }
1727   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728
1729 } # ac_fn_c_check_header_compile
1730
1731 # ac_fn_c_try_run LINENO
1732 # ----------------------
1733 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1734 # that executables *can* be run.
1735 ac_fn_c_try_run ()
1736 {
1737   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738   if { { ac_try="$ac_link"
1739 case "(($ac_try" in
1740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741   *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745   (eval "$ac_link") 2>&5
1746   ac_status=$?
1747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1749   { { case "(($ac_try" in
1750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751   *) ac_try_echo=$ac_try;;
1752 esac
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755   (eval "$ac_try") 2>&5
1756   ac_status=$?
1757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758   test $ac_status = 0; }; }; then :
1759   ac_retval=0
1760 else
1761   $as_echo "$as_me: program exited with status $ac_status" >&5
1762        $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1764
1765        ac_retval=$ac_status
1766 fi
1767   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769   as_fn_set_status $ac_retval
1770
1771 } # ac_fn_c_try_run
1772
1773 # ac_fn_c_check_func LINENO FUNC VAR
1774 # ----------------------------------
1775 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1776 ac_fn_c_check_func ()
1777 {
1778   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if eval \${$3+:} false; then :
1782   $as_echo_n "(cached) " >&6
1783 else
1784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h.  */
1786 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1787    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1788 #define $2 innocuous_$2
1789
1790 /* System header to define __stub macros and hopefully few prototypes,
1791     which can conflict with char $2 (); below.
1792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1793     <limits.h> exists even on freestanding compilers.  */
1794
1795 #ifdef __STDC__
1796 # include <limits.h>
1797 #else
1798 # include <assert.h>
1799 #endif
1800
1801 #undef $2
1802
1803 /* Override any GCC internal prototype to avoid an error.
1804    Use char because int might match the return type of a GCC
1805    builtin and then its argument prototype would still apply.  */
1806 #ifdef __cplusplus
1807 extern "C"
1808 #endif
1809 char $2 ();
1810 /* The GNU C library defines this for functions which it implements
1811     to always fail with ENOSYS.  Some functions are actually named
1812     something starting with __ and the normal name is an alias.  */
1813 #if defined __stub_$2 || defined __stub___$2
1814 choke me
1815 #endif
1816
1817 int
1818 main ()
1819 {
1820 return $2 ();
1821   ;
1822   return 0;
1823 }
1824 _ACEOF
1825 if ac_fn_c_try_link "$LINENO"; then :
1826   eval "$3=yes"
1827 else
1828   eval "$3=no"
1829 fi
1830 rm -f core conftest.err conftest.$ac_objext \
1831     conftest$ac_exeext conftest.$ac_ext
1832 fi
1833 eval ac_res=\$$3
1834                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837
1838 } # ac_fn_c_check_func
1839
1840 # ac_fn_cxx_try_cpp LINENO
1841 # ------------------------
1842 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_cxx_try_cpp ()
1844 {
1845   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846   if { { ac_try="$ac_cpp conftest.$ac_ext"
1847 case "(($ac_try" in
1848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849   *) ac_try_echo=$ac_try;;
1850 esac
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1854   ac_status=$?
1855   if test -s conftest.err; then
1856     grep -v '^ *+' conftest.err >conftest.er1
1857     cat conftest.er1 >&5
1858     mv -f conftest.er1 conftest.err
1859   fi
1860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861   test $ac_status = 0; } > conftest.i && {
1862          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1863          test ! -s conftest.err
1864        }; then :
1865   ac_retval=0
1866 else
1867   $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1869
1870     ac_retval=1
1871 fi
1872   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873   as_fn_set_status $ac_retval
1874
1875 } # ac_fn_cxx_try_cpp
1876
1877 # ac_fn_cxx_try_link LINENO
1878 # -------------------------
1879 # Try to link conftest.$ac_ext, and return whether this succeeded.
1880 ac_fn_cxx_try_link ()
1881 {
1882   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883   rm -f conftest.$ac_objext conftest$ac_exeext
1884   if { { ac_try="$ac_link"
1885 case "(($ac_try" in
1886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887   *) ac_try_echo=$ac_try;;
1888 esac
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891   (eval "$ac_link") 2>conftest.err
1892   ac_status=$?
1893   if test -s conftest.err; then
1894     grep -v '^ *+' conftest.err >conftest.er1
1895     cat conftest.er1 >&5
1896     mv -f conftest.er1 conftest.err
1897   fi
1898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899   test $ac_status = 0; } && {
1900          test -z "$ac_cxx_werror_flag" ||
1901          test ! -s conftest.err
1902        } && test -s conftest$ac_exeext && {
1903          test "$cross_compiling" = yes ||
1904          $as_test_x conftest$ac_exeext
1905        }; then :
1906   ac_retval=0
1907 else
1908   $as_echo "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1910
1911         ac_retval=1
1912 fi
1913   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1914   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1915   # interfere with the next link command; also delete a directory that is
1916   # left behind by Apple's compiler.  We do this before executing the actions.
1917   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1918   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919   as_fn_set_status $ac_retval
1920
1921 } # ac_fn_cxx_try_link
1922
1923 # ac_fn_cxx_try_run LINENO
1924 # ------------------------
1925 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1926 # that executables *can* be run.
1927 ac_fn_cxx_try_run ()
1928 {
1929   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930   if { { ac_try="$ac_link"
1931 case "(($ac_try" in
1932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933   *) ac_try_echo=$ac_try;;
1934 esac
1935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936 $as_echo "$ac_try_echo"; } >&5
1937   (eval "$ac_link") 2>&5
1938   ac_status=$?
1939   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1941   { { case "(($ac_try" in
1942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943   *) ac_try_echo=$ac_try;;
1944 esac
1945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946 $as_echo "$ac_try_echo"; } >&5
1947   (eval "$ac_try") 2>&5
1948   ac_status=$?
1949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950   test $ac_status = 0; }; }; then :
1951   ac_retval=0
1952 else
1953   $as_echo "$as_me: program exited with status $ac_status" >&5
1954        $as_echo "$as_me: failed program was:" >&5
1955 sed 's/^/| /' conftest.$ac_ext >&5
1956
1957        ac_retval=$ac_status
1958 fi
1959   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1960   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961   as_fn_set_status $ac_retval
1962
1963 } # ac_fn_cxx_try_run
1964
1965 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1966 # ---------------------------------------------------------
1967 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1968 # the include files in INCLUDES and setting the cache variable VAR
1969 # accordingly.
1970 ac_fn_cxx_check_header_mongrel ()
1971 {
1972   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973   if eval \${$3+:} false; then :
1974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if eval \${$3+:} false; then :
1977   $as_echo_n "(cached) " >&6
1978 fi
1979 eval ac_res=\$$3
1980                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1982 else
1983   # Is the header compilable?
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1985 $as_echo_n "checking $2 usability... " >&6; }
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h.  */
1988 $4
1989 #include <$2>
1990 _ACEOF
1991 if ac_fn_cxx_try_compile "$LINENO"; then :
1992   ac_header_compiler=yes
1993 else
1994   ac_header_compiler=no
1995 fi
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1998 $as_echo "$ac_header_compiler" >&6; }
1999
2000 # Is the header present?
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2002 $as_echo_n "checking $2 presence... " >&6; }
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h.  */
2005 #include <$2>
2006 _ACEOF
2007 if ac_fn_cxx_try_cpp "$LINENO"; then :
2008   ac_header_preproc=yes
2009 else
2010   ac_header_preproc=no
2011 fi
2012 rm -f conftest.err conftest.i conftest.$ac_ext
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2014 $as_echo "$ac_header_preproc" >&6; }
2015
2016 # So?  What about this header?
2017 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2018   yes:no: )
2019     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2020 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2021     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2022 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2023     ;;
2024   no:yes:* )
2025     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2026 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2027     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2028 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2029     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2030 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2031     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2032 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2033     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2034 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2035 ( $as_echo "## ------------------------------------ ##
2036 ## Report this to opensource@google.com ##
2037 ## ------------------------------------ ##"
2038      ) | sed "s/^/$as_me: WARNING:     /" >&2
2039     ;;
2040 esac
2041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2042 $as_echo_n "checking for $2... " >&6; }
2043 if eval \${$3+:} false; then :
2044   $as_echo_n "(cached) " >&6
2045 else
2046   eval "$3=\$ac_header_compiler"
2047 fi
2048 eval ac_res=\$$3
2049                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 $as_echo "$ac_res" >&6; }
2051 fi
2052   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053
2054 } # ac_fn_cxx_check_header_mongrel
2055
2056 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2057 # ----------------------------------------------
2058 # Tries to find the compile-time value of EXPR in a program that includes
2059 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2060 # computed
2061 ac_fn_cxx_compute_int ()
2062 {
2063   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064   if test "$cross_compiling" = yes; then
2065     # Depending upon the size, compute the lo and hi bounds.
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h.  */
2068 $4
2069 int
2070 main ()
2071 {
2072 static int test_array [1 - 2 * !(($2) >= 0)];
2073 test_array [0] = 0
2074
2075   ;
2076   return 0;
2077 }
2078 _ACEOF
2079 if ac_fn_cxx_try_compile "$LINENO"; then :
2080   ac_lo=0 ac_mid=0
2081   while :; do
2082     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h.  */
2084 $4
2085 int
2086 main ()
2087 {
2088 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2089 test_array [0] = 0
2090
2091   ;
2092   return 0;
2093 }
2094 _ACEOF
2095 if ac_fn_cxx_try_compile "$LINENO"; then :
2096   ac_hi=$ac_mid; break
2097 else
2098   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2099                         if test $ac_lo -le $ac_mid; then
2100                           ac_lo= ac_hi=
2101                           break
2102                         fi
2103                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2104 fi
2105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106   done
2107 else
2108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h.  */
2110 $4
2111 int
2112 main ()
2113 {
2114 static int test_array [1 - 2 * !(($2) < 0)];
2115 test_array [0] = 0
2116
2117   ;
2118   return 0;
2119 }
2120 _ACEOF
2121 if ac_fn_cxx_try_compile "$LINENO"; then :
2122   ac_hi=-1 ac_mid=-1
2123   while :; do
2124     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h.  */
2126 $4
2127 int
2128 main ()
2129 {
2130 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2131 test_array [0] = 0
2132
2133   ;
2134   return 0;
2135 }
2136 _ACEOF
2137 if ac_fn_cxx_try_compile "$LINENO"; then :
2138   ac_lo=$ac_mid; break
2139 else
2140   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2141                         if test $ac_mid -le $ac_hi; then
2142                           ac_lo= ac_hi=
2143                           break
2144                         fi
2145                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2146 fi
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148   done
2149 else
2150   ac_lo= ac_hi=
2151 fi
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 fi
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155 # Binary search between lo and hi bounds.
2156 while test "x$ac_lo" != "x$ac_hi"; do
2157   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h.  */
2160 $4
2161 int
2162 main ()
2163 {
2164 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2165 test_array [0] = 0
2166
2167   ;
2168   return 0;
2169 }
2170 _ACEOF
2171 if ac_fn_cxx_try_compile "$LINENO"; then :
2172   ac_hi=$ac_mid
2173 else
2174   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2175 fi
2176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177 done
2178 case $ac_lo in #((
2179 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2180 '') ac_retval=1 ;;
2181 esac
2182   else
2183     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h.  */
2185 $4
2186 static long int longval () { return $2; }
2187 static unsigned long int ulongval () { return $2; }
2188 #include <stdio.h>
2189 #include <stdlib.h>
2190 int
2191 main ()
2192 {
2193
2194   FILE *f = fopen ("conftest.val", "w");
2195   if (! f)
2196     return 1;
2197   if (($2) < 0)
2198     {
2199       long int i = longval ();
2200       if (i != ($2))
2201         return 1;
2202       fprintf (f, "%ld", i);
2203     }
2204   else
2205     {
2206       unsigned long int i = ulongval ();
2207       if (i != ($2))
2208         return 1;
2209       fprintf (f, "%lu", i);
2210     }
2211   /* Do not output a trailing newline, as this causes \r\n confusion
2212      on some platforms.  */
2213   return ferror (f) || fclose (f) != 0;
2214
2215   ;
2216   return 0;
2217 }
2218 _ACEOF
2219 if ac_fn_cxx_try_run "$LINENO"; then :
2220   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2221 else
2222   ac_retval=1
2223 fi
2224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2225   conftest.$ac_objext conftest.beam conftest.$ac_ext
2226 rm -f conftest.val
2227
2228   fi
2229   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2230   as_fn_set_status $ac_retval
2231
2232 } # ac_fn_cxx_compute_int
2233
2234 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2235 # ---------------------------------------------
2236 # Tests whether TYPE exists after having included INCLUDES, setting cache
2237 # variable VAR accordingly.
2238 ac_fn_cxx_check_type ()
2239 {
2240   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2242 $as_echo_n "checking for $2... " >&6; }
2243 if eval \${$3+:} false; then :
2244   $as_echo_n "(cached) " >&6
2245 else
2246   eval "$3=no"
2247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h.  */
2249 $4
2250 int
2251 main ()
2252 {
2253 if (sizeof ($2))
2254          return 0;
2255   ;
2256   return 0;
2257 }
2258 _ACEOF
2259 if ac_fn_cxx_try_compile "$LINENO"; then :
2260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h.  */
2262 $4
2263 int
2264 main ()
2265 {
2266 if (sizeof (($2)))
2267             return 0;
2268   ;
2269   return 0;
2270 }
2271 _ACEOF
2272 if ac_fn_cxx_try_compile "$LINENO"; then :
2273
2274 else
2275   eval "$3=yes"
2276 fi
2277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278 fi
2279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280 fi
2281 eval ac_res=\$$3
2282                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2283 $as_echo "$ac_res" >&6; }
2284   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2285
2286 } # ac_fn_cxx_check_type
2287
2288 # ac_fn_cxx_check_func LINENO FUNC VAR
2289 # ------------------------------------
2290 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2291 ac_fn_cxx_check_func ()
2292 {
2293   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2295 $as_echo_n "checking for $2... " >&6; }
2296 if eval \${$3+:} false; then :
2297   $as_echo_n "(cached) " >&6
2298 else
2299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300 /* end confdefs.h.  */
2301 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2302    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2303 #define $2 innocuous_$2
2304
2305 /* System header to define __stub macros and hopefully few prototypes,
2306     which can conflict with char $2 (); below.
2307     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2308     <limits.h> exists even on freestanding compilers.  */
2309
2310 #ifdef __STDC__
2311 # include <limits.h>
2312 #else
2313 # include <assert.h>
2314 #endif
2315
2316 #undef $2
2317
2318 /* Override any GCC internal prototype to avoid an error.
2319    Use char because int might match the return type of a GCC
2320    builtin and then its argument prototype would still apply.  */
2321 #ifdef __cplusplus
2322 extern "C"
2323 #endif
2324 char $2 ();
2325 /* The GNU C library defines this for functions which it implements
2326     to always fail with ENOSYS.  Some functions are actually named
2327     something starting with __ and the normal name is an alias.  */
2328 #if defined __stub_$2 || defined __stub___$2
2329 choke me
2330 #endif
2331
2332 int
2333 main ()
2334 {
2335 return $2 ();
2336   ;
2337   return 0;
2338 }
2339 _ACEOF
2340 if ac_fn_cxx_try_link "$LINENO"; then :
2341   eval "$3=yes"
2342 else
2343   eval "$3=no"
2344 fi
2345 rm -f core conftest.err conftest.$ac_objext \
2346     conftest$ac_exeext conftest.$ac_ext
2347 fi
2348 eval ac_res=\$$3
2349                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350 $as_echo "$ac_res" >&6; }
2351   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2352
2353 } # ac_fn_cxx_check_func
2354 cat >config.log <<_ACEOF
2355 This file contains any messages produced by compilers while
2356 running configure, to aid debugging if configure makes a mistake.
2357
2358 It was created by glog $as_me 0.3.3, which was
2359 generated by GNU Autoconf 2.68.  Invocation command line was
2360
2361   $ $0 $@
2362
2363 _ACEOF
2364 exec 5>>config.log
2365 {
2366 cat <<_ASUNAME
2367 ## --------- ##
2368 ## Platform. ##
2369 ## --------- ##
2370
2371 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2372 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2373 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2374 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2375 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2376
2377 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2378 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2379
2380 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2381 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2382 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2383 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2384 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2385 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2386 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2387
2388 _ASUNAME
2389
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 for as_dir in $PATH
2392 do
2393   IFS=$as_save_IFS
2394   test -z "$as_dir" && as_dir=.
2395     $as_echo "PATH: $as_dir"
2396   done
2397 IFS=$as_save_IFS
2398
2399 } >&5
2400
2401 cat >&5 <<_ACEOF
2402
2403
2404 ## ----------- ##
2405 ## Core tests. ##
2406 ## ----------- ##
2407
2408 _ACEOF
2409
2410
2411 # Keep a trace of the command line.
2412 # Strip out --no-create and --no-recursion so they do not pile up.
2413 # Strip out --silent because we don't want to record it for future runs.
2414 # Also quote any args containing shell meta-characters.
2415 # Make two passes to allow for proper duplicate-argument suppression.
2416 ac_configure_args=
2417 ac_configure_args0=
2418 ac_configure_args1=
2419 ac_must_keep_next=false
2420 for ac_pass in 1 2
2421 do
2422   for ac_arg
2423   do
2424     case $ac_arg in
2425     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2426     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2427     | -silent | --silent | --silen | --sile | --sil)
2428       continue ;;
2429     *\'*)
2430       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2431     esac
2432     case $ac_pass in
2433     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2434     2)
2435       as_fn_append ac_configure_args1 " '$ac_arg'"
2436       if test $ac_must_keep_next = true; then
2437         ac_must_keep_next=false # Got value, back to normal.
2438       else
2439         case $ac_arg in
2440           *=* | --config-cache | -C | -disable-* | --disable-* \
2441           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2442           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2443           | -with-* | --with-* | -without-* | --without-* | --x)
2444             case "$ac_configure_args0 " in
2445               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2446             esac
2447             ;;
2448           -* ) ac_must_keep_next=true ;;
2449         esac
2450       fi
2451       as_fn_append ac_configure_args " '$ac_arg'"
2452       ;;
2453     esac
2454   done
2455 done
2456 { ac_configure_args0=; unset ac_configure_args0;}
2457 { ac_configure_args1=; unset ac_configure_args1;}
2458
2459 # When interrupted or exit'd, cleanup temporary files, and complete
2460 # config.log.  We remove comments because anyway the quotes in there
2461 # would cause problems or look ugly.
2462 # WARNING: Use '\'' to represent an apostrophe within the trap.
2463 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2464 trap 'exit_status=$?
2465   # Save into config.log some information that might help in debugging.
2466   {
2467     echo
2468
2469     $as_echo "## ---------------- ##
2470 ## Cache variables. ##
2471 ## ---------------- ##"
2472     echo
2473     # The following way of writing the cache mishandles newlines in values,
2474 (
2475   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2476     eval ac_val=\$$ac_var
2477     case $ac_val in #(
2478     *${as_nl}*)
2479       case $ac_var in #(
2480       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2481 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2482       esac
2483       case $ac_var in #(
2484       _ | IFS | as_nl) ;; #(
2485       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2486       *) { eval $ac_var=; unset $ac_var;} ;;
2487       esac ;;
2488     esac
2489   done
2490   (set) 2>&1 |
2491     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2492     *${as_nl}ac_space=\ *)
2493       sed -n \
2494         "s/'\''/'\''\\\\'\'''\''/g;
2495           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2496       ;; #(
2497     *)
2498       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2499       ;;
2500     esac |
2501     sort
2502 )
2503     echo
2504
2505     $as_echo "## ----------------- ##
2506 ## Output variables. ##
2507 ## ----------------- ##"
2508     echo
2509     for ac_var in $ac_subst_vars
2510     do
2511       eval ac_val=\$$ac_var
2512       case $ac_val in
2513       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2514       esac
2515       $as_echo "$ac_var='\''$ac_val'\''"
2516     done | sort
2517     echo
2518
2519     if test -n "$ac_subst_files"; then
2520       $as_echo "## ------------------- ##
2521 ## File substitutions. ##
2522 ## ------------------- ##"
2523       echo
2524       for ac_var in $ac_subst_files
2525       do
2526         eval ac_val=\$$ac_var
2527         case $ac_val in
2528         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2529         esac
2530         $as_echo "$ac_var='\''$ac_val'\''"
2531       done | sort
2532       echo
2533     fi
2534
2535     if test -s confdefs.h; then
2536       $as_echo "## ----------- ##
2537 ## confdefs.h. ##
2538 ## ----------- ##"
2539       echo
2540       cat confdefs.h
2541       echo
2542     fi
2543     test "$ac_signal" != 0 &&
2544       $as_echo "$as_me: caught signal $ac_signal"
2545     $as_echo "$as_me: exit $exit_status"
2546   } >&5
2547   rm -f core *.core core.conftest.* &&
2548     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2549     exit $exit_status
2550 ' 0
2551 for ac_signal in 1 2 13 15; do
2552   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2553 done
2554 ac_signal=0
2555
2556 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2557 rm -f -r conftest* confdefs.h
2558
2559 $as_echo "/* confdefs.h */" > confdefs.h
2560
2561 # Predefined preprocessor variables.
2562
2563 cat >>confdefs.h <<_ACEOF
2564 #define PACKAGE_NAME "$PACKAGE_NAME"
2565 _ACEOF
2566
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2569 _ACEOF
2570
2571 cat >>confdefs.h <<_ACEOF
2572 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2573 _ACEOF
2574
2575 cat >>confdefs.h <<_ACEOF
2576 #define PACKAGE_STRING "$PACKAGE_STRING"
2577 _ACEOF
2578
2579 cat >>confdefs.h <<_ACEOF
2580 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2581 _ACEOF
2582
2583 cat >>confdefs.h <<_ACEOF
2584 #define PACKAGE_URL "$PACKAGE_URL"
2585 _ACEOF
2586
2587
2588 # Let the site file select an alternate cache file if it wants to.
2589 # Prefer an explicitly selected file to automatically selected ones.
2590 ac_site_file1=NONE
2591 ac_site_file2=NONE
2592 if test -n "$CONFIG_SITE"; then
2593   # We do not want a PATH search for config.site.
2594   case $CONFIG_SITE in #((
2595     -*)  ac_site_file1=./$CONFIG_SITE;;
2596     */*) ac_site_file1=$CONFIG_SITE;;
2597     *)   ac_site_file1=./$CONFIG_SITE;;
2598   esac
2599 elif test "x$prefix" != xNONE; then
2600   ac_site_file1=$prefix/share/config.site
2601   ac_site_file2=$prefix/etc/config.site
2602 else
2603   ac_site_file1=$ac_default_prefix/share/config.site
2604   ac_site_file2=$ac_default_prefix/etc/config.site
2605 fi
2606 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2607 do
2608   test "x$ac_site_file" = xNONE && continue
2609   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2610     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2611 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2612     sed 's/^/| /' "$ac_site_file" >&5
2613     . "$ac_site_file" \
2614       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2616 as_fn_error $? "failed to load site script $ac_site_file
2617 See \`config.log' for more details" "$LINENO" 5; }
2618   fi
2619 done
2620
2621 if test -r "$cache_file"; then
2622   # Some versions of bash will fail to source /dev/null (special files
2623   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2624   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2625     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2626 $as_echo "$as_me: loading cache $cache_file" >&6;}
2627     case $cache_file in
2628       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2629       *)                      . "./$cache_file";;
2630     esac
2631   fi
2632 else
2633   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2634 $as_echo "$as_me: creating cache $cache_file" >&6;}
2635   >$cache_file
2636 fi
2637
2638 # Check that the precious variables saved in the cache have kept the same
2639 # value.
2640 ac_cache_corrupted=false
2641 for ac_var in $ac_precious_vars; do
2642   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2643   eval ac_new_set=\$ac_env_${ac_var}_set
2644   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2645   eval ac_new_val=\$ac_env_${ac_var}_value
2646   case $ac_old_set,$ac_new_set in
2647     set,)
2648       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2649 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2650       ac_cache_corrupted=: ;;
2651     ,set)
2652       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2653 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2654       ac_cache_corrupted=: ;;
2655     ,);;
2656     *)
2657       if test "x$ac_old_val" != "x$ac_new_val"; then
2658         # differences in whitespace do not lead to failure.
2659         ac_old_val_w=`echo x $ac_old_val`
2660         ac_new_val_w=`echo x $ac_new_val`
2661         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2662           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2663 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2664           ac_cache_corrupted=:
2665         else
2666           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2667 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2668           eval $ac_var=\$ac_old_val
2669         fi
2670         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2671 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2672         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2673 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2674       fi;;
2675   esac
2676   # Pass precious variables to config.status.
2677   if test "$ac_new_set" = set; then
2678     case $ac_new_val in
2679     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2680     *) ac_arg=$ac_var=$ac_new_val ;;
2681     esac
2682     case " $ac_configure_args " in
2683       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2684       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2685     esac
2686   fi
2687 done
2688 if $ac_cache_corrupted; then
2689   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2691   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2692 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2693   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2694 fi
2695 ## -------------------- ##
2696 ## Main body of script. ##
2697 ## -------------------- ##
2698
2699 ac_ext=c
2700 ac_cpp='$CPP $CPPFLAGS'
2701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2704
2705
2706 # The argument here is just something that should be in the current directory
2707 # (for sanity checking)
2708
2709
2710 am__api_version='1.11'
2711
2712 ac_aux_dir=
2713 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2714   if test -f "$ac_dir/install-sh"; then
2715     ac_aux_dir=$ac_dir
2716     ac_install_sh="$ac_aux_dir/install-sh -c"
2717     break
2718   elif test -f "$ac_dir/install.sh"; then
2719     ac_aux_dir=$ac_dir
2720     ac_install_sh="$ac_aux_dir/install.sh -c"
2721     break
2722   elif test -f "$ac_dir/shtool"; then
2723     ac_aux_dir=$ac_dir
2724     ac_install_sh="$ac_aux_dir/shtool install -c"
2725     break
2726   fi
2727 done
2728 if test -z "$ac_aux_dir"; then
2729   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2730 fi
2731
2732 # These three variables are undocumented and unsupported,
2733 # and are intended to be withdrawn in a future Autoconf release.
2734 # They can cause serious problems if a builder's source tree is in a directory
2735 # whose full name contains unusual characters.
2736 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2737 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2738 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2739
2740
2741 # Find a good install program.  We prefer a C program (faster),
2742 # so one script is as good as another.  But avoid the broken or
2743 # incompatible versions:
2744 # SysV /etc/install, /usr/sbin/install
2745 # SunOS /usr/etc/install
2746 # IRIX /sbin/install
2747 # AIX /bin/install
2748 # AmigaOS /C/install, which installs bootblocks on floppy discs
2749 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2750 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2751 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2752 # OS/2's system install, which has a completely different semantic
2753 # ./install, which can be erroneously created by make from ./install.sh.
2754 # Reject install programs that cannot install multiple files.
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2756 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2757 if test -z "$INSTALL"; then
2758 if ${ac_cv_path_install+:} false; then :
2759   $as_echo_n "(cached) " >&6
2760 else
2761   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH
2763 do
2764   IFS=$as_save_IFS
2765   test -z "$as_dir" && as_dir=.
2766     # Account for people who put trailing slashes in PATH elements.
2767 case $as_dir/ in #((
2768   ./ | .// | /[cC]/* | \
2769   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2770   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2771   /usr/ucb/* ) ;;
2772   *)
2773     # OSF1 and SCO ODT 3.0 have their own names for install.
2774     # Don't use installbsd from OSF since it installs stuff as root
2775     # by default.
2776     for ac_prog in ginstall scoinst install; do
2777       for ac_exec_ext in '' $ac_executable_extensions; do
2778         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2779           if test $ac_prog = install &&
2780             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2781             # AIX install.  It has an incompatible calling convention.
2782             :
2783           elif test $ac_prog = install &&
2784             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2785             # program-specific install script used by HP pwplus--don't use.
2786             :
2787           else
2788             rm -rf conftest.one conftest.two conftest.dir
2789             echo one > conftest.one
2790             echo two > conftest.two
2791             mkdir conftest.dir
2792             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2793               test -s conftest.one && test -s conftest.two &&
2794               test -s conftest.dir/conftest.one &&
2795               test -s conftest.dir/conftest.two
2796             then
2797               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2798               break 3
2799             fi
2800           fi
2801         fi
2802       done
2803     done
2804     ;;
2805 esac
2806
2807   done
2808 IFS=$as_save_IFS
2809
2810 rm -rf conftest.one conftest.two conftest.dir
2811
2812 fi
2813   if test "${ac_cv_path_install+set}" = set; then
2814     INSTALL=$ac_cv_path_install
2815   else
2816     # As a last resort, use the slow shell script.  Don't cache a
2817     # value for INSTALL within a source directory, because that will
2818     # break other packages using the cache if that directory is
2819     # removed, or if the value is a relative name.
2820     INSTALL=$ac_install_sh
2821   fi
2822 fi
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2824 $as_echo "$INSTALL" >&6; }
2825
2826 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2827 # It thinks the first close brace ends the variable substitution.
2828 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2829
2830 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2831
2832 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2833
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2835 $as_echo_n "checking whether build environment is sane... " >&6; }
2836 # Just in case
2837 sleep 1
2838 echo timestamp > conftest.file
2839 # Reject unsafe characters in $srcdir or the absolute working directory
2840 # name.  Accept space and tab only in the latter.
2841 am_lf='
2842 '
2843 case `pwd` in
2844   *[\\\"\#\$\&\'\`$am_lf]*)
2845     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2846 esac
2847 case $srcdir in
2848   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2849     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2850 esac
2851
2852 # Do `set' in a subshell so we don't clobber the current shell's
2853 # arguments.  Must try -L first in case configure is actually a
2854 # symlink; some systems play weird games with the mod time of symlinks
2855 # (eg FreeBSD returns the mod time of the symlink's containing
2856 # directory).
2857 if (
2858    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2859    if test "$*" = "X"; then
2860       # -L didn't work.
2861       set X `ls -t "$srcdir/configure" conftest.file`
2862    fi
2863    rm -f conftest.file
2864    if test "$*" != "X $srcdir/configure conftest.file" \
2865       && test "$*" != "X conftest.file $srcdir/configure"; then
2866
2867       # If neither matched, then we have a broken ls.  This can happen
2868       # if, for instance, CONFIG_SHELL is bash and it inherits a
2869       # broken ls alias from the environment.  This has actually
2870       # happened.  Such a system could not be considered "sane".
2871       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2872 alias in your environment" "$LINENO" 5
2873    fi
2874
2875    test "$2" = conftest.file
2876    )
2877 then
2878    # Ok.
2879    :
2880 else
2881    as_fn_error $? "newly created file is older than distributed files!
2882 Check your system clock" "$LINENO" 5
2883 fi
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2885 $as_echo "yes" >&6; }
2886 test "$program_prefix" != NONE &&
2887   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2888 # Use a double $ so make ignores it.
2889 test "$program_suffix" != NONE &&
2890   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2891 # Double any \ or $.
2892 # By default was `s,x,x', remove it if useless.
2893 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2894 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2895
2896 # expand $ac_aux_dir to an absolute path
2897 am_aux_dir=`cd $ac_aux_dir && pwd`
2898
2899 if test x"${MISSING+set}" != xset; then
2900   case $am_aux_dir in
2901   *\ * | *\     *)
2902     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2903   *)
2904     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2905   esac
2906 fi
2907 # Use eval to expand $SHELL
2908 if eval "$MISSING --run true"; then
2909   am_missing_run="$MISSING --run "
2910 else
2911   am_missing_run=
2912   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2913 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2914 fi
2915
2916 if test x"${install_sh}" != xset; then
2917   case $am_aux_dir in
2918   *\ * | *\     *)
2919     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2920   *)
2921     install_sh="\${SHELL} $am_aux_dir/install-sh"
2922   esac
2923 fi
2924
2925 # Installed binaries are usually stripped using `strip' when the user
2926 # run `make install-strip'.  However `strip' might not be the right
2927 # tool to use in cross-compilation environments, therefore Automake
2928 # will honor the `STRIP' environment variable to overrule this program.
2929 if test "$cross_compiling" != no; then
2930   if test -n "$ac_tool_prefix"; then
2931   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2932 set dummy ${ac_tool_prefix}strip; ac_word=$2
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if ${ac_cv_prog_STRIP+:} false; then :
2936   $as_echo_n "(cached) " >&6
2937 else
2938   if test -n "$STRIP"; then
2939   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2940 else
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2943 do
2944   IFS=$as_save_IFS
2945   test -z "$as_dir" && as_dir=.
2946     for ac_exec_ext in '' $ac_executable_extensions; do
2947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2948     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950     break 2
2951   fi
2952 done
2953   done
2954 IFS=$as_save_IFS
2955
2956 fi
2957 fi
2958 STRIP=$ac_cv_prog_STRIP
2959 if test -n "$STRIP"; then
2960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2961 $as_echo "$STRIP" >&6; }
2962 else
2963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2965 fi
2966
2967
2968 fi
2969 if test -z "$ac_cv_prog_STRIP"; then
2970   ac_ct_STRIP=$STRIP
2971   # Extract the first word of "strip", so it can be a program name with args.
2972 set dummy strip; ac_word=$2
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2976   $as_echo_n "(cached) " >&6
2977 else
2978   if test -n "$ac_ct_STRIP"; then
2979   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2980 else
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 for as_dir in $PATH
2983 do
2984   IFS=$as_save_IFS
2985   test -z "$as_dir" && as_dir=.
2986     for ac_exec_ext in '' $ac_executable_extensions; do
2987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988     ac_cv_prog_ac_ct_STRIP="strip"
2989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990     break 2
2991   fi
2992 done
2993   done
2994 IFS=$as_save_IFS
2995
2996 fi
2997 fi
2998 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2999 if test -n "$ac_ct_STRIP"; then
3000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3001 $as_echo "$ac_ct_STRIP" >&6; }
3002 else
3003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004 $as_echo "no" >&6; }
3005 fi
3006
3007   if test "x$ac_ct_STRIP" = x; then
3008     STRIP=":"
3009   else
3010     case $cross_compiling:$ac_tool_warned in
3011 yes:)
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3014 ac_tool_warned=yes ;;
3015 esac
3016     STRIP=$ac_ct_STRIP
3017   fi
3018 else
3019   STRIP="$ac_cv_prog_STRIP"
3020 fi
3021
3022 fi
3023 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3024
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3026 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3027 if test -z "$MKDIR_P"; then
3028   if ${ac_cv_path_mkdir+:} false; then :
3029   $as_echo_n "(cached) " >&6
3030 else
3031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3033 do
3034   IFS=$as_save_IFS
3035   test -z "$as_dir" && as_dir=.
3036     for ac_prog in mkdir gmkdir; do
3037          for ac_exec_ext in '' $ac_executable_extensions; do
3038            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3039            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3040              'mkdir (GNU coreutils) '* | \
3041              'mkdir (coreutils) '* | \
3042              'mkdir (fileutils) '4.1*)
3043                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3044                break 3;;
3045            esac
3046          done
3047        done
3048   done
3049 IFS=$as_save_IFS
3050
3051 fi
3052
3053   test -d ./--version && rmdir ./--version
3054   if test "${ac_cv_path_mkdir+set}" = set; then
3055     MKDIR_P="$ac_cv_path_mkdir -p"
3056   else
3057     # As a last resort, use the slow shell script.  Don't cache a
3058     # value for MKDIR_P within a source directory, because that will
3059     # break other packages using the cache if that directory is
3060     # removed, or if the value is a relative name.
3061     MKDIR_P="$ac_install_sh -d"
3062   fi
3063 fi
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3065 $as_echo "$MKDIR_P" >&6; }
3066
3067 mkdir_p="$MKDIR_P"
3068 case $mkdir_p in
3069   [\\/$]* | ?:[\\/]*) ;;
3070   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3071 esac
3072
3073 for ac_prog in gawk mawk nawk awk
3074 do
3075   # Extract the first word of "$ac_prog", so it can be a program name with args.
3076 set dummy $ac_prog; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_AWK+:} false; then :
3080   $as_echo_n "(cached) " >&6
3081 else
3082   if test -n "$AWK"; then
3083   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3084 else
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3087 do
3088   IFS=$as_save_IFS
3089   test -z "$as_dir" && as_dir=.
3090     for ac_exec_ext in '' $ac_executable_extensions; do
3091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3092     ac_cv_prog_AWK="$ac_prog"
3093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094     break 2
3095   fi
3096 done
3097   done
3098 IFS=$as_save_IFS
3099
3100 fi
3101 fi
3102 AWK=$ac_cv_prog_AWK
3103 if test -n "$AWK"; then
3104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3105 $as_echo "$AWK" >&6; }
3106 else
3107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3109 fi
3110
3111
3112   test -n "$AWK" && break
3113 done
3114
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3116 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3117 set x ${MAKE-make}
3118 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3119 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3120   $as_echo_n "(cached) " >&6
3121 else
3122   cat >conftest.make <<\_ACEOF
3123 SHELL = /bin/sh
3124 all:
3125         @echo '@@@%%%=$(MAKE)=@@@%%%'
3126 _ACEOF
3127 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3128 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3129   *@@@%%%=?*=@@@%%%*)
3130     eval ac_cv_prog_make_${ac_make}_set=yes;;
3131   *)
3132     eval ac_cv_prog_make_${ac_make}_set=no;;
3133 esac
3134 rm -f conftest.make
3135 fi
3136 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3138 $as_echo "yes" >&6; }
3139   SET_MAKE=
3140 else
3141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 $as_echo "no" >&6; }
3143   SET_MAKE="MAKE=${MAKE-make}"
3144 fi
3145
3146 rm -rf .tst 2>/dev/null
3147 mkdir .tst 2>/dev/null
3148 if test -d .tst; then
3149   am__leading_dot=.
3150 else
3151   am__leading_dot=_
3152 fi
3153 rmdir .tst 2>/dev/null
3154
3155 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3156   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3157   # is not polluted with repeated "-I."
3158   am__isrc=' -I$(srcdir)'
3159   # test to see if srcdir already configured
3160   if test -f $srcdir/config.status; then
3161     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3162   fi
3163 fi
3164
3165 # test whether we have cygpath
3166 if test -z "$CYGPATH_W"; then
3167   if (cygpath --version) >/dev/null 2>/dev/null; then
3168     CYGPATH_W='cygpath -w'
3169   else
3170     CYGPATH_W=echo
3171   fi
3172 fi
3173
3174
3175 # Define the identity of the package.
3176  PACKAGE='glog'
3177  VERSION='0.3.3'
3178
3179
3180 cat >>confdefs.h <<_ACEOF
3181 #define PACKAGE "$PACKAGE"
3182 _ACEOF
3183
3184
3185 cat >>confdefs.h <<_ACEOF
3186 #define VERSION "$VERSION"
3187 _ACEOF
3188
3189 # Some tools Automake needs.
3190
3191 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3192
3193
3194 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3195
3196
3197 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3198
3199
3200 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3201
3202
3203 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3204
3205 # We need awk for the "check" target.  The system "awk" is bad on
3206 # some platforms.
3207 # Always define AMTAR for backward compatibility.  Yes, it's still used
3208 # in the wild :-(  We should find a proper way to deprecate it ...
3209 AMTAR='$${TAR-tar}'
3210
3211 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3212
3213
3214
3215
3216
3217 ac_config_headers="$ac_config_headers src/config.h"
3218
3219
3220 ac_ext=cpp
3221 ac_cpp='$CXXCPP $CPPFLAGS'
3222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3225
3226
3227 # Checks for programs.
3228 ac_ext=c
3229 ac_cpp='$CPP $CPPFLAGS'
3230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3233 if test -n "$ac_tool_prefix"; then
3234   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3235 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3237 $as_echo_n "checking for $ac_word... " >&6; }
3238 if ${ac_cv_prog_CC+:} false; then :
3239   $as_echo_n "(cached) " >&6
3240 else
3241   if test -n "$CC"; then
3242   ac_cv_prog_CC="$CC" # Let the user override the test.
3243 else
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 for as_dir in $PATH
3246 do
3247   IFS=$as_save_IFS
3248   test -z "$as_dir" && as_dir=.
3249     for ac_exec_ext in '' $ac_executable_extensions; do
3250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3251     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3253     break 2
3254   fi
3255 done
3256   done
3257 IFS=$as_save_IFS
3258
3259 fi
3260 fi
3261 CC=$ac_cv_prog_CC
3262 if test -n "$CC"; then
3263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3264 $as_echo "$CC" >&6; }
3265 else
3266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3268 fi
3269
3270
3271 fi
3272 if test -z "$ac_cv_prog_CC"; then
3273   ac_ct_CC=$CC
3274   # Extract the first word of "gcc", so it can be a program name with args.
3275 set dummy gcc; ac_word=$2
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3279   $as_echo_n "(cached) " >&6
3280 else
3281   if test -n "$ac_ct_CC"; then
3282   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3283 else
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3286 do
3287   IFS=$as_save_IFS
3288   test -z "$as_dir" && as_dir=.
3289     for ac_exec_ext in '' $ac_executable_extensions; do
3290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3291     ac_cv_prog_ac_ct_CC="gcc"
3292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293     break 2
3294   fi
3295 done
3296   done
3297 IFS=$as_save_IFS
3298
3299 fi
3300 fi
3301 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3302 if test -n "$ac_ct_CC"; then
3303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3304 $as_echo "$ac_ct_CC" >&6; }
3305 else
3306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3308 fi
3309
3310   if test "x$ac_ct_CC" = x; then
3311     CC=""
3312   else
3313     case $cross_compiling:$ac_tool_warned in
3314 yes:)
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3317 ac_tool_warned=yes ;;
3318 esac
3319     CC=$ac_ct_CC
3320   fi
3321 else
3322   CC="$ac_cv_prog_CC"
3323 fi
3324
3325 if test -z "$CC"; then
3326           if test -n "$ac_tool_prefix"; then
3327     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3328 set dummy ${ac_tool_prefix}cc; ac_word=$2
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330 $as_echo_n "checking for $ac_word... " >&6; }
3331 if ${ac_cv_prog_CC+:} false; then :
3332   $as_echo_n "(cached) " >&6
3333 else
3334   if test -n "$CC"; then
3335   ac_cv_prog_CC="$CC" # Let the user override the test.
3336 else
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in $PATH
3339 do
3340   IFS=$as_save_IFS
3341   test -z "$as_dir" && as_dir=.
3342     for ac_exec_ext in '' $ac_executable_extensions; do
3343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344     ac_cv_prog_CC="${ac_tool_prefix}cc"
3345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346     break 2
3347   fi
3348 done
3349   done
3350 IFS=$as_save_IFS
3351
3352 fi
3353 fi
3354 CC=$ac_cv_prog_CC
3355 if test -n "$CC"; then
3356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3357 $as_echo "$CC" >&6; }
3358 else
3359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3361 fi
3362
3363
3364   fi
3365 fi
3366 if test -z "$CC"; then
3367   # Extract the first word of "cc", so it can be a program name with args.
3368 set dummy cc; ac_word=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if ${ac_cv_prog_CC+:} false; then :
3372   $as_echo_n "(cached) " >&6
3373 else
3374   if test -n "$CC"; then
3375   ac_cv_prog_CC="$CC" # Let the user override the test.
3376 else
3377   ac_prog_rejected=no
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH
3380 do
3381   IFS=$as_save_IFS
3382   test -z "$as_dir" && as_dir=.
3383     for ac_exec_ext in '' $ac_executable_extensions; do
3384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3385     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3386        ac_prog_rejected=yes
3387        continue
3388      fi
3389     ac_cv_prog_CC="cc"
3390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3391     break 2
3392   fi
3393 done
3394   done
3395 IFS=$as_save_IFS
3396
3397 if test $ac_prog_rejected = yes; then
3398   # We found a bogon in the path, so make sure we never use it.
3399   set dummy $ac_cv_prog_CC
3400   shift
3401   if test $# != 0; then
3402     # We chose a different compiler from the bogus one.
3403     # However, it has the same basename, so the bogon will be chosen
3404     # first if we set CC to just the basename; use the full file name.
3405     shift
3406     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3407   fi
3408 fi
3409 fi
3410 fi
3411 CC=$ac_cv_prog_CC
3412 if test -n "$CC"; then
3413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3414 $as_echo "$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 fi
3422 if test -z "$CC"; then
3423   if test -n "$ac_tool_prefix"; then
3424   for ac_prog in cl.exe
3425   do
3426     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3427 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429 $as_echo_n "checking for $ac_word... " >&6; }
3430 if ${ac_cv_prog_CC+:} false; then :
3431   $as_echo_n "(cached) " >&6
3432 else
3433   if test -n "$CC"; then
3434   ac_cv_prog_CC="$CC" # Let the user override the test.
3435 else
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 for as_dir in $PATH
3438 do
3439   IFS=$as_save_IFS
3440   test -z "$as_dir" && as_dir=.
3441     for ac_exec_ext in '' $ac_executable_extensions; do
3442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3443     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3445     break 2
3446   fi
3447 done
3448   done
3449 IFS=$as_save_IFS
3450
3451 fi
3452 fi
3453 CC=$ac_cv_prog_CC
3454 if test -n "$CC"; then
3455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3456 $as_echo "$CC" >&6; }
3457 else
3458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459 $as_echo "no" >&6; }
3460 fi
3461
3462
3463     test -n "$CC" && break
3464   done
3465 fi
3466 if test -z "$CC"; then
3467   ac_ct_CC=$CC
3468   for ac_prog in cl.exe
3469 do
3470   # Extract the first word of "$ac_prog", so it can be a program name with args.
3471 set dummy $ac_prog; ac_word=$2
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3473 $as_echo_n "checking for $ac_word... " >&6; }
3474 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3475   $as_echo_n "(cached) " >&6
3476 else
3477   if test -n "$ac_ct_CC"; then
3478   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3479 else
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 for as_dir in $PATH
3482 do
3483   IFS=$as_save_IFS
3484   test -z "$as_dir" && as_dir=.
3485     for ac_exec_ext in '' $ac_executable_extensions; do
3486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3487     ac_cv_prog_ac_ct_CC="$ac_prog"
3488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3489     break 2
3490   fi
3491 done
3492   done
3493 IFS=$as_save_IFS
3494
3495 fi
3496 fi
3497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3498 if test -n "$ac_ct_CC"; then
3499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3500 $as_echo "$ac_ct_CC" >&6; }
3501 else
3502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3504 fi
3505
3506
3507   test -n "$ac_ct_CC" && break
3508 done
3509
3510   if test "x$ac_ct_CC" = x; then
3511     CC=""
3512   else
3513     case $cross_compiling:$ac_tool_warned in
3514 yes:)
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3517 ac_tool_warned=yes ;;
3518 esac
3519     CC=$ac_ct_CC
3520   fi
3521 fi
3522
3523 fi
3524
3525
3526 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3528 as_fn_error $? "no acceptable C compiler found in \$PATH
3529 See \`config.log' for more details" "$LINENO" 5; }
3530
3531 # Provide some information about the compiler.
3532 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3533 set X $ac_compile
3534 ac_compiler=$2
3535 for ac_option in --version -v -V -qversion; do
3536   { { ac_try="$ac_compiler $ac_option >&5"
3537 case "(($ac_try" in
3538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539   *) ac_try_echo=$ac_try;;
3540 esac
3541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3542 $as_echo "$ac_try_echo"; } >&5
3543   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3544   ac_status=$?
3545   if test -s conftest.err; then
3546     sed '10a\
3547 ... rest of stderr output deleted ...
3548          10q' conftest.err >conftest.er1
3549     cat conftest.er1 >&5
3550   fi
3551   rm -f conftest.er1 conftest.err
3552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3553   test $ac_status = 0; }
3554 done
3555
3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h.  */
3558
3559 int
3560 main ()
3561 {
3562
3563   ;
3564   return 0;
3565 }
3566 _ACEOF
3567 ac_clean_files_save=$ac_clean_files
3568 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3569 # Try to create an executable without -o first, disregard a.out.
3570 # It will help us diagnose broken compilers, and finding out an intuition
3571 # of exeext.
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3573 $as_echo_n "checking whether the C compiler works... " >&6; }
3574 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3575
3576 # The possible output files:
3577 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3578
3579 ac_rmfiles=
3580 for ac_file in $ac_files
3581 do
3582   case $ac_file in
3583     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3584     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3585   esac
3586 done
3587 rm -f $ac_rmfiles
3588
3589 if { { ac_try="$ac_link_default"
3590 case "(($ac_try" in
3591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592   *) ac_try_echo=$ac_try;;
3593 esac
3594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3595 $as_echo "$ac_try_echo"; } >&5
3596   (eval "$ac_link_default") 2>&5
3597   ac_status=$?
3598   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3599   test $ac_status = 0; }; then :
3600   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3601 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3602 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3603 # so that the user can short-circuit this test for compilers unknown to
3604 # Autoconf.
3605 for ac_file in $ac_files ''
3606 do
3607   test -f "$ac_file" || continue
3608   case $ac_file in
3609     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3610         ;;
3611     [ab].out )
3612         # We found the default executable, but exeext='' is most
3613         # certainly right.
3614         break;;
3615     *.* )
3616         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3617         then :; else
3618            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3619         fi
3620         # We set ac_cv_exeext here because the later test for it is not
3621         # safe: cross compilers may not add the suffix if given an `-o'
3622         # argument, so we may need to know it at that point already.
3623         # Even if this section looks crufty: it has the advantage of
3624         # actually working.
3625         break;;
3626     * )
3627         break;;
3628   esac
3629 done
3630 test "$ac_cv_exeext" = no && ac_cv_exeext=
3631
3632 else
3633   ac_file=''
3634 fi
3635 if test -z "$ac_file"; then :
3636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637 $as_echo "no" >&6; }
3638 $as_echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.$ac_ext >&5
3640
3641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3643 as_fn_error 77 "C compiler cannot create executables
3644 See \`config.log' for more details" "$LINENO" 5; }
3645 else
3646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3647 $as_echo "yes" >&6; }
3648 fi
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3650 $as_echo_n "checking for C compiler default output file name... " >&6; }
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3652 $as_echo "$ac_file" >&6; }
3653 ac_exeext=$ac_cv_exeext
3654
3655 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3656 ac_clean_files=$ac_clean_files_save
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3658 $as_echo_n "checking for suffix of executables... " >&6; }
3659 if { { ac_try="$ac_link"
3660 case "(($ac_try" in
3661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662   *) ac_try_echo=$ac_try;;
3663 esac
3664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3665 $as_echo "$ac_try_echo"; } >&5
3666   (eval "$ac_link") 2>&5
3667   ac_status=$?
3668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3669   test $ac_status = 0; }; then :
3670   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3671 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3672 # work properly (i.e., refer to `conftest.exe'), while it won't with
3673 # `rm'.
3674 for ac_file in conftest.exe conftest conftest.*; do
3675   test -f "$ac_file" || continue
3676   case $ac_file in
3677     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3678     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3679           break;;
3680     * ) break;;
3681   esac
3682 done
3683 else
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 executables: cannot compile and link
3687 See \`config.log' for more details" "$LINENO" 5; }
3688 fi
3689 rm -f conftest conftest$ac_cv_exeext
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3691 $as_echo "$ac_cv_exeext" >&6; }
3692
3693 rm -f conftest.$ac_ext
3694 EXEEXT=$ac_cv_exeext
3695 ac_exeext=$EXEEXT
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h.  */
3698 #include <stdio.h>
3699 int
3700 main ()
3701 {
3702 FILE *f = fopen ("conftest.out", "w");
3703  return ferror (f) || fclose (f) != 0;
3704
3705   ;
3706   return 0;
3707 }
3708 _ACEOF
3709 ac_clean_files="$ac_clean_files conftest.out"
3710 # Check that the compiler produces executables we can run.  If not, either
3711 # the compiler is broken, or we cross compile.
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3713 $as_echo_n "checking whether we are cross compiling... " >&6; }
3714 if test "$cross_compiling" != yes; then
3715   { { ac_try="$ac_link"
3716 case "(($ac_try" in
3717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718   *) ac_try_echo=$ac_try;;
3719 esac
3720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3721 $as_echo "$ac_try_echo"; } >&5
3722   (eval "$ac_link") 2>&5
3723   ac_status=$?
3724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3725   test $ac_status = 0; }
3726   if { ac_try='./conftest$ac_cv_exeext'
3727   { { case "(($ac_try" in
3728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729   *) ac_try_echo=$ac_try;;
3730 esac
3731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3732 $as_echo "$ac_try_echo"; } >&5
3733   (eval "$ac_try") 2>&5
3734   ac_status=$?
3735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3736   test $ac_status = 0; }; }; then
3737     cross_compiling=no
3738   else
3739     if test "$cross_compiling" = maybe; then
3740         cross_compiling=yes
3741     else
3742         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3744 as_fn_error $? "cannot run C compiled programs.
3745 If you meant to cross compile, use \`--host'.
3746 See \`config.log' for more details" "$LINENO" 5; }
3747     fi
3748   fi
3749 fi
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3751 $as_echo "$cross_compiling" >&6; }
3752
3753 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3754 ac_clean_files=$ac_clean_files_save
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3756 $as_echo_n "checking for suffix of object files... " >&6; }
3757 if ${ac_cv_objext+:} false; then :
3758   $as_echo_n "(cached) " >&6
3759 else
3760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h.  */
3762
3763 int
3764 main ()
3765 {
3766
3767   ;
3768   return 0;
3769 }
3770 _ACEOF
3771 rm -f conftest.o conftest.obj
3772 if { { ac_try="$ac_compile"
3773 case "(($ac_try" in
3774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775   *) ac_try_echo=$ac_try;;
3776 esac
3777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3778 $as_echo "$ac_try_echo"; } >&5
3779   (eval "$ac_compile") 2>&5
3780   ac_status=$?
3781   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3782   test $ac_status = 0; }; then :
3783   for ac_file in conftest.o conftest.obj conftest.*; do
3784   test -f "$ac_file" || continue;
3785   case $ac_file in
3786     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3787     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3788        break;;
3789   esac
3790 done
3791 else
3792   $as_echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3794
3795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3797 as_fn_error $? "cannot compute suffix of object files: cannot compile
3798 See \`config.log' for more details" "$LINENO" 5; }
3799 fi
3800 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3801 fi
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3803 $as_echo "$ac_cv_objext" >&6; }
3804 OBJEXT=$ac_cv_objext
3805 ac_objext=$OBJEXT
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3807 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3808 if ${ac_cv_c_compiler_gnu+:} false; then :
3809   $as_echo_n "(cached) " >&6
3810 else
3811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h.  */
3813
3814 int
3815 main ()
3816 {
3817 #ifndef __GNUC__
3818        choke me
3819 #endif
3820
3821   ;
3822   return 0;
3823 }
3824 _ACEOF
3825 if ac_fn_c_try_compile "$LINENO"; then :
3826   ac_compiler_gnu=yes
3827 else
3828   ac_compiler_gnu=no
3829 fi
3830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3832
3833 fi
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3835 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3836 if test $ac_compiler_gnu = yes; then
3837   GCC=yes
3838 else
3839   GCC=
3840 fi
3841 ac_test_CFLAGS=${CFLAGS+set}
3842 ac_save_CFLAGS=$CFLAGS
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3844 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3845 if ${ac_cv_prog_cc_g+:} false; then :
3846   $as_echo_n "(cached) " >&6
3847 else
3848   ac_save_c_werror_flag=$ac_c_werror_flag
3849    ac_c_werror_flag=yes
3850    ac_cv_prog_cc_g=no
3851    CFLAGS="-g"
3852    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h.  */
3854
3855 int
3856 main ()
3857 {
3858
3859   ;
3860   return 0;
3861 }
3862 _ACEOF
3863 if ac_fn_c_try_compile "$LINENO"; then :
3864   ac_cv_prog_cc_g=yes
3865 else
3866   CFLAGS=""
3867       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h.  */
3869
3870 int
3871 main ()
3872 {
3873
3874   ;
3875   return 0;
3876 }
3877 _ACEOF
3878 if ac_fn_c_try_compile "$LINENO"; then :
3879
3880 else
3881   ac_c_werror_flag=$ac_save_c_werror_flag
3882          CFLAGS="-g"
3883          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h.  */
3885
3886 int
3887 main ()
3888 {
3889
3890   ;
3891   return 0;
3892 }
3893 _ACEOF
3894 if ac_fn_c_try_compile "$LINENO"; then :
3895   ac_cv_prog_cc_g=yes
3896 fi
3897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898 fi
3899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 fi
3901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902    ac_c_werror_flag=$ac_save_c_werror_flag
3903 fi
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3905 $as_echo "$ac_cv_prog_cc_g" >&6; }
3906 if test "$ac_test_CFLAGS" = set; then
3907   CFLAGS=$ac_save_CFLAGS
3908 elif test $ac_cv_prog_cc_g = yes; then
3909   if test "$GCC" = yes; then
3910     CFLAGS="-g -O2"
3911   else
3912     CFLAGS="-g"
3913   fi
3914 else
3915   if test "$GCC" = yes; then
3916     CFLAGS="-O2"
3917   else
3918     CFLAGS=
3919   fi
3920 fi
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3922 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3923 if ${ac_cv_prog_cc_c89+:} false; then :
3924   $as_echo_n "(cached) " >&6
3925 else
3926   ac_cv_prog_cc_c89=no
3927 ac_save_CC=$CC
3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929 /* end confdefs.h.  */
3930 #include <stdarg.h>
3931 #include <stdio.h>
3932 #include <sys/types.h>
3933 #include <sys/stat.h>
3934 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3935 struct buf { int x; };
3936 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3937 static char *e (p, i)
3938      char **p;
3939      int i;
3940 {
3941   return p[i];
3942 }
3943 static char *f (char * (*g) (char **, int), char **p, ...)
3944 {
3945   char *s;
3946   va_list v;
3947   va_start (v,p);
3948   s = g (p, va_arg (v,int));
3949   va_end (v);
3950   return s;
3951 }
3952
3953 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3954    function prototypes and stuff, but not '\xHH' hex character constants.
3955    These don't provoke an error unfortunately, instead are silently treated
3956    as 'x'.  The following induces an error, until -std is added to get
3957    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3958    array size at least.  It's necessary to write '\x00'==0 to get something
3959    that's true only with -std.  */
3960 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3961
3962 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3963    inside strings and character constants.  */
3964 #define FOO(x) 'x'
3965 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3966
3967 int test (int i, double x);
3968 struct s1 {int (*f) (int a);};
3969 struct s2 {int (*f) (double a);};
3970 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3971 int argc;
3972 char **argv;
3973 int
3974 main ()
3975 {
3976 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3977   ;
3978   return 0;
3979 }
3980 _ACEOF
3981 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3982         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3983 do
3984   CC="$ac_save_CC $ac_arg"
3985   if ac_fn_c_try_compile "$LINENO"; then :
3986   ac_cv_prog_cc_c89=$ac_arg
3987 fi
3988 rm -f core conftest.err conftest.$ac_objext
3989   test "x$ac_cv_prog_cc_c89" != "xno" && break
3990 done
3991 rm -f conftest.$ac_ext
3992 CC=$ac_save_CC
3993
3994 fi
3995 # AC_CACHE_VAL
3996 case "x$ac_cv_prog_cc_c89" in
3997   x)
3998     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3999 $as_echo "none needed" >&6; } ;;
4000   xno)
4001     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4002 $as_echo "unsupported" >&6; } ;;
4003   *)
4004     CC="$CC $ac_cv_prog_cc_c89"
4005     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4006 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4007 esac
4008 if test "x$ac_cv_prog_cc_c89" != xno; then :
4009
4010 fi
4011
4012 ac_ext=cpp
4013 ac_cpp='$CXXCPP $CPPFLAGS'
4014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4017 DEPDIR="${am__leading_dot}deps"
4018
4019 ac_config_commands="$ac_config_commands depfiles"
4020
4021
4022 am_make=${MAKE-make}
4023 cat > confinc << 'END'
4024 am__doit:
4025         @echo this is the am__doit target
4026 .PHONY: am__doit
4027 END
4028 # If we don't find an include directive, just comment out the code.
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4030 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4031 am__include="#"
4032 am__quote=
4033 _am_result=none
4034 # First try GNU make style include.
4035 echo "include confinc" > confmf
4036 # Ignore all kinds of additional output from `make'.
4037 case `$am_make -s -f confmf 2> /dev/null` in #(
4038 *the\ am__doit\ target*)
4039   am__include=include
4040   am__quote=
4041   _am_result=GNU
4042   ;;
4043 esac
4044 # Now try BSD make style include.
4045 if test "$am__include" = "#"; then
4046    echo '.include "confinc"' > confmf
4047    case `$am_make -s -f confmf 2> /dev/null` in #(
4048    *the\ am__doit\ target*)
4049      am__include=.include
4050      am__quote="\""
4051      _am_result=BSD
4052      ;;
4053    esac
4054 fi
4055
4056
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4058 $as_echo "$_am_result" >&6; }
4059 rm -f confinc confmf
4060
4061 # Check whether --enable-dependency-tracking was given.
4062 if test "${enable_dependency_tracking+set}" = set; then :
4063   enableval=$enable_dependency_tracking;
4064 fi
4065
4066 if test "x$enable_dependency_tracking" != xno; then
4067   am_depcomp="$ac_aux_dir/depcomp"
4068   AMDEPBACKSLASH='\'
4069   am__nodep='_no'
4070 fi
4071  if test "x$enable_dependency_tracking" != xno; then
4072   AMDEP_TRUE=
4073   AMDEP_FALSE='#'
4074 else
4075   AMDEP_TRUE='#'
4076   AMDEP_FALSE=
4077 fi
4078
4079
4080
4081 depcc="$CC"   am_compiler_list=
4082
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4084 $as_echo_n "checking dependency style of $depcc... " >&6; }
4085 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4086   $as_echo_n "(cached) " >&6
4087 else
4088   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4089   # We make a subdir and do the tests there.  Otherwise we can end up
4090   # making bogus files that we don't know about and never remove.  For
4091   # instance it was reported that on HP-UX the gcc test will end up
4092   # making a dummy file named `D' -- because `-MD' means `put the output
4093   # in D'.
4094   rm -rf conftest.dir
4095   mkdir conftest.dir
4096   # Copy depcomp to subdir because otherwise we won't find it if we're
4097   # using a relative directory.
4098   cp "$am_depcomp" conftest.dir
4099   cd conftest.dir
4100   # We will build objects and dependencies in a subdirectory because
4101   # it helps to detect inapplicable dependency modes.  For instance
4102   # both Tru64's cc and ICC support -MD to output dependencies as a
4103   # side effect of compilation, but ICC will put the dependencies in
4104   # the current directory while Tru64 will put them in the object
4105   # directory.
4106   mkdir sub
4107
4108   am_cv_CC_dependencies_compiler_type=none
4109   if test "$am_compiler_list" = ""; then
4110      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4111   fi
4112   am__universal=false
4113   case " $depcc " in #(
4114      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4115      esac
4116
4117   for depmode in $am_compiler_list; do
4118     # Setup a source with many dependencies, because some compilers
4119     # like to wrap large dependency lists on column 80 (with \), and
4120     # we should not choose a depcomp mode which is confused by this.
4121     #
4122     # We need to recreate these files for each test, as the compiler may
4123     # overwrite some of them when testing with obscure command lines.
4124     # This happens at least with the AIX C compiler.
4125     : > sub/conftest.c
4126     for i in 1 2 3 4 5 6; do
4127       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4128       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4129       # Solaris 8's {/usr,}/bin/sh.
4130       touch sub/conftst$i.h
4131     done
4132     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4133
4134     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4135     # mode.  It turns out that the SunPro C++ compiler does not properly
4136     # handle `-M -o', and we need to detect this.  Also, some Intel
4137     # versions had trouble with output in subdirs
4138     am__obj=sub/conftest.${OBJEXT-o}
4139     am__minus_obj="-o $am__obj"
4140     case $depmode in
4141     gcc)
4142       # This depmode causes a compiler race in universal mode.
4143       test "$am__universal" = false || continue
4144       ;;
4145     nosideeffect)
4146       # after this tag, mechanisms are not by side-effect, so they'll
4147       # only be used when explicitly requested
4148       if test "x$enable_dependency_tracking" = xyes; then
4149         continue
4150       else
4151         break
4152       fi
4153       ;;
4154     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4155       # This compiler won't grok `-c -o', but also, the minuso test has
4156       # not run yet.  These depmodes are late enough in the game, and
4157       # so weak that their functioning should not be impacted.
4158       am__obj=conftest.${OBJEXT-o}
4159       am__minus_obj=
4160       ;;
4161     none) break ;;
4162     esac
4163     if depmode=$depmode \
4164        source=sub/conftest.c object=$am__obj \
4165        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4166        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4167          >/dev/null 2>conftest.err &&
4168        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4169        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4170        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4171        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4172       # icc doesn't choke on unknown options, it will just issue warnings
4173       # or remarks (even with -Werror).  So we grep stderr for any message
4174       # that says an option was ignored or not supported.
4175       # When given -MP, icc 7.0 and 7.1 complain thusly:
4176       #   icc: Command line warning: ignoring option '-M'; no argument required
4177       # The diagnosis changed in icc 8.0:
4178       #   icc: Command line remark: option '-MP' not supported
4179       if (grep 'ignoring option' conftest.err ||
4180           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4181         am_cv_CC_dependencies_compiler_type=$depmode
4182         break
4183       fi
4184     fi
4185   done
4186
4187   cd ..
4188   rm -rf conftest.dir
4189 else
4190   am_cv_CC_dependencies_compiler_type=none
4191 fi
4192
4193 fi
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4195 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4196 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4197
4198  if
4199   test "x$enable_dependency_tracking" != xno \
4200   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4201   am__fastdepCC_TRUE=
4202   am__fastdepCC_FALSE='#'
4203 else
4204   am__fastdepCC_TRUE='#'
4205   am__fastdepCC_FALSE=
4206 fi
4207
4208
4209 ac_ext=c
4210 ac_cpp='$CPP $CPPFLAGS'
4211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4215 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4216 # On Suns, sometimes $CPP names a directory.
4217 if test -n "$CPP" && test -d "$CPP"; then
4218   CPP=
4219 fi
4220 if test -z "$CPP"; then
4221   if ${ac_cv_prog_CPP+:} false; then :
4222   $as_echo_n "(cached) " >&6
4223 else
4224       # Double quotes because CPP needs to be expanded
4225     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4226     do
4227       ac_preproc_ok=false
4228 for ac_c_preproc_warn_flag in '' yes
4229 do
4230   # Use a header file that comes with gcc, so configuring glibc
4231   # with a fresh cross-compiler works.
4232   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4233   # <limits.h> exists even on freestanding compilers.
4234   # On the NeXT, cc -E runs the code through the compiler's parser,
4235   # not just through cpp. "Syntax error" is here to catch this case.
4236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h.  */
4238 #ifdef __STDC__
4239 # include <limits.h>
4240 #else
4241 # include <assert.h>
4242 #endif
4243                      Syntax error
4244 _ACEOF
4245 if ac_fn_c_try_cpp "$LINENO"; then :
4246
4247 else
4248   # Broken: fails on valid input.
4249 continue
4250 fi
4251 rm -f conftest.err conftest.i conftest.$ac_ext
4252
4253   # OK, works on sane cases.  Now check whether nonexistent headers
4254   # can be detected and how.
4255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h.  */
4257 #include <ac_nonexistent.h>
4258 _ACEOF
4259 if ac_fn_c_try_cpp "$LINENO"; then :
4260   # Broken: success on invalid input.
4261 continue
4262 else
4263   # Passes both tests.
4264 ac_preproc_ok=:
4265 break
4266 fi
4267 rm -f conftest.err conftest.i conftest.$ac_ext
4268
4269 done
4270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4271 rm -f conftest.i conftest.err conftest.$ac_ext
4272 if $ac_preproc_ok; then :
4273   break
4274 fi
4275
4276     done
4277     ac_cv_prog_CPP=$CPP
4278
4279 fi
4280   CPP=$ac_cv_prog_CPP
4281 else
4282   ac_cv_prog_CPP=$CPP
4283 fi
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4285 $as_echo "$CPP" >&6; }
4286 ac_preproc_ok=false
4287 for ac_c_preproc_warn_flag in '' yes
4288 do
4289   # Use a header file that comes with gcc, so configuring glibc
4290   # with a fresh cross-compiler works.
4291   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4292   # <limits.h> exists even on freestanding compilers.
4293   # On the NeXT, cc -E runs the code through the compiler's parser,
4294   # not just through cpp. "Syntax error" is here to catch this case.
4295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h.  */
4297 #ifdef __STDC__
4298 # include <limits.h>
4299 #else
4300 # include <assert.h>
4301 #endif
4302                      Syntax error
4303 _ACEOF
4304 if ac_fn_c_try_cpp "$LINENO"; then :
4305
4306 else
4307   # Broken: fails on valid input.
4308 continue
4309 fi
4310 rm -f conftest.err conftest.i conftest.$ac_ext
4311
4312   # OK, works on sane cases.  Now check whether nonexistent headers
4313   # can be detected and how.
4314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h.  */
4316 #include <ac_nonexistent.h>
4317 _ACEOF
4318 if ac_fn_c_try_cpp "$LINENO"; then :
4319   # Broken: success on invalid input.
4320 continue
4321 else
4322   # Passes both tests.
4323 ac_preproc_ok=:
4324 break
4325 fi
4326 rm -f conftest.err conftest.i conftest.$ac_ext
4327
4328 done
4329 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4330 rm -f conftest.i conftest.err conftest.$ac_ext
4331 if $ac_preproc_ok; then :
4332
4333 else
4334   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4336 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4337 See \`config.log' for more details" "$LINENO" 5; }
4338 fi
4339
4340 ac_ext=cpp
4341 ac_cpp='$CXXCPP $CPPFLAGS'
4342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4345
4346 ac_ext=cpp
4347 ac_cpp='$CXXCPP $CPPFLAGS'
4348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4351 if test -z "$CXX"; then
4352   if test -n "$CCC"; then
4353     CXX=$CCC
4354   else
4355     if test -n "$ac_tool_prefix"; then
4356   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4357   do
4358     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 $as_echo_n "checking for $ac_word... " >&6; }
4362 if ${ac_cv_prog_CXX+:} false; then :
4363   $as_echo_n "(cached) " >&6
4364 else
4365   if test -n "$CXX"; then
4366   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4370 do
4371   IFS=$as_save_IFS
4372   test -z "$as_dir" && as_dir=.
4373     for ac_exec_ext in '' $ac_executable_extensions; do
4374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4377     break 2
4378   fi
4379 done
4380   done
4381 IFS=$as_save_IFS
4382
4383 fi
4384 fi
4385 CXX=$ac_cv_prog_CXX
4386 if test -n "$CXX"; then
4387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4388 $as_echo "$CXX" >&6; }
4389 else
4390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4392 fi
4393
4394
4395     test -n "$CXX" && break
4396   done
4397 fi
4398 if test -z "$CXX"; then
4399   ac_ct_CXX=$CXX
4400   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4401 do
4402   # Extract the first word of "$ac_prog", so it can be a program name with args.
4403 set dummy $ac_prog; ac_word=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4407   $as_echo_n "(cached) " >&6
4408 else
4409   if test -n "$ac_ct_CXX"; then
4410   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4411 else
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH
4414 do
4415   IFS=$as_save_IFS
4416   test -z "$as_dir" && as_dir=.
4417     for ac_exec_ext in '' $ac_executable_extensions; do
4418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419     ac_cv_prog_ac_ct_CXX="$ac_prog"
4420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421     break 2
4422   fi
4423 done
4424   done
4425 IFS=$as_save_IFS
4426
4427 fi
4428 fi
4429 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4430 if test -n "$ac_ct_CXX"; then
4431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4432 $as_echo "$ac_ct_CXX" >&6; }
4433 else
4434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4436 fi
4437
4438
4439   test -n "$ac_ct_CXX" && break
4440 done
4441
4442   if test "x$ac_ct_CXX" = x; then
4443     CXX="g++"
4444   else
4445     case $cross_compiling:$ac_tool_warned in
4446 yes:)
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4449 ac_tool_warned=yes ;;
4450 esac
4451     CXX=$ac_ct_CXX
4452   fi
4453 fi
4454
4455   fi
4456 fi
4457 # Provide some information about the compiler.
4458 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4459 set X $ac_compile
4460 ac_compiler=$2
4461 for ac_option in --version -v -V -qversion; do
4462   { { ac_try="$ac_compiler $ac_option >&5"
4463 case "(($ac_try" in
4464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465   *) ac_try_echo=$ac_try;;
4466 esac
4467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4468 $as_echo "$ac_try_echo"; } >&5
4469   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4470   ac_status=$?
4471   if test -s conftest.err; then
4472     sed '10a\
4473 ... rest of stderr output deleted ...
4474          10q' conftest.err >conftest.er1
4475     cat conftest.er1 >&5
4476   fi
4477   rm -f conftest.er1 conftest.err
4478   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4479   test $ac_status = 0; }
4480 done
4481
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4483 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4484 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4485   $as_echo_n "(cached) " >&6
4486 else
4487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h.  */
4489
4490 int
4491 main ()
4492 {
4493 #ifndef __GNUC__
4494        choke me
4495 #endif
4496
4497   ;
4498   return 0;
4499 }
4500 _ACEOF
4501 if ac_fn_cxx_try_compile "$LINENO"; then :
4502   ac_compiler_gnu=yes
4503 else
4504   ac_compiler_gnu=no
4505 fi
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4508
4509 fi
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4511 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4512 if test $ac_compiler_gnu = yes; then
4513   GXX=yes
4514 else
4515   GXX=
4516 fi
4517 ac_test_CXXFLAGS=${CXXFLAGS+set}
4518 ac_save_CXXFLAGS=$CXXFLAGS
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4520 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4521 if ${ac_cv_prog_cxx_g+:} false; then :
4522   $as_echo_n "(cached) " >&6
4523 else
4524   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4525    ac_cxx_werror_flag=yes
4526    ac_cv_prog_cxx_g=no
4527    CXXFLAGS="-g"
4528    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h.  */
4530
4531 int
4532 main ()
4533 {
4534
4535   ;
4536   return 0;
4537 }
4538 _ACEOF
4539 if ac_fn_cxx_try_compile "$LINENO"; then :
4540   ac_cv_prog_cxx_g=yes
4541 else
4542   CXXFLAGS=""
4543       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h.  */
4545
4546 int
4547 main ()
4548 {
4549
4550   ;
4551   return 0;
4552 }
4553 _ACEOF
4554 if ac_fn_cxx_try_compile "$LINENO"; then :
4555
4556 else
4557   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4558          CXXFLAGS="-g"
4559          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h.  */
4561
4562 int
4563 main ()
4564 {
4565
4566   ;
4567   return 0;
4568 }
4569 _ACEOF
4570 if ac_fn_cxx_try_compile "$LINENO"; then :
4571   ac_cv_prog_cxx_g=yes
4572 fi
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 fi
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 fi
4577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4579 fi
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4581 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4582 if test "$ac_test_CXXFLAGS" = set; then
4583   CXXFLAGS=$ac_save_CXXFLAGS
4584 elif test $ac_cv_prog_cxx_g = yes; then
4585   if test "$GXX" = yes; then
4586     CXXFLAGS="-g -O2"
4587   else
4588     CXXFLAGS="-g"
4589   fi
4590 else
4591   if test "$GXX" = yes; then
4592     CXXFLAGS="-O2"
4593   else
4594     CXXFLAGS=
4595   fi
4596 fi
4597 ac_ext=cpp
4598 ac_cpp='$CXXCPP $CPPFLAGS'
4599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4602
4603 depcc="$CXX"  am_compiler_list=
4604
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4606 $as_echo_n "checking dependency style of $depcc... " >&6; }
4607 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4608   $as_echo_n "(cached) " >&6
4609 else
4610   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4611   # We make a subdir and do the tests there.  Otherwise we can end up
4612   # making bogus files that we don't know about and never remove.  For
4613   # instance it was reported that on HP-UX the gcc test will end up
4614   # making a dummy file named `D' -- because `-MD' means `put the output
4615   # in D'.
4616   rm -rf conftest.dir
4617   mkdir conftest.dir
4618   # Copy depcomp to subdir because otherwise we won't find it if we're
4619   # using a relative directory.
4620   cp "$am_depcomp" conftest.dir
4621   cd conftest.dir
4622   # We will build objects and dependencies in a subdirectory because
4623   # it helps to detect inapplicable dependency modes.  For instance
4624   # both Tru64's cc and ICC support -MD to output dependencies as a
4625   # side effect of compilation, but ICC will put the dependencies in
4626   # the current directory while Tru64 will put them in the object
4627   # directory.
4628   mkdir sub
4629
4630   am_cv_CXX_dependencies_compiler_type=none
4631   if test "$am_compiler_list" = ""; then
4632      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4633   fi
4634   am__universal=false
4635   case " $depcc " in #(
4636      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4637      esac
4638
4639   for depmode in $am_compiler_list; do
4640     # Setup a source with many dependencies, because some compilers
4641     # like to wrap large dependency lists on column 80 (with \), and
4642     # we should not choose a depcomp mode which is confused by this.
4643     #
4644     # We need to recreate these files for each test, as the compiler may
4645     # overwrite some of them when testing with obscure command lines.
4646     # This happens at least with the AIX C compiler.
4647     : > sub/conftest.c
4648     for i in 1 2 3 4 5 6; do
4649       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4650       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4651       # Solaris 8's {/usr,}/bin/sh.
4652       touch sub/conftst$i.h
4653     done
4654     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4655
4656     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4657     # mode.  It turns out that the SunPro C++ compiler does not properly
4658     # handle `-M -o', and we need to detect this.  Also, some Intel
4659     # versions had trouble with output in subdirs
4660     am__obj=sub/conftest.${OBJEXT-o}
4661     am__minus_obj="-o $am__obj"
4662     case $depmode in
4663     gcc)
4664       # This depmode causes a compiler race in universal mode.
4665       test "$am__universal" = false || continue
4666       ;;
4667     nosideeffect)
4668       # after this tag, mechanisms are not by side-effect, so they'll
4669       # only be used when explicitly requested
4670       if test "x$enable_dependency_tracking" = xyes; then
4671         continue
4672       else
4673         break
4674       fi
4675       ;;
4676     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4677       # This compiler won't grok `-c -o', but also, the minuso test has
4678       # not run yet.  These depmodes are late enough in the game, and
4679       # so weak that their functioning should not be impacted.
4680       am__obj=conftest.${OBJEXT-o}
4681       am__minus_obj=
4682       ;;
4683     none) break ;;
4684     esac
4685     if depmode=$depmode \
4686        source=sub/conftest.c object=$am__obj \
4687        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4688        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4689          >/dev/null 2>conftest.err &&
4690        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4691        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4692        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4693        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4694       # icc doesn't choke on unknown options, it will just issue warnings
4695       # or remarks (even with -Werror).  So we grep stderr for any message
4696       # that says an option was ignored or not supported.
4697       # When given -MP, icc 7.0 and 7.1 complain thusly:
4698       #   icc: Command line warning: ignoring option '-M'; no argument required
4699       # The diagnosis changed in icc 8.0:
4700       #   icc: Command line remark: option '-MP' not supported
4701       if (grep 'ignoring option' conftest.err ||
4702           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4703         am_cv_CXX_dependencies_compiler_type=$depmode
4704         break
4705       fi
4706     fi
4707   done
4708
4709   cd ..
4710   rm -rf conftest.dir
4711 else
4712   am_cv_CXX_dependencies_compiler_type=none
4713 fi
4714
4715 fi
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4717 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4718 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4719
4720  if
4721   test "x$enable_dependency_tracking" != xno \
4722   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4723   am__fastdepCXX_TRUE=
4724   am__fastdepCXX_FALSE='#'
4725 else
4726   am__fastdepCXX_TRUE='#'
4727   am__fastdepCXX_FALSE=
4728 fi
4729
4730
4731  if test "$GCC" = yes; then
4732   GCC_TRUE=
4733   GCC_FALSE='#'
4734 else
4735   GCC_TRUE='#'
4736   GCC_FALSE=
4737 fi
4738    # let the Makefile know if we're gcc
4739
4740 case `pwd` in
4741   *\ * | *\     *)
4742     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4743 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4744 esac
4745
4746
4747
4748 macro_version='2.4.2'
4749 macro_revision='1.3337'
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763 ltmain="$ac_aux_dir/ltmain.sh"
4764
4765 # Make sure we can run config.sub.
4766 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4767   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4768
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4770 $as_echo_n "checking build system type... " >&6; }
4771 if ${ac_cv_build+:} false; then :
4772   $as_echo_n "(cached) " >&6
4773 else
4774   ac_build_alias=$build_alias
4775 test "x$ac_build_alias" = x &&
4776   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4777 test "x$ac_build_alias" = x &&
4778   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4779 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4780   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4781
4782 fi
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4784 $as_echo "$ac_cv_build" >&6; }
4785 case $ac_cv_build in
4786 *-*-*) ;;
4787 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4788 esac
4789 build=$ac_cv_build
4790 ac_save_IFS=$IFS; IFS='-'
4791 set x $ac_cv_build
4792 shift
4793 build_cpu=$1
4794 build_vendor=$2
4795 shift; shift
4796 # Remember, the first character of IFS is used to create $*,
4797 # except with old shells:
4798 build_os=$*
4799 IFS=$ac_save_IFS
4800 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4801
4802
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4804 $as_echo_n "checking host system type... " >&6; }
4805 if ${ac_cv_host+:} false; then :
4806   $as_echo_n "(cached) " >&6
4807 else
4808   if test "x$host_alias" = x; then
4809   ac_cv_host=$ac_cv_build
4810 else
4811   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4812     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4813 fi
4814
4815 fi
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4817 $as_echo "$ac_cv_host" >&6; }
4818 case $ac_cv_host in
4819 *-*-*) ;;
4820 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4821 esac
4822 host=$ac_cv_host
4823 ac_save_IFS=$IFS; IFS='-'
4824 set x $ac_cv_host
4825 shift
4826 host_cpu=$1
4827 host_vendor=$2
4828 shift; shift
4829 # Remember, the first character of IFS is used to create $*,
4830 # except with old shells:
4831 host_os=$*
4832 IFS=$ac_save_IFS
4833 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4834
4835
4836 # Backslashify metacharacters that are still active within
4837 # double-quoted strings.
4838 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4839
4840 # Same as above, but do not quote variable references.
4841 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4842
4843 # Sed substitution to delay expansion of an escaped shell variable in a
4844 # double_quote_subst'ed string.
4845 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4846
4847 # Sed substitution to delay expansion of an escaped single quote.
4848 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4849
4850 # Sed substitution to avoid accidental globbing in evaled expressions
4851 no_glob_subst='s/\*/\\\*/g'
4852
4853 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4854 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4855 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4856
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4858 $as_echo_n "checking how to print strings... " >&6; }
4859 # Test print first, because it will be a builtin if present.
4860 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4861    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4862   ECHO='print -r --'
4863 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4864   ECHO='printf %s\n'
4865 else
4866   # Use this function as a fallback that always works.
4867   func_fallback_echo ()
4868   {
4869     eval 'cat <<_LTECHO_EOF
4870 $1
4871 _LTECHO_EOF'
4872   }
4873   ECHO='func_fallback_echo'
4874 fi
4875
4876 # func_echo_all arg...
4877 # Invoke $ECHO with all args, space-separated.
4878 func_echo_all ()
4879 {
4880     $ECHO ""
4881 }
4882
4883 case "$ECHO" in
4884   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4885 $as_echo "printf" >&6; } ;;
4886   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4887 $as_echo "print -r" >&6; } ;;
4888   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4889 $as_echo "cat" >&6; } ;;
4890 esac
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4906 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4907 if ${ac_cv_path_SED+:} false; then :
4908   $as_echo_n "(cached) " >&6
4909 else
4910             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4911      for ac_i in 1 2 3 4 5 6 7; do
4912        ac_script="$ac_script$as_nl$ac_script"
4913      done
4914      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4915      { ac_script=; unset ac_script;}
4916      if test -z "$SED"; then
4917   ac_path_SED_found=false
4918   # Loop through the user's path and test for each of PROGNAME-LIST
4919   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920 for as_dir in $PATH
4921 do
4922   IFS=$as_save_IFS
4923   test -z "$as_dir" && as_dir=.
4924     for ac_prog in sed gsed; do
4925     for ac_exec_ext in '' $ac_executable_extensions; do
4926       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4927       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4928 # Check for GNU ac_path_SED and select it if it is found.
4929   # Check for GNU $ac_path_SED
4930 case `"$ac_path_SED" --version 2>&1` in
4931 *GNU*)
4932   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4933 *)
4934   ac_count=0
4935   $as_echo_n 0123456789 >"conftest.in"
4936   while :
4937   do
4938     cat "conftest.in" "conftest.in" >"conftest.tmp"
4939     mv "conftest.tmp" "conftest.in"
4940     cp "conftest.in" "conftest.nl"
4941     $as_echo '' >> "conftest.nl"
4942     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4943     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4944     as_fn_arith $ac_count + 1 && ac_count=$as_val
4945     if test $ac_count -gt ${ac_path_SED_max-0}; then
4946       # Best one so far, save it but keep looking for a better one
4947       ac_cv_path_SED="$ac_path_SED"
4948       ac_path_SED_max=$ac_count
4949     fi
4950     # 10*(2^10) chars as input seems more than enough
4951     test $ac_count -gt 10 && break
4952   done
4953   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4954 esac
4955
4956       $ac_path_SED_found && break 3
4957     done
4958   done
4959   done
4960 IFS=$as_save_IFS
4961   if test -z "$ac_cv_path_SED"; then
4962     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4963   fi
4964 else
4965   ac_cv_path_SED=$SED
4966 fi
4967
4968 fi
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4970 $as_echo "$ac_cv_path_SED" >&6; }
4971  SED="$ac_cv_path_SED"
4972   rm -f conftest.sed
4973
4974 test -z "$SED" && SED=sed
4975 Xsed="$SED -e 1s/^X//"
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4988 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4989 if ${ac_cv_path_GREP+:} false; then :
4990   $as_echo_n "(cached) " >&6
4991 else
4992   if test -z "$GREP"; then
4993   ac_path_GREP_found=false
4994   # Loop through the user's path and test for each of PROGNAME-LIST
4995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4997 do
4998   IFS=$as_save_IFS
4999   test -z "$as_dir" && as_dir=.
5000     for ac_prog in grep ggrep; do
5001     for ac_exec_ext in '' $ac_executable_extensions; do
5002       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5003       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5004 # Check for GNU ac_path_GREP and select it if it is found.
5005   # Check for GNU $ac_path_GREP
5006 case `"$ac_path_GREP" --version 2>&1` in
5007 *GNU*)
5008   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5009 *)
5010   ac_count=0
5011   $as_echo_n 0123456789 >"conftest.in"
5012   while :
5013   do
5014     cat "conftest.in" "conftest.in" >"conftest.tmp"
5015     mv "conftest.tmp" "conftest.in"
5016     cp "conftest.in" "conftest.nl"
5017     $as_echo 'GREP' >> "conftest.nl"
5018     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5019     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5020     as_fn_arith $ac_count + 1 && ac_count=$as_val
5021     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5022       # Best one so far, save it but keep looking for a better one
5023       ac_cv_path_GREP="$ac_path_GREP"
5024       ac_path_GREP_max=$ac_count
5025     fi
5026     # 10*(2^10) chars as input seems more than enough
5027     test $ac_count -gt 10 && break
5028   done
5029   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5030 esac
5031
5032       $ac_path_GREP_found && break 3
5033     done
5034   done
5035   done
5036 IFS=$as_save_IFS
5037   if test -z "$ac_cv_path_GREP"; then
5038     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5039   fi
5040 else
5041   ac_cv_path_GREP=$GREP
5042 fi
5043
5044 fi
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5046 $as_echo "$ac_cv_path_GREP" >&6; }
5047  GREP="$ac_cv_path_GREP"
5048
5049
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5051 $as_echo_n "checking for egrep... " >&6; }
5052 if ${ac_cv_path_EGREP+:} false; then :
5053   $as_echo_n "(cached) " >&6
5054 else
5055   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5056    then ac_cv_path_EGREP="$GREP -E"
5057    else
5058      if test -z "$EGREP"; then
5059   ac_path_EGREP_found=false
5060   # Loop through the user's path and test for each of PROGNAME-LIST
5061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5063 do
5064   IFS=$as_save_IFS
5065   test -z "$as_dir" && as_dir=.
5066     for ac_prog in egrep; do
5067     for ac_exec_ext in '' $ac_executable_extensions; do
5068       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5069       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5070 # Check for GNU ac_path_EGREP and select it if it is found.
5071   # Check for GNU $ac_path_EGREP
5072 case `"$ac_path_EGREP" --version 2>&1` in
5073 *GNU*)
5074   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5075 *)
5076   ac_count=0
5077   $as_echo_n 0123456789 >"conftest.in"
5078   while :
5079   do
5080     cat "conftest.in" "conftest.in" >"conftest.tmp"
5081     mv "conftest.tmp" "conftest.in"
5082     cp "conftest.in" "conftest.nl"
5083     $as_echo 'EGREP' >> "conftest.nl"
5084     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5085     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5086     as_fn_arith $ac_count + 1 && ac_count=$as_val
5087     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5088       # Best one so far, save it but keep looking for a better one
5089       ac_cv_path_EGREP="$ac_path_EGREP"
5090       ac_path_EGREP_max=$ac_count
5091     fi
5092     # 10*(2^10) chars as input seems more than enough
5093     test $ac_count -gt 10 && break
5094   done
5095   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5096 esac
5097
5098       $ac_path_EGREP_found && break 3
5099     done
5100   done
5101   done
5102 IFS=$as_save_IFS
5103   if test -z "$ac_cv_path_EGREP"; then
5104     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5105   fi
5106 else
5107   ac_cv_path_EGREP=$EGREP
5108 fi
5109
5110    fi
5111 fi
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5113 $as_echo "$ac_cv_path_EGREP" >&6; }
5114  EGREP="$ac_cv_path_EGREP"
5115
5116
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5118 $as_echo_n "checking for fgrep... " >&6; }
5119 if ${ac_cv_path_FGREP+:} false; then :
5120   $as_echo_n "(cached) " >&6
5121 else
5122   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5123    then ac_cv_path_FGREP="$GREP -F"
5124    else
5125      if test -z "$FGREP"; then
5126   ac_path_FGREP_found=false
5127   # Loop through the user's path and test for each of PROGNAME-LIST
5128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5130 do
5131   IFS=$as_save_IFS
5132   test -z "$as_dir" && as_dir=.
5133     for ac_prog in fgrep; do
5134     for ac_exec_ext in '' $ac_executable_extensions; do
5135       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5136       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5137 # Check for GNU ac_path_FGREP and select it if it is found.
5138   # Check for GNU $ac_path_FGREP
5139 case `"$ac_path_FGREP" --version 2>&1` in
5140 *GNU*)
5141   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5142 *)
5143   ac_count=0
5144   $as_echo_n 0123456789 >"conftest.in"
5145   while :
5146   do
5147     cat "conftest.in" "conftest.in" >"conftest.tmp"
5148     mv "conftest.tmp" "conftest.in"
5149     cp "conftest.in" "conftest.nl"
5150     $as_echo 'FGREP' >> "conftest.nl"
5151     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5152     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5153     as_fn_arith $ac_count + 1 && ac_count=$as_val
5154     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5155       # Best one so far, save it but keep looking for a better one
5156       ac_cv_path_FGREP="$ac_path_FGREP"
5157       ac_path_FGREP_max=$ac_count
5158     fi
5159     # 10*(2^10) chars as input seems more than enough
5160     test $ac_count -gt 10 && break
5161   done
5162   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5163 esac
5164
5165       $ac_path_FGREP_found && break 3
5166     done
5167   done
5168   done
5169 IFS=$as_save_IFS
5170   if test -z "$ac_cv_path_FGREP"; then
5171     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5172   fi
5173 else
5174   ac_cv_path_FGREP=$FGREP
5175 fi
5176
5177    fi
5178 fi
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5180 $as_echo "$ac_cv_path_FGREP" >&6; }
5181  FGREP="$ac_cv_path_FGREP"
5182
5183
5184 test -z "$GREP" && GREP=grep
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204 # Check whether --with-gnu-ld was given.
5205 if test "${with_gnu_ld+set}" = set; then :
5206   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5207 else
5208   with_gnu_ld=no
5209 fi
5210
5211 ac_prog=ld
5212 if test "$GCC" = yes; then
5213   # Check if gcc -print-prog-name=ld gives a path.
5214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5215 $as_echo_n "checking for ld used by $CC... " >&6; }
5216   case $host in
5217   *-*-mingw*)
5218     # gcc leaves a trailing carriage return which upsets mingw
5219     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5220   *)
5221     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5222   esac
5223   case $ac_prog in
5224     # Accept absolute paths.
5225     [\\/]* | ?:[\\/]*)
5226       re_direlt='/[^/][^/]*/\.\./'
5227       # Canonicalize the pathname of ld
5228       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5229       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5230         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5231       done
5232       test -z "$LD" && LD="$ac_prog"
5233       ;;
5234   "")
5235     # If it fails, then pretend we aren't using GCC.
5236     ac_prog=ld
5237     ;;
5238   *)
5239     # If it is relative, then search for the first ld in PATH.
5240     with_gnu_ld=unknown
5241     ;;
5242   esac
5243 elif test "$with_gnu_ld" = yes; then
5244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5245 $as_echo_n "checking for GNU ld... " >&6; }
5246 else
5247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5248 $as_echo_n "checking for non-GNU ld... " >&6; }
5249 fi
5250 if ${lt_cv_path_LD+:} false; then :
5251   $as_echo_n "(cached) " >&6
5252 else
5253   if test -z "$LD"; then
5254   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5255   for ac_dir in $PATH; do
5256     IFS="$lt_save_ifs"
5257     test -z "$ac_dir" && ac_dir=.
5258     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5259       lt_cv_path_LD="$ac_dir/$ac_prog"
5260       # Check to see if the program is GNU ld.  I'd rather use --version,
5261       # but apparently some variants of GNU ld only accept -v.
5262       # Break only if it was the GNU/non-GNU ld that we prefer.
5263       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5264       *GNU* | *'with BFD'*)
5265         test "$with_gnu_ld" != no && break
5266         ;;
5267       *)
5268         test "$with_gnu_ld" != yes && break
5269         ;;
5270       esac
5271     fi
5272   done
5273   IFS="$lt_save_ifs"
5274 else
5275   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5276 fi
5277 fi
5278
5279 LD="$lt_cv_path_LD"
5280 if test -n "$LD"; then
5281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5282 $as_echo "$LD" >&6; }
5283 else
5284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 $as_echo "no" >&6; }
5286 fi
5287 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5289 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5290 if ${lt_cv_prog_gnu_ld+:} false; then :
5291   $as_echo_n "(cached) " >&6
5292 else
5293   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5294 case `$LD -v 2>&1 </dev/null` in
5295 *GNU* | *'with BFD'*)
5296   lt_cv_prog_gnu_ld=yes
5297   ;;
5298 *)
5299   lt_cv_prog_gnu_ld=no
5300   ;;
5301 esac
5302 fi
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5304 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5305 with_gnu_ld=$lt_cv_prog_gnu_ld
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5316 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5317 if ${lt_cv_path_NM+:} false; then :
5318   $as_echo_n "(cached) " >&6
5319 else
5320   if test -n "$NM"; then
5321   # Let the user override the test.
5322   lt_cv_path_NM="$NM"
5323 else
5324   lt_nm_to_check="${ac_tool_prefix}nm"
5325   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5326     lt_nm_to_check="$lt_nm_to_check nm"
5327   fi
5328   for lt_tmp_nm in $lt_nm_to_check; do
5329     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5330     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5331       IFS="$lt_save_ifs"
5332       test -z "$ac_dir" && ac_dir=.
5333       tmp_nm="$ac_dir/$lt_tmp_nm"
5334       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5335         # Check to see if the nm accepts a BSD-compat flag.
5336         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5337         #   nm: unknown option "B" ignored
5338         # Tru64's nm complains that /dev/null is an invalid object file
5339         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5340         */dev/null* | *'Invalid file or object type'*)
5341           lt_cv_path_NM="$tmp_nm -B"
5342           break
5343           ;;
5344         *)
5345           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5346           */dev/null*)
5347             lt_cv_path_NM="$tmp_nm -p"
5348             break
5349             ;;
5350           *)
5351             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5352             continue # so that we can try to find one that supports BSD flags
5353             ;;
5354           esac
5355           ;;
5356         esac
5357       fi
5358     done
5359     IFS="$lt_save_ifs"
5360   done
5361   : ${lt_cv_path_NM=no}
5362 fi
5363 fi
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5365 $as_echo "$lt_cv_path_NM" >&6; }
5366 if test "$lt_cv_path_NM" != "no"; then
5367   NM="$lt_cv_path_NM"
5368 else
5369   # Didn't find any BSD compatible name lister, look for dumpbin.
5370   if test -n "$DUMPBIN"; then :
5371     # Let the user override the test.
5372   else
5373     if test -n "$ac_tool_prefix"; then
5374   for ac_prog in dumpbin "link -dump"
5375   do
5376     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5377 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379 $as_echo_n "checking for $ac_word... " >&6; }
5380 if ${ac_cv_prog_DUMPBIN+:} false; then :
5381   $as_echo_n "(cached) " >&6
5382 else
5383   if test -n "$DUMPBIN"; then
5384   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5385 else
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 for as_dir in $PATH
5388 do
5389   IFS=$as_save_IFS
5390   test -z "$as_dir" && as_dir=.
5391     for ac_exec_ext in '' $ac_executable_extensions; do
5392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5393     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5395     break 2
5396   fi
5397 done
5398   done
5399 IFS=$as_save_IFS
5400
5401 fi
5402 fi
5403 DUMPBIN=$ac_cv_prog_DUMPBIN
5404 if test -n "$DUMPBIN"; then
5405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5406 $as_echo "$DUMPBIN" >&6; }
5407 else
5408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409 $as_echo "no" >&6; }
5410 fi
5411
5412
5413     test -n "$DUMPBIN" && break
5414   done
5415 fi
5416 if test -z "$DUMPBIN"; then
5417   ac_ct_DUMPBIN=$DUMPBIN
5418   for ac_prog in dumpbin "link -dump"
5419 do
5420   # Extract the first word of "$ac_prog", so it can be a program name with args.
5421 set dummy $ac_prog; ac_word=$2
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423 $as_echo_n "checking for $ac_word... " >&6; }
5424 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5425   $as_echo_n "(cached) " >&6
5426 else
5427   if test -n "$ac_ct_DUMPBIN"; then
5428   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5429 else
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 for as_dir in $PATH
5432 do
5433   IFS=$as_save_IFS
5434   test -z "$as_dir" && as_dir=.
5435     for ac_exec_ext in '' $ac_executable_extensions; do
5436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5439     break 2
5440   fi
5441 done
5442   done
5443 IFS=$as_save_IFS
5444
5445 fi
5446 fi
5447 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5448 if test -n "$ac_ct_DUMPBIN"; then
5449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5450 $as_echo "$ac_ct_DUMPBIN" >&6; }
5451 else
5452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5454 fi
5455
5456
5457   test -n "$ac_ct_DUMPBIN" && break
5458 done
5459
5460   if test "x$ac_ct_DUMPBIN" = x; then
5461     DUMPBIN=":"
5462   else
5463     case $cross_compiling:$ac_tool_warned in
5464 yes:)
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5467 ac_tool_warned=yes ;;
5468 esac
5469     DUMPBIN=$ac_ct_DUMPBIN
5470   fi
5471 fi
5472
5473     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5474     *COFF*)
5475       DUMPBIN="$DUMPBIN -symbols"
5476       ;;
5477     *)
5478       DUMPBIN=:
5479       ;;
5480     esac
5481   fi
5482
5483   if test "$DUMPBIN" != ":"; then
5484     NM="$DUMPBIN"
5485   fi
5486 fi
5487 test -z "$NM" && NM=nm
5488
5489
5490
5491
5492
5493
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5495 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5496 if ${lt_cv_nm_interface+:} false; then :
5497   $as_echo_n "(cached) " >&6
5498 else
5499   lt_cv_nm_interface="BSD nm"
5500   echo "int some_variable = 0;" > conftest.$ac_ext
5501   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5502   (eval "$ac_compile" 2>conftest.err)
5503   cat conftest.err >&5
5504   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5505   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5506   cat conftest.err >&5
5507   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5508   cat conftest.out >&5
5509   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5510     lt_cv_nm_interface="MS dumpbin"
5511   fi
5512   rm -f conftest*
5513 fi
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5515 $as_echo "$lt_cv_nm_interface" >&6; }
5516
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5518 $as_echo_n "checking whether ln -s works... " >&6; }
5519 LN_S=$as_ln_s
5520 if test "$LN_S" = "ln -s"; then
5521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5522 $as_echo "yes" >&6; }
5523 else
5524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5525 $as_echo "no, using $LN_S" >&6; }
5526 fi
5527
5528 # find the maximum length of command line arguments
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5530 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5531 if ${lt_cv_sys_max_cmd_len+:} false; then :
5532   $as_echo_n "(cached) " >&6
5533 else
5534     i=0
5535   teststring="ABCD"
5536
5537   case $build_os in
5538   msdosdjgpp*)
5539     # On DJGPP, this test can blow up pretty badly due to problems in libc
5540     # (any single argument exceeding 2000 bytes causes a buffer overrun
5541     # during glob expansion).  Even if it were fixed, the result of this
5542     # check would be larger than it should be.
5543     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5544     ;;
5545
5546   gnu*)
5547     # Under GNU Hurd, this test is not required because there is
5548     # no limit to the length of command line arguments.
5549     # Libtool will interpret -1 as no limit whatsoever
5550     lt_cv_sys_max_cmd_len=-1;
5551     ;;
5552
5553   cygwin* | mingw* | cegcc*)
5554     # On Win9x/ME, this test blows up -- it succeeds, but takes
5555     # about 5 minutes as the teststring grows exponentially.
5556     # Worse, since 9x/ME are not pre-emptively multitasking,
5557     # you end up with a "frozen" computer, even though with patience
5558     # the test eventually succeeds (with a max line length of 256k).
5559     # Instead, let's just punt: use the minimum linelength reported by
5560     # all of the supported platforms: 8192 (on NT/2K/XP).
5561     lt_cv_sys_max_cmd_len=8192;
5562     ;;
5563
5564   mint*)
5565     # On MiNT this can take a long time and run out of memory.
5566     lt_cv_sys_max_cmd_len=8192;
5567     ;;
5568
5569   amigaos*)
5570     # On AmigaOS with pdksh, this test takes hours, literally.
5571     # So we just punt and use a minimum line length of 8192.
5572     lt_cv_sys_max_cmd_len=8192;
5573     ;;
5574
5575   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5576     # This has been around since 386BSD, at least.  Likely further.
5577     if test -x /sbin/sysctl; then
5578       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5579     elif test -x /usr/sbin/sysctl; then
5580       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5581     else
5582       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5583     fi
5584     # And add a safety zone
5585     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5586     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5587     ;;
5588
5589   interix*)
5590     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5591     lt_cv_sys_max_cmd_len=196608
5592     ;;
5593
5594   os2*)
5595     # The test takes a long time on OS/2.
5596     lt_cv_sys_max_cmd_len=8192
5597     ;;
5598
5599   osf*)
5600     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5601     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5602     # nice to cause kernel panics so lets avoid the loop below.
5603     # First set a reasonable default.
5604     lt_cv_sys_max_cmd_len=16384
5605     #
5606     if test -x /sbin/sysconfig; then
5607       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5608         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5609       esac
5610     fi
5611     ;;
5612   sco3.2v5*)
5613     lt_cv_sys_max_cmd_len=102400
5614     ;;
5615   sysv5* | sco5v6* | sysv4.2uw2*)
5616     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5617     if test -n "$kargmax"; then
5618       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5619     else
5620       lt_cv_sys_max_cmd_len=32768
5621     fi
5622     ;;
5623   *)
5624     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5625     if test -n "$lt_cv_sys_max_cmd_len"; then
5626       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5627       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5628     else
5629       # Make teststring a little bigger before we do anything with it.
5630       # a 1K string should be a reasonable start.
5631       for i in 1 2 3 4 5 6 7 8 ; do
5632         teststring=$teststring$teststring
5633       done
5634       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5635       # If test is not a shell built-in, we'll probably end up computing a
5636       # maximum length that is only half of the actual maximum length, but
5637       # we can't tell.
5638       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5639                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5640               test $i != 17 # 1/2 MB should be enough
5641       do
5642         i=`expr $i + 1`
5643         teststring=$teststring$teststring
5644       done
5645       # Only check the string length outside the loop.
5646       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5647       teststring=
5648       # Add a significant safety factor because C++ compilers can tack on
5649       # massive amounts of additional arguments before passing them to the
5650       # linker.  It appears as though 1/2 is a usable value.
5651       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5652     fi
5653     ;;
5654   esac
5655
5656 fi
5657
5658 if test -n $lt_cv_sys_max_cmd_len ; then
5659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5660 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5661 else
5662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5663 $as_echo "none" >&6; }
5664 fi
5665 max_cmd_len=$lt_cv_sys_max_cmd_len
5666
5667
5668
5669
5670
5671
5672 : ${CP="cp -f"}
5673 : ${MV="mv -f"}
5674 : ${RM="rm -f"}
5675
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5677 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5678 # Try some XSI features
5679 xsi_shell=no
5680 ( _lt_dummy="a/b/c"
5681   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5682       = c,a/b,b/c, \
5683     && eval 'test $(( 1 + 1 )) -eq 2 \
5684     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5685   && xsi_shell=yes
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5687 $as_echo "$xsi_shell" >&6; }
5688
5689
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5691 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5692 lt_shell_append=no
5693 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5694     >/dev/null 2>&1 \
5695   && lt_shell_append=yes
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5697 $as_echo "$lt_shell_append" >&6; }
5698
5699
5700 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5701   lt_unset=unset
5702 else
5703   lt_unset=false
5704 fi
5705
5706
5707
5708
5709
5710 # test EBCDIC or ASCII
5711 case `echo X|tr X '\101'` in
5712  A) # ASCII based system
5713     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5714   lt_SP2NL='tr \040 \012'
5715   lt_NL2SP='tr \015\012 \040\040'
5716   ;;
5717  *) # EBCDIC based system
5718   lt_SP2NL='tr \100 \n'
5719   lt_NL2SP='tr \r\n \100\100'
5720   ;;
5721 esac
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5732 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5733 if ${lt_cv_to_host_file_cmd+:} false; then :
5734   $as_echo_n "(cached) " >&6
5735 else
5736   case $host in
5737   *-*-mingw* )
5738     case $build in
5739       *-*-mingw* ) # actually msys
5740         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5741         ;;
5742       *-*-cygwin* )
5743         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5744         ;;
5745       * ) # otherwise, assume *nix
5746         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5747         ;;
5748     esac
5749     ;;
5750   *-*-cygwin* )
5751     case $build in
5752       *-*-mingw* ) # actually msys
5753         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5754         ;;
5755       *-*-cygwin* )
5756         lt_cv_to_host_file_cmd=func_convert_file_noop
5757         ;;
5758       * ) # otherwise, assume *nix
5759         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5760         ;;
5761     esac
5762     ;;
5763   * ) # unhandled hosts (and "normal" native builds)
5764     lt_cv_to_host_file_cmd=func_convert_file_noop
5765     ;;
5766 esac
5767
5768 fi
5769
5770 to_host_file_cmd=$lt_cv_to_host_file_cmd
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5772 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5773
5774
5775
5776
5777
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5779 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5780 if ${lt_cv_to_tool_file_cmd+:} false; then :
5781   $as_echo_n "(cached) " >&6
5782 else
5783   #assume ordinary cross tools, or native build.
5784 lt_cv_to_tool_file_cmd=func_convert_file_noop
5785 case $host in
5786   *-*-mingw* )
5787     case $build in
5788       *-*-mingw* ) # actually msys
5789         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5790         ;;
5791     esac
5792     ;;
5793 esac
5794
5795 fi
5796
5797 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5799 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5800
5801
5802
5803
5804
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5806 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5807 if ${lt_cv_ld_reload_flag+:} false; then :
5808   $as_echo_n "(cached) " >&6
5809 else
5810   lt_cv_ld_reload_flag='-r'
5811 fi
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5813 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5814 reload_flag=$lt_cv_ld_reload_flag
5815 case $reload_flag in
5816 "" | " "*) ;;
5817 *) reload_flag=" $reload_flag" ;;
5818 esac
5819 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5820 case $host_os in
5821   cygwin* | mingw* | pw32* | cegcc*)
5822     if test "$GCC" != yes; then
5823       reload_cmds=false
5824     fi
5825     ;;
5826   darwin*)
5827     if test "$GCC" = yes; then
5828       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5829     else
5830       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5831     fi
5832     ;;
5833 esac
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843 if test -n "$ac_tool_prefix"; then
5844   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5845 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5847 $as_echo_n "checking for $ac_word... " >&6; }
5848 if ${ac_cv_prog_OBJDUMP+:} false; then :
5849   $as_echo_n "(cached) " >&6
5850 else
5851   if test -n "$OBJDUMP"; then
5852   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5853 else
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 for as_dir in $PATH
5856 do
5857   IFS=$as_save_IFS
5858   test -z "$as_dir" && as_dir=.
5859     for ac_exec_ext in '' $ac_executable_extensions; do
5860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5861     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5863     break 2
5864   fi
5865 done
5866   done
5867 IFS=$as_save_IFS
5868
5869 fi
5870 fi
5871 OBJDUMP=$ac_cv_prog_OBJDUMP
5872 if test -n "$OBJDUMP"; then
5873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5874 $as_echo "$OBJDUMP" >&6; }
5875 else
5876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5877 $as_echo "no" >&6; }
5878 fi
5879
5880
5881 fi
5882 if test -z "$ac_cv_prog_OBJDUMP"; then
5883   ac_ct_OBJDUMP=$OBJDUMP
5884   # Extract the first word of "objdump", so it can be a program name with args.
5885 set dummy objdump; ac_word=$2
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887 $as_echo_n "checking for $ac_word... " >&6; }
5888 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5889   $as_echo_n "(cached) " >&6
5890 else
5891   if test -n "$ac_ct_OBJDUMP"; then
5892   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5893 else
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 for as_dir in $PATH
5896 do
5897   IFS=$as_save_IFS
5898   test -z "$as_dir" && as_dir=.
5899     for ac_exec_ext in '' $ac_executable_extensions; do
5900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5901     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5903     break 2
5904   fi
5905 done
5906   done
5907 IFS=$as_save_IFS
5908
5909 fi
5910 fi
5911 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5912 if test -n "$ac_ct_OBJDUMP"; then
5913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5914 $as_echo "$ac_ct_OBJDUMP" >&6; }
5915 else
5916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917 $as_echo "no" >&6; }
5918 fi
5919
5920   if test "x$ac_ct_OBJDUMP" = x; then
5921     OBJDUMP="false"
5922   else
5923     case $cross_compiling:$ac_tool_warned in
5924 yes:)
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5927 ac_tool_warned=yes ;;
5928 esac
5929     OBJDUMP=$ac_ct_OBJDUMP
5930   fi
5931 else
5932   OBJDUMP="$ac_cv_prog_OBJDUMP"
5933 fi
5934
5935 test -z "$OBJDUMP" && OBJDUMP=objdump
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5946 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5947 if ${lt_cv_deplibs_check_method+:} false; then :
5948   $as_echo_n "(cached) " >&6
5949 else
5950   lt_cv_file_magic_cmd='$MAGIC_CMD'
5951 lt_cv_file_magic_test_file=
5952 lt_cv_deplibs_check_method='unknown'
5953 # Need to set the preceding variable on all platforms that support
5954 # interlibrary dependencies.
5955 # 'none' -- dependencies not supported.
5956 # `unknown' -- same as none, but documents that we really don't know.
5957 # 'pass_all' -- all dependencies passed with no checks.
5958 # 'test_compile' -- check by making test program.
5959 # 'file_magic [[regex]]' -- check by looking for files in library path
5960 # which responds to the $file_magic_cmd with a given extended regex.
5961 # If you have `file' or equivalent on your system and you're not sure
5962 # whether `pass_all' will *always* work, you probably want this one.
5963
5964 case $host_os in
5965 aix[4-9]*)
5966   lt_cv_deplibs_check_method=pass_all
5967   ;;
5968
5969 beos*)
5970   lt_cv_deplibs_check_method=pass_all
5971   ;;
5972
5973 bsdi[45]*)
5974   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5975   lt_cv_file_magic_cmd='/usr/bin/file -L'
5976   lt_cv_file_magic_test_file=/shlib/libc.so
5977   ;;
5978
5979 cygwin*)
5980   # func_win32_libid is a shell function defined in ltmain.sh
5981   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5982   lt_cv_file_magic_cmd='func_win32_libid'
5983   ;;
5984
5985 mingw* | pw32*)
5986   # Base MSYS/MinGW do not provide the 'file' command needed by
5987   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5988   # unless we find 'file', for example because we are cross-compiling.
5989   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5990   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5991     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5992     lt_cv_file_magic_cmd='func_win32_libid'
5993   else
5994     # Keep this pattern in sync with the one in func_win32_libid.
5995     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5996     lt_cv_file_magic_cmd='$OBJDUMP -f'
5997   fi
5998   ;;
5999
6000 cegcc*)
6001   # use the weaker test based on 'objdump'. See mingw*.
6002   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6003   lt_cv_file_magic_cmd='$OBJDUMP -f'
6004   ;;
6005
6006 darwin* | rhapsody*)
6007   lt_cv_deplibs_check_method=pass_all
6008   ;;
6009
6010 freebsd* | dragonfly*)
6011   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6012     case $host_cpu in
6013     i*86 )
6014       # Not sure whether the presence of OpenBSD here was a mistake.
6015       # Let's accept both of them until this is cleared up.
6016       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6017       lt_cv_file_magic_cmd=/usr/bin/file
6018       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6019       ;;
6020     esac
6021   else
6022     lt_cv_deplibs_check_method=pass_all
6023   fi
6024   ;;
6025
6026 gnu*)
6027   lt_cv_deplibs_check_method=pass_all
6028   ;;
6029
6030 haiku*)
6031   lt_cv_deplibs_check_method=pass_all
6032   ;;
6033
6034 hpux10.20* | hpux11*)
6035   lt_cv_file_magic_cmd=/usr/bin/file
6036   case $host_cpu in
6037   ia64*)
6038     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6039     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6040     ;;
6041   hppa*64*)
6042     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]'
6043     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6044     ;;
6045   *)
6046     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6047     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6048     ;;
6049   esac
6050   ;;
6051
6052 interix[3-9]*)
6053   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6054   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6055   ;;
6056
6057 irix5* | irix6* | nonstopux*)
6058   case $LD in
6059   *-32|*"-32 ") libmagic=32-bit;;
6060   *-n32|*"-n32 ") libmagic=N32;;
6061   *-64|*"-64 ") libmagic=64-bit;;
6062   *) libmagic=never-match;;
6063   esac
6064   lt_cv_deplibs_check_method=pass_all
6065   ;;
6066
6067 # This must be glibc/ELF.
6068 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6069   lt_cv_deplibs_check_method=pass_all
6070   ;;
6071
6072 netbsd* | netbsdelf*-gnu)
6073   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6074     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6075   else
6076     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6077   fi
6078   ;;
6079
6080 newos6*)
6081   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6082   lt_cv_file_magic_cmd=/usr/bin/file
6083   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6084   ;;
6085
6086 *nto* | *qnx*)
6087   lt_cv_deplibs_check_method=pass_all
6088   ;;
6089
6090 openbsd*)
6091   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6092     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6093   else
6094     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6095   fi
6096   ;;
6097
6098 osf3* | osf4* | osf5*)
6099   lt_cv_deplibs_check_method=pass_all
6100   ;;
6101
6102 rdos*)
6103   lt_cv_deplibs_check_method=pass_all
6104   ;;
6105
6106 solaris*)
6107   lt_cv_deplibs_check_method=pass_all
6108   ;;
6109
6110 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6111   lt_cv_deplibs_check_method=pass_all
6112   ;;
6113
6114 sysv4 | sysv4.3*)
6115   case $host_vendor in
6116   motorola)
6117     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]'
6118     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6119     ;;
6120   ncr)
6121     lt_cv_deplibs_check_method=pass_all
6122     ;;
6123   sequent)
6124     lt_cv_file_magic_cmd='/bin/file'
6125     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6126     ;;
6127   sni)
6128     lt_cv_file_magic_cmd='/bin/file'
6129     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6130     lt_cv_file_magic_test_file=/lib/libc.so
6131     ;;
6132   siemens)
6133     lt_cv_deplibs_check_method=pass_all
6134     ;;
6135   pc)
6136     lt_cv_deplibs_check_method=pass_all
6137     ;;
6138   esac
6139   ;;
6140
6141 tpf*)
6142   lt_cv_deplibs_check_method=pass_all
6143   ;;
6144 esac
6145
6146 fi
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6148 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6149
6150 file_magic_glob=
6151 want_nocaseglob=no
6152 if test "$build" = "$host"; then
6153   case $host_os in
6154   mingw* | pw32*)
6155     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6156       want_nocaseglob=yes
6157     else
6158       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6159     fi
6160     ;;
6161   esac
6162 fi
6163
6164 file_magic_cmd=$lt_cv_file_magic_cmd
6165 deplibs_check_method=$lt_cv_deplibs_check_method
6166 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189 if test -n "$ac_tool_prefix"; then
6190   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6191 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6193 $as_echo_n "checking for $ac_word... " >&6; }
6194 if ${ac_cv_prog_DLLTOOL+:} false; then :
6195   $as_echo_n "(cached) " >&6
6196 else
6197   if test -n "$DLLTOOL"; then
6198   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6199 else
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 for as_dir in $PATH
6202 do
6203   IFS=$as_save_IFS
6204   test -z "$as_dir" && as_dir=.
6205     for ac_exec_ext in '' $ac_executable_extensions; do
6206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6207     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6209     break 2
6210   fi
6211 done
6212   done
6213 IFS=$as_save_IFS
6214
6215 fi
6216 fi
6217 DLLTOOL=$ac_cv_prog_DLLTOOL
6218 if test -n "$DLLTOOL"; then
6219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6220 $as_echo "$DLLTOOL" >&6; }
6221 else
6222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6223 $as_echo "no" >&6; }
6224 fi
6225
6226
6227 fi
6228 if test -z "$ac_cv_prog_DLLTOOL"; then
6229   ac_ct_DLLTOOL=$DLLTOOL
6230   # Extract the first word of "dlltool", so it can be a program name with args.
6231 set dummy dlltool; ac_word=$2
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6233 $as_echo_n "checking for $ac_word... " >&6; }
6234 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6235   $as_echo_n "(cached) " >&6
6236 else
6237   if test -n "$ac_ct_DLLTOOL"; then
6238   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6239 else
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH
6242 do
6243   IFS=$as_save_IFS
6244   test -z "$as_dir" && as_dir=.
6245     for ac_exec_ext in '' $ac_executable_extensions; do
6246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6247     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6249     break 2
6250   fi
6251 done
6252   done
6253 IFS=$as_save_IFS
6254
6255 fi
6256 fi
6257 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6258 if test -n "$ac_ct_DLLTOOL"; then
6259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6260 $as_echo "$ac_ct_DLLTOOL" >&6; }
6261 else
6262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263 $as_echo "no" >&6; }
6264 fi
6265
6266   if test "x$ac_ct_DLLTOOL" = x; then
6267     DLLTOOL="false"
6268   else
6269     case $cross_compiling:$ac_tool_warned in
6270 yes:)
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6273 ac_tool_warned=yes ;;
6274 esac
6275     DLLTOOL=$ac_ct_DLLTOOL
6276   fi
6277 else
6278   DLLTOOL="$ac_cv_prog_DLLTOOL"
6279 fi
6280
6281 test -z "$DLLTOOL" && DLLTOOL=dlltool
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6293 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6294 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6295   $as_echo_n "(cached) " >&6
6296 else
6297   lt_cv_sharedlib_from_linklib_cmd='unknown'
6298
6299 case $host_os in
6300 cygwin* | mingw* | pw32* | cegcc*)
6301   # two different shell functions defined in ltmain.sh
6302   # decide which to use based on capabilities of $DLLTOOL
6303   case `$DLLTOOL --help 2>&1` in
6304   *--identify-strict*)
6305     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6306     ;;
6307   *)
6308     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6309     ;;
6310   esac
6311   ;;
6312 *)
6313   # fallback: assume linklib IS sharedlib
6314   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6315   ;;
6316 esac
6317
6318 fi
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6320 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6321 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6322 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6323
6324
6325
6326
6327
6328
6329
6330
6331 if test -n "$ac_tool_prefix"; then
6332   for ac_prog in ar
6333   do
6334     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6337 $as_echo_n "checking for $ac_word... " >&6; }
6338 if ${ac_cv_prog_AR+:} false; then :
6339   $as_echo_n "(cached) " >&6
6340 else
6341   if test -n "$AR"; then
6342   ac_cv_prog_AR="$AR" # Let the user override the test.
6343 else
6344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345 for as_dir in $PATH
6346 do
6347   IFS=$as_save_IFS
6348   test -z "$as_dir" && as_dir=.
6349     for ac_exec_ext in '' $ac_executable_extensions; do
6350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6351     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6353     break 2
6354   fi
6355 done
6356   done
6357 IFS=$as_save_IFS
6358
6359 fi
6360 fi
6361 AR=$ac_cv_prog_AR
6362 if test -n "$AR"; then
6363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6364 $as_echo "$AR" >&6; }
6365 else
6366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367 $as_echo "no" >&6; }
6368 fi
6369
6370
6371     test -n "$AR" && break
6372   done
6373 fi
6374 if test -z "$AR"; then
6375   ac_ct_AR=$AR
6376   for ac_prog in ar
6377 do
6378   # Extract the first word of "$ac_prog", so it can be a program name with args.
6379 set dummy $ac_prog; ac_word=$2
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381 $as_echo_n "checking for $ac_word... " >&6; }
6382 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6383   $as_echo_n "(cached) " >&6
6384 else
6385   if test -n "$ac_ct_AR"; then
6386   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6387 else
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389 for as_dir in $PATH
6390 do
6391   IFS=$as_save_IFS
6392   test -z "$as_dir" && as_dir=.
6393     for ac_exec_ext in '' $ac_executable_extensions; do
6394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6395     ac_cv_prog_ac_ct_AR="$ac_prog"
6396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6397     break 2
6398   fi
6399 done
6400   done
6401 IFS=$as_save_IFS
6402
6403 fi
6404 fi
6405 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6406 if test -n "$ac_ct_AR"; then
6407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6408 $as_echo "$ac_ct_AR" >&6; }
6409 else
6410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411 $as_echo "no" >&6; }
6412 fi
6413
6414
6415   test -n "$ac_ct_AR" && break
6416 done
6417
6418   if test "x$ac_ct_AR" = x; then
6419     AR="false"
6420   else
6421     case $cross_compiling:$ac_tool_warned in
6422 yes:)
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6425 ac_tool_warned=yes ;;
6426 esac
6427     AR=$ac_ct_AR
6428   fi
6429 fi
6430
6431 : ${AR=ar}
6432 : ${AR_FLAGS=cru}
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6445 $as_echo_n "checking for archiver @FILE support... " >&6; }
6446 if ${lt_cv_ar_at_file+:} false; then :
6447   $as_echo_n "(cached) " >&6
6448 else
6449   lt_cv_ar_at_file=no
6450    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h.  */
6452
6453 int
6454 main ()
6455 {
6456
6457   ;
6458   return 0;
6459 }
6460 _ACEOF
6461 if ac_fn_cxx_try_compile "$LINENO"; then :
6462   echo conftest.$ac_objext > conftest.lst
6463       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6464       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6465   (eval $lt_ar_try) 2>&5
6466   ac_status=$?
6467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6468   test $ac_status = 0; }
6469       if test "$ac_status" -eq 0; then
6470         # Ensure the archiver fails upon bogus file names.
6471         rm -f conftest.$ac_objext libconftest.a
6472         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6473   (eval $lt_ar_try) 2>&5
6474   ac_status=$?
6475   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6476   test $ac_status = 0; }
6477         if test "$ac_status" -ne 0; then
6478           lt_cv_ar_at_file=@
6479         fi
6480       fi
6481       rm -f conftest.* libconftest.a
6482
6483 fi
6484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6485
6486 fi
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6488 $as_echo "$lt_cv_ar_at_file" >&6; }
6489
6490 if test "x$lt_cv_ar_at_file" = xno; then
6491   archiver_list_spec=
6492 else
6493   archiver_list_spec=$lt_cv_ar_at_file
6494 fi
6495
6496
6497
6498
6499
6500
6501
6502 if test -n "$ac_tool_prefix"; then
6503   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6504 set dummy ${ac_tool_prefix}strip; ac_word=$2
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6506 $as_echo_n "checking for $ac_word... " >&6; }
6507 if ${ac_cv_prog_STRIP+:} false; then :
6508   $as_echo_n "(cached) " >&6
6509 else
6510   if test -n "$STRIP"; then
6511   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6512 else
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 for as_dir in $PATH
6515 do
6516   IFS=$as_save_IFS
6517   test -z "$as_dir" && as_dir=.
6518     for ac_exec_ext in '' $ac_executable_extensions; do
6519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6520     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6522     break 2
6523   fi
6524 done
6525   done
6526 IFS=$as_save_IFS
6527
6528 fi
6529 fi
6530 STRIP=$ac_cv_prog_STRIP
6531 if test -n "$STRIP"; then
6532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6533 $as_echo "$STRIP" >&6; }
6534 else
6535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6536 $as_echo "no" >&6; }
6537 fi
6538
6539
6540 fi
6541 if test -z "$ac_cv_prog_STRIP"; then
6542   ac_ct_STRIP=$STRIP
6543   # Extract the first word of "strip", so it can be a program name with args.
6544 set dummy strip; ac_word=$2
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546 $as_echo_n "checking for $ac_word... " >&6; }
6547 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6548   $as_echo_n "(cached) " >&6
6549 else
6550   if test -n "$ac_ct_STRIP"; then
6551   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6552 else
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 for as_dir in $PATH
6555 do
6556   IFS=$as_save_IFS
6557   test -z "$as_dir" && as_dir=.
6558     for ac_exec_ext in '' $ac_executable_extensions; do
6559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6560     ac_cv_prog_ac_ct_STRIP="strip"
6561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6562     break 2
6563   fi
6564 done
6565   done
6566 IFS=$as_save_IFS
6567
6568 fi
6569 fi
6570 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6571 if test -n "$ac_ct_STRIP"; then
6572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6573 $as_echo "$ac_ct_STRIP" >&6; }
6574 else
6575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576 $as_echo "no" >&6; }
6577 fi
6578
6579   if test "x$ac_ct_STRIP" = x; then
6580     STRIP=":"
6581   else
6582     case $cross_compiling:$ac_tool_warned in
6583 yes:)
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6586 ac_tool_warned=yes ;;
6587 esac
6588     STRIP=$ac_ct_STRIP
6589   fi
6590 else
6591   STRIP="$ac_cv_prog_STRIP"
6592 fi
6593
6594 test -z "$STRIP" && STRIP=:
6595
6596
6597
6598
6599
6600
6601 if test -n "$ac_tool_prefix"; then
6602   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6603 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6605 $as_echo_n "checking for $ac_word... " >&6; }
6606 if ${ac_cv_prog_RANLIB+:} false; then :
6607   $as_echo_n "(cached) " >&6
6608 else
6609   if test -n "$RANLIB"; then
6610   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6611 else
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 for as_dir in $PATH
6614 do
6615   IFS=$as_save_IFS
6616   test -z "$as_dir" && as_dir=.
6617     for ac_exec_ext in '' $ac_executable_extensions; do
6618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6619     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6621     break 2
6622   fi
6623 done
6624   done
6625 IFS=$as_save_IFS
6626
6627 fi
6628 fi
6629 RANLIB=$ac_cv_prog_RANLIB
6630 if test -n "$RANLIB"; then
6631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6632 $as_echo "$RANLIB" >&6; }
6633 else
6634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6635 $as_echo "no" >&6; }
6636 fi
6637
6638
6639 fi
6640 if test -z "$ac_cv_prog_RANLIB"; then
6641   ac_ct_RANLIB=$RANLIB
6642   # Extract the first word of "ranlib", so it can be a program name with args.
6643 set dummy ranlib; ac_word=$2
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6645 $as_echo_n "checking for $ac_word... " >&6; }
6646 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6647   $as_echo_n "(cached) " >&6
6648 else
6649   if test -n "$ac_ct_RANLIB"; then
6650   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6651 else
6652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 for as_dir in $PATH
6654 do
6655   IFS=$as_save_IFS
6656   test -z "$as_dir" && as_dir=.
6657     for ac_exec_ext in '' $ac_executable_extensions; do
6658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6659     ac_cv_prog_ac_ct_RANLIB="ranlib"
6660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6661     break 2
6662   fi
6663 done
6664   done
6665 IFS=$as_save_IFS
6666
6667 fi
6668 fi
6669 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6670 if test -n "$ac_ct_RANLIB"; then
6671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6672 $as_echo "$ac_ct_RANLIB" >&6; }
6673 else
6674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675 $as_echo "no" >&6; }
6676 fi
6677
6678   if test "x$ac_ct_RANLIB" = x; then
6679     RANLIB=":"
6680   else
6681     case $cross_compiling:$ac_tool_warned in
6682 yes:)
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6685 ac_tool_warned=yes ;;
6686 esac
6687     RANLIB=$ac_ct_RANLIB
6688   fi
6689 else
6690   RANLIB="$ac_cv_prog_RANLIB"
6691 fi
6692
6693 test -z "$RANLIB" && RANLIB=:
6694
6695
6696
6697
6698
6699
6700 # Determine commands to create old-style static archives.
6701 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6702 old_postinstall_cmds='chmod 644 $oldlib'
6703 old_postuninstall_cmds=
6704
6705 if test -n "$RANLIB"; then
6706   case $host_os in
6707   openbsd*)
6708     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6709     ;;
6710   *)
6711     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6712     ;;
6713   esac
6714   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6715 fi
6716
6717 case $host_os in
6718   darwin*)
6719     lock_old_archive_extraction=yes ;;
6720   *)
6721     lock_old_archive_extraction=no ;;
6722 esac
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762 # If no C compiler was specified, use CC.
6763 LTCC=${LTCC-"$CC"}
6764
6765 # If no C compiler flags were specified, use CFLAGS.
6766 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6767
6768 # Allow CC to be a program name with arguments.
6769 compiler=$CC
6770
6771
6772 # Check for command to grab the raw symbol name followed by C symbol from nm.
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6774 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6775 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6776   $as_echo_n "(cached) " >&6
6777 else
6778
6779 # These are sane defaults that work on at least a few old systems.
6780 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6781
6782 # Character class describing NM global symbol codes.
6783 symcode='[BCDEGRST]'
6784
6785 # Regexp to match symbols that can be accessed directly from C.
6786 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6787
6788 # Define system-specific variables.
6789 case $host_os in
6790 aix*)
6791   symcode='[BCDT]'
6792   ;;
6793 cygwin* | mingw* | pw32* | cegcc*)
6794   symcode='[ABCDGISTW]'
6795   ;;
6796 hpux*)
6797   if test "$host_cpu" = ia64; then
6798     symcode='[ABCDEGRST]'
6799   fi
6800   ;;
6801 irix* | nonstopux*)
6802   symcode='[BCDEGRST]'
6803   ;;
6804 osf*)
6805   symcode='[BCDEGQRST]'
6806   ;;
6807 solaris*)
6808   symcode='[BDRT]'
6809   ;;
6810 sco3.2v5*)
6811   symcode='[DT]'
6812   ;;
6813 sysv4.2uw2*)
6814   symcode='[DT]'
6815   ;;
6816 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6817   symcode='[ABDT]'
6818   ;;
6819 sysv4)
6820   symcode='[DFNSTU]'
6821   ;;
6822 esac
6823
6824 # If we're using GNU nm, then use its standard symbol codes.
6825 case `$NM -V 2>&1` in
6826 *GNU* | *'with BFD'*)
6827   symcode='[ABCDGIRSTW]' ;;
6828 esac
6829
6830 # Transform an extracted symbol line into a proper C declaration.
6831 # Some systems (esp. on ia64) link data and code symbols differently,
6832 # so use this general approach.
6833 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6834
6835 # Transform an extracted symbol line into symbol name and symbol address
6836 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6837 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'"
6838
6839 # Handle CRLF in mingw tool chain
6840 opt_cr=
6841 case $build_os in
6842 mingw*)
6843   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6844   ;;
6845 esac
6846
6847 # Try without a prefix underscore, then with it.
6848 for ac_symprfx in "" "_"; do
6849
6850   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6851   symxfrm="\\1 $ac_symprfx\\2 \\2"
6852
6853   # Write the raw and C identifiers.
6854   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6855     # Fake it for dumpbin and say T for any non-static function
6856     # and D for any global variable.
6857     # Also find C++ and __fastcall symbols from MSVC++,
6858     # which start with @ or ?.
6859     lt_cv_sys_global_symbol_pipe="$AWK '"\
6860 "     {last_section=section; section=\$ 3};"\
6861 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6862 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6863 "     \$ 0!~/External *\|/{next};"\
6864 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6865 "     {if(hide[section]) next};"\
6866 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6867 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6868 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6869 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6870 "     ' prfx=^$ac_symprfx"
6871   else
6872     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6873   fi
6874   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6875
6876   # Check to see that the pipe works correctly.
6877   pipe_works=no
6878
6879   rm -f conftest*
6880   cat > conftest.$ac_ext <<_LT_EOF
6881 #ifdef __cplusplus
6882 extern "C" {
6883 #endif
6884 char nm_test_var;
6885 void nm_test_func(void);
6886 void nm_test_func(void){}
6887 #ifdef __cplusplus
6888 }
6889 #endif
6890 int main(){nm_test_var='a';nm_test_func();return(0);}
6891 _LT_EOF
6892
6893   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6894   (eval $ac_compile) 2>&5
6895   ac_status=$?
6896   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6897   test $ac_status = 0; }; then
6898     # Now try to grab the symbols.
6899     nlist=conftest.nm
6900     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6901   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6902   ac_status=$?
6903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6904   test $ac_status = 0; } && test -s "$nlist"; then
6905       # Try sorting and uniquifying the output.
6906       if sort "$nlist" | uniq > "$nlist"T; then
6907         mv -f "$nlist"T "$nlist"
6908       else
6909         rm -f "$nlist"T
6910       fi
6911
6912       # Make sure that we snagged all the symbols we need.
6913       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6914         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6915           cat <<_LT_EOF > conftest.$ac_ext
6916 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6917 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6918 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6919    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6920 # define LT_DLSYM_CONST
6921 #elif defined(__osf__)
6922 /* This system does not cope well with relocations in const data.  */
6923 # define LT_DLSYM_CONST
6924 #else
6925 # define LT_DLSYM_CONST const
6926 #endif
6927
6928 #ifdef __cplusplus
6929 extern "C" {
6930 #endif
6931
6932 _LT_EOF
6933           # Now generate the symbol file.
6934           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6935
6936           cat <<_LT_EOF >> conftest.$ac_ext
6937
6938 /* The mapping between symbol names and symbols.  */
6939 LT_DLSYM_CONST struct {
6940   const char *name;
6941   void       *address;
6942 }
6943 lt__PROGRAM__LTX_preloaded_symbols[] =
6944 {
6945   { "@PROGRAM@", (void *) 0 },
6946 _LT_EOF
6947           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6948           cat <<\_LT_EOF >> conftest.$ac_ext
6949   {0, (void *) 0}
6950 };
6951
6952 /* This works around a problem in FreeBSD linker */
6953 #ifdef FREEBSD_WORKAROUND
6954 static const void *lt_preloaded_setup() {
6955   return lt__PROGRAM__LTX_preloaded_symbols;
6956 }
6957 #endif
6958
6959 #ifdef __cplusplus
6960 }
6961 #endif
6962 _LT_EOF
6963           # Now try linking the two files.
6964           mv conftest.$ac_objext conftstm.$ac_objext
6965           lt_globsym_save_LIBS=$LIBS
6966           lt_globsym_save_CFLAGS=$CFLAGS
6967           LIBS="conftstm.$ac_objext"
6968           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6969           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6970   (eval $ac_link) 2>&5
6971   ac_status=$?
6972   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6973   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6974             pipe_works=yes
6975           fi
6976           LIBS=$lt_globsym_save_LIBS
6977           CFLAGS=$lt_globsym_save_CFLAGS
6978         else
6979           echo "cannot find nm_test_func in $nlist" >&5
6980         fi
6981       else
6982         echo "cannot find nm_test_var in $nlist" >&5
6983       fi
6984     else
6985       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6986     fi
6987   else
6988     echo "$progname: failed program was:" >&5
6989     cat conftest.$ac_ext >&5
6990   fi
6991   rm -rf conftest* conftst*
6992
6993   # Do not use the global_symbol_pipe unless it works.
6994   if test "$pipe_works" = yes; then
6995     break
6996   else
6997     lt_cv_sys_global_symbol_pipe=
6998   fi
6999 done
7000
7001 fi
7002
7003 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7004   lt_cv_sys_global_symbol_to_cdecl=
7005 fi
7006 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7008 $as_echo "failed" >&6; }
7009 else
7010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7011 $as_echo "ok" >&6; }
7012 fi
7013
7014 # Response file support.
7015 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7016   nm_file_list_spec='@'
7017 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7018   nm_file_list_spec='@'
7019 fi
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7048 $as_echo_n "checking for sysroot... " >&6; }
7049
7050 # Check whether --with-sysroot was given.
7051 if test "${with_sysroot+set}" = set; then :
7052   withval=$with_sysroot;
7053 else
7054   with_sysroot=no
7055 fi
7056
7057
7058 lt_sysroot=
7059 case ${with_sysroot} in #(
7060  yes)
7061    if test "$GCC" = yes; then
7062      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7063    fi
7064    ;; #(
7065  /*)
7066    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7067    ;; #(
7068  no|'')
7069    ;; #(
7070  *)
7071    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7072 $as_echo "${with_sysroot}" >&6; }
7073    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7074    ;;
7075 esac
7076
7077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7078 $as_echo "${lt_sysroot:-no}" >&6; }
7079
7080
7081
7082
7083
7084
7085 # Check whether --enable-libtool-lock was given.
7086 if test "${enable_libtool_lock+set}" = set; then :
7087   enableval=$enable_libtool_lock;
7088 fi
7089
7090 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7091
7092 # Some flags need to be propagated to the compiler or linker for good
7093 # libtool support.
7094 case $host in
7095 ia64-*-hpux*)
7096   # Find out which ABI we are using.
7097   echo 'int i;' > conftest.$ac_ext
7098   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7099   (eval $ac_compile) 2>&5
7100   ac_status=$?
7101   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7102   test $ac_status = 0; }; then
7103     case `/usr/bin/file conftest.$ac_objext` in
7104       *ELF-32*)
7105         HPUX_IA64_MODE="32"
7106         ;;
7107       *ELF-64*)
7108         HPUX_IA64_MODE="64"
7109         ;;
7110     esac
7111   fi
7112   rm -rf conftest*
7113   ;;
7114 *-*-irix6*)
7115   # Find out which ABI we are using.
7116   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7117   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7118   (eval $ac_compile) 2>&5
7119   ac_status=$?
7120   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7121   test $ac_status = 0; }; then
7122     if test "$lt_cv_prog_gnu_ld" = yes; then
7123       case `/usr/bin/file conftest.$ac_objext` in
7124         *32-bit*)
7125           LD="${LD-ld} -melf32bsmip"
7126           ;;
7127         *N32*)
7128           LD="${LD-ld} -melf32bmipn32"
7129           ;;
7130         *64-bit*)
7131           LD="${LD-ld} -melf64bmip"
7132         ;;
7133       esac
7134     else
7135       case `/usr/bin/file conftest.$ac_objext` in
7136         *32-bit*)
7137           LD="${LD-ld} -32"
7138           ;;
7139         *N32*)
7140           LD="${LD-ld} -n32"
7141           ;;
7142         *64-bit*)
7143           LD="${LD-ld} -64"
7144           ;;
7145       esac
7146     fi
7147   fi
7148   rm -rf conftest*
7149   ;;
7150
7151 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7152 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7153   # Find out which ABI we are using.
7154   echo 'int i;' > conftest.$ac_ext
7155   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7156   (eval $ac_compile) 2>&5
7157   ac_status=$?
7158   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7159   test $ac_status = 0; }; then
7160     case `/usr/bin/file conftest.o` in
7161       *32-bit*)
7162         case $host in
7163           x86_64-*kfreebsd*-gnu)
7164             LD="${LD-ld} -m elf_i386_fbsd"
7165             ;;
7166           x86_64-*linux*)
7167             LD="${LD-ld} -m elf_i386"
7168             ;;
7169           ppc64-*linux*|powerpc64-*linux*)
7170             LD="${LD-ld} -m elf32ppclinux"
7171             ;;
7172           s390x-*linux*)
7173             LD="${LD-ld} -m elf_s390"
7174             ;;
7175           sparc64-*linux*)
7176             LD="${LD-ld} -m elf32_sparc"
7177             ;;
7178         esac
7179         ;;
7180       *64-bit*)
7181         case $host in
7182           x86_64-*kfreebsd*-gnu)
7183             LD="${LD-ld} -m elf_x86_64_fbsd"
7184             ;;
7185           x86_64-*linux*)
7186             LD="${LD-ld} -m elf_x86_64"
7187             ;;
7188           ppc*-*linux*|powerpc*-*linux*)
7189             LD="${LD-ld} -m elf64ppc"
7190             ;;
7191           s390*-*linux*|s390*-*tpf*)
7192             LD="${LD-ld} -m elf64_s390"
7193             ;;
7194           sparc*-*linux*)
7195             LD="${LD-ld} -m elf64_sparc"
7196             ;;
7197         esac
7198         ;;
7199     esac
7200   fi
7201   rm -rf conftest*
7202   ;;
7203
7204 *-*-sco3.2v5*)
7205   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7206   SAVE_CFLAGS="$CFLAGS"
7207   CFLAGS="$CFLAGS -belf"
7208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7209 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7210 if ${lt_cv_cc_needs_belf+:} false; then :
7211   $as_echo_n "(cached) " >&6
7212 else
7213   ac_ext=c
7214 ac_cpp='$CPP $CPPFLAGS'
7215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7218
7219      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h.  */
7221
7222 int
7223 main ()
7224 {
7225
7226   ;
7227   return 0;
7228 }
7229 _ACEOF
7230 if ac_fn_c_try_link "$LINENO"; then :
7231   lt_cv_cc_needs_belf=yes
7232 else
7233   lt_cv_cc_needs_belf=no
7234 fi
7235 rm -f core conftest.err conftest.$ac_objext \
7236     conftest$ac_exeext conftest.$ac_ext
7237      ac_ext=c
7238 ac_cpp='$CPP $CPPFLAGS'
7239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7242
7243 fi
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7245 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7246   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7247     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7248     CFLAGS="$SAVE_CFLAGS"
7249   fi
7250   ;;
7251 *-*solaris*)
7252   # Find out which ABI we are using.
7253   echo 'int i;' > conftest.$ac_ext
7254   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7255   (eval $ac_compile) 2>&5
7256   ac_status=$?
7257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7258   test $ac_status = 0; }; then
7259     case `/usr/bin/file conftest.o` in
7260     *64-bit*)
7261       case $lt_cv_prog_gnu_ld in
7262       yes*)
7263         case $host in
7264         i?86-*-solaris*)
7265           LD="${LD-ld} -m elf_x86_64"
7266           ;;
7267         sparc*-*-solaris*)
7268           LD="${LD-ld} -m elf64_sparc"
7269           ;;
7270         esac
7271         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7272         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7273           LD="${LD-ld}_sol2"
7274         fi
7275         ;;
7276       *)
7277         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7278           LD="${LD-ld} -64"
7279         fi
7280         ;;
7281       esac
7282       ;;
7283     esac
7284   fi
7285   rm -rf conftest*
7286   ;;
7287 esac
7288
7289 need_locks="$enable_libtool_lock"
7290
7291 if test -n "$ac_tool_prefix"; then
7292   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7293 set dummy ${ac_tool_prefix}mt; ac_word=$2
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7295 $as_echo_n "checking for $ac_word... " >&6; }
7296 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7297   $as_echo_n "(cached) " >&6
7298 else
7299   if test -n "$MANIFEST_TOOL"; then
7300   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7301 else
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 for as_dir in $PATH
7304 do
7305   IFS=$as_save_IFS
7306   test -z "$as_dir" && as_dir=.
7307     for ac_exec_ext in '' $ac_executable_extensions; do
7308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7309     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7311     break 2
7312   fi
7313 done
7314   done
7315 IFS=$as_save_IFS
7316
7317 fi
7318 fi
7319 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7320 if test -n "$MANIFEST_TOOL"; then
7321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7322 $as_echo "$MANIFEST_TOOL" >&6; }
7323 else
7324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7325 $as_echo "no" >&6; }
7326 fi
7327
7328
7329 fi
7330 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7331   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7332   # Extract the first word of "mt", so it can be a program name with args.
7333 set dummy mt; ac_word=$2
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335 $as_echo_n "checking for $ac_word... " >&6; }
7336 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7337   $as_echo_n "(cached) " >&6
7338 else
7339   if test -n "$ac_ct_MANIFEST_TOOL"; then
7340   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7341 else
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343 for as_dir in $PATH
7344 do
7345   IFS=$as_save_IFS
7346   test -z "$as_dir" && as_dir=.
7347     for ac_exec_ext in '' $ac_executable_extensions; do
7348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7349     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7351     break 2
7352   fi
7353 done
7354   done
7355 IFS=$as_save_IFS
7356
7357 fi
7358 fi
7359 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7360 if test -n "$ac_ct_MANIFEST_TOOL"; then
7361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7362 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7363 else
7364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365 $as_echo "no" >&6; }
7366 fi
7367
7368   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7369     MANIFEST_TOOL=":"
7370   else
7371     case $cross_compiling:$ac_tool_warned in
7372 yes:)
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7375 ac_tool_warned=yes ;;
7376 esac
7377     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7378   fi
7379 else
7380   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7381 fi
7382
7383 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7385 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7386 if ${lt_cv_path_mainfest_tool+:} false; then :
7387   $as_echo_n "(cached) " >&6
7388 else
7389   lt_cv_path_mainfest_tool=no
7390   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7391   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7392   cat conftest.err >&5
7393   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7394     lt_cv_path_mainfest_tool=yes
7395   fi
7396   rm -f conftest*
7397 fi
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7399 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7400 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7401   MANIFEST_TOOL=:
7402 fi
7403
7404
7405
7406
7407
7408
7409   case $host_os in
7410     rhapsody* | darwin*)
7411     if test -n "$ac_tool_prefix"; then
7412   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7413 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7415 $as_echo_n "checking for $ac_word... " >&6; }
7416 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7417   $as_echo_n "(cached) " >&6
7418 else
7419   if test -n "$DSYMUTIL"; then
7420   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7421 else
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH
7424 do
7425   IFS=$as_save_IFS
7426   test -z "$as_dir" && as_dir=.
7427     for ac_exec_ext in '' $ac_executable_extensions; do
7428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7429     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7431     break 2
7432   fi
7433 done
7434   done
7435 IFS=$as_save_IFS
7436
7437 fi
7438 fi
7439 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7440 if test -n "$DSYMUTIL"; then
7441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7442 $as_echo "$DSYMUTIL" >&6; }
7443 else
7444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7445 $as_echo "no" >&6; }
7446 fi
7447
7448
7449 fi
7450 if test -z "$ac_cv_prog_DSYMUTIL"; then
7451   ac_ct_DSYMUTIL=$DSYMUTIL
7452   # Extract the first word of "dsymutil", so it can be a program name with args.
7453 set dummy dsymutil; ac_word=$2
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7455 $as_echo_n "checking for $ac_word... " >&6; }
7456 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7457   $as_echo_n "(cached) " >&6
7458 else
7459   if test -n "$ac_ct_DSYMUTIL"; then
7460   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7461 else
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 for as_dir in $PATH
7464 do
7465   IFS=$as_save_IFS
7466   test -z "$as_dir" && as_dir=.
7467     for ac_exec_ext in '' $ac_executable_extensions; do
7468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7469     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7471     break 2
7472   fi
7473 done
7474   done
7475 IFS=$as_save_IFS
7476
7477 fi
7478 fi
7479 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7480 if test -n "$ac_ct_DSYMUTIL"; then
7481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7482 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7483 else
7484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7485 $as_echo "no" >&6; }
7486 fi
7487
7488   if test "x$ac_ct_DSYMUTIL" = x; then
7489     DSYMUTIL=":"
7490   else
7491     case $cross_compiling:$ac_tool_warned in
7492 yes:)
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7495 ac_tool_warned=yes ;;
7496 esac
7497     DSYMUTIL=$ac_ct_DSYMUTIL
7498   fi
7499 else
7500   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7501 fi
7502
7503     if test -n "$ac_tool_prefix"; then
7504   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7505 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7507 $as_echo_n "checking for $ac_word... " >&6; }
7508 if ${ac_cv_prog_NMEDIT+:} false; then :
7509   $as_echo_n "(cached) " >&6
7510 else
7511   if test -n "$NMEDIT"; then
7512   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7513 else
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 for as_dir in $PATH
7516 do
7517   IFS=$as_save_IFS
7518   test -z "$as_dir" && as_dir=.
7519     for ac_exec_ext in '' $ac_executable_extensions; do
7520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7521     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7523     break 2
7524   fi
7525 done
7526   done
7527 IFS=$as_save_IFS
7528
7529 fi
7530 fi
7531 NMEDIT=$ac_cv_prog_NMEDIT
7532 if test -n "$NMEDIT"; then
7533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7534 $as_echo "$NMEDIT" >&6; }
7535 else
7536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7537 $as_echo "no" >&6; }
7538 fi
7539
7540
7541 fi
7542 if test -z "$ac_cv_prog_NMEDIT"; then
7543   ac_ct_NMEDIT=$NMEDIT
7544   # Extract the first word of "nmedit", so it can be a program name with args.
7545 set dummy nmedit; ac_word=$2
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7547 $as_echo_n "checking for $ac_word... " >&6; }
7548 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7549   $as_echo_n "(cached) " >&6
7550 else
7551   if test -n "$ac_ct_NMEDIT"; then
7552   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7553 else
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 for as_dir in $PATH
7556 do
7557   IFS=$as_save_IFS
7558   test -z "$as_dir" && as_dir=.
7559     for ac_exec_ext in '' $ac_executable_extensions; do
7560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7561     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7563     break 2
7564   fi
7565 done
7566   done
7567 IFS=$as_save_IFS
7568
7569 fi
7570 fi
7571 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7572 if test -n "$ac_ct_NMEDIT"; then
7573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7574 $as_echo "$ac_ct_NMEDIT" >&6; }
7575 else
7576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7577 $as_echo "no" >&6; }
7578 fi
7579
7580   if test "x$ac_ct_NMEDIT" = x; then
7581     NMEDIT=":"
7582   else
7583     case $cross_compiling:$ac_tool_warned in
7584 yes:)
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7587 ac_tool_warned=yes ;;
7588 esac
7589     NMEDIT=$ac_ct_NMEDIT
7590   fi
7591 else
7592   NMEDIT="$ac_cv_prog_NMEDIT"
7593 fi
7594
7595     if test -n "$ac_tool_prefix"; then
7596   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7597 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599 $as_echo_n "checking for $ac_word... " >&6; }
7600 if ${ac_cv_prog_LIPO+:} false; then :
7601   $as_echo_n "(cached) " >&6
7602 else
7603   if test -n "$LIPO"; then
7604   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7605 else
7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 for as_dir in $PATH
7608 do
7609   IFS=$as_save_IFS
7610   test -z "$as_dir" && as_dir=.
7611     for ac_exec_ext in '' $ac_executable_extensions; do
7612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7613     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7615     break 2
7616   fi
7617 done
7618   done
7619 IFS=$as_save_IFS
7620
7621 fi
7622 fi
7623 LIPO=$ac_cv_prog_LIPO
7624 if test -n "$LIPO"; then
7625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7626 $as_echo "$LIPO" >&6; }
7627 else
7628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7630 fi
7631
7632
7633 fi
7634 if test -z "$ac_cv_prog_LIPO"; then
7635   ac_ct_LIPO=$LIPO
7636   # Extract the first word of "lipo", so it can be a program name with args.
7637 set dummy lipo; ac_word=$2
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639 $as_echo_n "checking for $ac_word... " >&6; }
7640 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7641   $as_echo_n "(cached) " >&6
7642 else
7643   if test -n "$ac_ct_LIPO"; then
7644   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7645 else
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 for as_dir in $PATH
7648 do
7649   IFS=$as_save_IFS
7650   test -z "$as_dir" && as_dir=.
7651     for ac_exec_ext in '' $ac_executable_extensions; do
7652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7653     ac_cv_prog_ac_ct_LIPO="lipo"
7654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7655     break 2
7656   fi
7657 done
7658   done
7659 IFS=$as_save_IFS
7660
7661 fi
7662 fi
7663 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7664 if test -n "$ac_ct_LIPO"; then
7665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7666 $as_echo "$ac_ct_LIPO" >&6; }
7667 else
7668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669 $as_echo "no" >&6; }
7670 fi
7671
7672   if test "x$ac_ct_LIPO" = x; then
7673     LIPO=":"
7674   else
7675     case $cross_compiling:$ac_tool_warned in
7676 yes:)
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7679 ac_tool_warned=yes ;;
7680 esac
7681     LIPO=$ac_ct_LIPO
7682   fi
7683 else
7684   LIPO="$ac_cv_prog_LIPO"
7685 fi
7686
7687     if test -n "$ac_tool_prefix"; then
7688   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7689 set dummy ${ac_tool_prefix}otool; ac_word=$2
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691 $as_echo_n "checking for $ac_word... " >&6; }
7692 if ${ac_cv_prog_OTOOL+:} false; then :
7693   $as_echo_n "(cached) " >&6
7694 else
7695   if test -n "$OTOOL"; then
7696   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7697 else
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 for as_dir in $PATH
7700 do
7701   IFS=$as_save_IFS
7702   test -z "$as_dir" && as_dir=.
7703     for ac_exec_ext in '' $ac_executable_extensions; do
7704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7705     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7707     break 2
7708   fi
7709 done
7710   done
7711 IFS=$as_save_IFS
7712
7713 fi
7714 fi
7715 OTOOL=$ac_cv_prog_OTOOL
7716 if test -n "$OTOOL"; then
7717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7718 $as_echo "$OTOOL" >&6; }
7719 else
7720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721 $as_echo "no" >&6; }
7722 fi
7723
7724
7725 fi
7726 if test -z "$ac_cv_prog_OTOOL"; then
7727   ac_ct_OTOOL=$OTOOL
7728   # Extract the first word of "otool", so it can be a program name with args.
7729 set dummy otool; ac_word=$2
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7731 $as_echo_n "checking for $ac_word... " >&6; }
7732 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7733   $as_echo_n "(cached) " >&6
7734 else
7735   if test -n "$ac_ct_OTOOL"; then
7736   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7737 else
7738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739 for as_dir in $PATH
7740 do
7741   IFS=$as_save_IFS
7742   test -z "$as_dir" && as_dir=.
7743     for ac_exec_ext in '' $ac_executable_extensions; do
7744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7745     ac_cv_prog_ac_ct_OTOOL="otool"
7746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7747     break 2
7748   fi
7749 done
7750   done
7751 IFS=$as_save_IFS
7752
7753 fi
7754 fi
7755 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7756 if test -n "$ac_ct_OTOOL"; then
7757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7758 $as_echo "$ac_ct_OTOOL" >&6; }
7759 else
7760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761 $as_echo "no" >&6; }
7762 fi
7763
7764   if test "x$ac_ct_OTOOL" = x; then
7765     OTOOL=":"
7766   else
7767     case $cross_compiling:$ac_tool_warned in
7768 yes:)
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7771 ac_tool_warned=yes ;;
7772 esac
7773     OTOOL=$ac_ct_OTOOL
7774   fi
7775 else
7776   OTOOL="$ac_cv_prog_OTOOL"
7777 fi
7778
7779     if test -n "$ac_tool_prefix"; then
7780   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7781 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7783 $as_echo_n "checking for $ac_word... " >&6; }
7784 if ${ac_cv_prog_OTOOL64+:} false; then :
7785   $as_echo_n "(cached) " >&6
7786 else
7787   if test -n "$OTOOL64"; then
7788   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7789 else
7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 for as_dir in $PATH
7792 do
7793   IFS=$as_save_IFS
7794   test -z "$as_dir" && as_dir=.
7795     for ac_exec_ext in '' $ac_executable_extensions; do
7796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7797     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7799     break 2
7800   fi
7801 done
7802   done
7803 IFS=$as_save_IFS
7804
7805 fi
7806 fi
7807 OTOOL64=$ac_cv_prog_OTOOL64
7808 if test -n "$OTOOL64"; then
7809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7810 $as_echo "$OTOOL64" >&6; }
7811 else
7812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7813 $as_echo "no" >&6; }
7814 fi
7815
7816
7817 fi
7818 if test -z "$ac_cv_prog_OTOOL64"; then
7819   ac_ct_OTOOL64=$OTOOL64
7820   # Extract the first word of "otool64", so it can be a program name with args.
7821 set dummy otool64; ac_word=$2
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823 $as_echo_n "checking for $ac_word... " >&6; }
7824 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7825   $as_echo_n "(cached) " >&6
7826 else
7827   if test -n "$ac_ct_OTOOL64"; then
7828   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7829 else
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 for as_dir in $PATH
7832 do
7833   IFS=$as_save_IFS
7834   test -z "$as_dir" && as_dir=.
7835     for ac_exec_ext in '' $ac_executable_extensions; do
7836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7837     ac_cv_prog_ac_ct_OTOOL64="otool64"
7838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839     break 2
7840   fi
7841 done
7842   done
7843 IFS=$as_save_IFS
7844
7845 fi
7846 fi
7847 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7848 if test -n "$ac_ct_OTOOL64"; then
7849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7850 $as_echo "$ac_ct_OTOOL64" >&6; }
7851 else
7852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853 $as_echo "no" >&6; }
7854 fi
7855
7856   if test "x$ac_ct_OTOOL64" = x; then
7857     OTOOL64=":"
7858   else
7859     case $cross_compiling:$ac_tool_warned in
7860 yes:)
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7863 ac_tool_warned=yes ;;
7864 esac
7865     OTOOL64=$ac_ct_OTOOL64
7866   fi
7867 else
7868   OTOOL64="$ac_cv_prog_OTOOL64"
7869 fi
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7898 $as_echo_n "checking for -single_module linker flag... " >&6; }
7899 if ${lt_cv_apple_cc_single_mod+:} false; then :
7900   $as_echo_n "(cached) " >&6
7901 else
7902   lt_cv_apple_cc_single_mod=no
7903       if test -z "${LT_MULTI_MODULE}"; then
7904         # By default we will add the -single_module flag. You can override
7905         # by either setting the environment variable LT_MULTI_MODULE
7906         # non-empty at configure time, or by adding -multi_module to the
7907         # link flags.
7908         rm -rf libconftest.dylib*
7909         echo "int foo(void){return 1;}" > conftest.c
7910         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7911 -dynamiclib -Wl,-single_module conftest.c" >&5
7912         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7913           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7914         _lt_result=$?
7915         # If there is a non-empty error log, and "single_module"
7916         # appears in it, assume the flag caused a linker warning
7917         if test -s conftest.err && $GREP single_module conftest.err; then
7918           cat conftest.err >&5
7919         # Otherwise, if the output was created with a 0 exit code from
7920         # the compiler, it worked.
7921         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7922           lt_cv_apple_cc_single_mod=yes
7923         else
7924           cat conftest.err >&5
7925         fi
7926         rm -rf libconftest.dylib*
7927         rm -f conftest.*
7928       fi
7929 fi
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7931 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7932
7933     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7934 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7935 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7936   $as_echo_n "(cached) " >&6
7937 else
7938   lt_cv_ld_exported_symbols_list=no
7939       save_LDFLAGS=$LDFLAGS
7940       echo "_main" > conftest.sym
7941       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7942       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7943 /* end confdefs.h.  */
7944
7945 int
7946 main ()
7947 {
7948
7949   ;
7950   return 0;
7951 }
7952 _ACEOF
7953 if ac_fn_c_try_link "$LINENO"; then :
7954   lt_cv_ld_exported_symbols_list=yes
7955 else
7956   lt_cv_ld_exported_symbols_list=no
7957 fi
7958 rm -f core conftest.err conftest.$ac_objext \
7959     conftest$ac_exeext conftest.$ac_ext
7960         LDFLAGS="$save_LDFLAGS"
7961
7962 fi
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7964 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7965
7966     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7967 $as_echo_n "checking for -force_load linker flag... " >&6; }
7968 if ${lt_cv_ld_force_load+:} false; then :
7969   $as_echo_n "(cached) " >&6
7970 else
7971   lt_cv_ld_force_load=no
7972       cat > conftest.c << _LT_EOF
7973 int forced_loaded() { return 2;}
7974 _LT_EOF
7975       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7976       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7977       echo "$AR cru libconftest.a conftest.o" >&5
7978       $AR cru libconftest.a conftest.o 2>&5
7979       echo "$RANLIB libconftest.a" >&5
7980       $RANLIB libconftest.a 2>&5
7981       cat > conftest.c << _LT_EOF
7982 int main() { return 0;}
7983 _LT_EOF
7984       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7985       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7986       _lt_result=$?
7987       if test -s conftest.err && $GREP force_load conftest.err; then
7988         cat conftest.err >&5
7989       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7990         lt_cv_ld_force_load=yes
7991       else
7992         cat conftest.err >&5
7993       fi
7994         rm -f conftest.err libconftest.a conftest conftest.c
7995         rm -rf conftest.dSYM
7996
7997 fi
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7999 $as_echo "$lt_cv_ld_force_load" >&6; }
8000     case $host_os in
8001     rhapsody* | darwin1.[012])
8002       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8003     darwin1.*)
8004       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8005     darwin*) # darwin 5.x on
8006       # if running on 10.5 or later, the deployment target defaults
8007       # to the OS version, if on x86, and 10.4, the deployment
8008       # target defaults to 10.4. Don't you love it?
8009       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8010         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8011           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8012         10.[012]*)
8013           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8014         10.*)
8015           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8016       esac
8017     ;;
8018   esac
8019     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8020       _lt_dar_single_mod='$single_module'
8021     fi
8022     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8023       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8024     else
8025       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8026     fi
8027     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8028       _lt_dsymutil='~$DSYMUTIL $lib || :'
8029     else
8030       _lt_dsymutil=
8031     fi
8032     ;;
8033   esac
8034
8035
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8037 $as_echo_n "checking for ANSI C header files... " >&6; }
8038 if ${ac_cv_header_stdc+:} false; then :
8039   $as_echo_n "(cached) " >&6
8040 else
8041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042 /* end confdefs.h.  */
8043 #include <stdlib.h>
8044 #include <stdarg.h>
8045 #include <string.h>
8046 #include <float.h>
8047
8048 int
8049 main ()
8050 {
8051
8052   ;
8053   return 0;
8054 }
8055 _ACEOF
8056 if ac_fn_c_try_compile "$LINENO"; then :
8057   ac_cv_header_stdc=yes
8058 else
8059   ac_cv_header_stdc=no
8060 fi
8061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8062
8063 if test $ac_cv_header_stdc = yes; then
8064   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066 /* end confdefs.h.  */
8067 #include <string.h>
8068
8069 _ACEOF
8070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8071   $EGREP "memchr" >/dev/null 2>&1; then :
8072
8073 else
8074   ac_cv_header_stdc=no
8075 fi
8076 rm -f conftest*
8077
8078 fi
8079
8080 if test $ac_cv_header_stdc = yes; then
8081   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083 /* end confdefs.h.  */
8084 #include <stdlib.h>
8085
8086 _ACEOF
8087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8088   $EGREP "free" >/dev/null 2>&1; then :
8089
8090 else
8091   ac_cv_header_stdc=no
8092 fi
8093 rm -f conftest*
8094
8095 fi
8096
8097 if test $ac_cv_header_stdc = yes; then
8098   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8099   if test "$cross_compiling" = yes; then :
8100   :
8101 else
8102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8103 /* end confdefs.h.  */
8104 #include <ctype.h>
8105 #include <stdlib.h>
8106 #if ((' ' & 0x0FF) == 0x020)
8107 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8108 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8109 #else
8110 # define ISLOWER(c) \
8111                    (('a' <= (c) && (c) <= 'i') \
8112                      || ('j' <= (c) && (c) <= 'r') \
8113                      || ('s' <= (c) && (c) <= 'z'))
8114 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8115 #endif
8116
8117 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8118 int
8119 main ()
8120 {
8121   int i;
8122   for (i = 0; i < 256; i++)
8123     if (XOR (islower (i), ISLOWER (i))
8124         || toupper (i) != TOUPPER (i))
8125       return 2;
8126   return 0;
8127 }
8128 _ACEOF
8129 if ac_fn_c_try_run "$LINENO"; then :
8130
8131 else
8132   ac_cv_header_stdc=no
8133 fi
8134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8135   conftest.$ac_objext conftest.beam conftest.$ac_ext
8136 fi
8137
8138 fi
8139 fi
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8141 $as_echo "$ac_cv_header_stdc" >&6; }
8142 if test $ac_cv_header_stdc = yes; then
8143
8144 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8145
8146 fi
8147
8148 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8149 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8150                   inttypes.h stdint.h unistd.h
8151 do :
8152   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8153 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8154 "
8155 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8156   cat >>confdefs.h <<_ACEOF
8157 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8158 _ACEOF
8159
8160 fi
8161
8162 done
8163
8164
8165 for ac_header in dlfcn.h
8166 do :
8167   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8168 "
8169 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8170   cat >>confdefs.h <<_ACEOF
8171 #define HAVE_DLFCN_H 1
8172 _ACEOF
8173
8174 fi
8175
8176 done
8177
8178
8179
8180 func_stripname_cnf ()
8181 {
8182   case ${2} in
8183   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8184   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8185   esac
8186 } # func_stripname_cnf
8187
8188
8189
8190
8191
8192 # Set options
8193
8194
8195
8196         enable_dlopen=no
8197
8198
8199   enable_win32_dll=no
8200
8201
8202             # Check whether --enable-shared was given.
8203 if test "${enable_shared+set}" = set; then :
8204   enableval=$enable_shared; p=${PACKAGE-default}
8205     case $enableval in
8206     yes) enable_shared=yes ;;
8207     no) enable_shared=no ;;
8208     *)
8209       enable_shared=no
8210       # Look at the argument we got.  We use all the common list separators.
8211       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8212       for pkg in $enableval; do
8213         IFS="$lt_save_ifs"
8214         if test "X$pkg" = "X$p"; then
8215           enable_shared=yes
8216         fi
8217       done
8218       IFS="$lt_save_ifs"
8219       ;;
8220     esac
8221 else
8222   enable_shared=yes
8223 fi
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233   # Check whether --enable-static was given.
8234 if test "${enable_static+set}" = set; then :
8235   enableval=$enable_static; p=${PACKAGE-default}
8236     case $enableval in
8237     yes) enable_static=yes ;;
8238     no) enable_static=no ;;
8239     *)
8240      enable_static=no
8241       # Look at the argument we got.  We use all the common list separators.
8242       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8243       for pkg in $enableval; do
8244         IFS="$lt_save_ifs"
8245         if test "X$pkg" = "X$p"; then
8246           enable_static=yes
8247         fi
8248       done
8249       IFS="$lt_save_ifs"
8250       ;;
8251     esac
8252 else
8253   enable_static=yes
8254 fi
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265 # Check whether --with-pic was given.
8266 if test "${with_pic+set}" = set; then :
8267   withval=$with_pic; lt_p=${PACKAGE-default}
8268     case $withval in
8269     yes|no) pic_mode=$withval ;;
8270     *)
8271       pic_mode=default
8272       # Look at the argument we got.  We use all the common list separators.
8273       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8274       for lt_pkg in $withval; do
8275         IFS="$lt_save_ifs"
8276         if test "X$lt_pkg" = "X$lt_p"; then
8277           pic_mode=yes
8278         fi
8279       done
8280       IFS="$lt_save_ifs"
8281       ;;
8282     esac
8283 else
8284   pic_mode=default
8285 fi
8286
8287
8288 test -z "$pic_mode" && pic_mode=default
8289
8290
8291
8292
8293
8294
8295
8296   # Check whether --enable-fast-install was given.
8297 if test "${enable_fast_install+set}" = set; then :
8298   enableval=$enable_fast_install; p=${PACKAGE-default}
8299     case $enableval in
8300     yes) enable_fast_install=yes ;;
8301     no) enable_fast_install=no ;;
8302     *)
8303       enable_fast_install=no
8304       # Look at the argument we got.  We use all the common list separators.
8305       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8306       for pkg in $enableval; do
8307         IFS="$lt_save_ifs"
8308         if test "X$pkg" = "X$p"; then
8309           enable_fast_install=yes
8310         fi
8311       done
8312       IFS="$lt_save_ifs"
8313       ;;
8314     esac
8315 else
8316   enable_fast_install=yes
8317 fi
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329 # This can be used to rebuild libtool when needed
8330 LIBTOOL_DEPS="$ltmain"
8331
8332 # Always use our own libtool.
8333 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364 test -z "$LN_S" && LN_S="ln -s"
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379 if test -n "${ZSH_VERSION+set}" ; then
8380    setopt NO_GLOB_SUBST
8381 fi
8382
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8384 $as_echo_n "checking for objdir... " >&6; }
8385 if ${lt_cv_objdir+:} false; then :
8386   $as_echo_n "(cached) " >&6
8387 else
8388   rm -f .libs 2>/dev/null
8389 mkdir .libs 2>/dev/null
8390 if test -d .libs; then
8391   lt_cv_objdir=.libs
8392 else
8393   # MS-DOS does not allow filenames that begin with a dot.
8394   lt_cv_objdir=_libs
8395 fi
8396 rmdir .libs 2>/dev/null
8397 fi
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8399 $as_echo "$lt_cv_objdir" >&6; }
8400 objdir=$lt_cv_objdir
8401
8402
8403
8404
8405
8406 cat >>confdefs.h <<_ACEOF
8407 #define LT_OBJDIR "$lt_cv_objdir/"
8408 _ACEOF
8409
8410
8411
8412
8413 case $host_os in
8414 aix3*)
8415   # AIX sometimes has problems with the GCC collect2 program.  For some
8416   # reason, if we set the COLLECT_NAMES environment variable, the problems
8417   # vanish in a puff of smoke.
8418   if test "X${COLLECT_NAMES+set}" != Xset; then
8419     COLLECT_NAMES=
8420     export COLLECT_NAMES
8421   fi
8422   ;;
8423 esac
8424
8425 # Global variables:
8426 ofile=libtool
8427 can_build_shared=yes
8428
8429 # All known linkers require a `.a' archive for static linking (except MSVC,
8430 # which needs '.lib').
8431 libext=a
8432
8433 with_gnu_ld="$lt_cv_prog_gnu_ld"
8434
8435 old_CC="$CC"
8436 old_CFLAGS="$CFLAGS"
8437
8438 # Set sane defaults for various variables
8439 test -z "$CC" && CC=cc
8440 test -z "$LTCC" && LTCC=$CC
8441 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8442 test -z "$LD" && LD=ld
8443 test -z "$ac_objext" && ac_objext=o
8444
8445 for cc_temp in $compiler""; do
8446   case $cc_temp in
8447     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8448     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8449     \-*) ;;
8450     *) break;;
8451   esac
8452 done
8453 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8454
8455
8456 # Only perform the check for file, if the check method requires it
8457 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8458 case $deplibs_check_method in
8459 file_magic*)
8460   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8461     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8462 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8463 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8464   $as_echo_n "(cached) " >&6
8465 else
8466   case $MAGIC_CMD in
8467 [\\/*] |  ?:[\\/]*)
8468   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8469   ;;
8470 *)
8471   lt_save_MAGIC_CMD="$MAGIC_CMD"
8472   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8473   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8474   for ac_dir in $ac_dummy; do
8475     IFS="$lt_save_ifs"
8476     test -z "$ac_dir" && ac_dir=.
8477     if test -f $ac_dir/${ac_tool_prefix}file; then
8478       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8479       if test -n "$file_magic_test_file"; then
8480         case $deplibs_check_method in
8481         "file_magic "*)
8482           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8483           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8484           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8485             $EGREP "$file_magic_regex" > /dev/null; then
8486             :
8487           else
8488             cat <<_LT_EOF 1>&2
8489
8490 *** Warning: the command libtool uses to detect shared libraries,
8491 *** $file_magic_cmd, produces output that libtool cannot recognize.
8492 *** The result is that libtool may fail to recognize shared libraries
8493 *** as such.  This will affect the creation of libtool libraries that
8494 *** depend on shared libraries, but programs linked with such libtool
8495 *** libraries will work regardless of this problem.  Nevertheless, you
8496 *** may want to report the problem to your system manager and/or to
8497 *** bug-libtool@gnu.org
8498
8499 _LT_EOF
8500           fi ;;
8501         esac
8502       fi
8503       break
8504     fi
8505   done
8506   IFS="$lt_save_ifs"
8507   MAGIC_CMD="$lt_save_MAGIC_CMD"
8508   ;;
8509 esac
8510 fi
8511
8512 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8513 if test -n "$MAGIC_CMD"; then
8514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8515 $as_echo "$MAGIC_CMD" >&6; }
8516 else
8517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8518 $as_echo "no" >&6; }
8519 fi
8520
8521
8522
8523
8524
8525 if test -z "$lt_cv_path_MAGIC_CMD"; then
8526   if test -n "$ac_tool_prefix"; then
8527     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8528 $as_echo_n "checking for file... " >&6; }
8529 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8530   $as_echo_n "(cached) " >&6
8531 else
8532   case $MAGIC_CMD in
8533 [\\/*] |  ?:[\\/]*)
8534   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8535   ;;
8536 *)
8537   lt_save_MAGIC_CMD="$MAGIC_CMD"
8538   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8539   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8540   for ac_dir in $ac_dummy; do
8541     IFS="$lt_save_ifs"
8542     test -z "$ac_dir" && ac_dir=.
8543     if test -f $ac_dir/file; then
8544       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8545       if test -n "$file_magic_test_file"; then
8546         case $deplibs_check_method in
8547         "file_magic "*)
8548           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8549           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8550           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8551             $EGREP "$file_magic_regex" > /dev/null; then
8552             :
8553           else
8554             cat <<_LT_EOF 1>&2
8555
8556 *** Warning: the command libtool uses to detect shared libraries,
8557 *** $file_magic_cmd, produces output that libtool cannot recognize.
8558 *** The result is that libtool may fail to recognize shared libraries
8559 *** as such.  This will affect the creation of libtool libraries that
8560 *** depend on shared libraries, but programs linked with such libtool
8561 *** libraries will work regardless of this problem.  Nevertheless, you
8562 *** may want to report the problem to your system manager and/or to
8563 *** bug-libtool@gnu.org
8564
8565 _LT_EOF
8566           fi ;;
8567         esac
8568       fi
8569       break
8570     fi
8571   done
8572   IFS="$lt_save_ifs"
8573   MAGIC_CMD="$lt_save_MAGIC_CMD"
8574   ;;
8575 esac
8576 fi
8577
8578 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8579 if test -n "$MAGIC_CMD"; then
8580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8581 $as_echo "$MAGIC_CMD" >&6; }
8582 else
8583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8584 $as_echo "no" >&6; }
8585 fi
8586
8587
8588   else
8589     MAGIC_CMD=:
8590   fi
8591 fi
8592
8593   fi
8594   ;;
8595 esac
8596
8597 # Use C for the default configuration in the libtool script
8598
8599 lt_save_CC="$CC"
8600 ac_ext=c
8601 ac_cpp='$CPP $CPPFLAGS'
8602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8605
8606
8607 # Source file extension for C test sources.
8608 ac_ext=c
8609
8610 # Object file extension for compiled C test sources.
8611 objext=o
8612 objext=$objext
8613
8614 # Code to be used in simple compile tests
8615 lt_simple_compile_test_code="int some_variable = 0;"
8616
8617 # Code to be used in simple link tests
8618 lt_simple_link_test_code='int main(){return(0);}'
8619
8620
8621
8622
8623
8624
8625
8626 # If no C compiler was specified, use CC.
8627 LTCC=${LTCC-"$CC"}
8628
8629 # If no C compiler flags were specified, use CFLAGS.
8630 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8631
8632 # Allow CC to be a program name with arguments.
8633 compiler=$CC
8634
8635 # Save the default compiler, since it gets overwritten when the other
8636 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8637 compiler_DEFAULT=$CC
8638
8639 # save warnings/boilerplate of simple test code
8640 ac_outfile=conftest.$ac_objext
8641 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8642 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8643 _lt_compiler_boilerplate=`cat conftest.err`
8644 $RM conftest*
8645
8646 ac_outfile=conftest.$ac_objext
8647 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8648 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8649 _lt_linker_boilerplate=`cat conftest.err`
8650 $RM -r conftest*
8651
8652
8653 ## CAVEAT EMPTOR:
8654 ## There is no encapsulation within the following macros, do not change
8655 ## the running order or otherwise move them around unless you know exactly
8656 ## what you are doing...
8657 if test -n "$compiler"; then
8658
8659 lt_prog_compiler_no_builtin_flag=
8660
8661 if test "$GCC" = yes; then
8662   case $cc_basename in
8663   nvcc*)
8664     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8665   *)
8666     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8667   esac
8668
8669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8670 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8671 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8672   $as_echo_n "(cached) " >&6
8673 else
8674   lt_cv_prog_compiler_rtti_exceptions=no
8675    ac_outfile=conftest.$ac_objext
8676    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8677    lt_compiler_flag="-fno-rtti -fno-exceptions"
8678    # Insert the option either (1) after the last *FLAGS variable, or
8679    # (2) before a word containing "conftest.", or (3) at the end.
8680    # Note that $ac_compile itself does not contain backslashes and begins
8681    # with a dollar sign (not a hyphen), so the echo should work correctly.
8682    # The option is referenced via a variable to avoid confusing sed.
8683    lt_compile=`echo "$ac_compile" | $SED \
8684    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8685    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8686    -e 's:$: $lt_compiler_flag:'`
8687    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8688    (eval "$lt_compile" 2>conftest.err)
8689    ac_status=$?
8690    cat conftest.err >&5
8691    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692    if (exit $ac_status) && test -s "$ac_outfile"; then
8693      # The compiler can only warn and ignore the option if not recognized
8694      # So say no if there are warnings other than the usual output.
8695      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8696      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8697      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8698        lt_cv_prog_compiler_rtti_exceptions=yes
8699      fi
8700    fi
8701    $RM conftest*
8702
8703 fi
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8705 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8706
8707 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8708     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8709 else
8710     :
8711 fi
8712
8713 fi
8714
8715
8716
8717
8718
8719
8720   lt_prog_compiler_wl=
8721 lt_prog_compiler_pic=
8722 lt_prog_compiler_static=
8723
8724
8725   if test "$GCC" = yes; then
8726     lt_prog_compiler_wl='-Wl,'
8727     lt_prog_compiler_static='-static'
8728
8729     case $host_os in
8730       aix*)
8731       # All AIX code is PIC.
8732       if test "$host_cpu" = ia64; then
8733         # AIX 5 now supports IA64 processor
8734         lt_prog_compiler_static='-Bstatic'
8735       fi
8736       ;;
8737
8738     amigaos*)
8739       case $host_cpu in
8740       powerpc)
8741             # see comment about AmigaOS4 .so support
8742             lt_prog_compiler_pic='-fPIC'
8743         ;;
8744       m68k)
8745             # FIXME: we need at least 68020 code to build shared libraries, but
8746             # adding the `-m68020' flag to GCC prevents building anything better,
8747             # like `-m68040'.
8748             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8749         ;;
8750       esac
8751       ;;
8752
8753     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8754       # PIC is the default for these OSes.
8755       ;;
8756
8757     mingw* | cygwin* | pw32* | os2* | cegcc*)
8758       # This hack is so that the source file can tell whether it is being
8759       # built for inclusion in a dll (and should export symbols for example).
8760       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8761       # (--disable-auto-import) libraries
8762       lt_prog_compiler_pic='-DDLL_EXPORT'
8763       ;;
8764
8765     darwin* | rhapsody*)
8766       # PIC is the default on this platform
8767       # Common symbols not allowed in MH_DYLIB files
8768       lt_prog_compiler_pic='-fno-common'
8769       ;;
8770
8771     haiku*)
8772       # PIC is the default for Haiku.
8773       # The "-static" flag exists, but is broken.
8774       lt_prog_compiler_static=
8775       ;;
8776
8777     hpux*)
8778       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8779       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8780       # sets the default TLS model and affects inlining.
8781       case $host_cpu in
8782       hppa*64*)
8783         # +Z the default
8784         ;;
8785       *)
8786         lt_prog_compiler_pic='-fPIC'
8787         ;;
8788       esac
8789       ;;
8790
8791     interix[3-9]*)
8792       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8793       # Instead, we relocate shared libraries at runtime.
8794       ;;
8795
8796     msdosdjgpp*)
8797       # Just because we use GCC doesn't mean we suddenly get shared libraries
8798       # on systems that don't support them.
8799       lt_prog_compiler_can_build_shared=no
8800       enable_shared=no
8801       ;;
8802
8803     *nto* | *qnx*)
8804       # QNX uses GNU C++, but need to define -shared option too, otherwise
8805       # it will coredump.
8806       lt_prog_compiler_pic='-fPIC -shared'
8807       ;;
8808
8809     sysv4*MP*)
8810       if test -d /usr/nec; then
8811         lt_prog_compiler_pic=-Kconform_pic
8812       fi
8813       ;;
8814
8815     *)
8816       lt_prog_compiler_pic='-fPIC'
8817       ;;
8818     esac
8819
8820     case $cc_basename in
8821     nvcc*) # Cuda Compiler Driver 2.2
8822       lt_prog_compiler_wl='-Xlinker '
8823       if test -n "$lt_prog_compiler_pic"; then
8824         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8825       fi
8826       ;;
8827     esac
8828   else
8829     # PORTME Check for flag to pass linker flags through the system compiler.
8830     case $host_os in
8831     aix*)
8832       lt_prog_compiler_wl='-Wl,'
8833       if test "$host_cpu" = ia64; then
8834         # AIX 5 now supports IA64 processor
8835         lt_prog_compiler_static='-Bstatic'
8836       else
8837         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8838       fi
8839       ;;
8840
8841     mingw* | cygwin* | pw32* | os2* | cegcc*)
8842       # This hack is so that the source file can tell whether it is being
8843       # built for inclusion in a dll (and should export symbols for example).
8844       lt_prog_compiler_pic='-DDLL_EXPORT'
8845       ;;
8846
8847     hpux9* | hpux10* | hpux11*)
8848       lt_prog_compiler_wl='-Wl,'
8849       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8850       # not for PA HP-UX.
8851       case $host_cpu in
8852       hppa*64*|ia64*)
8853         # +Z the default
8854         ;;
8855       *)
8856         lt_prog_compiler_pic='+Z'
8857         ;;
8858       esac
8859       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8860       lt_prog_compiler_static='${wl}-a ${wl}archive'
8861       ;;
8862
8863     irix5* | irix6* | nonstopux*)
8864       lt_prog_compiler_wl='-Wl,'
8865       # PIC (with -KPIC) is the default.
8866       lt_prog_compiler_static='-non_shared'
8867       ;;
8868
8869     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8870       case $cc_basename in
8871       # old Intel for x86_64 which still supported -KPIC.
8872       ecc*)
8873         lt_prog_compiler_wl='-Wl,'
8874         lt_prog_compiler_pic='-KPIC'
8875         lt_prog_compiler_static='-static'
8876         ;;
8877       # icc used to be incompatible with GCC.
8878       # ICC 10 doesn't accept -KPIC any more.
8879       icc* | ifort*)
8880         lt_prog_compiler_wl='-Wl,'
8881         lt_prog_compiler_pic='-fPIC'
8882         lt_prog_compiler_static='-static'
8883         ;;
8884       # Lahey Fortran 8.1.
8885       lf95*)
8886         lt_prog_compiler_wl='-Wl,'
8887         lt_prog_compiler_pic='--shared'
8888         lt_prog_compiler_static='--static'
8889         ;;
8890       nagfor*)
8891         # NAG Fortran compiler
8892         lt_prog_compiler_wl='-Wl,-Wl,,'
8893         lt_prog_compiler_pic='-PIC'
8894         lt_prog_compiler_static='-Bstatic'
8895         ;;
8896       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8897         # Portland Group compilers (*not* the Pentium gcc compiler,
8898         # which looks to be a dead project)
8899         lt_prog_compiler_wl='-Wl,'
8900         lt_prog_compiler_pic='-fpic'
8901         lt_prog_compiler_static='-Bstatic'
8902         ;;
8903       ccc*)
8904         lt_prog_compiler_wl='-Wl,'
8905         # All Alpha code is PIC.
8906         lt_prog_compiler_static='-non_shared'
8907         ;;
8908       xl* | bgxl* | bgf* | mpixl*)
8909         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8910         lt_prog_compiler_wl='-Wl,'
8911         lt_prog_compiler_pic='-qpic'
8912         lt_prog_compiler_static='-qstaticlink'
8913         ;;
8914       *)
8915         case `$CC -V 2>&1 | sed 5q` in
8916         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8917           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8918           lt_prog_compiler_pic='-KPIC'
8919           lt_prog_compiler_static='-Bstatic'
8920           lt_prog_compiler_wl=''
8921           ;;
8922         *Sun\ F* | *Sun*Fortran*)
8923           lt_prog_compiler_pic='-KPIC'
8924           lt_prog_compiler_static='-Bstatic'
8925           lt_prog_compiler_wl='-Qoption ld '
8926           ;;
8927         *Sun\ C*)
8928           # Sun C 5.9
8929           lt_prog_compiler_pic='-KPIC'
8930           lt_prog_compiler_static='-Bstatic'
8931           lt_prog_compiler_wl='-Wl,'
8932           ;;
8933         *Intel*\ [CF]*Compiler*)
8934           lt_prog_compiler_wl='-Wl,'
8935           lt_prog_compiler_pic='-fPIC'
8936           lt_prog_compiler_static='-static'
8937           ;;
8938         *Portland\ Group*)
8939           lt_prog_compiler_wl='-Wl,'
8940           lt_prog_compiler_pic='-fpic'
8941           lt_prog_compiler_static='-Bstatic'
8942           ;;
8943         esac
8944         ;;
8945       esac
8946       ;;
8947
8948     newsos6)
8949       lt_prog_compiler_pic='-KPIC'
8950       lt_prog_compiler_static='-Bstatic'
8951       ;;
8952
8953     *nto* | *qnx*)
8954       # QNX uses GNU C++, but need to define -shared option too, otherwise
8955       # it will coredump.
8956       lt_prog_compiler_pic='-fPIC -shared'
8957       ;;
8958
8959     osf3* | osf4* | osf5*)
8960       lt_prog_compiler_wl='-Wl,'
8961       # All OSF/1 code is PIC.
8962       lt_prog_compiler_static='-non_shared'
8963       ;;
8964
8965     rdos*)
8966       lt_prog_compiler_static='-non_shared'
8967       ;;
8968
8969     solaris*)
8970       lt_prog_compiler_pic='-KPIC'
8971       lt_prog_compiler_static='-Bstatic'
8972       case $cc_basename in
8973       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8974         lt_prog_compiler_wl='-Qoption ld ';;
8975       *)
8976         lt_prog_compiler_wl='-Wl,';;
8977       esac
8978       ;;
8979
8980     sunos4*)
8981       lt_prog_compiler_wl='-Qoption ld '
8982       lt_prog_compiler_pic='-PIC'
8983       lt_prog_compiler_static='-Bstatic'
8984       ;;
8985
8986     sysv4 | sysv4.2uw2* | sysv4.3*)
8987       lt_prog_compiler_wl='-Wl,'
8988       lt_prog_compiler_pic='-KPIC'
8989       lt_prog_compiler_static='-Bstatic'
8990       ;;
8991
8992     sysv4*MP*)
8993       if test -d /usr/nec ;then
8994         lt_prog_compiler_pic='-Kconform_pic'
8995         lt_prog_compiler_static='-Bstatic'
8996       fi
8997       ;;
8998
8999     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9000       lt_prog_compiler_wl='-Wl,'
9001       lt_prog_compiler_pic='-KPIC'
9002       lt_prog_compiler_static='-Bstatic'
9003       ;;
9004
9005     unicos*)
9006       lt_prog_compiler_wl='-Wl,'
9007       lt_prog_compiler_can_build_shared=no
9008       ;;
9009
9010     uts4*)
9011       lt_prog_compiler_pic='-pic'
9012       lt_prog_compiler_static='-Bstatic'
9013       ;;
9014
9015     *)
9016       lt_prog_compiler_can_build_shared=no
9017       ;;
9018     esac
9019   fi
9020
9021 case $host_os in
9022   # For platforms which do not support PIC, -DPIC is meaningless:
9023   *djgpp*)
9024     lt_prog_compiler_pic=
9025     ;;
9026   *)
9027     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9028     ;;
9029 esac
9030
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9032 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9033 if ${lt_cv_prog_compiler_pic+:} false; then :
9034   $as_echo_n "(cached) " >&6
9035 else
9036   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9037 fi
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9039 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9040 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9041
9042 #
9043 # Check to make sure the PIC flag actually works.
9044 #
9045 if test -n "$lt_prog_compiler_pic"; then
9046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9047 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9048 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9049   $as_echo_n "(cached) " >&6
9050 else
9051   lt_cv_prog_compiler_pic_works=no
9052    ac_outfile=conftest.$ac_objext
9053    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9054    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9055    # Insert the option either (1) after the last *FLAGS variable, or
9056    # (2) before a word containing "conftest.", or (3) at the end.
9057    # Note that $ac_compile itself does not contain backslashes and begins
9058    # with a dollar sign (not a hyphen), so the echo should work correctly.
9059    # The option is referenced via a variable to avoid confusing sed.
9060    lt_compile=`echo "$ac_compile" | $SED \
9061    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9062    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9063    -e 's:$: $lt_compiler_flag:'`
9064    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9065    (eval "$lt_compile" 2>conftest.err)
9066    ac_status=$?
9067    cat conftest.err >&5
9068    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069    if (exit $ac_status) && test -s "$ac_outfile"; then
9070      # The compiler can only warn and ignore the option if not recognized
9071      # So say no if there are warnings other than the usual output.
9072      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9073      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9074      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9075        lt_cv_prog_compiler_pic_works=yes
9076      fi
9077    fi
9078    $RM conftest*
9079
9080 fi
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9082 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9083
9084 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9085     case $lt_prog_compiler_pic in
9086      "" | " "*) ;;
9087      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9088      esac
9089 else
9090     lt_prog_compiler_pic=
9091      lt_prog_compiler_can_build_shared=no
9092 fi
9093
9094 fi
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106 #
9107 # Check to make sure the static flag actually works.
9108 #
9109 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9111 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9112 if ${lt_cv_prog_compiler_static_works+:} false; then :
9113   $as_echo_n "(cached) " >&6
9114 else
9115   lt_cv_prog_compiler_static_works=no
9116    save_LDFLAGS="$LDFLAGS"
9117    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9118    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9119    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9120      # The linker can only warn and ignore the option if not recognized
9121      # So say no if there are warnings
9122      if test -s conftest.err; then
9123        # Append any errors to the config.log.
9124        cat conftest.err 1>&5
9125        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9126        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9127        if diff conftest.exp conftest.er2 >/dev/null; then
9128          lt_cv_prog_compiler_static_works=yes
9129        fi
9130      else
9131        lt_cv_prog_compiler_static_works=yes
9132      fi
9133    fi
9134    $RM -r conftest*
9135    LDFLAGS="$save_LDFLAGS"
9136
9137 fi
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9139 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9140
9141 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9142     :
9143 else
9144     lt_prog_compiler_static=
9145 fi
9146
9147
9148
9149
9150
9151
9152
9153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9154 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9155 if ${lt_cv_prog_compiler_c_o+:} false; then :
9156   $as_echo_n "(cached) " >&6
9157 else
9158   lt_cv_prog_compiler_c_o=no
9159    $RM -r conftest 2>/dev/null
9160    mkdir conftest
9161    cd conftest
9162    mkdir out
9163    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9164
9165    lt_compiler_flag="-o out/conftest2.$ac_objext"
9166    # Insert the option either (1) after the last *FLAGS variable, or
9167    # (2) before a word containing "conftest.", or (3) at the end.
9168    # Note that $ac_compile itself does not contain backslashes and begins
9169    # with a dollar sign (not a hyphen), so the echo should work correctly.
9170    lt_compile=`echo "$ac_compile" | $SED \
9171    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9172    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9173    -e 's:$: $lt_compiler_flag:'`
9174    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9175    (eval "$lt_compile" 2>out/conftest.err)
9176    ac_status=$?
9177    cat out/conftest.err >&5
9178    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9180    then
9181      # The compiler can only warn and ignore the option if not recognized
9182      # So say no if there are warnings
9183      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9184      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9185      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9186        lt_cv_prog_compiler_c_o=yes
9187      fi
9188    fi
9189    chmod u+w . 2>&5
9190    $RM conftest*
9191    # SGI C++ compiler will create directory out/ii_files/ for
9192    # template instantiation
9193    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9194    $RM out/* && rmdir out
9195    cd ..
9196    $RM -r conftest
9197    $RM conftest*
9198
9199 fi
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9201 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9202
9203
9204
9205
9206
9207
9208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9209 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9210 if ${lt_cv_prog_compiler_c_o+:} false; then :
9211   $as_echo_n "(cached) " >&6
9212 else
9213   lt_cv_prog_compiler_c_o=no
9214    $RM -r conftest 2>/dev/null
9215    mkdir conftest
9216    cd conftest
9217    mkdir out
9218    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9219
9220    lt_compiler_flag="-o out/conftest2.$ac_objext"
9221    # Insert the option either (1) after the last *FLAGS variable, or
9222    # (2) before a word containing "conftest.", or (3) at the end.
9223    # Note that $ac_compile itself does not contain backslashes and begins
9224    # with a dollar sign (not a hyphen), so the echo should work correctly.
9225    lt_compile=`echo "$ac_compile" | $SED \
9226    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9227    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9228    -e 's:$: $lt_compiler_flag:'`
9229    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9230    (eval "$lt_compile" 2>out/conftest.err)
9231    ac_status=$?
9232    cat out/conftest.err >&5
9233    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9235    then
9236      # The compiler can only warn and ignore the option if not recognized
9237      # So say no if there are warnings
9238      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9239      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9240      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9241        lt_cv_prog_compiler_c_o=yes
9242      fi
9243    fi
9244    chmod u+w . 2>&5
9245    $RM conftest*
9246    # SGI C++ compiler will create directory out/ii_files/ for
9247    # template instantiation
9248    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9249    $RM out/* && rmdir out
9250    cd ..
9251    $RM -r conftest
9252    $RM conftest*
9253
9254 fi
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9256 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9257
9258
9259
9260
9261 hard_links="nottested"
9262 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9263   # do not overwrite the value of need_locks provided by the user
9264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9265 $as_echo_n "checking if we can lock with hard links... " >&6; }
9266   hard_links=yes
9267   $RM conftest*
9268   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9269   touch conftest.a
9270   ln conftest.a conftest.b 2>&5 || hard_links=no
9271   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9273 $as_echo "$hard_links" >&6; }
9274   if test "$hard_links" = no; then
9275     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9276 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9277     need_locks=warn
9278   fi
9279 else
9280   need_locks=no
9281 fi
9282
9283
9284
9285
9286
9287
9288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9289 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9290
9291   runpath_var=
9292   allow_undefined_flag=
9293   always_export_symbols=no
9294   archive_cmds=
9295   archive_expsym_cmds=
9296   compiler_needs_object=no
9297   enable_shared_with_static_runtimes=no
9298   export_dynamic_flag_spec=
9299   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9300   hardcode_automatic=no
9301   hardcode_direct=no
9302   hardcode_direct_absolute=no
9303   hardcode_libdir_flag_spec=
9304   hardcode_libdir_separator=
9305   hardcode_minus_L=no
9306   hardcode_shlibpath_var=unsupported
9307   inherit_rpath=no
9308   link_all_deplibs=unknown
9309   module_cmds=
9310   module_expsym_cmds=
9311   old_archive_from_new_cmds=
9312   old_archive_from_expsyms_cmds=
9313   thread_safe_flag_spec=
9314   whole_archive_flag_spec=
9315   # include_expsyms should be a list of space-separated symbols to be *always*
9316   # included in the symbol list
9317   include_expsyms=
9318   # exclude_expsyms can be an extended regexp of symbols to exclude
9319   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9320   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9321   # as well as any symbol that contains `d'.
9322   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9323   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9324   # platforms (ab)use it in PIC code, but their linkers get confused if
9325   # the symbol is explicitly referenced.  Since portable code cannot
9326   # rely on this symbol name, it's probably fine to never include it in
9327   # preloaded symbol tables.
9328   # Exclude shared library initialization/finalization symbols.
9329   extract_expsyms_cmds=
9330
9331   case $host_os in
9332   cygwin* | mingw* | pw32* | cegcc*)
9333     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9334     # When not using gcc, we currently assume that we are using
9335     # Microsoft Visual C++.
9336     if test "$GCC" != yes; then
9337       with_gnu_ld=no
9338     fi
9339     ;;
9340   interix*)
9341     # we just hope/assume this is gcc and not c89 (= MSVC++)
9342     with_gnu_ld=yes
9343     ;;
9344   openbsd*)
9345     with_gnu_ld=no
9346     ;;
9347   linux* | k*bsd*-gnu | gnu*)
9348     link_all_deplibs=no
9349     ;;
9350   esac
9351
9352   ld_shlibs=yes
9353
9354   # On some targets, GNU ld is compatible enough with the native linker
9355   # that we're better off using the native interface for both.
9356   lt_use_gnu_ld_interface=no
9357   if test "$with_gnu_ld" = yes; then
9358     case $host_os in
9359       aix*)
9360         # The AIX port of GNU ld has always aspired to compatibility
9361         # with the native linker.  However, as the warning in the GNU ld
9362         # block says, versions before 2.19.5* couldn't really create working
9363         # shared libraries, regardless of the interface used.
9364         case `$LD -v 2>&1` in
9365           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9366           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9367           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9368           *)
9369             lt_use_gnu_ld_interface=yes
9370             ;;
9371         esac
9372         ;;
9373       *)
9374         lt_use_gnu_ld_interface=yes
9375         ;;
9376     esac
9377   fi
9378
9379   if test "$lt_use_gnu_ld_interface" = yes; then
9380     # If archive_cmds runs LD, not CC, wlarc should be empty
9381     wlarc='${wl}'
9382
9383     # Set some defaults for GNU ld with shared library support. These
9384     # are reset later if shared libraries are not supported. Putting them
9385     # here allows them to be overridden if necessary.
9386     runpath_var=LD_RUN_PATH
9387     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9388     export_dynamic_flag_spec='${wl}--export-dynamic'
9389     # ancient GNU ld didn't support --whole-archive et. al.
9390     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9391       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9392     else
9393       whole_archive_flag_spec=
9394     fi
9395     supports_anon_versioning=no
9396     case `$LD -v 2>&1` in
9397       *GNU\ gold*) supports_anon_versioning=yes ;;
9398       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9399       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9400       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9401       *\ 2.11.*) ;; # other 2.11 versions
9402       *) supports_anon_versioning=yes ;;
9403     esac
9404
9405     # See if GNU ld supports shared libraries.
9406     case $host_os in
9407     aix[3-9]*)
9408       # On AIX/PPC, the GNU linker is very broken
9409       if test "$host_cpu" != ia64; then
9410         ld_shlibs=no
9411         cat <<_LT_EOF 1>&2
9412
9413 *** Warning: the GNU linker, at least up to release 2.19, is reported
9414 *** to be unable to reliably create shared libraries on AIX.
9415 *** Therefore, libtool is disabling shared libraries support.  If you
9416 *** really care for shared libraries, you may want to install binutils
9417 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9418 *** You will then need to restart the configuration process.
9419
9420 _LT_EOF
9421       fi
9422       ;;
9423
9424     amigaos*)
9425       case $host_cpu in
9426       powerpc)
9427             # see comment about AmigaOS4 .so support
9428             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9429             archive_expsym_cmds=''
9430         ;;
9431       m68k)
9432             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)'
9433             hardcode_libdir_flag_spec='-L$libdir'
9434             hardcode_minus_L=yes
9435         ;;
9436       esac
9437       ;;
9438
9439     beos*)
9440       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9441         allow_undefined_flag=unsupported
9442         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9443         # support --undefined.  This deserves some investigation.  FIXME
9444         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9445       else
9446         ld_shlibs=no
9447       fi
9448       ;;
9449
9450     cygwin* | mingw* | pw32* | cegcc*)
9451       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9452       # as there is no search path for DLLs.
9453       hardcode_libdir_flag_spec='-L$libdir'
9454       export_dynamic_flag_spec='${wl}--export-all-symbols'
9455       allow_undefined_flag=unsupported
9456       always_export_symbols=no
9457       enable_shared_with_static_runtimes=yes
9458       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9459       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9460
9461       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9462         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9463         # If the export-symbols file already is a .def file (1st line
9464         # is EXPORTS), use it as is; otherwise, prepend...
9465         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9466           cp $export_symbols $output_objdir/$soname.def;
9467         else
9468           echo EXPORTS > $output_objdir/$soname.def;
9469           cat $export_symbols >> $output_objdir/$soname.def;
9470         fi~
9471         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9472       else
9473         ld_shlibs=no
9474       fi
9475       ;;
9476
9477     haiku*)
9478       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9479       link_all_deplibs=yes
9480       ;;
9481
9482     interix[3-9]*)
9483       hardcode_direct=no
9484       hardcode_shlibpath_var=no
9485       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9486       export_dynamic_flag_spec='${wl}-E'
9487       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9488       # Instead, shared libraries are loaded at an image base (0x10000000 by
9489       # default) and relocated if they conflict, which is a slow very memory
9490       # consuming and fragmenting process.  To avoid this, we pick a random,
9491       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9492       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9493       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9494       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'
9495       ;;
9496
9497     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9498       tmp_diet=no
9499       if test "$host_os" = linux-dietlibc; then
9500         case $cc_basename in
9501           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9502         esac
9503       fi
9504       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9505          && test "$tmp_diet" = no
9506       then
9507         tmp_addflag=' $pic_flag'
9508         tmp_sharedflag='-shared'
9509         case $cc_basename,$host_cpu in
9510         pgcc*)                          # Portland Group C compiler
9511           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'
9512           tmp_addflag=' $pic_flag'
9513           ;;
9514         pgf77* | pgf90* | pgf95* | pgfortran*)
9515                                         # Portland Group f77 and f90 compilers
9516           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'
9517           tmp_addflag=' $pic_flag -Mnomain' ;;
9518         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9519           tmp_addflag=' -i_dynamic' ;;
9520         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9521           tmp_addflag=' -i_dynamic -nofor_main' ;;
9522         ifc* | ifort*)                  # Intel Fortran compiler
9523           tmp_addflag=' -nofor_main' ;;
9524         lf95*)                          # Lahey Fortran 8.1
9525           whole_archive_flag_spec=
9526           tmp_sharedflag='--shared' ;;
9527         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9528           tmp_sharedflag='-qmkshrobj'
9529           tmp_addflag= ;;
9530         nvcc*)  # Cuda Compiler Driver 2.2
9531           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'
9532           compiler_needs_object=yes
9533           ;;
9534         esac
9535         case `$CC -V 2>&1 | sed 5q` in
9536         *Sun\ C*)                       # Sun C 5.9
9537           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'
9538           compiler_needs_object=yes
9539           tmp_sharedflag='-G' ;;
9540         *Sun\ F*)                       # Sun Fortran 8.3
9541           tmp_sharedflag='-G' ;;
9542         esac
9543         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9544
9545         if test "x$supports_anon_versioning" = xyes; then
9546           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9547             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9548             echo "local: *; };" >> $output_objdir/$libname.ver~
9549             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9550         fi
9551
9552         case $cc_basename in
9553         xlf* | bgf* | bgxlf* | mpixlf*)
9554           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9555           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9556           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9557           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9558           if test "x$supports_anon_versioning" = xyes; then
9559             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9560               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9561               echo "local: *; };" >> $output_objdir/$libname.ver~
9562               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9563           fi
9564           ;;
9565         esac
9566       else
9567         ld_shlibs=no
9568       fi
9569       ;;
9570
9571     netbsd* | netbsdelf*-gnu)
9572       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9573         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9574         wlarc=
9575       else
9576         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9577         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9578       fi
9579       ;;
9580
9581     solaris*)
9582       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9583         ld_shlibs=no
9584         cat <<_LT_EOF 1>&2
9585
9586 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9587 *** create shared libraries on Solaris systems.  Therefore, libtool
9588 *** is disabling shared libraries support.  We urge you to upgrade GNU
9589 *** binutils to release 2.9.1 or newer.  Another option is to modify
9590 *** your PATH or compiler configuration so that the native linker is
9591 *** used, and then restart.
9592
9593 _LT_EOF
9594       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9595         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9596         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9597       else
9598         ld_shlibs=no
9599       fi
9600       ;;
9601
9602     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9603       case `$LD -v 2>&1` in
9604         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9605         ld_shlibs=no
9606         cat <<_LT_EOF 1>&2
9607
9608 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9609 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9610 *** is disabling shared libraries support.  We urge you to upgrade GNU
9611 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9612 *** your PATH or compiler configuration so that the native linker is
9613 *** used, and then restart.
9614
9615 _LT_EOF
9616         ;;
9617         *)
9618           # For security reasons, it is highly recommended that you always
9619           # use absolute paths for naming shared libraries, and exclude the
9620           # DT_RUNPATH tag from executables and libraries.  But doing so
9621           # requires that you compile everything twice, which is a pain.
9622           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9623             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9624             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9625             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9626           else
9627             ld_shlibs=no
9628           fi
9629         ;;
9630       esac
9631       ;;
9632
9633     sunos4*)
9634       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9635       wlarc=
9636       hardcode_direct=yes
9637       hardcode_shlibpath_var=no
9638       ;;
9639
9640     *)
9641       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9642         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9643         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9644       else
9645         ld_shlibs=no
9646       fi
9647       ;;
9648     esac
9649
9650     if test "$ld_shlibs" = no; then
9651       runpath_var=
9652       hardcode_libdir_flag_spec=
9653       export_dynamic_flag_spec=
9654       whole_archive_flag_spec=
9655     fi
9656   else
9657     # PORTME fill in a description of your system's linker (not GNU ld)
9658     case $host_os in
9659     aix3*)
9660       allow_undefined_flag=unsupported
9661       always_export_symbols=yes
9662       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'
9663       # Note: this linker hardcodes the directories in LIBPATH if there
9664       # are no directories specified by -L.
9665       hardcode_minus_L=yes
9666       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9667         # Neither direct hardcoding nor static linking is supported with a
9668         # broken collect2.
9669         hardcode_direct=unsupported
9670       fi
9671       ;;
9672
9673     aix[4-9]*)
9674       if test "$host_cpu" = ia64; then
9675         # On IA64, the linker does run time linking by default, so we don't
9676         # have to do anything special.
9677         aix_use_runtimelinking=no
9678         exp_sym_flag='-Bexport'
9679         no_entry_flag=""
9680       else
9681         # If we're using GNU nm, then we don't want the "-C" option.
9682         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9683         # Also, AIX nm treats weak defined symbols like other global
9684         # defined symbols, whereas GNU nm marks them as "W".
9685         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9686           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'
9687         else
9688           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'
9689         fi
9690         aix_use_runtimelinking=no
9691
9692         # Test if we are trying to use run time linking or normal
9693         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9694         # need to do runtime linking.
9695         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9696           for ld_flag in $LDFLAGS; do
9697           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9698             aix_use_runtimelinking=yes
9699             break
9700           fi
9701           done
9702           ;;
9703         esac
9704
9705         exp_sym_flag='-bexport'
9706         no_entry_flag='-bnoentry'
9707       fi
9708
9709       # When large executables or shared objects are built, AIX ld can
9710       # have problems creating the table of contents.  If linking a library
9711       # or program results in "error TOC overflow" add -mminimal-toc to
9712       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9713       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9714
9715       archive_cmds=''
9716       hardcode_direct=yes
9717       hardcode_direct_absolute=yes
9718       hardcode_libdir_separator=':'
9719       link_all_deplibs=yes
9720       file_list_spec='${wl}-f,'
9721
9722       if test "$GCC" = yes; then
9723         case $host_os in aix4.[012]|aix4.[012].*)
9724         # We only want to do this on AIX 4.2 and lower, the check
9725         # below for broken collect2 doesn't work under 4.3+
9726           collect2name=`${CC} -print-prog-name=collect2`
9727           if test -f "$collect2name" &&
9728            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9729           then
9730           # We have reworked collect2
9731           :
9732           else
9733           # We have old collect2
9734           hardcode_direct=unsupported
9735           # It fails to find uninstalled libraries when the uninstalled
9736           # path is not listed in the libpath.  Setting hardcode_minus_L
9737           # to unsupported forces relinking
9738           hardcode_minus_L=yes
9739           hardcode_libdir_flag_spec='-L$libdir'
9740           hardcode_libdir_separator=
9741           fi
9742           ;;
9743         esac
9744         shared_flag='-shared'
9745         if test "$aix_use_runtimelinking" = yes; then
9746           shared_flag="$shared_flag "'${wl}-G'
9747         fi
9748         link_all_deplibs=no
9749       else
9750         # not using gcc
9751         if test "$host_cpu" = ia64; then
9752         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9753         # chokes on -Wl,-G. The following line is correct:
9754           shared_flag='-G'
9755         else
9756           if test "$aix_use_runtimelinking" = yes; then
9757             shared_flag='${wl}-G'
9758           else
9759             shared_flag='${wl}-bM:SRE'
9760           fi
9761         fi
9762       fi
9763
9764       export_dynamic_flag_spec='${wl}-bexpall'
9765       # It seems that -bexpall does not export symbols beginning with
9766       # underscore (_), so it is better to generate a list of symbols to export.
9767       always_export_symbols=yes
9768       if test "$aix_use_runtimelinking" = yes; then
9769         # Warning - without using the other runtime loading flags (-brtl),
9770         # -berok will link without error, but may produce a broken library.
9771         allow_undefined_flag='-berok'
9772         # Determine the default libpath from the value encoded in an
9773         # empty executable.
9774         if test "${lt_cv_aix_libpath+set}" = set; then
9775   aix_libpath=$lt_cv_aix_libpath
9776 else
9777   if ${lt_cv_aix_libpath_+:} false; then :
9778   $as_echo_n "(cached) " >&6
9779 else
9780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781 /* end confdefs.h.  */
9782
9783 int
9784 main ()
9785 {
9786
9787   ;
9788   return 0;
9789 }
9790 _ACEOF
9791 if ac_fn_c_try_link "$LINENO"; then :
9792
9793   lt_aix_libpath_sed='
9794       /Import File Strings/,/^$/ {
9795           /^0/ {
9796               s/^0  *\([^ ]*\) *$/\1/
9797               p
9798           }
9799       }'
9800   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9801   # Check for a 64-bit object if we didn't find anything.
9802   if test -z "$lt_cv_aix_libpath_"; then
9803     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9804   fi
9805 fi
9806 rm -f core conftest.err conftest.$ac_objext \
9807     conftest$ac_exeext conftest.$ac_ext
9808   if test -z "$lt_cv_aix_libpath_"; then
9809     lt_cv_aix_libpath_="/usr/lib:/lib"
9810   fi
9811
9812 fi
9813
9814   aix_libpath=$lt_cv_aix_libpath_
9815 fi
9816
9817         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9818         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"
9819       else
9820         if test "$host_cpu" = ia64; then
9821           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9822           allow_undefined_flag="-z nodefs"
9823           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"
9824         else
9825          # Determine the default libpath from the value encoded in an
9826          # empty executable.
9827          if test "${lt_cv_aix_libpath+set}" = set; then
9828   aix_libpath=$lt_cv_aix_libpath
9829 else
9830   if ${lt_cv_aix_libpath_+:} false; then :
9831   $as_echo_n "(cached) " >&6
9832 else
9833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834 /* end confdefs.h.  */
9835
9836 int
9837 main ()
9838 {
9839
9840   ;
9841   return 0;
9842 }
9843 _ACEOF
9844 if ac_fn_c_try_link "$LINENO"; then :
9845
9846   lt_aix_libpath_sed='
9847       /Import File Strings/,/^$/ {
9848           /^0/ {
9849               s/^0  *\([^ ]*\) *$/\1/
9850               p
9851           }
9852       }'
9853   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9854   # Check for a 64-bit object if we didn't find anything.
9855   if test -z "$lt_cv_aix_libpath_"; then
9856     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9857   fi
9858 fi
9859 rm -f core conftest.err conftest.$ac_objext \
9860     conftest$ac_exeext conftest.$ac_ext
9861   if test -z "$lt_cv_aix_libpath_"; then
9862     lt_cv_aix_libpath_="/usr/lib:/lib"
9863   fi
9864
9865 fi
9866
9867   aix_libpath=$lt_cv_aix_libpath_
9868 fi
9869
9870          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9871           # Warning - without using the other run time loading flags,
9872           # -berok will link without error, but may produce a broken library.
9873           no_undefined_flag=' ${wl}-bernotok'
9874           allow_undefined_flag=' ${wl}-berok'
9875           if test "$with_gnu_ld" = yes; then
9876             # We only use this code for GNU lds that support --whole-archive.
9877             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9878           else
9879             # Exported symbols can be pulled into shared objects from archives
9880             whole_archive_flag_spec='$convenience'
9881           fi
9882           archive_cmds_need_lc=yes
9883           # This is similar to how AIX traditionally builds its shared libraries.
9884           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'
9885         fi
9886       fi
9887       ;;
9888
9889     amigaos*)
9890       case $host_cpu in
9891       powerpc)
9892             # see comment about AmigaOS4 .so support
9893             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9894             archive_expsym_cmds=''
9895         ;;
9896       m68k)
9897             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)'
9898             hardcode_libdir_flag_spec='-L$libdir'
9899             hardcode_minus_L=yes
9900         ;;
9901       esac
9902       ;;
9903
9904     bsdi[45]*)
9905       export_dynamic_flag_spec=-rdynamic
9906       ;;
9907
9908     cygwin* | mingw* | pw32* | cegcc*)
9909       # When not using gcc, we currently assume that we are using
9910       # Microsoft Visual C++.
9911       # hardcode_libdir_flag_spec is actually meaningless, as there is
9912       # no search path for DLLs.
9913       case $cc_basename in
9914       cl*)
9915         # Native MSVC
9916         hardcode_libdir_flag_spec=' '
9917         allow_undefined_flag=unsupported
9918         always_export_symbols=yes
9919         file_list_spec='@'
9920         # Tell ltmain to make .lib files, not .a files.
9921         libext=lib
9922         # Tell ltmain to make .dll files, not .so files.
9923         shrext_cmds=".dll"
9924         # FIXME: Setting linknames here is a bad hack.
9925         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9926         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9927             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9928           else
9929             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9930           fi~
9931           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9932           linknames='
9933         # The linker will not automatically build a static lib if we build a DLL.
9934         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9935         enable_shared_with_static_runtimes=yes
9936         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9937         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9938         # Don't use ranlib
9939         old_postinstall_cmds='chmod 644 $oldlib'
9940         postlink_cmds='lt_outputfile="@OUTPUT@"~
9941           lt_tool_outputfile="@TOOL_OUTPUT@"~
9942           case $lt_outputfile in
9943             *.exe|*.EXE) ;;
9944             *)
9945               lt_outputfile="$lt_outputfile.exe"
9946               lt_tool_outputfile="$lt_tool_outputfile.exe"
9947               ;;
9948           esac~
9949           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9950             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9951             $RM "$lt_outputfile.manifest";
9952           fi'
9953         ;;
9954       *)
9955         # Assume MSVC wrapper
9956         hardcode_libdir_flag_spec=' '
9957         allow_undefined_flag=unsupported
9958         # Tell ltmain to make .lib files, not .a files.
9959         libext=lib
9960         # Tell ltmain to make .dll files, not .so files.
9961         shrext_cmds=".dll"
9962         # FIXME: Setting linknames here is a bad hack.
9963         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9964         # The linker will automatically build a .lib file if we build a DLL.
9965         old_archive_from_new_cmds='true'
9966         # FIXME: Should let the user specify the lib program.
9967         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9968         enable_shared_with_static_runtimes=yes
9969         ;;
9970       esac
9971       ;;
9972
9973     darwin* | rhapsody*)
9974
9975
9976   archive_cmds_need_lc=no
9977   hardcode_direct=no
9978   hardcode_automatic=yes
9979   hardcode_shlibpath_var=unsupported
9980   if test "$lt_cv_ld_force_load" = "yes"; then
9981     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\"`'
9982
9983   else
9984     whole_archive_flag_spec=''
9985   fi
9986   link_all_deplibs=yes
9987   allow_undefined_flag="$_lt_dar_allow_undefined"
9988   case $cc_basename in
9989      ifort*) _lt_dar_can_shared=yes ;;
9990      *) _lt_dar_can_shared=$GCC ;;
9991   esac
9992   if test "$_lt_dar_can_shared" = "yes"; then
9993     output_verbose_link_cmd=func_echo_all
9994     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9995     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9996     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}"
9997     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}"
9998
9999   else
10000   ld_shlibs=no
10001   fi
10002
10003       ;;
10004
10005     dgux*)
10006       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10007       hardcode_libdir_flag_spec='-L$libdir'
10008       hardcode_shlibpath_var=no
10009       ;;
10010
10011     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10012     # support.  Future versions do this automatically, but an explicit c++rt0.o
10013     # does not break anything, and helps significantly (at the cost of a little
10014     # extra space).
10015     freebsd2.2*)
10016       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10017       hardcode_libdir_flag_spec='-R$libdir'
10018       hardcode_direct=yes
10019       hardcode_shlibpath_var=no
10020       ;;
10021
10022     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10023     freebsd2.*)
10024       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10025       hardcode_direct=yes
10026       hardcode_minus_L=yes
10027       hardcode_shlibpath_var=no
10028       ;;
10029
10030     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10031     freebsd* | dragonfly*)
10032       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10033       hardcode_libdir_flag_spec='-R$libdir'
10034       hardcode_direct=yes
10035       hardcode_shlibpath_var=no
10036       ;;
10037
10038     hpux9*)
10039       if test "$GCC" = yes; then
10040         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10041       else
10042         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'
10043       fi
10044       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10045       hardcode_libdir_separator=:
10046       hardcode_direct=yes
10047
10048       # hardcode_minus_L: Not really in the search PATH,
10049       # but as the default location of the library.
10050       hardcode_minus_L=yes
10051       export_dynamic_flag_spec='${wl}-E'
10052       ;;
10053
10054     hpux10*)
10055       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10056         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10057       else
10058         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10059       fi
10060       if test "$with_gnu_ld" = no; then
10061         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10062         hardcode_libdir_separator=:
10063         hardcode_direct=yes
10064         hardcode_direct_absolute=yes
10065         export_dynamic_flag_spec='${wl}-E'
10066         # hardcode_minus_L: Not really in the search PATH,
10067         # but as the default location of the library.
10068         hardcode_minus_L=yes
10069       fi
10070       ;;
10071
10072     hpux11*)
10073       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10074         case $host_cpu in
10075         hppa*64*)
10076           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10077           ;;
10078         ia64*)
10079           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10080           ;;
10081         *)
10082           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10083           ;;
10084         esac
10085       else
10086         case $host_cpu in
10087         hppa*64*)
10088           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10089           ;;
10090         ia64*)
10091           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10092           ;;
10093         *)
10094
10095           # Older versions of the 11.00 compiler do not understand -b yet
10096           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10097           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10098 $as_echo_n "checking if $CC understands -b... " >&6; }
10099 if ${lt_cv_prog_compiler__b+:} false; then :
10100   $as_echo_n "(cached) " >&6
10101 else
10102   lt_cv_prog_compiler__b=no
10103    save_LDFLAGS="$LDFLAGS"
10104    LDFLAGS="$LDFLAGS -b"
10105    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10106    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10107      # The linker can only warn and ignore the option if not recognized
10108      # So say no if there are warnings
10109      if test -s conftest.err; then
10110        # Append any errors to the config.log.
10111        cat conftest.err 1>&5
10112        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10113        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10114        if diff conftest.exp conftest.er2 >/dev/null; then
10115          lt_cv_prog_compiler__b=yes
10116        fi
10117      else
10118        lt_cv_prog_compiler__b=yes
10119      fi
10120    fi
10121    $RM -r conftest*
10122    LDFLAGS="$save_LDFLAGS"
10123
10124 fi
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10126 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10127
10128 if test x"$lt_cv_prog_compiler__b" = xyes; then
10129     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10130 else
10131     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10132 fi
10133
10134           ;;
10135         esac
10136       fi
10137       if test "$with_gnu_ld" = no; then
10138         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10139         hardcode_libdir_separator=:
10140
10141         case $host_cpu in
10142         hppa*64*|ia64*)
10143           hardcode_direct=no
10144           hardcode_shlibpath_var=no
10145           ;;
10146         *)
10147           hardcode_direct=yes
10148           hardcode_direct_absolute=yes
10149           export_dynamic_flag_spec='${wl}-E'
10150
10151           # hardcode_minus_L: Not really in the search PATH,
10152           # but as the default location of the library.
10153           hardcode_minus_L=yes
10154           ;;
10155         esac
10156       fi
10157       ;;
10158
10159     irix5* | irix6* | nonstopux*)
10160       if test "$GCC" = yes; then
10161         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10162         # Try to use the -exported_symbol ld option, if it does not
10163         # work, assume that -exports_file does not work either and
10164         # implicitly export all symbols.
10165         # This should be the same for all languages, so no per-tag cache variable.
10166         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10167 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10168 if ${lt_cv_irix_exported_symbol+:} false; then :
10169   $as_echo_n "(cached) " >&6
10170 else
10171   save_LDFLAGS="$LDFLAGS"
10172            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10173            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h.  */
10175 int foo (void) { return 0; }
10176 _ACEOF
10177 if ac_fn_c_try_link "$LINENO"; then :
10178   lt_cv_irix_exported_symbol=yes
10179 else
10180   lt_cv_irix_exported_symbol=no
10181 fi
10182 rm -f core conftest.err conftest.$ac_objext \
10183     conftest$ac_exeext conftest.$ac_ext
10184            LDFLAGS="$save_LDFLAGS"
10185 fi
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10187 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10188         if test "$lt_cv_irix_exported_symbol" = yes; then
10189           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10190         fi
10191       else
10192         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'
10193         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'
10194       fi
10195       archive_cmds_need_lc='no'
10196       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10197       hardcode_libdir_separator=:
10198       inherit_rpath=yes
10199       link_all_deplibs=yes
10200       ;;
10201
10202     netbsd* | netbsdelf*-gnu)
10203       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10204         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10205       else
10206         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10207       fi
10208       hardcode_libdir_flag_spec='-R$libdir'
10209       hardcode_direct=yes
10210       hardcode_shlibpath_var=no
10211       ;;
10212
10213     newsos6)
10214       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10215       hardcode_direct=yes
10216       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10217       hardcode_libdir_separator=:
10218       hardcode_shlibpath_var=no
10219       ;;
10220
10221     *nto* | *qnx*)
10222       ;;
10223
10224     openbsd*)
10225       if test -f /usr/libexec/ld.so; then
10226         hardcode_direct=yes
10227         hardcode_shlibpath_var=no
10228         hardcode_direct_absolute=yes
10229         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10230           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10231           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10232           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10233           export_dynamic_flag_spec='${wl}-E'
10234         else
10235           case $host_os in
10236            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10237              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10238              hardcode_libdir_flag_spec='-R$libdir'
10239              ;;
10240            *)
10241              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10242              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10243              ;;
10244           esac
10245         fi
10246       else
10247         ld_shlibs=no
10248       fi
10249       ;;
10250
10251     os2*)
10252       hardcode_libdir_flag_spec='-L$libdir'
10253       hardcode_minus_L=yes
10254       allow_undefined_flag=unsupported
10255       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'
10256       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10257       ;;
10258
10259     osf3*)
10260       if test "$GCC" = yes; then
10261         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10262         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'
10263       else
10264         allow_undefined_flag=' -expect_unresolved \*'
10265         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'
10266       fi
10267       archive_cmds_need_lc='no'
10268       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10269       hardcode_libdir_separator=:
10270       ;;
10271
10272     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10273       if test "$GCC" = yes; then
10274         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10275         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10276         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10277       else
10278         allow_undefined_flag=' -expect_unresolved \*'
10279         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'
10280         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~
10281         $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'
10282
10283         # Both c and cxx compiler support -rpath directly
10284         hardcode_libdir_flag_spec='-rpath $libdir'
10285       fi
10286       archive_cmds_need_lc='no'
10287       hardcode_libdir_separator=:
10288       ;;
10289
10290     solaris*)
10291       no_undefined_flag=' -z defs'
10292       if test "$GCC" = yes; then
10293         wlarc='${wl}'
10294         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10295         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10296           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10297       else
10298         case `$CC -V 2>&1` in
10299         *"Compilers 5.0"*)
10300           wlarc=''
10301           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10302           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10303           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10304           ;;
10305         *)
10306           wlarc='${wl}'
10307           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10308           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10309           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10310           ;;
10311         esac
10312       fi
10313       hardcode_libdir_flag_spec='-R$libdir'
10314       hardcode_shlibpath_var=no
10315       case $host_os in
10316       solaris2.[0-5] | solaris2.[0-5].*) ;;
10317       *)
10318         # The compiler driver will combine and reorder linker options,
10319         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10320         # but is careful enough not to reorder.
10321         # Supported since Solaris 2.6 (maybe 2.5.1?)
10322         if test "$GCC" = yes; then
10323           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10324         else
10325           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10326         fi
10327         ;;
10328       esac
10329       link_all_deplibs=yes
10330       ;;
10331
10332     sunos4*)
10333       if test "x$host_vendor" = xsequent; then
10334         # Use $CC to link under sequent, because it throws in some extra .o
10335         # files that make .init and .fini sections work.
10336         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10337       else
10338         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10339       fi
10340       hardcode_libdir_flag_spec='-L$libdir'
10341       hardcode_direct=yes
10342       hardcode_minus_L=yes
10343       hardcode_shlibpath_var=no
10344       ;;
10345
10346     sysv4)
10347       case $host_vendor in
10348         sni)
10349           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10350           hardcode_direct=yes # is this really true???
10351         ;;
10352         siemens)
10353           ## LD is ld it makes a PLAMLIB
10354           ## CC just makes a GrossModule.
10355           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10356           reload_cmds='$CC -r -o $output$reload_objs'
10357           hardcode_direct=no
10358         ;;
10359         motorola)
10360           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10361           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10362         ;;
10363       esac
10364       runpath_var='LD_RUN_PATH'
10365       hardcode_shlibpath_var=no
10366       ;;
10367
10368     sysv4.3*)
10369       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10370       hardcode_shlibpath_var=no
10371       export_dynamic_flag_spec='-Bexport'
10372       ;;
10373
10374     sysv4*MP*)
10375       if test -d /usr/nec; then
10376         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10377         hardcode_shlibpath_var=no
10378         runpath_var=LD_RUN_PATH
10379         hardcode_runpath_var=yes
10380         ld_shlibs=yes
10381       fi
10382       ;;
10383
10384     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10385       no_undefined_flag='${wl}-z,text'
10386       archive_cmds_need_lc=no
10387       hardcode_shlibpath_var=no
10388       runpath_var='LD_RUN_PATH'
10389
10390       if test "$GCC" = yes; then
10391         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10392         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10393       else
10394         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10395         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10396       fi
10397       ;;
10398
10399     sysv5* | sco3.2v5* | sco5v6*)
10400       # Note: We can NOT use -z defs as we might desire, because we do not
10401       # link with -lc, and that would cause any symbols used from libc to
10402       # always be unresolved, which means just about no library would
10403       # ever link correctly.  If we're not using GNU ld we use -z text
10404       # though, which does catch some bad symbols but isn't as heavy-handed
10405       # as -z defs.
10406       no_undefined_flag='${wl}-z,text'
10407       allow_undefined_flag='${wl}-z,nodefs'
10408       archive_cmds_need_lc=no
10409       hardcode_shlibpath_var=no
10410       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10411       hardcode_libdir_separator=':'
10412       link_all_deplibs=yes
10413       export_dynamic_flag_spec='${wl}-Bexport'
10414       runpath_var='LD_RUN_PATH'
10415
10416       if test "$GCC" = yes; then
10417         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10418         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10419       else
10420         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10421         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10422       fi
10423       ;;
10424
10425     uts4*)
10426       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10427       hardcode_libdir_flag_spec='-L$libdir'
10428       hardcode_shlibpath_var=no
10429       ;;
10430
10431     *)
10432       ld_shlibs=no
10433       ;;
10434     esac
10435
10436     if test x$host_vendor = xsni; then
10437       case $host in
10438       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10439         export_dynamic_flag_spec='${wl}-Blargedynsym'
10440         ;;
10441       esac
10442     fi
10443   fi
10444
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10446 $as_echo "$ld_shlibs" >&6; }
10447 test "$ld_shlibs" = no && can_build_shared=no
10448
10449 with_gnu_ld=$with_gnu_ld
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465 #
10466 # Do we need to explicitly link libc?
10467 #
10468 case "x$archive_cmds_need_lc" in
10469 x|xyes)
10470   # Assume -lc should be added
10471   archive_cmds_need_lc=yes
10472
10473   if test "$enable_shared" = yes && test "$GCC" = yes; then
10474     case $archive_cmds in
10475     *'~'*)
10476       # FIXME: we may have to deal with multi-command sequences.
10477       ;;
10478     '$CC '*)
10479       # Test whether the compiler implicitly links with -lc since on some
10480       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10481       # to ld, don't add -lc before -lgcc.
10482       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10483 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10484 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10485   $as_echo_n "(cached) " >&6
10486 else
10487   $RM conftest*
10488         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10489
10490         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10491   (eval $ac_compile) 2>&5
10492   ac_status=$?
10493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10494   test $ac_status = 0; } 2>conftest.err; then
10495           soname=conftest
10496           lib=conftest
10497           libobjs=conftest.$ac_objext
10498           deplibs=
10499           wl=$lt_prog_compiler_wl
10500           pic_flag=$lt_prog_compiler_pic
10501           compiler_flags=-v
10502           linker_flags=-v
10503           verstring=
10504           output_objdir=.
10505           libname=conftest
10506           lt_save_allow_undefined_flag=$allow_undefined_flag
10507           allow_undefined_flag=
10508           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10509   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10510   ac_status=$?
10511   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10512   test $ac_status = 0; }
10513           then
10514             lt_cv_archive_cmds_need_lc=no
10515           else
10516             lt_cv_archive_cmds_need_lc=yes
10517           fi
10518           allow_undefined_flag=$lt_save_allow_undefined_flag
10519         else
10520           cat conftest.err 1>&5
10521         fi
10522         $RM conftest*
10523
10524 fi
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10526 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10527       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10528       ;;
10529     esac
10530   fi
10531   ;;
10532 esac
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10686 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10687
10688 if test "$GCC" = yes; then
10689   case $host_os in
10690     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10691     *) lt_awk_arg="/^libraries:/" ;;
10692   esac
10693   case $host_os in
10694     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10695     *) lt_sed_strip_eq="s,=/,/,g" ;;
10696   esac
10697   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10698   case $lt_search_path_spec in
10699   *\;*)
10700     # if the path contains ";" then we assume it to be the separator
10701     # otherwise default to the standard path separator (i.e. ":") - it is
10702     # assumed that no part of a normal pathname contains ";" but that should
10703     # okay in the real world where ";" in dirpaths is itself problematic.
10704     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10705     ;;
10706   *)
10707     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10708     ;;
10709   esac
10710   # Ok, now we have the path, separated by spaces, we can step through it
10711   # and add multilib dir if necessary.
10712   lt_tmp_lt_search_path_spec=
10713   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10714   for lt_sys_path in $lt_search_path_spec; do
10715     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10716       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10717     else
10718       test -d "$lt_sys_path" && \
10719         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10720     fi
10721   done
10722   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10723 BEGIN {RS=" "; FS="/|\n";} {
10724   lt_foo="";
10725   lt_count=0;
10726   for (lt_i = NF; lt_i > 0; lt_i--) {
10727     if ($lt_i != "" && $lt_i != ".") {
10728       if ($lt_i == "..") {
10729         lt_count++;
10730       } else {
10731         if (lt_count == 0) {
10732           lt_foo="/" $lt_i lt_foo;
10733         } else {
10734           lt_count--;
10735         }
10736       }
10737     }
10738   }
10739   if (lt_foo != "") { lt_freq[lt_foo]++; }
10740   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10741 }'`
10742   # AWK program above erroneously prepends '/' to C:/dos/paths
10743   # for these hosts.
10744   case $host_os in
10745     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10746       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10747   esac
10748   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10749 else
10750   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10751 fi
10752 library_names_spec=
10753 libname_spec='lib$name'
10754 soname_spec=
10755 shrext_cmds=".so"
10756 postinstall_cmds=
10757 postuninstall_cmds=
10758 finish_cmds=
10759 finish_eval=
10760 shlibpath_var=
10761 shlibpath_overrides_runpath=unknown
10762 version_type=none
10763 dynamic_linker="$host_os ld.so"
10764 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10765 need_lib_prefix=unknown
10766 hardcode_into_libs=no
10767
10768 # when you set need_version to no, make sure it does not cause -set_version
10769 # flags to be left without arguments
10770 need_version=unknown
10771
10772 case $host_os in
10773 aix3*)
10774   version_type=linux # correct to gnu/linux during the next big refactor
10775   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10776   shlibpath_var=LIBPATH
10777
10778   # AIX 3 has no versioning support, so we append a major version to the name.
10779   soname_spec='${libname}${release}${shared_ext}$major'
10780   ;;
10781
10782 aix[4-9]*)
10783   version_type=linux # correct to gnu/linux during the next big refactor
10784   need_lib_prefix=no
10785   need_version=no
10786   hardcode_into_libs=yes
10787   if test "$host_cpu" = ia64; then
10788     # AIX 5 supports IA64
10789     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10790     shlibpath_var=LD_LIBRARY_PATH
10791   else
10792     # With GCC up to 2.95.x, collect2 would create an import file
10793     # for dependence libraries.  The import file would start with
10794     # the line `#! .'.  This would cause the generated library to
10795     # depend on `.', always an invalid library.  This was fixed in
10796     # development snapshots of GCC prior to 3.0.
10797     case $host_os in
10798       aix4 | aix4.[01] | aix4.[01].*)
10799       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10800            echo ' yes '
10801            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10802         :
10803       else
10804         can_build_shared=no
10805       fi
10806       ;;
10807     esac
10808     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10809     # soname into executable. Probably we can add versioning support to
10810     # collect2, so additional links can be useful in future.
10811     if test "$aix_use_runtimelinking" = yes; then
10812       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10813       # instead of lib<name>.a to let people know that these are not
10814       # typical AIX shared libraries.
10815       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10816     else
10817       # We preserve .a as extension for shared libraries through AIX4.2
10818       # and later when we are not doing run time linking.
10819       library_names_spec='${libname}${release}.a $libname.a'
10820       soname_spec='${libname}${release}${shared_ext}$major'
10821     fi
10822     shlibpath_var=LIBPATH
10823   fi
10824   ;;
10825
10826 amigaos*)
10827   case $host_cpu in
10828   powerpc)
10829     # Since July 2007 AmigaOS4 officially supports .so libraries.
10830     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10831     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10832     ;;
10833   m68k)
10834     library_names_spec='$libname.ixlibrary $libname.a'
10835     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10836     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'
10837     ;;
10838   esac
10839   ;;
10840
10841 beos*)
10842   library_names_spec='${libname}${shared_ext}'
10843   dynamic_linker="$host_os ld.so"
10844   shlibpath_var=LIBRARY_PATH
10845   ;;
10846
10847 bsdi[45]*)
10848   version_type=linux # correct to gnu/linux during the next big refactor
10849   need_version=no
10850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10851   soname_spec='${libname}${release}${shared_ext}$major'
10852   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10853   shlibpath_var=LD_LIBRARY_PATH
10854   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10855   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10856   # the default ld.so.conf also contains /usr/contrib/lib and
10857   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10858   # libtool to hard-code these into programs
10859   ;;
10860
10861 cygwin* | mingw* | pw32* | cegcc*)
10862   version_type=windows
10863   shrext_cmds=".dll"
10864   need_version=no
10865   need_lib_prefix=no
10866
10867   case $GCC,$cc_basename in
10868   yes,*)
10869     # gcc
10870     library_names_spec='$libname.dll.a'
10871     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10872     postinstall_cmds='base_file=`basename \${file}`~
10873       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10874       dldir=$destdir/`dirname \$dlpath`~
10875       test -d \$dldir || mkdir -p \$dldir~
10876       $install_prog $dir/$dlname \$dldir/$dlname~
10877       chmod a+x \$dldir/$dlname~
10878       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10879         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10880       fi'
10881     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10882       dlpath=$dir/\$dldll~
10883        $RM \$dlpath'
10884     shlibpath_overrides_runpath=yes
10885
10886     case $host_os in
10887     cygwin*)
10888       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10889       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10890
10891       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10892       ;;
10893     mingw* | cegcc*)
10894       # MinGW DLLs use traditional 'lib' prefix
10895       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10896       ;;
10897     pw32*)
10898       # pw32 DLLs use 'pw' prefix rather than 'lib'
10899       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10900       ;;
10901     esac
10902     dynamic_linker='Win32 ld.exe'
10903     ;;
10904
10905   *,cl*)
10906     # Native MSVC
10907     libname_spec='$name'
10908     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10909     library_names_spec='${libname}.dll.lib'
10910
10911     case $build_os in
10912     mingw*)
10913       sys_lib_search_path_spec=
10914       lt_save_ifs=$IFS
10915       IFS=';'
10916       for lt_path in $LIB
10917       do
10918         IFS=$lt_save_ifs
10919         # Let DOS variable expansion print the short 8.3 style file name.
10920         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10921         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10922       done
10923       IFS=$lt_save_ifs
10924       # Convert to MSYS style.
10925       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10926       ;;
10927     cygwin*)
10928       # Convert to unix form, then to dos form, then back to unix form
10929       # but this time dos style (no spaces!) so that the unix form looks
10930       # like /cygdrive/c/PROGRA~1:/cygdr...
10931       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10932       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10933       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10934       ;;
10935     *)
10936       sys_lib_search_path_spec="$LIB"
10937       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10938         # It is most probably a Windows format PATH.
10939         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10940       else
10941         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10942       fi
10943       # FIXME: find the short name or the path components, as spaces are
10944       # common. (e.g. "Program Files" -> "PROGRA~1")
10945       ;;
10946     esac
10947
10948     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10949     postinstall_cmds='base_file=`basename \${file}`~
10950       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10951       dldir=$destdir/`dirname \$dlpath`~
10952       test -d \$dldir || mkdir -p \$dldir~
10953       $install_prog $dir/$dlname \$dldir/$dlname'
10954     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10955       dlpath=$dir/\$dldll~
10956        $RM \$dlpath'
10957     shlibpath_overrides_runpath=yes
10958     dynamic_linker='Win32 link.exe'
10959     ;;
10960
10961   *)
10962     # Assume MSVC wrapper
10963     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10964     dynamic_linker='Win32 ld.exe'
10965     ;;
10966   esac
10967   # FIXME: first we should search . and the directory the executable is in
10968   shlibpath_var=PATH
10969   ;;
10970
10971 darwin* | rhapsody*)
10972   dynamic_linker="$host_os dyld"
10973   version_type=darwin
10974   need_lib_prefix=no
10975   need_version=no
10976   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10977   soname_spec='${libname}${release}${major}$shared_ext'
10978   shlibpath_overrides_runpath=yes
10979   shlibpath_var=DYLD_LIBRARY_PATH
10980   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10981
10982   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10983   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10984   ;;
10985
10986 dgux*)
10987   version_type=linux # correct to gnu/linux during the next big refactor
10988   need_lib_prefix=no
10989   need_version=no
10990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10991   soname_spec='${libname}${release}${shared_ext}$major'
10992   shlibpath_var=LD_LIBRARY_PATH
10993   ;;
10994
10995 freebsd* | dragonfly*)
10996   # DragonFly does not have aout.  When/if they implement a new
10997   # versioning mechanism, adjust this.
10998   if test -x /usr/bin/objformat; then
10999     objformat=`/usr/bin/objformat`
11000   else
11001     case $host_os in
11002     freebsd[23].*) objformat=aout ;;
11003     *) objformat=elf ;;
11004     esac
11005   fi
11006   version_type=freebsd-$objformat
11007   case $version_type in
11008     freebsd-elf*)
11009       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11010       need_version=no
11011       need_lib_prefix=no
11012       ;;
11013     freebsd-*)
11014       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11015       need_version=yes
11016       ;;
11017   esac
11018   shlibpath_var=LD_LIBRARY_PATH
11019   case $host_os in
11020   freebsd2.*)
11021     shlibpath_overrides_runpath=yes
11022     ;;
11023   freebsd3.[01]* | freebsdelf3.[01]*)
11024     shlibpath_overrides_runpath=yes
11025     hardcode_into_libs=yes
11026     ;;
11027   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11028   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11029     shlibpath_overrides_runpath=no
11030     hardcode_into_libs=yes
11031     ;;
11032   *) # from 4.6 on, and DragonFly
11033     shlibpath_overrides_runpath=yes
11034     hardcode_into_libs=yes
11035     ;;
11036   esac
11037   ;;
11038
11039 gnu*)
11040   version_type=linux # correct to gnu/linux during the next big refactor
11041   need_lib_prefix=no
11042   need_version=no
11043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11044   soname_spec='${libname}${release}${shared_ext}$major'
11045   shlibpath_var=LD_LIBRARY_PATH
11046   shlibpath_overrides_runpath=no
11047   hardcode_into_libs=yes
11048   ;;
11049
11050 haiku*)
11051   version_type=linux # correct to gnu/linux during the next big refactor
11052   need_lib_prefix=no
11053   need_version=no
11054   dynamic_linker="$host_os runtime_loader"
11055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11056   soname_spec='${libname}${release}${shared_ext}$major'
11057   shlibpath_var=LIBRARY_PATH
11058   shlibpath_overrides_runpath=yes
11059   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11060   hardcode_into_libs=yes
11061   ;;
11062
11063 hpux9* | hpux10* | hpux11*)
11064   # Give a soname corresponding to the major version so that dld.sl refuses to
11065   # link against other versions.
11066   version_type=sunos
11067   need_lib_prefix=no
11068   need_version=no
11069   case $host_cpu in
11070   ia64*)
11071     shrext_cmds='.so'
11072     hardcode_into_libs=yes
11073     dynamic_linker="$host_os dld.so"
11074     shlibpath_var=LD_LIBRARY_PATH
11075     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11076     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11077     soname_spec='${libname}${release}${shared_ext}$major'
11078     if test "X$HPUX_IA64_MODE" = X32; then
11079       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11080     else
11081       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11082     fi
11083     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11084     ;;
11085   hppa*64*)
11086     shrext_cmds='.sl'
11087     hardcode_into_libs=yes
11088     dynamic_linker="$host_os dld.sl"
11089     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11090     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11091     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11092     soname_spec='${libname}${release}${shared_ext}$major'
11093     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11094     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11095     ;;
11096   *)
11097     shrext_cmds='.sl'
11098     dynamic_linker="$host_os dld.sl"
11099     shlibpath_var=SHLIB_PATH
11100     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11101     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11102     soname_spec='${libname}${release}${shared_ext}$major'
11103     ;;
11104   esac
11105   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11106   postinstall_cmds='chmod 555 $lib'
11107   # or fails outright, so override atomically:
11108   install_override_mode=555
11109   ;;
11110
11111 interix[3-9]*)
11112   version_type=linux # correct to gnu/linux during the next big refactor
11113   need_lib_prefix=no
11114   need_version=no
11115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11116   soname_spec='${libname}${release}${shared_ext}$major'
11117   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11118   shlibpath_var=LD_LIBRARY_PATH
11119   shlibpath_overrides_runpath=no
11120   hardcode_into_libs=yes
11121   ;;
11122
11123 irix5* | irix6* | nonstopux*)
11124   case $host_os in
11125     nonstopux*) version_type=nonstopux ;;
11126     *)
11127         if test "$lt_cv_prog_gnu_ld" = yes; then
11128                 version_type=linux # correct to gnu/linux during the next big refactor
11129         else
11130                 version_type=irix
11131         fi ;;
11132   esac
11133   need_lib_prefix=no
11134   need_version=no
11135   soname_spec='${libname}${release}${shared_ext}$major'
11136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11137   case $host_os in
11138   irix5* | nonstopux*)
11139     libsuff= shlibsuff=
11140     ;;
11141   *)
11142     case $LD in # libtool.m4 will add one of these switches to LD
11143     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11144       libsuff= shlibsuff= libmagic=32-bit;;
11145     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11146       libsuff=32 shlibsuff=N32 libmagic=N32;;
11147     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11148       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11149     *) libsuff= shlibsuff= libmagic=never-match;;
11150     esac
11151     ;;
11152   esac
11153   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11154   shlibpath_overrides_runpath=no
11155   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11156   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11157   hardcode_into_libs=yes
11158   ;;
11159
11160 # No shared lib support for Linux oldld, aout, or coff.
11161 linux*oldld* | linux*aout* | linux*coff*)
11162   dynamic_linker=no
11163   ;;
11164
11165 # This must be glibc/ELF.
11166 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11167   version_type=linux # correct to gnu/linux during the next big refactor
11168   need_lib_prefix=no
11169   need_version=no
11170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11171   soname_spec='${libname}${release}${shared_ext}$major'
11172   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11173   shlibpath_var=LD_LIBRARY_PATH
11174   shlibpath_overrides_runpath=no
11175
11176   # Some binutils ld are patched to set DT_RUNPATH
11177   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11178   $as_echo_n "(cached) " >&6
11179 else
11180   lt_cv_shlibpath_overrides_runpath=no
11181     save_LDFLAGS=$LDFLAGS
11182     save_libdir=$libdir
11183     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11184          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11185     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11186 /* end confdefs.h.  */
11187
11188 int
11189 main ()
11190 {
11191
11192   ;
11193   return 0;
11194 }
11195 _ACEOF
11196 if ac_fn_c_try_link "$LINENO"; then :
11197   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11198   lt_cv_shlibpath_overrides_runpath=yes
11199 fi
11200 fi
11201 rm -f core conftest.err conftest.$ac_objext \
11202     conftest$ac_exeext conftest.$ac_ext
11203     LDFLAGS=$save_LDFLAGS
11204     libdir=$save_libdir
11205
11206 fi
11207
11208   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11209
11210   # This implies no fast_install, which is unacceptable.
11211   # Some rework will be needed to allow for fast_install
11212   # before this can be enabled.
11213   hardcode_into_libs=yes
11214
11215   # Append ld.so.conf contents to the search path
11216   if test -f /etc/ld.so.conf; then
11217     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' ' '`
11218     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11219   fi
11220
11221   # We used to test for /lib/ld.so.1 and disable shared libraries on
11222   # powerpc, because MkLinux only supported shared libraries with the
11223   # GNU dynamic linker.  Since this was broken with cross compilers,
11224   # most powerpc-linux boxes support dynamic linking these days and
11225   # people can always --disable-shared, the test was removed, and we
11226   # assume the GNU/Linux dynamic linker is in use.
11227   dynamic_linker='GNU/Linux ld.so'
11228   ;;
11229
11230 netbsdelf*-gnu)
11231   version_type=linux
11232   need_lib_prefix=no
11233   need_version=no
11234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11235   soname_spec='${libname}${release}${shared_ext}$major'
11236   shlibpath_var=LD_LIBRARY_PATH
11237   shlibpath_overrides_runpath=no
11238   hardcode_into_libs=yes
11239   dynamic_linker='NetBSD ld.elf_so'
11240   ;;
11241
11242 netbsd*)
11243   version_type=sunos
11244   need_lib_prefix=no
11245   need_version=no
11246   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11247     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11248     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11249     dynamic_linker='NetBSD (a.out) ld.so'
11250   else
11251     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11252     soname_spec='${libname}${release}${shared_ext}$major'
11253     dynamic_linker='NetBSD ld.elf_so'
11254   fi
11255   shlibpath_var=LD_LIBRARY_PATH
11256   shlibpath_overrides_runpath=yes
11257   hardcode_into_libs=yes
11258   ;;
11259
11260 newsos6)
11261   version_type=linux # correct to gnu/linux during the next big refactor
11262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11263   shlibpath_var=LD_LIBRARY_PATH
11264   shlibpath_overrides_runpath=yes
11265   ;;
11266
11267 *nto* | *qnx*)
11268   version_type=qnx
11269   need_lib_prefix=no
11270   need_version=no
11271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11272   soname_spec='${libname}${release}${shared_ext}$major'
11273   shlibpath_var=LD_LIBRARY_PATH
11274   shlibpath_overrides_runpath=no
11275   hardcode_into_libs=yes
11276   dynamic_linker='ldqnx.so'
11277   ;;
11278
11279 openbsd*)
11280   version_type=sunos
11281   sys_lib_dlsearch_path_spec="/usr/lib"
11282   need_lib_prefix=no
11283   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11284   case $host_os in
11285     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11286     *)                          need_version=no  ;;
11287   esac
11288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11289   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11290   shlibpath_var=LD_LIBRARY_PATH
11291   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11292     case $host_os in
11293       openbsd2.[89] | openbsd2.[89].*)
11294         shlibpath_overrides_runpath=no
11295         ;;
11296       *)
11297         shlibpath_overrides_runpath=yes
11298         ;;
11299       esac
11300   else
11301     shlibpath_overrides_runpath=yes
11302   fi
11303   ;;
11304
11305 os2*)
11306   libname_spec='$name'
11307   shrext_cmds=".dll"
11308   need_lib_prefix=no
11309   library_names_spec='$libname${shared_ext} $libname.a'
11310   dynamic_linker='OS/2 ld.exe'
11311   shlibpath_var=LIBPATH
11312   ;;
11313
11314 osf3* | osf4* | osf5*)
11315   version_type=osf
11316   need_lib_prefix=no
11317   need_version=no
11318   soname_spec='${libname}${release}${shared_ext}$major'
11319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11320   shlibpath_var=LD_LIBRARY_PATH
11321   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11322   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11323   ;;
11324
11325 rdos*)
11326   dynamic_linker=no
11327   ;;
11328
11329 solaris*)
11330   version_type=linux # correct to gnu/linux during the next big refactor
11331   need_lib_prefix=no
11332   need_version=no
11333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11334   soname_spec='${libname}${release}${shared_ext}$major'
11335   shlibpath_var=LD_LIBRARY_PATH
11336   shlibpath_overrides_runpath=yes
11337   hardcode_into_libs=yes
11338   # ldd complains unless libraries are executable
11339   postinstall_cmds='chmod +x $lib'
11340   ;;
11341
11342 sunos4*)
11343   version_type=sunos
11344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11345   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11346   shlibpath_var=LD_LIBRARY_PATH
11347   shlibpath_overrides_runpath=yes
11348   if test "$with_gnu_ld" = yes; then
11349     need_lib_prefix=no
11350   fi
11351   need_version=yes
11352   ;;
11353
11354 sysv4 | sysv4.3*)
11355   version_type=linux # correct to gnu/linux during the next big refactor
11356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11357   soname_spec='${libname}${release}${shared_ext}$major'
11358   shlibpath_var=LD_LIBRARY_PATH
11359   case $host_vendor in
11360     sni)
11361       shlibpath_overrides_runpath=no
11362       need_lib_prefix=no
11363       runpath_var=LD_RUN_PATH
11364       ;;
11365     siemens)
11366       need_lib_prefix=no
11367       ;;
11368     motorola)
11369       need_lib_prefix=no
11370       need_version=no
11371       shlibpath_overrides_runpath=no
11372       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11373       ;;
11374   esac
11375   ;;
11376
11377 sysv4*MP*)
11378   if test -d /usr/nec ;then
11379     version_type=linux # correct to gnu/linux during the next big refactor
11380     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11381     soname_spec='$libname${shared_ext}.$major'
11382     shlibpath_var=LD_LIBRARY_PATH
11383   fi
11384   ;;
11385
11386 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11387   version_type=freebsd-elf
11388   need_lib_prefix=no
11389   need_version=no
11390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11391   soname_spec='${libname}${release}${shared_ext}$major'
11392   shlibpath_var=LD_LIBRARY_PATH
11393   shlibpath_overrides_runpath=yes
11394   hardcode_into_libs=yes
11395   if test "$with_gnu_ld" = yes; then
11396     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11397   else
11398     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11399     case $host_os in
11400       sco3.2v5*)
11401         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11402         ;;
11403     esac
11404   fi
11405   sys_lib_dlsearch_path_spec='/usr/lib'
11406   ;;
11407
11408 tpf*)
11409   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11410   version_type=linux # correct to gnu/linux during the next big refactor
11411   need_lib_prefix=no
11412   need_version=no
11413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11414   shlibpath_var=LD_LIBRARY_PATH
11415   shlibpath_overrides_runpath=no
11416   hardcode_into_libs=yes
11417   ;;
11418
11419 uts4*)
11420   version_type=linux # correct to gnu/linux during the next big refactor
11421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11422   soname_spec='${libname}${release}${shared_ext}$major'
11423   shlibpath_var=LD_LIBRARY_PATH
11424   ;;
11425
11426 *)
11427   dynamic_linker=no
11428   ;;
11429 esac
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11431 $as_echo "$dynamic_linker" >&6; }
11432 test "$dynamic_linker" = no && can_build_shared=no
11433
11434 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11435 if test "$GCC" = yes; then
11436   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11437 fi
11438
11439 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11440   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11441 fi
11442 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11443   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11444 fi
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11538 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11539 hardcode_action=
11540 if test -n "$hardcode_libdir_flag_spec" ||
11541    test -n "$runpath_var" ||
11542    test "X$hardcode_automatic" = "Xyes" ; then
11543
11544   # We can hardcode non-existent directories.
11545   if test "$hardcode_direct" != no &&
11546      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11547      # have to relink, otherwise we might link with an installed library
11548      # when we should be linking with a yet-to-be-installed one
11549      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11550      test "$hardcode_minus_L" != no; then
11551     # Linking always hardcodes the temporary library directory.
11552     hardcode_action=relink
11553   else
11554     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11555     hardcode_action=immediate
11556   fi
11557 else
11558   # We cannot hardcode anything, or else we can only hardcode existing
11559   # directories.
11560   hardcode_action=unsupported
11561 fi
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11563 $as_echo "$hardcode_action" >&6; }
11564
11565 if test "$hardcode_action" = relink ||
11566    test "$inherit_rpath" = yes; then
11567   # Fast installation is not supported
11568   enable_fast_install=no
11569 elif test "$shlibpath_overrides_runpath" = yes ||
11570      test "$enable_shared" = no; then
11571   # Fast installation is not necessary
11572   enable_fast_install=needless
11573 fi
11574
11575
11576
11577
11578
11579
11580   if test "x$enable_dlopen" != xyes; then
11581   enable_dlopen=unknown
11582   enable_dlopen_self=unknown
11583   enable_dlopen_self_static=unknown
11584 else
11585   lt_cv_dlopen=no
11586   lt_cv_dlopen_libs=
11587
11588   case $host_os in
11589   beos*)
11590     lt_cv_dlopen="load_add_on"
11591     lt_cv_dlopen_libs=
11592     lt_cv_dlopen_self=yes
11593     ;;
11594
11595   mingw* | pw32* | cegcc*)
11596     lt_cv_dlopen="LoadLibrary"
11597     lt_cv_dlopen_libs=
11598     ;;
11599
11600   cygwin*)
11601     lt_cv_dlopen="dlopen"
11602     lt_cv_dlopen_libs=
11603     ;;
11604
11605   darwin*)
11606   # if libdl is installed we need to link against it
11607     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11608 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11609 if ${ac_cv_lib_dl_dlopen+:} false; then :
11610   $as_echo_n "(cached) " >&6
11611 else
11612   ac_check_lib_save_LIBS=$LIBS
11613 LIBS="-ldl  $LIBS"
11614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11615 /* end confdefs.h.  */
11616
11617 /* Override any GCC internal prototype to avoid an error.
11618    Use char because int might match the return type of a GCC
11619    builtin and then its argument prototype would still apply.  */
11620 #ifdef __cplusplus
11621 extern "C"
11622 #endif
11623 char dlopen ();
11624 int
11625 main ()
11626 {
11627 return dlopen ();
11628   ;
11629   return 0;
11630 }
11631 _ACEOF
11632 if ac_fn_c_try_link "$LINENO"; then :
11633   ac_cv_lib_dl_dlopen=yes
11634 else
11635   ac_cv_lib_dl_dlopen=no
11636 fi
11637 rm -f core conftest.err conftest.$ac_objext \
11638     conftest$ac_exeext conftest.$ac_ext
11639 LIBS=$ac_check_lib_save_LIBS
11640 fi
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11642 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11643 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11644   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11645 else
11646
11647     lt_cv_dlopen="dyld"
11648     lt_cv_dlopen_libs=
11649     lt_cv_dlopen_self=yes
11650
11651 fi
11652
11653     ;;
11654
11655   *)
11656     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11657 if test "x$ac_cv_func_shl_load" = xyes; then :
11658   lt_cv_dlopen="shl_load"
11659 else
11660   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11661 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11662 if ${ac_cv_lib_dld_shl_load+:} false; then :
11663   $as_echo_n "(cached) " >&6
11664 else
11665   ac_check_lib_save_LIBS=$LIBS
11666 LIBS="-ldld  $LIBS"
11667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11668 /* end confdefs.h.  */
11669
11670 /* Override any GCC internal prototype to avoid an error.
11671    Use char because int might match the return type of a GCC
11672    builtin and then its argument prototype would still apply.  */
11673 #ifdef __cplusplus
11674 extern "C"
11675 #endif
11676 char shl_load ();
11677 int
11678 main ()
11679 {
11680 return shl_load ();
11681   ;
11682   return 0;
11683 }
11684 _ACEOF
11685 if ac_fn_c_try_link "$LINENO"; then :
11686   ac_cv_lib_dld_shl_load=yes
11687 else
11688   ac_cv_lib_dld_shl_load=no
11689 fi
11690 rm -f core conftest.err conftest.$ac_objext \
11691     conftest$ac_exeext conftest.$ac_ext
11692 LIBS=$ac_check_lib_save_LIBS
11693 fi
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11695 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11696 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11697   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11698 else
11699   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11700 if test "x$ac_cv_func_dlopen" = xyes; then :
11701   lt_cv_dlopen="dlopen"
11702 else
11703   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11704 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11705 if ${ac_cv_lib_dl_dlopen+:} false; then :
11706   $as_echo_n "(cached) " >&6
11707 else
11708   ac_check_lib_save_LIBS=$LIBS
11709 LIBS="-ldl  $LIBS"
11710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11711 /* end confdefs.h.  */
11712
11713 /* Override any GCC internal prototype to avoid an error.
11714    Use char because int might match the return type of a GCC
11715    builtin and then its argument prototype would still apply.  */
11716 #ifdef __cplusplus
11717 extern "C"
11718 #endif
11719 char dlopen ();
11720 int
11721 main ()
11722 {
11723 return dlopen ();
11724   ;
11725   return 0;
11726 }
11727 _ACEOF
11728 if ac_fn_c_try_link "$LINENO"; then :
11729   ac_cv_lib_dl_dlopen=yes
11730 else
11731   ac_cv_lib_dl_dlopen=no
11732 fi
11733 rm -f core conftest.err conftest.$ac_objext \
11734     conftest$ac_exeext conftest.$ac_ext
11735 LIBS=$ac_check_lib_save_LIBS
11736 fi
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11738 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11739 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11740   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11741 else
11742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11743 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11744 if ${ac_cv_lib_svld_dlopen+:} false; then :
11745   $as_echo_n "(cached) " >&6
11746 else
11747   ac_check_lib_save_LIBS=$LIBS
11748 LIBS="-lsvld  $LIBS"
11749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11750 /* end confdefs.h.  */
11751
11752 /* Override any GCC internal prototype to avoid an error.
11753    Use char because int might match the return type of a GCC
11754    builtin and then its argument prototype would still apply.  */
11755 #ifdef __cplusplus
11756 extern "C"
11757 #endif
11758 char dlopen ();
11759 int
11760 main ()
11761 {
11762 return dlopen ();
11763   ;
11764   return 0;
11765 }
11766 _ACEOF
11767 if ac_fn_c_try_link "$LINENO"; then :
11768   ac_cv_lib_svld_dlopen=yes
11769 else
11770   ac_cv_lib_svld_dlopen=no
11771 fi
11772 rm -f core conftest.err conftest.$ac_objext \
11773     conftest$ac_exeext conftest.$ac_ext
11774 LIBS=$ac_check_lib_save_LIBS
11775 fi
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11777 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11778 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11779   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11780 else
11781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11782 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11783 if ${ac_cv_lib_dld_dld_link+:} false; then :
11784   $as_echo_n "(cached) " >&6
11785 else
11786   ac_check_lib_save_LIBS=$LIBS
11787 LIBS="-ldld  $LIBS"
11788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11789 /* end confdefs.h.  */
11790
11791 /* Override any GCC internal prototype to avoid an error.
11792    Use char because int might match the return type of a GCC
11793    builtin and then its argument prototype would still apply.  */
11794 #ifdef __cplusplus
11795 extern "C"
11796 #endif
11797 char dld_link ();
11798 int
11799 main ()
11800 {
11801 return dld_link ();
11802   ;
11803   return 0;
11804 }
11805 _ACEOF
11806 if ac_fn_c_try_link "$LINENO"; then :
11807   ac_cv_lib_dld_dld_link=yes
11808 else
11809   ac_cv_lib_dld_dld_link=no
11810 fi
11811 rm -f core conftest.err conftest.$ac_objext \
11812     conftest$ac_exeext conftest.$ac_ext
11813 LIBS=$ac_check_lib_save_LIBS
11814 fi
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11816 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11817 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11818   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11819 fi
11820
11821
11822 fi
11823
11824
11825 fi
11826
11827
11828 fi
11829
11830
11831 fi
11832
11833
11834 fi
11835
11836     ;;
11837   esac
11838
11839   if test "x$lt_cv_dlopen" != xno; then
11840     enable_dlopen=yes
11841   else
11842     enable_dlopen=no
11843   fi
11844
11845   case $lt_cv_dlopen in
11846   dlopen)
11847     save_CPPFLAGS="$CPPFLAGS"
11848     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11849
11850     save_LDFLAGS="$LDFLAGS"
11851     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11852
11853     save_LIBS="$LIBS"
11854     LIBS="$lt_cv_dlopen_libs $LIBS"
11855
11856     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11857 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11858 if ${lt_cv_dlopen_self+:} false; then :
11859   $as_echo_n "(cached) " >&6
11860 else
11861           if test "$cross_compiling" = yes; then :
11862   lt_cv_dlopen_self=cross
11863 else
11864   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11865   lt_status=$lt_dlunknown
11866   cat > conftest.$ac_ext <<_LT_EOF
11867 #line $LINENO "configure"
11868 #include "confdefs.h"
11869
11870 #if HAVE_DLFCN_H
11871 #include <dlfcn.h>
11872 #endif
11873
11874 #include <stdio.h>
11875
11876 #ifdef RTLD_GLOBAL
11877 #  define LT_DLGLOBAL           RTLD_GLOBAL
11878 #else
11879 #  ifdef DL_GLOBAL
11880 #    define LT_DLGLOBAL         DL_GLOBAL
11881 #  else
11882 #    define LT_DLGLOBAL         0
11883 #  endif
11884 #endif
11885
11886 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11887    find out it does not work in some platform. */
11888 #ifndef LT_DLLAZY_OR_NOW
11889 #  ifdef RTLD_LAZY
11890 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11891 #  else
11892 #    ifdef DL_LAZY
11893 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11894 #    else
11895 #      ifdef RTLD_NOW
11896 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11897 #      else
11898 #        ifdef DL_NOW
11899 #          define LT_DLLAZY_OR_NOW      DL_NOW
11900 #        else
11901 #          define LT_DLLAZY_OR_NOW      0
11902 #        endif
11903 #      endif
11904 #    endif
11905 #  endif
11906 #endif
11907
11908 /* When -fvisbility=hidden is used, assume the code has been annotated
11909    correspondingly for the symbols needed.  */
11910 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11911 int fnord () __attribute__((visibility("default")));
11912 #endif
11913
11914 int fnord () { return 42; }
11915 int main ()
11916 {
11917   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11918   int status = $lt_dlunknown;
11919
11920   if (self)
11921     {
11922       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11923       else
11924         {
11925           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11926           else puts (dlerror ());
11927         }
11928       /* dlclose (self); */
11929     }
11930   else
11931     puts (dlerror ());
11932
11933   return status;
11934 }
11935 _LT_EOF
11936   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11937   (eval $ac_link) 2>&5
11938   ac_status=$?
11939   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11940   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11941     (./conftest; exit; ) >&5 2>/dev/null
11942     lt_status=$?
11943     case x$lt_status in
11944       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11945       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11946       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11947     esac
11948   else :
11949     # compilation failed
11950     lt_cv_dlopen_self=no
11951   fi
11952 fi
11953 rm -fr conftest*
11954
11955
11956 fi
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11958 $as_echo "$lt_cv_dlopen_self" >&6; }
11959
11960     if test "x$lt_cv_dlopen_self" = xyes; then
11961       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11962       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11963 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11964 if ${lt_cv_dlopen_self_static+:} false; then :
11965   $as_echo_n "(cached) " >&6
11966 else
11967           if test "$cross_compiling" = yes; then :
11968   lt_cv_dlopen_self_static=cross
11969 else
11970   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11971   lt_status=$lt_dlunknown
11972   cat > conftest.$ac_ext <<_LT_EOF
11973 #line $LINENO "configure"
11974 #include "confdefs.h"
11975
11976 #if HAVE_DLFCN_H
11977 #include <dlfcn.h>
11978 #endif
11979
11980 #include <stdio.h>
11981
11982 #ifdef RTLD_GLOBAL
11983 #  define LT_DLGLOBAL           RTLD_GLOBAL
11984 #else
11985 #  ifdef DL_GLOBAL
11986 #    define LT_DLGLOBAL         DL_GLOBAL
11987 #  else
11988 #    define LT_DLGLOBAL         0
11989 #  endif
11990 #endif
11991
11992 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11993    find out it does not work in some platform. */
11994 #ifndef LT_DLLAZY_OR_NOW
11995 #  ifdef RTLD_LAZY
11996 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11997 #  else
11998 #    ifdef DL_LAZY
11999 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12000 #    else
12001 #      ifdef RTLD_NOW
12002 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12003 #      else
12004 #        ifdef DL_NOW
12005 #          define LT_DLLAZY_OR_NOW      DL_NOW
12006 #        else
12007 #          define LT_DLLAZY_OR_NOW      0
12008 #        endif
12009 #      endif
12010 #    endif
12011 #  endif
12012 #endif
12013
12014 /* When -fvisbility=hidden is used, assume the code has been annotated
12015    correspondingly for the symbols needed.  */
12016 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12017 int fnord () __attribute__((visibility("default")));
12018 #endif
12019
12020 int fnord () { return 42; }
12021 int main ()
12022 {
12023   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12024   int status = $lt_dlunknown;
12025
12026   if (self)
12027     {
12028       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12029       else
12030         {
12031           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12032           else puts (dlerror ());
12033         }
12034       /* dlclose (self); */
12035     }
12036   else
12037     puts (dlerror ());
12038
12039   return status;
12040 }
12041 _LT_EOF
12042   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12043   (eval $ac_link) 2>&5
12044   ac_status=$?
12045   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12046   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12047     (./conftest; exit; ) >&5 2>/dev/null
12048     lt_status=$?
12049     case x$lt_status in
12050       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12051       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12052       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12053     esac
12054   else :
12055     # compilation failed
12056     lt_cv_dlopen_self_static=no
12057   fi
12058 fi
12059 rm -fr conftest*
12060
12061
12062 fi
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12064 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12065     fi
12066
12067     CPPFLAGS="$save_CPPFLAGS"
12068     LDFLAGS="$save_LDFLAGS"
12069     LIBS="$save_LIBS"
12070     ;;
12071   esac
12072
12073   case $lt_cv_dlopen_self in
12074   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12075   *) enable_dlopen_self=unknown ;;
12076   esac
12077
12078   case $lt_cv_dlopen_self_static in
12079   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12080   *) enable_dlopen_self_static=unknown ;;
12081   esac
12082 fi
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100 striplib=
12101 old_striplib=
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12103 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12104 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12105   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12106   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12108 $as_echo "yes" >&6; }
12109 else
12110 # FIXME - insert some real tests, host_os isn't really good enough
12111   case $host_os in
12112   darwin*)
12113     if test -n "$STRIP" ; then
12114       striplib="$STRIP -x"
12115       old_striplib="$STRIP -S"
12116       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12117 $as_echo "yes" >&6; }
12118     else
12119       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12120 $as_echo "no" >&6; }
12121     fi
12122     ;;
12123   *)
12124     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12125 $as_echo "no" >&6; }
12126     ;;
12127   esac
12128 fi
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141   # Report which library types will actually be built
12142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12143 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12145 $as_echo "$can_build_shared" >&6; }
12146
12147   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12148 $as_echo_n "checking whether to build shared libraries... " >&6; }
12149   test "$can_build_shared" = "no" && enable_shared=no
12150
12151   # On AIX, shared libraries and static libraries use the same namespace, and
12152   # are all built from PIC.
12153   case $host_os in
12154   aix3*)
12155     test "$enable_shared" = yes && enable_static=no
12156     if test -n "$RANLIB"; then
12157       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12158       postinstall_cmds='$RANLIB $lib'
12159     fi
12160     ;;
12161
12162   aix[4-9]*)
12163     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12164       test "$enable_shared" = yes && enable_static=no
12165     fi
12166     ;;
12167   esac
12168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12169 $as_echo "$enable_shared" >&6; }
12170
12171   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12172 $as_echo_n "checking whether to build static libraries... " >&6; }
12173   # Make sure either enable_shared or enable_static is yes.
12174   test "$enable_shared" = yes || enable_static=yes
12175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12176 $as_echo "$enable_static" >&6; }
12177
12178
12179
12180
12181 fi
12182 ac_ext=cpp
12183 ac_cpp='$CXXCPP $CPPFLAGS'
12184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12187
12188 CC="$lt_save_CC"
12189
12190       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12191     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12192     (test "X$CXX" != "Xg++"))) ; then
12193   ac_ext=cpp
12194 ac_cpp='$CXXCPP $CPPFLAGS'
12195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12199 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12200 if test -z "$CXXCPP"; then
12201   if ${ac_cv_prog_CXXCPP+:} false; then :
12202   $as_echo_n "(cached) " >&6
12203 else
12204       # Double quotes because CXXCPP needs to be expanded
12205     for CXXCPP in "$CXX -E" "/lib/cpp"
12206     do
12207       ac_preproc_ok=false
12208 for ac_cxx_preproc_warn_flag in '' yes
12209 do
12210   # Use a header file that comes with gcc, so configuring glibc
12211   # with a fresh cross-compiler works.
12212   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12213   # <limits.h> exists even on freestanding compilers.
12214   # On the NeXT, cc -E runs the code through the compiler's parser,
12215   # not just through cpp. "Syntax error" is here to catch this case.
12216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12217 /* end confdefs.h.  */
12218 #ifdef __STDC__
12219 # include <limits.h>
12220 #else
12221 # include <assert.h>
12222 #endif
12223                      Syntax error
12224 _ACEOF
12225 if ac_fn_cxx_try_cpp "$LINENO"; then :
12226
12227 else
12228   # Broken: fails on valid input.
12229 continue
12230 fi
12231 rm -f conftest.err conftest.i conftest.$ac_ext
12232
12233   # OK, works on sane cases.  Now check whether nonexistent headers
12234   # can be detected and how.
12235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236 /* end confdefs.h.  */
12237 #include <ac_nonexistent.h>
12238 _ACEOF
12239 if ac_fn_cxx_try_cpp "$LINENO"; then :
12240   # Broken: success on invalid input.
12241 continue
12242 else
12243   # Passes both tests.
12244 ac_preproc_ok=:
12245 break
12246 fi
12247 rm -f conftest.err conftest.i conftest.$ac_ext
12248
12249 done
12250 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12251 rm -f conftest.i conftest.err conftest.$ac_ext
12252 if $ac_preproc_ok; then :
12253   break
12254 fi
12255
12256     done
12257     ac_cv_prog_CXXCPP=$CXXCPP
12258
12259 fi
12260   CXXCPP=$ac_cv_prog_CXXCPP
12261 else
12262   ac_cv_prog_CXXCPP=$CXXCPP
12263 fi
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12265 $as_echo "$CXXCPP" >&6; }
12266 ac_preproc_ok=false
12267 for ac_cxx_preproc_warn_flag in '' yes
12268 do
12269   # Use a header file that comes with gcc, so configuring glibc
12270   # with a fresh cross-compiler works.
12271   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12272   # <limits.h> exists even on freestanding compilers.
12273   # On the NeXT, cc -E runs the code through the compiler's parser,
12274   # not just through cpp. "Syntax error" is here to catch this case.
12275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12276 /* end confdefs.h.  */
12277 #ifdef __STDC__
12278 # include <limits.h>
12279 #else
12280 # include <assert.h>
12281 #endif
12282                      Syntax error
12283 _ACEOF
12284 if ac_fn_cxx_try_cpp "$LINENO"; then :
12285
12286 else
12287   # Broken: fails on valid input.
12288 continue
12289 fi
12290 rm -f conftest.err conftest.i conftest.$ac_ext
12291
12292   # OK, works on sane cases.  Now check whether nonexistent headers
12293   # can be detected and how.
12294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12295 /* end confdefs.h.  */
12296 #include <ac_nonexistent.h>
12297 _ACEOF
12298 if ac_fn_cxx_try_cpp "$LINENO"; then :
12299   # Broken: success on invalid input.
12300 continue
12301 else
12302   # Passes both tests.
12303 ac_preproc_ok=:
12304 break
12305 fi
12306 rm -f conftest.err conftest.i conftest.$ac_ext
12307
12308 done
12309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12310 rm -f conftest.i conftest.err conftest.$ac_ext
12311 if $ac_preproc_ok; then :
12312
12313 else
12314   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12316 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12317 See \`config.log' for more details" "$LINENO" 5; }
12318 fi
12319
12320 ac_ext=cpp
12321 ac_cpp='$CXXCPP $CPPFLAGS'
12322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12325
12326 else
12327   _lt_caught_CXX_error=yes
12328 fi
12329
12330 ac_ext=cpp
12331 ac_cpp='$CXXCPP $CPPFLAGS'
12332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12335
12336 archive_cmds_need_lc_CXX=no
12337 allow_undefined_flag_CXX=
12338 always_export_symbols_CXX=no
12339 archive_expsym_cmds_CXX=
12340 compiler_needs_object_CXX=no
12341 export_dynamic_flag_spec_CXX=
12342 hardcode_direct_CXX=no
12343 hardcode_direct_absolute_CXX=no
12344 hardcode_libdir_flag_spec_CXX=
12345 hardcode_libdir_separator_CXX=
12346 hardcode_minus_L_CXX=no
12347 hardcode_shlibpath_var_CXX=unsupported
12348 hardcode_automatic_CXX=no
12349 inherit_rpath_CXX=no
12350 module_cmds_CXX=
12351 module_expsym_cmds_CXX=
12352 link_all_deplibs_CXX=unknown
12353 old_archive_cmds_CXX=$old_archive_cmds
12354 reload_flag_CXX=$reload_flag
12355 reload_cmds_CXX=$reload_cmds
12356 no_undefined_flag_CXX=
12357 whole_archive_flag_spec_CXX=
12358 enable_shared_with_static_runtimes_CXX=no
12359
12360 # Source file extension for C++ test sources.
12361 ac_ext=cpp
12362
12363 # Object file extension for compiled C++ test sources.
12364 objext=o
12365 objext_CXX=$objext
12366
12367 # No sense in running all these tests if we already determined that
12368 # the CXX compiler isn't working.  Some variables (like enable_shared)
12369 # are currently assumed to apply to all compilers on this platform,
12370 # and will be corrupted by setting them based on a non-working compiler.
12371 if test "$_lt_caught_CXX_error" != yes; then
12372   # Code to be used in simple compile tests
12373   lt_simple_compile_test_code="int some_variable = 0;"
12374
12375   # Code to be used in simple link tests
12376   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12377
12378   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12379
12380
12381
12382
12383
12384
12385 # If no C compiler was specified, use CC.
12386 LTCC=${LTCC-"$CC"}
12387
12388 # If no C compiler flags were specified, use CFLAGS.
12389 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12390
12391 # Allow CC to be a program name with arguments.
12392 compiler=$CC
12393
12394
12395   # save warnings/boilerplate of simple test code
12396   ac_outfile=conftest.$ac_objext
12397 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12398 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12399 _lt_compiler_boilerplate=`cat conftest.err`
12400 $RM conftest*
12401
12402   ac_outfile=conftest.$ac_objext
12403 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12404 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12405 _lt_linker_boilerplate=`cat conftest.err`
12406 $RM -r conftest*
12407
12408
12409   # Allow CC to be a program name with arguments.
12410   lt_save_CC=$CC
12411   lt_save_CFLAGS=$CFLAGS
12412   lt_save_LD=$LD
12413   lt_save_GCC=$GCC
12414   GCC=$GXX
12415   lt_save_with_gnu_ld=$with_gnu_ld
12416   lt_save_path_LD=$lt_cv_path_LD
12417   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12418     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12419   else
12420     $as_unset lt_cv_prog_gnu_ld
12421   fi
12422   if test -n "${lt_cv_path_LDCXX+set}"; then
12423     lt_cv_path_LD=$lt_cv_path_LDCXX
12424   else
12425     $as_unset lt_cv_path_LD
12426   fi
12427   test -z "${LDCXX+set}" || LD=$LDCXX
12428   CC=${CXX-"c++"}
12429   CFLAGS=$CXXFLAGS
12430   compiler=$CC
12431   compiler_CXX=$CC
12432   for cc_temp in $compiler""; do
12433   case $cc_temp in
12434     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12435     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12436     \-*) ;;
12437     *) break;;
12438   esac
12439 done
12440 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12441
12442
12443   if test -n "$compiler"; then
12444     # We don't want -fno-exception when compiling C++ code, so set the
12445     # no_builtin_flag separately
12446     if test "$GXX" = yes; then
12447       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12448     else
12449       lt_prog_compiler_no_builtin_flag_CXX=
12450     fi
12451
12452     if test "$GXX" = yes; then
12453       # Set up default GNU C++ configuration
12454
12455
12456
12457 # Check whether --with-gnu-ld was given.
12458 if test "${with_gnu_ld+set}" = set; then :
12459   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12460 else
12461   with_gnu_ld=no
12462 fi
12463
12464 ac_prog=ld
12465 if test "$GCC" = yes; then
12466   # Check if gcc -print-prog-name=ld gives a path.
12467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12468 $as_echo_n "checking for ld used by $CC... " >&6; }
12469   case $host in
12470   *-*-mingw*)
12471     # gcc leaves a trailing carriage return which upsets mingw
12472     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12473   *)
12474     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12475   esac
12476   case $ac_prog in
12477     # Accept absolute paths.
12478     [\\/]* | ?:[\\/]*)
12479       re_direlt='/[^/][^/]*/\.\./'
12480       # Canonicalize the pathname of ld
12481       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12482       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12483         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12484       done
12485       test -z "$LD" && LD="$ac_prog"
12486       ;;
12487   "")
12488     # If it fails, then pretend we aren't using GCC.
12489     ac_prog=ld
12490     ;;
12491   *)
12492     # If it is relative, then search for the first ld in PATH.
12493     with_gnu_ld=unknown
12494     ;;
12495   esac
12496 elif test "$with_gnu_ld" = yes; then
12497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12498 $as_echo_n "checking for GNU ld... " >&6; }
12499 else
12500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12501 $as_echo_n "checking for non-GNU ld... " >&6; }
12502 fi
12503 if ${lt_cv_path_LD+:} false; then :
12504   $as_echo_n "(cached) " >&6
12505 else
12506   if test -z "$LD"; then
12507   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12508   for ac_dir in $PATH; do
12509     IFS="$lt_save_ifs"
12510     test -z "$ac_dir" && ac_dir=.
12511     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12512       lt_cv_path_LD="$ac_dir/$ac_prog"
12513       # Check to see if the program is GNU ld.  I'd rather use --version,
12514       # but apparently some variants of GNU ld only accept -v.
12515       # Break only if it was the GNU/non-GNU ld that we prefer.
12516       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12517       *GNU* | *'with BFD'*)
12518         test "$with_gnu_ld" != no && break
12519         ;;
12520       *)
12521         test "$with_gnu_ld" != yes && break
12522         ;;
12523       esac
12524     fi
12525   done
12526   IFS="$lt_save_ifs"
12527 else
12528   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12529 fi
12530 fi
12531
12532 LD="$lt_cv_path_LD"
12533 if test -n "$LD"; then
12534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12535 $as_echo "$LD" >&6; }
12536 else
12537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12538 $as_echo "no" >&6; }
12539 fi
12540 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12542 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12543 if ${lt_cv_prog_gnu_ld+:} false; then :
12544   $as_echo_n "(cached) " >&6
12545 else
12546   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12547 case `$LD -v 2>&1 </dev/null` in
12548 *GNU* | *'with BFD'*)
12549   lt_cv_prog_gnu_ld=yes
12550   ;;
12551 *)
12552   lt_cv_prog_gnu_ld=no
12553   ;;
12554 esac
12555 fi
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12557 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12558 with_gnu_ld=$lt_cv_prog_gnu_ld
12559
12560
12561
12562
12563
12564
12565
12566       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12567       # archiving commands below assume that GNU ld is being used.
12568       if test "$with_gnu_ld" = yes; then
12569         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12570         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12571
12572         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12573         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12574
12575         # If archive_cmds runs LD, not CC, wlarc should be empty
12576         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12577         #     investigate it a little bit more. (MM)
12578         wlarc='${wl}'
12579
12580         # ancient GNU ld didn't support --whole-archive et. al.
12581         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12582           $GREP 'no-whole-archive' > /dev/null; then
12583           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12584         else
12585           whole_archive_flag_spec_CXX=
12586         fi
12587       else
12588         with_gnu_ld=no
12589         wlarc=
12590
12591         # A generic and very simple default shared library creation
12592         # command for GNU C++ for the case where it uses the native
12593         # linker, instead of GNU ld.  If possible, this setting should
12594         # overridden to take advantage of the native linker features on
12595         # the platform it is being used on.
12596         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12597       fi
12598
12599       # Commands to make compiler produce verbose output that lists
12600       # what "hidden" libraries, object files and flags are used when
12601       # linking a shared library.
12602       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12603
12604     else
12605       GXX=no
12606       with_gnu_ld=no
12607       wlarc=
12608     fi
12609
12610     # PORTME: fill in a description of your system's C++ link characteristics
12611     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12612 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12613     ld_shlibs_CXX=yes
12614     case $host_os in
12615       aix3*)
12616         # FIXME: insert proper C++ library support
12617         ld_shlibs_CXX=no
12618         ;;
12619       aix[4-9]*)
12620         if test "$host_cpu" = ia64; then
12621           # On IA64, the linker does run time linking by default, so we don't
12622           # have to do anything special.
12623           aix_use_runtimelinking=no
12624           exp_sym_flag='-Bexport'
12625           no_entry_flag=""
12626         else
12627           aix_use_runtimelinking=no
12628
12629           # Test if we are trying to use run time linking or normal
12630           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12631           # need to do runtime linking.
12632           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12633             for ld_flag in $LDFLAGS; do
12634               case $ld_flag in
12635               *-brtl*)
12636                 aix_use_runtimelinking=yes
12637                 break
12638                 ;;
12639               esac
12640             done
12641             ;;
12642           esac
12643
12644           exp_sym_flag='-bexport'
12645           no_entry_flag='-bnoentry'
12646         fi
12647
12648         # When large executables or shared objects are built, AIX ld can
12649         # have problems creating the table of contents.  If linking a library
12650         # or program results in "error TOC overflow" add -mminimal-toc to
12651         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12652         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12653
12654         archive_cmds_CXX=''
12655         hardcode_direct_CXX=yes
12656         hardcode_direct_absolute_CXX=yes
12657         hardcode_libdir_separator_CXX=':'
12658         link_all_deplibs_CXX=yes
12659         file_list_spec_CXX='${wl}-f,'
12660
12661         if test "$GXX" = yes; then
12662           case $host_os in aix4.[012]|aix4.[012].*)
12663           # We only want to do this on AIX 4.2 and lower, the check
12664           # below for broken collect2 doesn't work under 4.3+
12665           collect2name=`${CC} -print-prog-name=collect2`
12666           if test -f "$collect2name" &&
12667              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12668           then
12669             # We have reworked collect2
12670             :
12671           else
12672             # We have old collect2
12673             hardcode_direct_CXX=unsupported
12674             # It fails to find uninstalled libraries when the uninstalled
12675             # path is not listed in the libpath.  Setting hardcode_minus_L
12676             # to unsupported forces relinking
12677             hardcode_minus_L_CXX=yes
12678             hardcode_libdir_flag_spec_CXX='-L$libdir'
12679             hardcode_libdir_separator_CXX=
12680           fi
12681           esac
12682           shared_flag='-shared'
12683           if test "$aix_use_runtimelinking" = yes; then
12684             shared_flag="$shared_flag "'${wl}-G'
12685           fi
12686         else
12687           # not using gcc
12688           if test "$host_cpu" = ia64; then
12689           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12690           # chokes on -Wl,-G. The following line is correct:
12691           shared_flag='-G'
12692           else
12693             if test "$aix_use_runtimelinking" = yes; then
12694               shared_flag='${wl}-G'
12695             else
12696               shared_flag='${wl}-bM:SRE'
12697             fi
12698           fi
12699         fi
12700
12701         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12702         # It seems that -bexpall does not export symbols beginning with
12703         # underscore (_), so it is better to generate a list of symbols to
12704         # export.
12705         always_export_symbols_CXX=yes
12706         if test "$aix_use_runtimelinking" = yes; then
12707           # Warning - without using the other runtime loading flags (-brtl),
12708           # -berok will link without error, but may produce a broken library.
12709           allow_undefined_flag_CXX='-berok'
12710           # Determine the default libpath from the value encoded in an empty
12711           # executable.
12712           if test "${lt_cv_aix_libpath+set}" = set; then
12713   aix_libpath=$lt_cv_aix_libpath
12714 else
12715   if ${lt_cv_aix_libpath__CXX+:} false; then :
12716   $as_echo_n "(cached) " >&6
12717 else
12718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12719 /* end confdefs.h.  */
12720
12721 int
12722 main ()
12723 {
12724
12725   ;
12726   return 0;
12727 }
12728 _ACEOF
12729 if ac_fn_cxx_try_link "$LINENO"; then :
12730
12731   lt_aix_libpath_sed='
12732       /Import File Strings/,/^$/ {
12733           /^0/ {
12734               s/^0  *\([^ ]*\) *$/\1/
12735               p
12736           }
12737       }'
12738   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12739   # Check for a 64-bit object if we didn't find anything.
12740   if test -z "$lt_cv_aix_libpath__CXX"; then
12741     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12742   fi
12743 fi
12744 rm -f core conftest.err conftest.$ac_objext \
12745     conftest$ac_exeext conftest.$ac_ext
12746   if test -z "$lt_cv_aix_libpath__CXX"; then
12747     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12748   fi
12749
12750 fi
12751
12752   aix_libpath=$lt_cv_aix_libpath__CXX
12753 fi
12754
12755           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12756
12757           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"
12758         else
12759           if test "$host_cpu" = ia64; then
12760             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12761             allow_undefined_flag_CXX="-z nodefs"
12762             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"
12763           else
12764             # Determine the default libpath from the value encoded in an
12765             # empty executable.
12766             if test "${lt_cv_aix_libpath+set}" = set; then
12767   aix_libpath=$lt_cv_aix_libpath
12768 else
12769   if ${lt_cv_aix_libpath__CXX+:} false; then :
12770   $as_echo_n "(cached) " >&6
12771 else
12772   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12773 /* end confdefs.h.  */
12774
12775 int
12776 main ()
12777 {
12778
12779   ;
12780   return 0;
12781 }
12782 _ACEOF
12783 if ac_fn_cxx_try_link "$LINENO"; then :
12784
12785   lt_aix_libpath_sed='
12786       /Import File Strings/,/^$/ {
12787           /^0/ {
12788               s/^0  *\([^ ]*\) *$/\1/
12789               p
12790           }
12791       }'
12792   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12793   # Check for a 64-bit object if we didn't find anything.
12794   if test -z "$lt_cv_aix_libpath__CXX"; then
12795     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12796   fi
12797 fi
12798 rm -f core conftest.err conftest.$ac_objext \
12799     conftest$ac_exeext conftest.$ac_ext
12800   if test -z "$lt_cv_aix_libpath__CXX"; then
12801     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12802   fi
12803
12804 fi
12805
12806   aix_libpath=$lt_cv_aix_libpath__CXX
12807 fi
12808
12809             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12810             # Warning - without using the other run time loading flags,
12811             # -berok will link without error, but may produce a broken library.
12812             no_undefined_flag_CXX=' ${wl}-bernotok'
12813             allow_undefined_flag_CXX=' ${wl}-berok'
12814             if test "$with_gnu_ld" = yes; then
12815               # We only use this code for GNU lds that support --whole-archive.
12816               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12817             else
12818               # Exported symbols can be pulled into shared objects from archives
12819               whole_archive_flag_spec_CXX='$convenience'
12820             fi
12821             archive_cmds_need_lc_CXX=yes
12822             # This is similar to how AIX traditionally builds its shared
12823             # libraries.
12824             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'
12825           fi
12826         fi
12827         ;;
12828
12829       beos*)
12830         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12831           allow_undefined_flag_CXX=unsupported
12832           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12833           # support --undefined.  This deserves some investigation.  FIXME
12834           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12835         else
12836           ld_shlibs_CXX=no
12837         fi
12838         ;;
12839
12840       chorus*)
12841         case $cc_basename in
12842           *)
12843           # FIXME: insert proper C++ library support
12844           ld_shlibs_CXX=no
12845           ;;
12846         esac
12847         ;;
12848
12849       cygwin* | mingw* | pw32* | cegcc*)
12850         case $GXX,$cc_basename in
12851         ,cl* | no,cl*)
12852           # Native MSVC
12853           # hardcode_libdir_flag_spec is actually meaningless, as there is
12854           # no search path for DLLs.
12855           hardcode_libdir_flag_spec_CXX=' '
12856           allow_undefined_flag_CXX=unsupported
12857           always_export_symbols_CXX=yes
12858           file_list_spec_CXX='@'
12859           # Tell ltmain to make .lib files, not .a files.
12860           libext=lib
12861           # Tell ltmain to make .dll files, not .so files.
12862           shrext_cmds=".dll"
12863           # FIXME: Setting linknames here is a bad hack.
12864           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12865           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12866               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12867             else
12868               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12869             fi~
12870             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12871             linknames='
12872           # The linker will not automatically build a static lib if we build a DLL.
12873           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12874           enable_shared_with_static_runtimes_CXX=yes
12875           # Don't use ranlib
12876           old_postinstall_cmds_CXX='chmod 644 $oldlib'
12877           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12878             lt_tool_outputfile="@TOOL_OUTPUT@"~
12879             case $lt_outputfile in
12880               *.exe|*.EXE) ;;
12881               *)
12882                 lt_outputfile="$lt_outputfile.exe"
12883                 lt_tool_outputfile="$lt_tool_outputfile.exe"
12884                 ;;
12885             esac~
12886             func_to_tool_file "$lt_outputfile"~
12887             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12888               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12889               $RM "$lt_outputfile.manifest";
12890             fi'
12891           ;;
12892         *)
12893           # g++
12894           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12895           # as there is no search path for DLLs.
12896           hardcode_libdir_flag_spec_CXX='-L$libdir'
12897           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12898           allow_undefined_flag_CXX=unsupported
12899           always_export_symbols_CXX=no
12900           enable_shared_with_static_runtimes_CXX=yes
12901
12902           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12903             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'
12904             # If the export-symbols file already is a .def file (1st line
12905             # is EXPORTS), use it as is; otherwise, prepend...
12906             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12907               cp $export_symbols $output_objdir/$soname.def;
12908             else
12909               echo EXPORTS > $output_objdir/$soname.def;
12910               cat $export_symbols >> $output_objdir/$soname.def;
12911             fi~
12912             $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'
12913           else
12914             ld_shlibs_CXX=no
12915           fi
12916           ;;
12917         esac
12918         ;;
12919       darwin* | rhapsody*)
12920
12921
12922   archive_cmds_need_lc_CXX=no
12923   hardcode_direct_CXX=no
12924   hardcode_automatic_CXX=yes
12925   hardcode_shlibpath_var_CXX=unsupported
12926   if test "$lt_cv_ld_force_load" = "yes"; then
12927     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\"`'
12928
12929   else
12930     whole_archive_flag_spec_CXX=''
12931   fi
12932   link_all_deplibs_CXX=yes
12933   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12934   case $cc_basename in
12935      ifort*) _lt_dar_can_shared=yes ;;
12936      *) _lt_dar_can_shared=$GCC ;;
12937   esac
12938   if test "$_lt_dar_can_shared" = "yes"; then
12939     output_verbose_link_cmd=func_echo_all
12940     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}"
12941     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12942     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}"
12943     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}"
12944        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12945       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}"
12946       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}"
12947     fi
12948
12949   else
12950   ld_shlibs_CXX=no
12951   fi
12952
12953         ;;
12954
12955       dgux*)
12956         case $cc_basename in
12957           ec++*)
12958             # FIXME: insert proper C++ library support
12959             ld_shlibs_CXX=no
12960             ;;
12961           ghcx*)
12962             # Green Hills C++ Compiler
12963             # FIXME: insert proper C++ library support
12964             ld_shlibs_CXX=no
12965             ;;
12966           *)
12967             # FIXME: insert proper C++ library support
12968             ld_shlibs_CXX=no
12969             ;;
12970         esac
12971         ;;
12972
12973       freebsd2.*)
12974         # C++ shared libraries reported to be fairly broken before
12975         # switch to ELF
12976         ld_shlibs_CXX=no
12977         ;;
12978
12979       freebsd-elf*)
12980         archive_cmds_need_lc_CXX=no
12981         ;;
12982
12983       freebsd* | dragonfly*)
12984         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12985         # conventions
12986         ld_shlibs_CXX=yes
12987         ;;
12988
12989       gnu*)
12990         ;;
12991
12992       haiku*)
12993         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12994         link_all_deplibs_CXX=yes
12995         ;;
12996
12997       hpux9*)
12998         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12999         hardcode_libdir_separator_CXX=:
13000         export_dynamic_flag_spec_CXX='${wl}-E'
13001         hardcode_direct_CXX=yes
13002         hardcode_minus_L_CXX=yes # Not in the search PATH,
13003                                              # but as the default
13004                                              # location of the library.
13005
13006         case $cc_basename in
13007           CC*)
13008             # FIXME: insert proper C++ library support
13009             ld_shlibs_CXX=no
13010             ;;
13011           aCC*)
13012             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'
13013             # Commands to make compiler produce verbose output that lists
13014             # what "hidden" libraries, object files and flags are used when
13015             # linking a shared library.
13016             #
13017             # There doesn't appear to be a way to prevent this compiler from
13018             # explicitly linking system object files so we need to strip them
13019             # from the output so that they don't get included in the library
13020             # dependencies.
13021             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"'
13022             ;;
13023           *)
13024             if test "$GXX" = yes; then
13025               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13026             else
13027               # FIXME: insert proper C++ library support
13028               ld_shlibs_CXX=no
13029             fi
13030             ;;
13031         esac
13032         ;;
13033
13034       hpux10*|hpux11*)
13035         if test $with_gnu_ld = no; then
13036           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13037           hardcode_libdir_separator_CXX=:
13038
13039           case $host_cpu in
13040             hppa*64*|ia64*)
13041               ;;
13042             *)
13043               export_dynamic_flag_spec_CXX='${wl}-E'
13044               ;;
13045           esac
13046         fi
13047         case $host_cpu in
13048           hppa*64*|ia64*)
13049             hardcode_direct_CXX=no
13050             hardcode_shlibpath_var_CXX=no
13051             ;;
13052           *)
13053             hardcode_direct_CXX=yes
13054             hardcode_direct_absolute_CXX=yes
13055             hardcode_minus_L_CXX=yes # Not in the search PATH,
13056                                                  # but as the default
13057                                                  # location of the library.
13058             ;;
13059         esac
13060
13061         case $cc_basename in
13062           CC*)
13063             # FIXME: insert proper C++ library support
13064             ld_shlibs_CXX=no
13065             ;;
13066           aCC*)
13067             case $host_cpu in
13068               hppa*64*)
13069                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13070                 ;;
13071               ia64*)
13072                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13073                 ;;
13074               *)
13075                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13076                 ;;
13077             esac
13078             # Commands to make compiler produce verbose output that lists
13079             # what "hidden" libraries, object files and flags are used when
13080             # linking a shared library.
13081             #
13082             # There doesn't appear to be a way to prevent this compiler from
13083             # explicitly linking system object files so we need to strip them
13084             # from the output so that they don't get included in the library
13085             # dependencies.
13086             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"'
13087             ;;
13088           *)
13089             if test "$GXX" = yes; then
13090               if test $with_gnu_ld = no; then
13091                 case $host_cpu in
13092                   hppa*64*)
13093                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13094                     ;;
13095                   ia64*)
13096                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13097                     ;;
13098                   *)
13099                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13100                     ;;
13101                 esac
13102               fi
13103             else
13104               # FIXME: insert proper C++ library support
13105               ld_shlibs_CXX=no
13106             fi
13107             ;;
13108         esac
13109         ;;
13110
13111       interix[3-9]*)
13112         hardcode_direct_CXX=no
13113         hardcode_shlibpath_var_CXX=no
13114         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13115         export_dynamic_flag_spec_CXX='${wl}-E'
13116         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13117         # Instead, shared libraries are loaded at an image base (0x10000000 by
13118         # default) and relocated if they conflict, which is a slow very memory
13119         # consuming and fragmenting process.  To avoid this, we pick a random,
13120         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13121         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13122         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'
13123         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'
13124         ;;
13125       irix5* | irix6*)
13126         case $cc_basename in
13127           CC*)
13128             # SGI C++
13129             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'
13130
13131             # Archives containing C++ object files must be created using
13132             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13133             # necessary to make sure instantiated templates are included
13134             # in the archive.
13135             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13136             ;;
13137           *)
13138             if test "$GXX" = yes; then
13139               if test "$with_gnu_ld" = no; then
13140                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13141               else
13142                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13143               fi
13144             fi
13145             link_all_deplibs_CXX=yes
13146             ;;
13147         esac
13148         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13149         hardcode_libdir_separator_CXX=:
13150         inherit_rpath_CXX=yes
13151         ;;
13152
13153       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13154         case $cc_basename in
13155           KCC*)
13156             # Kuck and Associates, Inc. (KAI) C++ Compiler
13157
13158             # KCC will only create a shared library if the output file
13159             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13160             # to its proper name (with version) after linking.
13161             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'
13162             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'
13163             # Commands to make compiler produce verbose output that lists
13164             # what "hidden" libraries, object files and flags are used when
13165             # linking a shared library.
13166             #
13167             # There doesn't appear to be a way to prevent this compiler from
13168             # explicitly linking system object files so we need to strip them
13169             # from the output so that they don't get included in the library
13170             # dependencies.
13171             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"'
13172
13173             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13174             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13175
13176             # Archives containing C++ object files must be created using
13177             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13178             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13179             ;;
13180           icpc* | ecpc* )
13181             # Intel C++
13182             with_gnu_ld=yes
13183             # version 8.0 and above of icpc choke on multiply defined symbols
13184             # if we add $predep_objects and $postdep_objects, however 7.1 and
13185             # earlier do not add the objects themselves.
13186             case `$CC -V 2>&1` in
13187               *"Version 7."*)
13188                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13189                 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'
13190                 ;;
13191               *)  # Version 8.0 or newer
13192                 tmp_idyn=
13193                 case $host_cpu in
13194                   ia64*) tmp_idyn=' -i_dynamic';;
13195                 esac
13196                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13197                 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'
13198                 ;;
13199             esac
13200             archive_cmds_need_lc_CXX=no
13201             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13202             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13203             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13204             ;;
13205           pgCC* | pgcpp*)
13206             # Portland Group C++ compiler
13207             case `$CC -V` in
13208             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13209               prelink_cmds_CXX='tpldir=Template.dir~
13210                 rm -rf $tpldir~
13211                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13212                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13213               old_archive_cmds_CXX='tpldir=Template.dir~
13214                 rm -rf $tpldir~
13215                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13216                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13217                 $RANLIB $oldlib'
13218               archive_cmds_CXX='tpldir=Template.dir~
13219                 rm -rf $tpldir~
13220                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13221                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13222               archive_expsym_cmds_CXX='tpldir=Template.dir~
13223                 rm -rf $tpldir~
13224                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13225                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13226               ;;
13227             *) # Version 6 and above use weak symbols
13228               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13229               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'
13230               ;;
13231             esac
13232
13233             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13234             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13235             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'
13236             ;;
13237           cxx*)
13238             # Compaq C++
13239             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13240             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'
13241
13242             runpath_var=LD_RUN_PATH
13243             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13244             hardcode_libdir_separator_CXX=:
13245
13246             # Commands to make compiler produce verbose output that lists
13247             # what "hidden" libraries, object files and flags are used when
13248             # linking a shared library.
13249             #
13250             # There doesn't appear to be a way to prevent this compiler from
13251             # explicitly linking system object files so we need to strip them
13252             # from the output so that they don't get included in the library
13253             # dependencies.
13254             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'
13255             ;;
13256           xl* | mpixl* | bgxl*)
13257             # IBM XL 8.0 on PPC, with GNU ld
13258             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13259             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13260             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13261             if test "x$supports_anon_versioning" = xyes; then
13262               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13263                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13264                 echo "local: *; };" >> $output_objdir/$libname.ver~
13265                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13266             fi
13267             ;;
13268           *)
13269             case `$CC -V 2>&1 | sed 5q` in
13270             *Sun\ C*)
13271               # Sun C++ 5.9
13272               no_undefined_flag_CXX=' -zdefs'
13273               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13274               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'
13275               hardcode_libdir_flag_spec_CXX='-R$libdir'
13276               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'
13277               compiler_needs_object_CXX=yes
13278
13279               # Not sure whether something based on
13280               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13281               # would be better.
13282               output_verbose_link_cmd='func_echo_all'
13283
13284               # Archives containing C++ object files must be created using
13285               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13286               # necessary to make sure instantiated templates are included
13287               # in the archive.
13288               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13289               ;;
13290             esac
13291             ;;
13292         esac
13293         ;;
13294
13295       lynxos*)
13296         # FIXME: insert proper C++ library support
13297         ld_shlibs_CXX=no
13298         ;;
13299
13300       m88k*)
13301         # FIXME: insert proper C++ library support
13302         ld_shlibs_CXX=no
13303         ;;
13304
13305       mvs*)
13306         case $cc_basename in
13307           cxx*)
13308             # FIXME: insert proper C++ library support
13309             ld_shlibs_CXX=no
13310             ;;
13311           *)
13312             # FIXME: insert proper C++ library support
13313             ld_shlibs_CXX=no
13314             ;;
13315         esac
13316         ;;
13317
13318       netbsd*)
13319         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13320           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13321           wlarc=
13322           hardcode_libdir_flag_spec_CXX='-R$libdir'
13323           hardcode_direct_CXX=yes
13324           hardcode_shlibpath_var_CXX=no
13325         fi
13326         # Workaround some broken pre-1.5 toolchains
13327         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13328         ;;
13329
13330       *nto* | *qnx*)
13331         ld_shlibs_CXX=yes
13332         ;;
13333
13334       openbsd2*)
13335         # C++ shared libraries are fairly broken
13336         ld_shlibs_CXX=no
13337         ;;
13338
13339       openbsd*)
13340         if test -f /usr/libexec/ld.so; then
13341           hardcode_direct_CXX=yes
13342           hardcode_shlibpath_var_CXX=no
13343           hardcode_direct_absolute_CXX=yes
13344           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13345           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13346           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13347             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13348             export_dynamic_flag_spec_CXX='${wl}-E'
13349             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13350           fi
13351           output_verbose_link_cmd=func_echo_all
13352         else
13353           ld_shlibs_CXX=no
13354         fi
13355         ;;
13356
13357       osf3* | osf4* | osf5*)
13358         case $cc_basename in
13359           KCC*)
13360             # Kuck and Associates, Inc. (KAI) C++ Compiler
13361
13362             # KCC will only create a shared library if the output file
13363             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13364             # to its proper name (with version) after linking.
13365             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'
13366
13367             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13368             hardcode_libdir_separator_CXX=:
13369
13370             # Archives containing C++ object files must be created using
13371             # the KAI C++ compiler.
13372             case $host in
13373               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13374               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13375             esac
13376             ;;
13377           RCC*)
13378             # Rational C++ 2.4.1
13379             # FIXME: insert proper C++ library support
13380             ld_shlibs_CXX=no
13381             ;;
13382           cxx*)
13383             case $host in
13384               osf3*)
13385                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13386                 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'
13387                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13388                 ;;
13389               *)
13390                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13391                 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'
13392                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13393                   echo "-hidden">> $lib.exp~
13394                   $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~
13395                   $RM $lib.exp'
13396                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13397                 ;;
13398             esac
13399
13400             hardcode_libdir_separator_CXX=:
13401
13402             # Commands to make compiler produce verbose output that lists
13403             # what "hidden" libraries, object files and flags are used when
13404             # linking a shared library.
13405             #
13406             # There doesn't appear to be a way to prevent this compiler from
13407             # explicitly linking system object files so we need to strip them
13408             # from the output so that they don't get included in the library
13409             # dependencies.
13410             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"'
13411             ;;
13412           *)
13413             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13414               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13415               case $host in
13416                 osf3*)
13417                   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'
13418                   ;;
13419                 *)
13420                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13421                   ;;
13422               esac
13423
13424               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13425               hardcode_libdir_separator_CXX=:
13426
13427               # Commands to make compiler produce verbose output that lists
13428               # what "hidden" libraries, object files and flags are used when
13429               # linking a shared library.
13430               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13431
13432             else
13433               # FIXME: insert proper C++ library support
13434               ld_shlibs_CXX=no
13435             fi
13436             ;;
13437         esac
13438         ;;
13439
13440       psos*)
13441         # FIXME: insert proper C++ library support
13442         ld_shlibs_CXX=no
13443         ;;
13444
13445       sunos4*)
13446         case $cc_basename in
13447           CC*)
13448             # Sun C++ 4.x
13449             # FIXME: insert proper C++ library support
13450             ld_shlibs_CXX=no
13451             ;;
13452           lcc*)
13453             # Lucid
13454             # FIXME: insert proper C++ library support
13455             ld_shlibs_CXX=no
13456             ;;
13457           *)
13458             # FIXME: insert proper C++ library support
13459             ld_shlibs_CXX=no
13460             ;;
13461         esac
13462         ;;
13463
13464       solaris*)
13465         case $cc_basename in
13466           CC* | sunCC*)
13467             # Sun C++ 4.2, 5.x and Centerline C++
13468             archive_cmds_need_lc_CXX=yes
13469             no_undefined_flag_CXX=' -zdefs'
13470             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13471             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13472               $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'
13473
13474             hardcode_libdir_flag_spec_CXX='-R$libdir'
13475             hardcode_shlibpath_var_CXX=no
13476             case $host_os in
13477               solaris2.[0-5] | solaris2.[0-5].*) ;;
13478               *)
13479                 # The compiler driver will combine and reorder linker options,
13480                 # but understands `-z linker_flag'.
13481                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13482                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13483                 ;;
13484             esac
13485             link_all_deplibs_CXX=yes
13486
13487             output_verbose_link_cmd='func_echo_all'
13488
13489             # Archives containing C++ object files must be created using
13490             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13491             # necessary to make sure instantiated templates are included
13492             # in the archive.
13493             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13494             ;;
13495           gcx*)
13496             # Green Hills C++ Compiler
13497             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13498
13499             # The C++ compiler must be used to create the archive.
13500             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13501             ;;
13502           *)
13503             # GNU C++ compiler with Solaris linker
13504             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13505               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13506               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13507                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13508                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13509                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13510
13511                 # Commands to make compiler produce verbose output that lists
13512                 # what "hidden" libraries, object files and flags are used when
13513                 # linking a shared library.
13514                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13515               else
13516                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13517                 # platform.
13518                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13519                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13520                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13521
13522                 # Commands to make compiler produce verbose output that lists
13523                 # what "hidden" libraries, object files and flags are used when
13524                 # linking a shared library.
13525                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13526               fi
13527
13528               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13529               case $host_os in
13530                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13531                 *)
13532                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13533                   ;;
13534               esac
13535             fi
13536             ;;
13537         esac
13538         ;;
13539
13540     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13541       no_undefined_flag_CXX='${wl}-z,text'
13542       archive_cmds_need_lc_CXX=no
13543       hardcode_shlibpath_var_CXX=no
13544       runpath_var='LD_RUN_PATH'
13545
13546       case $cc_basename in
13547         CC*)
13548           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13549           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13550           ;;
13551         *)
13552           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13553           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13554           ;;
13555       esac
13556       ;;
13557
13558       sysv5* | sco3.2v5* | sco5v6*)
13559         # Note: We can NOT use -z defs as we might desire, because we do not
13560         # link with -lc, and that would cause any symbols used from libc to
13561         # always be unresolved, which means just about no library would
13562         # ever link correctly.  If we're not using GNU ld we use -z text
13563         # though, which does catch some bad symbols but isn't as heavy-handed
13564         # as -z defs.
13565         no_undefined_flag_CXX='${wl}-z,text'
13566         allow_undefined_flag_CXX='${wl}-z,nodefs'
13567         archive_cmds_need_lc_CXX=no
13568         hardcode_shlibpath_var_CXX=no
13569         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13570         hardcode_libdir_separator_CXX=':'
13571         link_all_deplibs_CXX=yes
13572         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13573         runpath_var='LD_RUN_PATH'
13574
13575         case $cc_basename in
13576           CC*)
13577             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13578             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13579             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13580               '"$old_archive_cmds_CXX"
13581             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13582               '"$reload_cmds_CXX"
13583             ;;
13584           *)
13585             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13586             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13587             ;;
13588         esac
13589       ;;
13590
13591       tandem*)
13592         case $cc_basename in
13593           NCC*)
13594             # NonStop-UX NCC 3.20
13595             # FIXME: insert proper C++ library support
13596             ld_shlibs_CXX=no
13597             ;;
13598           *)
13599             # FIXME: insert proper C++ library support
13600             ld_shlibs_CXX=no
13601             ;;
13602         esac
13603         ;;
13604
13605       vxworks*)
13606         # FIXME: insert proper C++ library support
13607         ld_shlibs_CXX=no
13608         ;;
13609
13610       *)
13611         # FIXME: insert proper C++ library support
13612         ld_shlibs_CXX=no
13613         ;;
13614     esac
13615
13616     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13617 $as_echo "$ld_shlibs_CXX" >&6; }
13618     test "$ld_shlibs_CXX" = no && can_build_shared=no
13619
13620     GCC_CXX="$GXX"
13621     LD_CXX="$LD"
13622
13623     ## CAVEAT EMPTOR:
13624     ## There is no encapsulation within the following macros, do not change
13625     ## the running order or otherwise move them around unless you know exactly
13626     ## what you are doing...
13627     # Dependencies to place before and after the object being linked:
13628 predep_objects_CXX=
13629 postdep_objects_CXX=
13630 predeps_CXX=
13631 postdeps_CXX=
13632 compiler_lib_search_path_CXX=
13633
13634 cat > conftest.$ac_ext <<_LT_EOF
13635 class Foo
13636 {
13637 public:
13638   Foo (void) { a = 0; }
13639 private:
13640   int a;
13641 };
13642 _LT_EOF
13643
13644
13645 _lt_libdeps_save_CFLAGS=$CFLAGS
13646 case "$CC $CFLAGS " in #(
13647 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13648 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13649 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13650 esac
13651
13652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13653   (eval $ac_compile) 2>&5
13654   ac_status=$?
13655   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13656   test $ac_status = 0; }; then
13657   # Parse the compiler output and extract the necessary
13658   # objects, libraries and library flags.
13659
13660   # Sentinel used to keep track of whether or not we are before
13661   # the conftest object file.
13662   pre_test_object_deps_done=no
13663
13664   for p in `eval "$output_verbose_link_cmd"`; do
13665     case ${prev}${p} in
13666
13667     -L* | -R* | -l*)
13668        # Some compilers place space between "-{L,R}" and the path.
13669        # Remove the space.
13670        if test $p = "-L" ||
13671           test $p = "-R"; then
13672          prev=$p
13673          continue
13674        fi
13675
13676        # Expand the sysroot to ease extracting the directories later.
13677        if test -z "$prev"; then
13678          case $p in
13679          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13680          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13681          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13682          esac
13683        fi
13684        case $p in
13685        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13686        esac
13687        if test "$pre_test_object_deps_done" = no; then
13688          case ${prev} in
13689          -L | -R)
13690            # Internal compiler library paths should come after those
13691            # provided the user.  The postdeps already come after the
13692            # user supplied libs so there is no need to process them.
13693            if test -z "$compiler_lib_search_path_CXX"; then
13694              compiler_lib_search_path_CXX="${prev}${p}"
13695            else
13696              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13697            fi
13698            ;;
13699          # The "-l" case would never come before the object being
13700          # linked, so don't bother handling this case.
13701          esac
13702        else
13703          if test -z "$postdeps_CXX"; then
13704            postdeps_CXX="${prev}${p}"
13705          else
13706            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13707          fi
13708        fi
13709        prev=
13710        ;;
13711
13712     *.lto.$objext) ;; # Ignore GCC LTO objects
13713     *.$objext)
13714        # This assumes that the test object file only shows up
13715        # once in the compiler output.
13716        if test "$p" = "conftest.$objext"; then
13717          pre_test_object_deps_done=yes
13718          continue
13719        fi
13720
13721        if test "$pre_test_object_deps_done" = no; then
13722          if test -z "$predep_objects_CXX"; then
13723            predep_objects_CXX="$p"
13724          else
13725            predep_objects_CXX="$predep_objects_CXX $p"
13726          fi
13727        else
13728          if test -z "$postdep_objects_CXX"; then
13729            postdep_objects_CXX="$p"
13730          else
13731            postdep_objects_CXX="$postdep_objects_CXX $p"
13732          fi
13733        fi
13734        ;;
13735
13736     *) ;; # Ignore the rest.
13737
13738     esac
13739   done
13740
13741   # Clean up.
13742   rm -f a.out a.exe
13743 else
13744   echo "libtool.m4: error: problem compiling CXX test program"
13745 fi
13746
13747 $RM -f confest.$objext
13748 CFLAGS=$_lt_libdeps_save_CFLAGS
13749
13750 # PORTME: override above test on systems where it is broken
13751 case $host_os in
13752 interix[3-9]*)
13753   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13754   # hack all around it, let's just trust "g++" to DTRT.
13755   predep_objects_CXX=
13756   postdep_objects_CXX=
13757   postdeps_CXX=
13758   ;;
13759
13760 linux*)
13761   case `$CC -V 2>&1 | sed 5q` in
13762   *Sun\ C*)
13763     # Sun C++ 5.9
13764
13765     # The more standards-conforming stlport4 library is
13766     # incompatible with the Cstd library. Avoid specifying
13767     # it if it's in CXXFLAGS. Ignore libCrun as
13768     # -library=stlport4 depends on it.
13769     case " $CXX $CXXFLAGS " in
13770     *" -library=stlport4 "*)
13771       solaris_use_stlport4=yes
13772       ;;
13773     esac
13774
13775     if test "$solaris_use_stlport4" != yes; then
13776       postdeps_CXX='-library=Cstd -library=Crun'
13777     fi
13778     ;;
13779   esac
13780   ;;
13781
13782 solaris*)
13783   case $cc_basename in
13784   CC* | sunCC*)
13785     # The more standards-conforming stlport4 library is
13786     # incompatible with the Cstd library. Avoid specifying
13787     # it if it's in CXXFLAGS. Ignore libCrun as
13788     # -library=stlport4 depends on it.
13789     case " $CXX $CXXFLAGS " in
13790     *" -library=stlport4 "*)
13791       solaris_use_stlport4=yes
13792       ;;
13793     esac
13794
13795     # Adding this requires a known-good setup of shared libraries for
13796     # Sun compiler versions before 5.6, else PIC objects from an old
13797     # archive will be linked into the output, leading to subtle bugs.
13798     if test "$solaris_use_stlport4" != yes; then
13799       postdeps_CXX='-library=Cstd -library=Crun'
13800     fi
13801     ;;
13802   esac
13803   ;;
13804 esac
13805
13806
13807 case " $postdeps_CXX " in
13808 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13809 esac
13810  compiler_lib_search_dirs_CXX=
13811 if test -n "${compiler_lib_search_path_CXX}"; then
13812  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13813 fi
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845     lt_prog_compiler_wl_CXX=
13846 lt_prog_compiler_pic_CXX=
13847 lt_prog_compiler_static_CXX=
13848
13849
13850   # C++ specific cases for pic, static, wl, etc.
13851   if test "$GXX" = yes; then
13852     lt_prog_compiler_wl_CXX='-Wl,'
13853     lt_prog_compiler_static_CXX='-static'
13854
13855     case $host_os in
13856     aix*)
13857       # All AIX code is PIC.
13858       if test "$host_cpu" = ia64; then
13859         # AIX 5 now supports IA64 processor
13860         lt_prog_compiler_static_CXX='-Bstatic'
13861       fi
13862       ;;
13863
13864     amigaos*)
13865       case $host_cpu in
13866       powerpc)
13867             # see comment about AmigaOS4 .so support
13868             lt_prog_compiler_pic_CXX='-fPIC'
13869         ;;
13870       m68k)
13871             # FIXME: we need at least 68020 code to build shared libraries, but
13872             # adding the `-m68020' flag to GCC prevents building anything better,
13873             # like `-m68040'.
13874             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13875         ;;
13876       esac
13877       ;;
13878
13879     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13880       # PIC is the default for these OSes.
13881       ;;
13882     mingw* | cygwin* | os2* | pw32* | cegcc*)
13883       # This hack is so that the source file can tell whether it is being
13884       # built for inclusion in a dll (and should export symbols for example).
13885       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13886       # (--disable-auto-import) libraries
13887       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13888       ;;
13889     darwin* | rhapsody*)
13890       # PIC is the default on this platform
13891       # Common symbols not allowed in MH_DYLIB files
13892       lt_prog_compiler_pic_CXX='-fno-common'
13893       ;;
13894     *djgpp*)
13895       # DJGPP does not support shared libraries at all
13896       lt_prog_compiler_pic_CXX=
13897       ;;
13898     haiku*)
13899       # PIC is the default for Haiku.
13900       # The "-static" flag exists, but is broken.
13901       lt_prog_compiler_static_CXX=
13902       ;;
13903     interix[3-9]*)
13904       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13905       # Instead, we relocate shared libraries at runtime.
13906       ;;
13907     sysv4*MP*)
13908       if test -d /usr/nec; then
13909         lt_prog_compiler_pic_CXX=-Kconform_pic
13910       fi
13911       ;;
13912     hpux*)
13913       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13914       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13915       # sets the default TLS model and affects inlining.
13916       case $host_cpu in
13917       hppa*64*)
13918         ;;
13919       *)
13920         lt_prog_compiler_pic_CXX='-fPIC'
13921         ;;
13922       esac
13923       ;;
13924     *qnx* | *nto*)
13925       # QNX uses GNU C++, but need to define -shared option too, otherwise
13926       # it will coredump.
13927       lt_prog_compiler_pic_CXX='-fPIC -shared'
13928       ;;
13929     *)
13930       lt_prog_compiler_pic_CXX='-fPIC'
13931       ;;
13932     esac
13933   else
13934     case $host_os in
13935       aix[4-9]*)
13936         # All AIX code is PIC.
13937         if test "$host_cpu" = ia64; then
13938           # AIX 5 now supports IA64 processor
13939           lt_prog_compiler_static_CXX='-Bstatic'
13940         else
13941           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13942         fi
13943         ;;
13944       chorus*)
13945         case $cc_basename in
13946         cxch68*)
13947           # Green Hills C++ Compiler
13948           # _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"
13949           ;;
13950         esac
13951         ;;
13952       mingw* | cygwin* | os2* | pw32* | cegcc*)
13953         # This hack is so that the source file can tell whether it is being
13954         # built for inclusion in a dll (and should export symbols for example).
13955         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13956         ;;
13957       dgux*)
13958         case $cc_basename in
13959           ec++*)
13960             lt_prog_compiler_pic_CXX='-KPIC'
13961             ;;
13962           ghcx*)
13963             # Green Hills C++ Compiler
13964             lt_prog_compiler_pic_CXX='-pic'
13965             ;;
13966           *)
13967             ;;
13968         esac
13969         ;;
13970       freebsd* | dragonfly*)
13971         # FreeBSD uses GNU C++
13972         ;;
13973       hpux9* | hpux10* | hpux11*)
13974         case $cc_basename in
13975           CC*)
13976             lt_prog_compiler_wl_CXX='-Wl,'
13977             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13978             if test "$host_cpu" != ia64; then
13979               lt_prog_compiler_pic_CXX='+Z'
13980             fi
13981             ;;
13982           aCC*)
13983             lt_prog_compiler_wl_CXX='-Wl,'
13984             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13985             case $host_cpu in
13986             hppa*64*|ia64*)
13987               # +Z the default
13988               ;;
13989             *)
13990               lt_prog_compiler_pic_CXX='+Z'
13991               ;;
13992             esac
13993             ;;
13994           *)
13995             ;;
13996         esac
13997         ;;
13998       interix*)
13999         # This is c89, which is MS Visual C++ (no shared libs)
14000         # Anyone wants to do a port?
14001         ;;
14002       irix5* | irix6* | nonstopux*)
14003         case $cc_basename in
14004           CC*)
14005             lt_prog_compiler_wl_CXX='-Wl,'
14006             lt_prog_compiler_static_CXX='-non_shared'
14007             # CC pic flag -KPIC is the default.
14008             ;;
14009           *)
14010             ;;
14011         esac
14012         ;;
14013       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14014         case $cc_basename in
14015           KCC*)
14016             # KAI C++ Compiler
14017             lt_prog_compiler_wl_CXX='--backend -Wl,'
14018             lt_prog_compiler_pic_CXX='-fPIC'
14019             ;;
14020           ecpc* )
14021             # old Intel C++ for x86_64 which still supported -KPIC.
14022             lt_prog_compiler_wl_CXX='-Wl,'
14023             lt_prog_compiler_pic_CXX='-KPIC'
14024             lt_prog_compiler_static_CXX='-static'
14025             ;;
14026           icpc* )
14027             # Intel C++, used to be incompatible with GCC.
14028             # ICC 10 doesn't accept -KPIC any more.
14029             lt_prog_compiler_wl_CXX='-Wl,'
14030             lt_prog_compiler_pic_CXX='-fPIC'
14031             lt_prog_compiler_static_CXX='-static'
14032             ;;
14033           pgCC* | pgcpp*)
14034             # Portland Group C++ compiler
14035             lt_prog_compiler_wl_CXX='-Wl,'
14036             lt_prog_compiler_pic_CXX='-fpic'
14037             lt_prog_compiler_static_CXX='-Bstatic'
14038             ;;
14039           cxx*)
14040             # Compaq C++
14041             # Make sure the PIC flag is empty.  It appears that all Alpha
14042             # Linux and Compaq Tru64 Unix objects are PIC.
14043             lt_prog_compiler_pic_CXX=
14044             lt_prog_compiler_static_CXX='-non_shared'
14045             ;;
14046           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14047             # IBM XL 8.0, 9.0 on PPC and BlueGene
14048             lt_prog_compiler_wl_CXX='-Wl,'
14049             lt_prog_compiler_pic_CXX='-qpic'
14050             lt_prog_compiler_static_CXX='-qstaticlink'
14051             ;;
14052           *)
14053             case `$CC -V 2>&1 | sed 5q` in
14054             *Sun\ C*)
14055               # Sun C++ 5.9
14056               lt_prog_compiler_pic_CXX='-KPIC'
14057               lt_prog_compiler_static_CXX='-Bstatic'
14058               lt_prog_compiler_wl_CXX='-Qoption ld '
14059               ;;
14060             esac
14061             ;;
14062         esac
14063         ;;
14064       lynxos*)
14065         ;;
14066       m88k*)
14067         ;;
14068       mvs*)
14069         case $cc_basename in
14070           cxx*)
14071             lt_prog_compiler_pic_CXX='-W c,exportall'
14072             ;;
14073           *)
14074             ;;
14075         esac
14076         ;;
14077       netbsd* | netbsdelf*-gnu)
14078         ;;
14079       *qnx* | *nto*)
14080         # QNX uses GNU C++, but need to define -shared option too, otherwise
14081         # it will coredump.
14082         lt_prog_compiler_pic_CXX='-fPIC -shared'
14083         ;;
14084       osf3* | osf4* | osf5*)
14085         case $cc_basename in
14086           KCC*)
14087             lt_prog_compiler_wl_CXX='--backend -Wl,'
14088             ;;
14089           RCC*)
14090             # Rational C++ 2.4.1
14091             lt_prog_compiler_pic_CXX='-pic'
14092             ;;
14093           cxx*)
14094             # Digital/Compaq C++
14095             lt_prog_compiler_wl_CXX='-Wl,'
14096             # Make sure the PIC flag is empty.  It appears that all Alpha
14097             # Linux and Compaq Tru64 Unix objects are PIC.
14098             lt_prog_compiler_pic_CXX=
14099             lt_prog_compiler_static_CXX='-non_shared'
14100             ;;
14101           *)
14102             ;;
14103         esac
14104         ;;
14105       psos*)
14106         ;;
14107       solaris*)
14108         case $cc_basename in
14109           CC* | sunCC*)
14110             # Sun C++ 4.2, 5.x and Centerline C++
14111             lt_prog_compiler_pic_CXX='-KPIC'
14112             lt_prog_compiler_static_CXX='-Bstatic'
14113             lt_prog_compiler_wl_CXX='-Qoption ld '
14114             ;;
14115           gcx*)
14116             # Green Hills C++ Compiler
14117             lt_prog_compiler_pic_CXX='-PIC'
14118             ;;
14119           *)
14120             ;;
14121         esac
14122         ;;
14123       sunos4*)
14124         case $cc_basename in
14125           CC*)
14126             # Sun C++ 4.x
14127             lt_prog_compiler_pic_CXX='-pic'
14128             lt_prog_compiler_static_CXX='-Bstatic'
14129             ;;
14130           lcc*)
14131             # Lucid
14132             lt_prog_compiler_pic_CXX='-pic'
14133             ;;
14134           *)
14135             ;;
14136         esac
14137         ;;
14138       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14139         case $cc_basename in
14140           CC*)
14141             lt_prog_compiler_wl_CXX='-Wl,'
14142             lt_prog_compiler_pic_CXX='-KPIC'
14143             lt_prog_compiler_static_CXX='-Bstatic'
14144             ;;
14145         esac
14146         ;;
14147       tandem*)
14148         case $cc_basename in
14149           NCC*)
14150             # NonStop-UX NCC 3.20
14151             lt_prog_compiler_pic_CXX='-KPIC'
14152             ;;
14153           *)
14154             ;;
14155         esac
14156         ;;
14157       vxworks*)
14158         ;;
14159       *)
14160         lt_prog_compiler_can_build_shared_CXX=no
14161         ;;
14162     esac
14163   fi
14164
14165 case $host_os in
14166   # For platforms which do not support PIC, -DPIC is meaningless:
14167   *djgpp*)
14168     lt_prog_compiler_pic_CXX=
14169     ;;
14170   *)
14171     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14172     ;;
14173 esac
14174
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14176 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14177 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14178   $as_echo_n "(cached) " >&6
14179 else
14180   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14181 fi
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14183 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14184 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14185
14186 #
14187 # Check to make sure the PIC flag actually works.
14188 #
14189 if test -n "$lt_prog_compiler_pic_CXX"; then
14190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14191 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14192 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14193   $as_echo_n "(cached) " >&6
14194 else
14195   lt_cv_prog_compiler_pic_works_CXX=no
14196    ac_outfile=conftest.$ac_objext
14197    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14198    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14199    # Insert the option either (1) after the last *FLAGS variable, or
14200    # (2) before a word containing "conftest.", or (3) at the end.
14201    # Note that $ac_compile itself does not contain backslashes and begins
14202    # with a dollar sign (not a hyphen), so the echo should work correctly.
14203    # The option is referenced via a variable to avoid confusing sed.
14204    lt_compile=`echo "$ac_compile" | $SED \
14205    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14206    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14207    -e 's:$: $lt_compiler_flag:'`
14208    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14209    (eval "$lt_compile" 2>conftest.err)
14210    ac_status=$?
14211    cat conftest.err >&5
14212    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213    if (exit $ac_status) && test -s "$ac_outfile"; then
14214      # The compiler can only warn and ignore the option if not recognized
14215      # So say no if there are warnings other than the usual output.
14216      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14217      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14218      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14219        lt_cv_prog_compiler_pic_works_CXX=yes
14220      fi
14221    fi
14222    $RM conftest*
14223
14224 fi
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14226 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14227
14228 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14229     case $lt_prog_compiler_pic_CXX in
14230      "" | " "*) ;;
14231      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14232      esac
14233 else
14234     lt_prog_compiler_pic_CXX=
14235      lt_prog_compiler_can_build_shared_CXX=no
14236 fi
14237
14238 fi
14239
14240
14241
14242
14243
14244 #
14245 # Check to make sure the static flag actually works.
14246 #
14247 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14249 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14250 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14251   $as_echo_n "(cached) " >&6
14252 else
14253   lt_cv_prog_compiler_static_works_CXX=no
14254    save_LDFLAGS="$LDFLAGS"
14255    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14256    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14257    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14258      # The linker can only warn and ignore the option if not recognized
14259      # So say no if there are warnings
14260      if test -s conftest.err; then
14261        # Append any errors to the config.log.
14262        cat conftest.err 1>&5
14263        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14264        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14265        if diff conftest.exp conftest.er2 >/dev/null; then
14266          lt_cv_prog_compiler_static_works_CXX=yes
14267        fi
14268      else
14269        lt_cv_prog_compiler_static_works_CXX=yes
14270      fi
14271    fi
14272    $RM -r conftest*
14273    LDFLAGS="$save_LDFLAGS"
14274
14275 fi
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14277 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14278
14279 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14280     :
14281 else
14282     lt_prog_compiler_static_CXX=
14283 fi
14284
14285
14286
14287
14288     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14289 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14290 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14291   $as_echo_n "(cached) " >&6
14292 else
14293   lt_cv_prog_compiler_c_o_CXX=no
14294    $RM -r conftest 2>/dev/null
14295    mkdir conftest
14296    cd conftest
14297    mkdir out
14298    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14299
14300    lt_compiler_flag="-o out/conftest2.$ac_objext"
14301    # Insert the option either (1) after the last *FLAGS variable, or
14302    # (2) before a word containing "conftest.", or (3) at the end.
14303    # Note that $ac_compile itself does not contain backslashes and begins
14304    # with a dollar sign (not a hyphen), so the echo should work correctly.
14305    lt_compile=`echo "$ac_compile" | $SED \
14306    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14307    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14308    -e 's:$: $lt_compiler_flag:'`
14309    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14310    (eval "$lt_compile" 2>out/conftest.err)
14311    ac_status=$?
14312    cat out/conftest.err >&5
14313    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14315    then
14316      # The compiler can only warn and ignore the option if not recognized
14317      # So say no if there are warnings
14318      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14319      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14320      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14321        lt_cv_prog_compiler_c_o_CXX=yes
14322      fi
14323    fi
14324    chmod u+w . 2>&5
14325    $RM conftest*
14326    # SGI C++ compiler will create directory out/ii_files/ for
14327    # template instantiation
14328    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14329    $RM out/* && rmdir out
14330    cd ..
14331    $RM -r conftest
14332    $RM conftest*
14333
14334 fi
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14336 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14337
14338
14339
14340     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14341 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14342 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14343   $as_echo_n "(cached) " >&6
14344 else
14345   lt_cv_prog_compiler_c_o_CXX=no
14346    $RM -r conftest 2>/dev/null
14347    mkdir conftest
14348    cd conftest
14349    mkdir out
14350    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14351
14352    lt_compiler_flag="-o out/conftest2.$ac_objext"
14353    # Insert the option either (1) after the last *FLAGS variable, or
14354    # (2) before a word containing "conftest.", or (3) at the end.
14355    # Note that $ac_compile itself does not contain backslashes and begins
14356    # with a dollar sign (not a hyphen), so the echo should work correctly.
14357    lt_compile=`echo "$ac_compile" | $SED \
14358    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14359    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14360    -e 's:$: $lt_compiler_flag:'`
14361    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14362    (eval "$lt_compile" 2>out/conftest.err)
14363    ac_status=$?
14364    cat out/conftest.err >&5
14365    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14367    then
14368      # The compiler can only warn and ignore the option if not recognized
14369      # So say no if there are warnings
14370      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14371      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14372      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14373        lt_cv_prog_compiler_c_o_CXX=yes
14374      fi
14375    fi
14376    chmod u+w . 2>&5
14377    $RM conftest*
14378    # SGI C++ compiler will create directory out/ii_files/ for
14379    # template instantiation
14380    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14381    $RM out/* && rmdir out
14382    cd ..
14383    $RM -r conftest
14384    $RM conftest*
14385
14386 fi
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14388 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14389
14390
14391
14392
14393 hard_links="nottested"
14394 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14395   # do not overwrite the value of need_locks provided by the user
14396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14397 $as_echo_n "checking if we can lock with hard links... " >&6; }
14398   hard_links=yes
14399   $RM conftest*
14400   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14401   touch conftest.a
14402   ln conftest.a conftest.b 2>&5 || hard_links=no
14403   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14405 $as_echo "$hard_links" >&6; }
14406   if test "$hard_links" = no; then
14407     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14408 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14409     need_locks=warn
14410   fi
14411 else
14412   need_locks=no
14413 fi
14414
14415
14416
14417     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14418 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14419
14420   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14421   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14422   case $host_os in
14423   aix[4-9]*)
14424     # If we're using GNU nm, then we don't want the "-C" option.
14425     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14426     # Also, AIX nm treats weak defined symbols like other global defined
14427     # symbols, whereas GNU nm marks them as "W".
14428     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14429       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'
14430     else
14431       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'
14432     fi
14433     ;;
14434   pw32*)
14435     export_symbols_cmds_CXX="$ltdll_cmds"
14436     ;;
14437   cygwin* | mingw* | cegcc*)
14438     case $cc_basename in
14439     cl*)
14440       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14441       ;;
14442     *)
14443       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14444       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14445       ;;
14446     esac
14447     ;;
14448   linux* | k*bsd*-gnu | gnu*)
14449     link_all_deplibs_CXX=no
14450     ;;
14451   *)
14452     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14453     ;;
14454   esac
14455
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14457 $as_echo "$ld_shlibs_CXX" >&6; }
14458 test "$ld_shlibs_CXX" = no && can_build_shared=no
14459
14460 with_gnu_ld_CXX=$with_gnu_ld
14461
14462
14463
14464
14465
14466
14467 #
14468 # Do we need to explicitly link libc?
14469 #
14470 case "x$archive_cmds_need_lc_CXX" in
14471 x|xyes)
14472   # Assume -lc should be added
14473   archive_cmds_need_lc_CXX=yes
14474
14475   if test "$enable_shared" = yes && test "$GCC" = yes; then
14476     case $archive_cmds_CXX in
14477     *'~'*)
14478       # FIXME: we may have to deal with multi-command sequences.
14479       ;;
14480     '$CC '*)
14481       # Test whether the compiler implicitly links with -lc since on some
14482       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14483       # to ld, don't add -lc before -lgcc.
14484       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14485 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14486 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14487   $as_echo_n "(cached) " >&6
14488 else
14489   $RM conftest*
14490         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14491
14492         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14493   (eval $ac_compile) 2>&5
14494   ac_status=$?
14495   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14496   test $ac_status = 0; } 2>conftest.err; then
14497           soname=conftest
14498           lib=conftest
14499           libobjs=conftest.$ac_objext
14500           deplibs=
14501           wl=$lt_prog_compiler_wl_CXX
14502           pic_flag=$lt_prog_compiler_pic_CXX
14503           compiler_flags=-v
14504           linker_flags=-v
14505           verstring=
14506           output_objdir=.
14507           libname=conftest
14508           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14509           allow_undefined_flag_CXX=
14510           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14511   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14512   ac_status=$?
14513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14514   test $ac_status = 0; }
14515           then
14516             lt_cv_archive_cmds_need_lc_CXX=no
14517           else
14518             lt_cv_archive_cmds_need_lc_CXX=yes
14519           fi
14520           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14521         else
14522           cat conftest.err 1>&5
14523         fi
14524         $RM conftest*
14525
14526 fi
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14528 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14529       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14530       ;;
14531     esac
14532   fi
14533   ;;
14534 esac
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14598 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14599
14600 library_names_spec=
14601 libname_spec='lib$name'
14602 soname_spec=
14603 shrext_cmds=".so"
14604 postinstall_cmds=
14605 postuninstall_cmds=
14606 finish_cmds=
14607 finish_eval=
14608 shlibpath_var=
14609 shlibpath_overrides_runpath=unknown
14610 version_type=none
14611 dynamic_linker="$host_os ld.so"
14612 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14613 need_lib_prefix=unknown
14614 hardcode_into_libs=no
14615
14616 # when you set need_version to no, make sure it does not cause -set_version
14617 # flags to be left without arguments
14618 need_version=unknown
14619
14620 case $host_os in
14621 aix3*)
14622   version_type=linux # correct to gnu/linux during the next big refactor
14623   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14624   shlibpath_var=LIBPATH
14625
14626   # AIX 3 has no versioning support, so we append a major version to the name.
14627   soname_spec='${libname}${release}${shared_ext}$major'
14628   ;;
14629
14630 aix[4-9]*)
14631   version_type=linux # correct to gnu/linux during the next big refactor
14632   need_lib_prefix=no
14633   need_version=no
14634   hardcode_into_libs=yes
14635   if test "$host_cpu" = ia64; then
14636     # AIX 5 supports IA64
14637     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14638     shlibpath_var=LD_LIBRARY_PATH
14639   else
14640     # With GCC up to 2.95.x, collect2 would create an import file
14641     # for dependence libraries.  The import file would start with
14642     # the line `#! .'.  This would cause the generated library to
14643     # depend on `.', always an invalid library.  This was fixed in
14644     # development snapshots of GCC prior to 3.0.
14645     case $host_os in
14646       aix4 | aix4.[01] | aix4.[01].*)
14647       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14648            echo ' yes '
14649            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14650         :
14651       else
14652         can_build_shared=no
14653       fi
14654       ;;
14655     esac
14656     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14657     # soname into executable. Probably we can add versioning support to
14658     # collect2, so additional links can be useful in future.
14659     if test "$aix_use_runtimelinking" = yes; then
14660       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14661       # instead of lib<name>.a to let people know that these are not
14662       # typical AIX shared libraries.
14663       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14664     else
14665       # We preserve .a as extension for shared libraries through AIX4.2
14666       # and later when we are not doing run time linking.
14667       library_names_spec='${libname}${release}.a $libname.a'
14668       soname_spec='${libname}${release}${shared_ext}$major'
14669     fi
14670     shlibpath_var=LIBPATH
14671   fi
14672   ;;
14673
14674 amigaos*)
14675   case $host_cpu in
14676   powerpc)
14677     # Since July 2007 AmigaOS4 officially supports .so libraries.
14678     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14679     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14680     ;;
14681   m68k)
14682     library_names_spec='$libname.ixlibrary $libname.a'
14683     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14684     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'
14685     ;;
14686   esac
14687   ;;
14688
14689 beos*)
14690   library_names_spec='${libname}${shared_ext}'
14691   dynamic_linker="$host_os ld.so"
14692   shlibpath_var=LIBRARY_PATH
14693   ;;
14694
14695 bsdi[45]*)
14696   version_type=linux # correct to gnu/linux during the next big refactor
14697   need_version=no
14698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14699   soname_spec='${libname}${release}${shared_ext}$major'
14700   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14701   shlibpath_var=LD_LIBRARY_PATH
14702   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14703   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14704   # the default ld.so.conf also contains /usr/contrib/lib and
14705   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14706   # libtool to hard-code these into programs
14707   ;;
14708
14709 cygwin* | mingw* | pw32* | cegcc*)
14710   version_type=windows
14711   shrext_cmds=".dll"
14712   need_version=no
14713   need_lib_prefix=no
14714
14715   case $GCC,$cc_basename in
14716   yes,*)
14717     # gcc
14718     library_names_spec='$libname.dll.a'
14719     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14720     postinstall_cmds='base_file=`basename \${file}`~
14721       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14722       dldir=$destdir/`dirname \$dlpath`~
14723       test -d \$dldir || mkdir -p \$dldir~
14724       $install_prog $dir/$dlname \$dldir/$dlname~
14725       chmod a+x \$dldir/$dlname~
14726       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14727         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14728       fi'
14729     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14730       dlpath=$dir/\$dldll~
14731        $RM \$dlpath'
14732     shlibpath_overrides_runpath=yes
14733
14734     case $host_os in
14735     cygwin*)
14736       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14737       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14738
14739       ;;
14740     mingw* | cegcc*)
14741       # MinGW DLLs use traditional 'lib' prefix
14742       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14743       ;;
14744     pw32*)
14745       # pw32 DLLs use 'pw' prefix rather than 'lib'
14746       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14747       ;;
14748     esac
14749     dynamic_linker='Win32 ld.exe'
14750     ;;
14751
14752   *,cl*)
14753     # Native MSVC
14754     libname_spec='$name'
14755     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14756     library_names_spec='${libname}.dll.lib'
14757
14758     case $build_os in
14759     mingw*)
14760       sys_lib_search_path_spec=
14761       lt_save_ifs=$IFS
14762       IFS=';'
14763       for lt_path in $LIB
14764       do
14765         IFS=$lt_save_ifs
14766         # Let DOS variable expansion print the short 8.3 style file name.
14767         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14768         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14769       done
14770       IFS=$lt_save_ifs
14771       # Convert to MSYS style.
14772       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14773       ;;
14774     cygwin*)
14775       # Convert to unix form, then to dos form, then back to unix form
14776       # but this time dos style (no spaces!) so that the unix form looks
14777       # like /cygdrive/c/PROGRA~1:/cygdr...
14778       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14779       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14780       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14781       ;;
14782     *)
14783       sys_lib_search_path_spec="$LIB"
14784       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14785         # It is most probably a Windows format PATH.
14786         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14787       else
14788         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14789       fi
14790       # FIXME: find the short name or the path components, as spaces are
14791       # common. (e.g. "Program Files" -> "PROGRA~1")
14792       ;;
14793     esac
14794
14795     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14796     postinstall_cmds='base_file=`basename \${file}`~
14797       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14798       dldir=$destdir/`dirname \$dlpath`~
14799       test -d \$dldir || mkdir -p \$dldir~
14800       $install_prog $dir/$dlname \$dldir/$dlname'
14801     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14802       dlpath=$dir/\$dldll~
14803        $RM \$dlpath'
14804     shlibpath_overrides_runpath=yes
14805     dynamic_linker='Win32 link.exe'
14806     ;;
14807
14808   *)
14809     # Assume MSVC wrapper
14810     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14811     dynamic_linker='Win32 ld.exe'
14812     ;;
14813   esac
14814   # FIXME: first we should search . and the directory the executable is in
14815   shlibpath_var=PATH
14816   ;;
14817
14818 darwin* | rhapsody*)
14819   dynamic_linker="$host_os dyld"
14820   version_type=darwin
14821   need_lib_prefix=no
14822   need_version=no
14823   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14824   soname_spec='${libname}${release}${major}$shared_ext'
14825   shlibpath_overrides_runpath=yes
14826   shlibpath_var=DYLD_LIBRARY_PATH
14827   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14828
14829   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14830   ;;
14831
14832 dgux*)
14833   version_type=linux # correct to gnu/linux during the next big refactor
14834   need_lib_prefix=no
14835   need_version=no
14836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14837   soname_spec='${libname}${release}${shared_ext}$major'
14838   shlibpath_var=LD_LIBRARY_PATH
14839   ;;
14840
14841 freebsd* | dragonfly*)
14842   # DragonFly does not have aout.  When/if they implement a new
14843   # versioning mechanism, adjust this.
14844   if test -x /usr/bin/objformat; then
14845     objformat=`/usr/bin/objformat`
14846   else
14847     case $host_os in
14848     freebsd[23].*) objformat=aout ;;
14849     *) objformat=elf ;;
14850     esac
14851   fi
14852   version_type=freebsd-$objformat
14853   case $version_type in
14854     freebsd-elf*)
14855       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14856       need_version=no
14857       need_lib_prefix=no
14858       ;;
14859     freebsd-*)
14860       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14861       need_version=yes
14862       ;;
14863   esac
14864   shlibpath_var=LD_LIBRARY_PATH
14865   case $host_os in
14866   freebsd2.*)
14867     shlibpath_overrides_runpath=yes
14868     ;;
14869   freebsd3.[01]* | freebsdelf3.[01]*)
14870     shlibpath_overrides_runpath=yes
14871     hardcode_into_libs=yes
14872     ;;
14873   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14874   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14875     shlibpath_overrides_runpath=no
14876     hardcode_into_libs=yes
14877     ;;
14878   *) # from 4.6 on, and DragonFly
14879     shlibpath_overrides_runpath=yes
14880     hardcode_into_libs=yes
14881     ;;
14882   esac
14883   ;;
14884
14885 gnu*)
14886   version_type=linux # correct to gnu/linux during the next big refactor
14887   need_lib_prefix=no
14888   need_version=no
14889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14890   soname_spec='${libname}${release}${shared_ext}$major'
14891   shlibpath_var=LD_LIBRARY_PATH
14892   shlibpath_overrides_runpath=no
14893   hardcode_into_libs=yes
14894   ;;
14895
14896 haiku*)
14897   version_type=linux # correct to gnu/linux during the next big refactor
14898   need_lib_prefix=no
14899   need_version=no
14900   dynamic_linker="$host_os runtime_loader"
14901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14902   soname_spec='${libname}${release}${shared_ext}$major'
14903   shlibpath_var=LIBRARY_PATH
14904   shlibpath_overrides_runpath=yes
14905   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14906   hardcode_into_libs=yes
14907   ;;
14908
14909 hpux9* | hpux10* | hpux11*)
14910   # Give a soname corresponding to the major version so that dld.sl refuses to
14911   # link against other versions.
14912   version_type=sunos
14913   need_lib_prefix=no
14914   need_version=no
14915   case $host_cpu in
14916   ia64*)
14917     shrext_cmds='.so'
14918     hardcode_into_libs=yes
14919     dynamic_linker="$host_os dld.so"
14920     shlibpath_var=LD_LIBRARY_PATH
14921     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14922     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14923     soname_spec='${libname}${release}${shared_ext}$major'
14924     if test "X$HPUX_IA64_MODE" = X32; then
14925       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14926     else
14927       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14928     fi
14929     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14930     ;;
14931   hppa*64*)
14932     shrext_cmds='.sl'
14933     hardcode_into_libs=yes
14934     dynamic_linker="$host_os dld.sl"
14935     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14936     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14937     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14938     soname_spec='${libname}${release}${shared_ext}$major'
14939     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14940     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14941     ;;
14942   *)
14943     shrext_cmds='.sl'
14944     dynamic_linker="$host_os dld.sl"
14945     shlibpath_var=SHLIB_PATH
14946     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14947     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14948     soname_spec='${libname}${release}${shared_ext}$major'
14949     ;;
14950   esac
14951   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14952   postinstall_cmds='chmod 555 $lib'
14953   # or fails outright, so override atomically:
14954   install_override_mode=555
14955   ;;
14956
14957 interix[3-9]*)
14958   version_type=linux # correct to gnu/linux during the next big refactor
14959   need_lib_prefix=no
14960   need_version=no
14961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14962   soname_spec='${libname}${release}${shared_ext}$major'
14963   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14964   shlibpath_var=LD_LIBRARY_PATH
14965   shlibpath_overrides_runpath=no
14966   hardcode_into_libs=yes
14967   ;;
14968
14969 irix5* | irix6* | nonstopux*)
14970   case $host_os in
14971     nonstopux*) version_type=nonstopux ;;
14972     *)
14973         if test "$lt_cv_prog_gnu_ld" = yes; then
14974                 version_type=linux # correct to gnu/linux during the next big refactor
14975         else
14976                 version_type=irix
14977         fi ;;
14978   esac
14979   need_lib_prefix=no
14980   need_version=no
14981   soname_spec='${libname}${release}${shared_ext}$major'
14982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14983   case $host_os in
14984   irix5* | nonstopux*)
14985     libsuff= shlibsuff=
14986     ;;
14987   *)
14988     case $LD in # libtool.m4 will add one of these switches to LD
14989     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14990       libsuff= shlibsuff= libmagic=32-bit;;
14991     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14992       libsuff=32 shlibsuff=N32 libmagic=N32;;
14993     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14994       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14995     *) libsuff= shlibsuff= libmagic=never-match;;
14996     esac
14997     ;;
14998   esac
14999   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15000   shlibpath_overrides_runpath=no
15001   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15002   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15003   hardcode_into_libs=yes
15004   ;;
15005
15006 # No shared lib support for Linux oldld, aout, or coff.
15007 linux*oldld* | linux*aout* | linux*coff*)
15008   dynamic_linker=no
15009   ;;
15010
15011 # This must be glibc/ELF.
15012 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15013   version_type=linux # correct to gnu/linux during the next big refactor
15014   need_lib_prefix=no
15015   need_version=no
15016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15017   soname_spec='${libname}${release}${shared_ext}$major'
15018   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15019   shlibpath_var=LD_LIBRARY_PATH
15020   shlibpath_overrides_runpath=no
15021
15022   # Some binutils ld are patched to set DT_RUNPATH
15023   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15024   $as_echo_n "(cached) " >&6
15025 else
15026   lt_cv_shlibpath_overrides_runpath=no
15027     save_LDFLAGS=$LDFLAGS
15028     save_libdir=$libdir
15029     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15030          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15031     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15032 /* end confdefs.h.  */
15033
15034 int
15035 main ()
15036 {
15037
15038   ;
15039   return 0;
15040 }
15041 _ACEOF
15042 if ac_fn_cxx_try_link "$LINENO"; then :
15043   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15044   lt_cv_shlibpath_overrides_runpath=yes
15045 fi
15046 fi
15047 rm -f core conftest.err conftest.$ac_objext \
15048     conftest$ac_exeext conftest.$ac_ext
15049     LDFLAGS=$save_LDFLAGS
15050     libdir=$save_libdir
15051
15052 fi
15053
15054   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15055
15056   # This implies no fast_install, which is unacceptable.
15057   # Some rework will be needed to allow for fast_install
15058   # before this can be enabled.
15059   hardcode_into_libs=yes
15060
15061   # Append ld.so.conf contents to the search path
15062   if test -f /etc/ld.so.conf; then
15063     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' ' '`
15064     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15065   fi
15066
15067   # We used to test for /lib/ld.so.1 and disable shared libraries on
15068   # powerpc, because MkLinux only supported shared libraries with the
15069   # GNU dynamic linker.  Since this was broken with cross compilers,
15070   # most powerpc-linux boxes support dynamic linking these days and
15071   # people can always --disable-shared, the test was removed, and we
15072   # assume the GNU/Linux dynamic linker is in use.
15073   dynamic_linker='GNU/Linux ld.so'
15074   ;;
15075
15076 netbsdelf*-gnu)
15077   version_type=linux
15078   need_lib_prefix=no
15079   need_version=no
15080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15081   soname_spec='${libname}${release}${shared_ext}$major'
15082   shlibpath_var=LD_LIBRARY_PATH
15083   shlibpath_overrides_runpath=no
15084   hardcode_into_libs=yes
15085   dynamic_linker='NetBSD ld.elf_so'
15086   ;;
15087
15088 netbsd*)
15089   version_type=sunos
15090   need_lib_prefix=no
15091   need_version=no
15092   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15093     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15094     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15095     dynamic_linker='NetBSD (a.out) ld.so'
15096   else
15097     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15098     soname_spec='${libname}${release}${shared_ext}$major'
15099     dynamic_linker='NetBSD ld.elf_so'
15100   fi
15101   shlibpath_var=LD_LIBRARY_PATH
15102   shlibpath_overrides_runpath=yes
15103   hardcode_into_libs=yes
15104   ;;
15105
15106 newsos6)
15107   version_type=linux # correct to gnu/linux during the next big refactor
15108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15109   shlibpath_var=LD_LIBRARY_PATH
15110   shlibpath_overrides_runpath=yes
15111   ;;
15112
15113 *nto* | *qnx*)
15114   version_type=qnx
15115   need_lib_prefix=no
15116   need_version=no
15117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15118   soname_spec='${libname}${release}${shared_ext}$major'
15119   shlibpath_var=LD_LIBRARY_PATH
15120   shlibpath_overrides_runpath=no
15121   hardcode_into_libs=yes
15122   dynamic_linker='ldqnx.so'
15123   ;;
15124
15125 openbsd*)
15126   version_type=sunos
15127   sys_lib_dlsearch_path_spec="/usr/lib"
15128   need_lib_prefix=no
15129   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15130   case $host_os in
15131     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15132     *)                          need_version=no  ;;
15133   esac
15134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15135   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15136   shlibpath_var=LD_LIBRARY_PATH
15137   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15138     case $host_os in
15139       openbsd2.[89] | openbsd2.[89].*)
15140         shlibpath_overrides_runpath=no
15141         ;;
15142       *)
15143         shlibpath_overrides_runpath=yes
15144         ;;
15145       esac
15146   else
15147     shlibpath_overrides_runpath=yes
15148   fi
15149   ;;
15150
15151 os2*)
15152   libname_spec='$name'
15153   shrext_cmds=".dll"
15154   need_lib_prefix=no
15155   library_names_spec='$libname${shared_ext} $libname.a'
15156   dynamic_linker='OS/2 ld.exe'
15157   shlibpath_var=LIBPATH
15158   ;;
15159
15160 osf3* | osf4* | osf5*)
15161   version_type=osf
15162   need_lib_prefix=no
15163   need_version=no
15164   soname_spec='${libname}${release}${shared_ext}$major'
15165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15166   shlibpath_var=LD_LIBRARY_PATH
15167   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15168   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15169   ;;
15170
15171 rdos*)
15172   dynamic_linker=no
15173   ;;
15174
15175 solaris*)
15176   version_type=linux # correct to gnu/linux during the next big refactor
15177   need_lib_prefix=no
15178   need_version=no
15179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15180   soname_spec='${libname}${release}${shared_ext}$major'
15181   shlibpath_var=LD_LIBRARY_PATH
15182   shlibpath_overrides_runpath=yes
15183   hardcode_into_libs=yes
15184   # ldd complains unless libraries are executable
15185   postinstall_cmds='chmod +x $lib'
15186   ;;
15187
15188 sunos4*)
15189   version_type=sunos
15190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15191   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15192   shlibpath_var=LD_LIBRARY_PATH
15193   shlibpath_overrides_runpath=yes
15194   if test "$with_gnu_ld" = yes; then
15195     need_lib_prefix=no
15196   fi
15197   need_version=yes
15198   ;;
15199
15200 sysv4 | sysv4.3*)
15201   version_type=linux # correct to gnu/linux during the next big refactor
15202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15203   soname_spec='${libname}${release}${shared_ext}$major'
15204   shlibpath_var=LD_LIBRARY_PATH
15205   case $host_vendor in
15206     sni)
15207       shlibpath_overrides_runpath=no
15208       need_lib_prefix=no
15209       runpath_var=LD_RUN_PATH
15210       ;;
15211     siemens)
15212       need_lib_prefix=no
15213       ;;
15214     motorola)
15215       need_lib_prefix=no
15216       need_version=no
15217       shlibpath_overrides_runpath=no
15218       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15219       ;;
15220   esac
15221   ;;
15222
15223 sysv4*MP*)
15224   if test -d /usr/nec ;then
15225     version_type=linux # correct to gnu/linux during the next big refactor
15226     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15227     soname_spec='$libname${shared_ext}.$major'
15228     shlibpath_var=LD_LIBRARY_PATH
15229   fi
15230   ;;
15231
15232 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15233   version_type=freebsd-elf
15234   need_lib_prefix=no
15235   need_version=no
15236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15237   soname_spec='${libname}${release}${shared_ext}$major'
15238   shlibpath_var=LD_LIBRARY_PATH
15239   shlibpath_overrides_runpath=yes
15240   hardcode_into_libs=yes
15241   if test "$with_gnu_ld" = yes; then
15242     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15243   else
15244     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15245     case $host_os in
15246       sco3.2v5*)
15247         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15248         ;;
15249     esac
15250   fi
15251   sys_lib_dlsearch_path_spec='/usr/lib'
15252   ;;
15253
15254 tpf*)
15255   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15256   version_type=linux # correct to gnu/linux during the next big refactor
15257   need_lib_prefix=no
15258   need_version=no
15259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15260   shlibpath_var=LD_LIBRARY_PATH
15261   shlibpath_overrides_runpath=no
15262   hardcode_into_libs=yes
15263   ;;
15264
15265 uts4*)
15266   version_type=linux # correct to gnu/linux during the next big refactor
15267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15268   soname_spec='${libname}${release}${shared_ext}$major'
15269   shlibpath_var=LD_LIBRARY_PATH
15270   ;;
15271
15272 *)
15273   dynamic_linker=no
15274   ;;
15275 esac
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15277 $as_echo "$dynamic_linker" >&6; }
15278 test "$dynamic_linker" = no && can_build_shared=no
15279
15280 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15281 if test "$GCC" = yes; then
15282   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15283 fi
15284
15285 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15286   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15287 fi
15288 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15289   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15290 fi
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15330 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15331 hardcode_action_CXX=
15332 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15333    test -n "$runpath_var_CXX" ||
15334    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15335
15336   # We can hardcode non-existent directories.
15337   if test "$hardcode_direct_CXX" != no &&
15338      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15339      # have to relink, otherwise we might link with an installed library
15340      # when we should be linking with a yet-to-be-installed one
15341      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15342      test "$hardcode_minus_L_CXX" != no; then
15343     # Linking always hardcodes the temporary library directory.
15344     hardcode_action_CXX=relink
15345   else
15346     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15347     hardcode_action_CXX=immediate
15348   fi
15349 else
15350   # We cannot hardcode anything, or else we can only hardcode existing
15351   # directories.
15352   hardcode_action_CXX=unsupported
15353 fi
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15355 $as_echo "$hardcode_action_CXX" >&6; }
15356
15357 if test "$hardcode_action_CXX" = relink ||
15358    test "$inherit_rpath_CXX" = yes; then
15359   # Fast installation is not supported
15360   enable_fast_install=no
15361 elif test "$shlibpath_overrides_runpath" = yes ||
15362      test "$enable_shared" = no; then
15363   # Fast installation is not necessary
15364   enable_fast_install=needless
15365 fi
15366
15367
15368
15369
15370
15371
15372
15373   fi # test -n "$compiler"
15374
15375   CC=$lt_save_CC
15376   CFLAGS=$lt_save_CFLAGS
15377   LDCXX=$LD
15378   LD=$lt_save_LD
15379   GCC=$lt_save_GCC
15380   with_gnu_ld=$lt_save_with_gnu_ld
15381   lt_cv_path_LDCXX=$lt_cv_path_LD
15382   lt_cv_path_LD=$lt_save_path_LD
15383   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15384   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15385 fi # test "$_lt_caught_CXX_error" != yes
15386
15387 ac_ext=cpp
15388 ac_cpp='$CXXCPP $CPPFLAGS'
15389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407         ac_config_commands="$ac_config_commands libtool"
15408
15409
15410
15411
15412 # Only expand once:
15413
15414
15415
15416
15417 # Check whether some low-level functions/files are available
15418
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15420 $as_echo_n "checking for ANSI C header files... " >&6; }
15421 if ${ac_cv_header_stdc+:} false; then :
15422   $as_echo_n "(cached) " >&6
15423 else
15424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15425 /* end confdefs.h.  */
15426 #include <stdlib.h>
15427 #include <stdarg.h>
15428 #include <string.h>
15429 #include <float.h>
15430
15431 int
15432 main ()
15433 {
15434
15435   ;
15436   return 0;
15437 }
15438 _ACEOF
15439 if ac_fn_cxx_try_compile "$LINENO"; then :
15440   ac_cv_header_stdc=yes
15441 else
15442   ac_cv_header_stdc=no
15443 fi
15444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15445
15446 if test $ac_cv_header_stdc = yes; then
15447   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15449 /* end confdefs.h.  */
15450 #include <string.h>
15451
15452 _ACEOF
15453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15454   $EGREP "memchr" >/dev/null 2>&1; then :
15455
15456 else
15457   ac_cv_header_stdc=no
15458 fi
15459 rm -f conftest*
15460
15461 fi
15462
15463 if test $ac_cv_header_stdc = yes; then
15464   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15466 /* end confdefs.h.  */
15467 #include <stdlib.h>
15468
15469 _ACEOF
15470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15471   $EGREP "free" >/dev/null 2>&1; then :
15472
15473 else
15474   ac_cv_header_stdc=no
15475 fi
15476 rm -f conftest*
15477
15478 fi
15479
15480 if test $ac_cv_header_stdc = yes; then
15481   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15482   if test "$cross_compiling" = yes; then :
15483   :
15484 else
15485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15486 /* end confdefs.h.  */
15487 #include <ctype.h>
15488 #include <stdlib.h>
15489 #if ((' ' & 0x0FF) == 0x020)
15490 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15491 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15492 #else
15493 # define ISLOWER(c) \
15494                    (('a' <= (c) && (c) <= 'i') \
15495                      || ('j' <= (c) && (c) <= 'r') \
15496                      || ('s' <= (c) && (c) <= 'z'))
15497 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15498 #endif
15499
15500 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15501 int
15502 main ()
15503 {
15504   int i;
15505   for (i = 0; i < 256; i++)
15506     if (XOR (islower (i), ISLOWER (i))
15507         || toupper (i) != TOUPPER (i))
15508       return 2;
15509   return 0;
15510 }
15511 _ACEOF
15512 if ac_fn_cxx_try_run "$LINENO"; then :
15513
15514 else
15515   ac_cv_header_stdc=no
15516 fi
15517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15518   conftest.$ac_objext conftest.beam conftest.$ac_ext
15519 fi
15520
15521 fi
15522 fi
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15524 $as_echo "$ac_cv_header_stdc" >&6; }
15525 if test $ac_cv_header_stdc = yes; then
15526
15527 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15528
15529 fi
15530
15531
15532 # These are tested for by AC_HEADER_STDC, but I check again to set the var
15533 ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
15534 if test "x$ac_cv_header_stdint_h" = xyes; then :
15535   ac_cv_have_stdint_h=1
15536 else
15537   ac_cv_have_stdint_h=0
15538 fi
15539
15540
15541 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
15542 if test "x$ac_cv_header_sys_types_h" = xyes; then :
15543   ac_cv_have_systypes_h=1
15544 else
15545   ac_cv_have_systypes_h=0
15546 fi
15547
15548
15549 ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
15550 if test "x$ac_cv_header_inttypes_h" = xyes; then :
15551   ac_cv_have_inttypes_h=1
15552 else
15553   ac_cv_have_inttypes_h=0
15554 fi
15555
15556
15557 for ac_header in unistd.h
15558 do :
15559   ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15560 if test "x$ac_cv_header_unistd_h" = xyes; then :
15561   cat >>confdefs.h <<_ACEOF
15562 #define HAVE_UNISTD_H 1
15563 _ACEOF
15564  ac_cv_have_unistd_h=1
15565 else
15566   ac_cv_have_unistd_h=0
15567 fi
15568
15569 done
15570
15571 for ac_header in syscall.h
15572 do :
15573   ac_fn_cxx_check_header_mongrel "$LINENO" "syscall.h" "ac_cv_header_syscall_h" "$ac_includes_default"
15574 if test "x$ac_cv_header_syscall_h" = xyes; then :
15575   cat >>confdefs.h <<_ACEOF
15576 #define HAVE_SYSCALL_H 1
15577 _ACEOF
15578
15579 fi
15580
15581 done
15582
15583 for ac_header in sys/syscall.h
15584 do :
15585   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
15586 if test "x$ac_cv_header_sys_syscall_h" = xyes; then :
15587   cat >>confdefs.h <<_ACEOF
15588 #define HAVE_SYS_SYSCALL_H 1
15589 _ACEOF
15590
15591 fi
15592
15593 done
15594
15595 # For backtrace with glibc.
15596 for ac_header in execinfo.h
15597 do :
15598   ac_fn_cxx_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
15599 if test "x$ac_cv_header_execinfo_h" = xyes; then :
15600   cat >>confdefs.h <<_ACEOF
15601 #define HAVE_EXECINFO_H 1
15602 _ACEOF
15603
15604 fi
15605
15606 done
15607
15608 # For backtrace with libunwind.
15609 for ac_header in libunwind.h
15610 do :
15611   ac_fn_cxx_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
15612 if test "x$ac_cv_header_libunwind_h" = xyes; then :
15613   cat >>confdefs.h <<_ACEOF
15614 #define HAVE_LIBUNWIND_H 1
15615 _ACEOF
15616  ac_cv_have_libunwind_h=1
15617 else
15618   ac_cv_have_libunwind_h=0
15619 fi
15620
15621 done
15622
15623 for ac_header in ucontext.h
15624 do :
15625   ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
15626 if test "x$ac_cv_header_ucontext_h" = xyes; then :
15627   cat >>confdefs.h <<_ACEOF
15628 #define HAVE_UCONTEXT_H 1
15629 _ACEOF
15630
15631 fi
15632
15633 done
15634
15635 for ac_header in sys/utsname.h
15636 do :
15637   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
15638 if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
15639   cat >>confdefs.h <<_ACEOF
15640 #define HAVE_SYS_UTSNAME_H 1
15641 _ACEOF
15642
15643 fi
15644
15645 done
15646
15647 for ac_header in pwd.h
15648 do :
15649   ac_fn_cxx_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
15650 if test "x$ac_cv_header_pwd_h" = xyes; then :
15651   cat >>confdefs.h <<_ACEOF
15652 #define HAVE_PWD_H 1
15653 _ACEOF
15654
15655 fi
15656
15657 done
15658
15659 for ac_header in syslog.h
15660 do :
15661   ac_fn_cxx_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
15662 if test "x$ac_cv_header_syslog_h" = xyes; then :
15663   cat >>confdefs.h <<_ACEOF
15664 #define HAVE_SYSLOG_H 1
15665 _ACEOF
15666
15667 fi
15668
15669 done
15670
15671 for ac_header in sys/time.h
15672 do :
15673   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
15674 if test "x$ac_cv_header_sys_time_h" = xyes; then :
15675   cat >>confdefs.h <<_ACEOF
15676 #define HAVE_SYS_TIME_H 1
15677 _ACEOF
15678
15679 fi
15680
15681 done
15682
15683 for ac_header in glob.h
15684 do :
15685   ac_fn_cxx_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
15686 if test "x$ac_cv_header_glob_h" = xyes; then :
15687   cat >>confdefs.h <<_ACEOF
15688 #define HAVE_GLOB_H 1
15689 _ACEOF
15690
15691 fi
15692
15693 done
15694
15695 # For backtrace with gcc.
15696 for ac_header in unwind.h
15697 do :
15698   ac_fn_cxx_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
15699 if test "x$ac_cv_header_unwind_h" = xyes; then :
15700   cat >>confdefs.h <<_ACEOF
15701 #define HAVE_UNWIND_H 1
15702 _ACEOF
15703
15704 fi
15705
15706 done
15707
15708
15709 # The cast to long int works around a bug in the HP C Compiler
15710 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15711 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15712 # This bug is HP SR number 8606223364.
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15714 $as_echo_n "checking size of void *... " >&6; }
15715 if ${ac_cv_sizeof_void_p+:} false; then :
15716   $as_echo_n "(cached) " >&6
15717 else
15718   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
15719
15720 else
15721   if test "$ac_cv_type_void_p" = yes; then
15722      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15724 as_fn_error 77 "cannot compute sizeof (void *)
15725 See \`config.log' for more details" "$LINENO" 5; }
15726    else
15727      ac_cv_sizeof_void_p=0
15728    fi
15729 fi
15730
15731 fi
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15733 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15734
15735
15736
15737 cat >>confdefs.h <<_ACEOF
15738 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15739 _ACEOF
15740
15741
15742
15743 # These are the types I need.  We look for them in either stdint.h,
15744 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
15745 ac_fn_cxx_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
15746 if test "x$ac_cv_type_uint16_t" = xyes; then :
15747   ac_cv_have_uint16_t=1
15748 else
15749   ac_cv_have_uint16_t=0
15750 fi
15751
15752 ac_fn_cxx_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
15753 if test "x$ac_cv_type_u_int16_t" = xyes; then :
15754   ac_cv_have_u_int16_t=1
15755 else
15756   ac_cv_have_u_int16_t=0
15757 fi
15758
15759 ac_fn_cxx_check_type "$LINENO" "__uint16" "ac_cv_type___uint16" "$ac_includes_default"
15760 if test "x$ac_cv_type___uint16" = xyes; then :
15761   ac_cv_have___uint16=1
15762 else
15763   ac_cv_have___uint16=0
15764 fi
15765
15766
15767 ac_fn_cxx_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack"
15768 if test "x$ac_cv_func_sigaltstack" = xyes; then :
15769
15770 $as_echo "#define HAVE_SIGALTSTACK 1" >>confdefs.h
15771
15772 fi
15773
15774 ac_fn_cxx_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
15775 if test "x$ac_cv_func_dladdr" = xyes; then :
15776
15777 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
15778
15779 fi
15780
15781 ac_fn_cxx_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
15782 if test "x$ac_cv_func_fcntl" = xyes; then :
15783
15784 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
15785
15786 fi
15787
15788
15789
15790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
15791 $as_echo_n "checking for __attribute__... " >&6; }
15792   if ${ac_cv___attribute__+:} false; then :
15793   $as_echo_n "(cached) " >&6
15794 else
15795
15796     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15797 /* end confdefs.h.  */
15798 #include <stdlib.h>
15799        static void foo(void) __attribute__ ((unused));
15800        void foo(void) { exit(1); }
15801 int
15802 main ()
15803 {
15804
15805   ;
15806   return 0;
15807 }
15808 _ACEOF
15809 if ac_fn_cxx_try_compile "$LINENO"; then :
15810   ac_cv___attribute__=yes
15811 else
15812   ac_cv___attribute__=no
15813
15814 fi
15815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15816 fi
15817
15818   if test "$ac_cv___attribute__" = "yes"; then
15819
15820 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
15821
15822   fi
15823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
15824 $as_echo "$ac_cv___attribute__" >&6; }
15825
15826 # We only care about these two attributes.
15827 if test x"$ac_cv___attribute__" = x"yes"; then
15828   ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
15829   ac_cv___attribute___noinline="__attribute__ ((noinline))"
15830   ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
15831 else
15832   ac_cv___attribute___noreturn=
15833   ac_cv___attribute___noinline=
15834   ac_cv___attribute___printf_4_5=
15835 fi
15836
15837
15838   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
15839 $as_echo_n "checking for __builtin_expect... " >&6; }
15840   if ${ac_cv___builtin_expect+:} false; then :
15841   $as_echo_n "(cached) " >&6
15842 else
15843
15844     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15845 /* end confdefs.h.  */
15846 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
15847 int
15848 main ()
15849 {
15850
15851   ;
15852   return 0;
15853 }
15854 _ACEOF
15855 if ac_fn_cxx_try_compile "$LINENO"; then :
15856   ac_cv___builtin_expect=yes
15857 else
15858   ac_cv___builtin_expect=no
15859
15860 fi
15861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15862 fi
15863
15864   if test "$ac_cv___builtin_expect" = "yes"; then
15865
15866 $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
15867
15868   fi
15869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___builtin_expect" >&5
15870 $as_echo "$ac_cv___builtin_expect" >&6; }
15871
15872 if test x"$ac_cv___builtin_expect" = x"yes"; then
15873   ac_cv_have___builtin_expect=1
15874 else
15875   ac_cv_have___builtin_expect=0
15876 fi
15877
15878
15879   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_val_compare_and_swap" >&5
15880 $as_echo_n "checking for __sync_val_compare_and_swap... " >&6; }
15881   if ${ac_cv___sync_val_compare_and_swap+:} false; then :
15882   $as_echo_n "(cached) " >&6
15883 else
15884
15885     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15886 /* end confdefs.h.  */
15887
15888 int
15889 main ()
15890 {
15891 int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0;
15892   ;
15893   return 0;
15894 }
15895 _ACEOF
15896 if ac_fn_cxx_try_link "$LINENO"; then :
15897   ac_cv___sync_val_compare_and_swap=yes
15898 else
15899   ac_cv___sync_val_compare_and_swap=no
15900
15901 fi
15902 rm -f core conftest.err conftest.$ac_objext \
15903     conftest$ac_exeext conftest.$ac_ext
15904 fi
15905
15906   if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then
15907
15908 $as_echo "#define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1" >>confdefs.h
15909
15910   fi
15911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___sync_val_compare_and_swap" >&5
15912 $as_echo "$ac_cv___sync_val_compare_and_swap" >&6; }
15913
15914
15915 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
15916 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
15917 # Check whether --enable-frame_pointers was given.
15918 if test "${enable_frame_pointers+set}" = set; then :
15919   enableval=$enable_frame_pointers;
15920 else
15921   enable_frame_pointers=no
15922 fi
15923
15924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15925 /* end confdefs.h.  */
15926
15927 int
15928 main ()
15929 {
15930 return __x86_64__ == 1 ? 0 : 1
15931   ;
15932   return 0;
15933 }
15934 _ACEOF
15935 if ac_fn_cxx_try_compile "$LINENO"; then :
15936   is_x86_64=yes
15937 else
15938   is_x86_64=no
15939 fi
15940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15941  if test "$enable_frame_pointers" = yes; then
15942   ENABLE_FRAME_POINTERS_TRUE=
15943   ENABLE_FRAME_POINTERS_FALSE='#'
15944 else
15945   ENABLE_FRAME_POINTERS_TRUE='#'
15946   ENABLE_FRAME_POINTERS_FALSE=
15947 fi
15948
15949  if test "$is_x86_64" = yes; then
15950   X86_64_TRUE=
15951   X86_64_FALSE='#'
15952 else
15953   X86_64_TRUE='#'
15954   X86_64_FALSE=
15955 fi
15956
15957
15958 # Check whether --enable-rtti was given.
15959 if test "${enable_rtti+set}" = set; then :
15960   enableval=$enable_rtti;
15961 fi
15962
15963  if test x"$enable_rtti" = x"no"; then
15964   DISABLE_RTTI_TRUE=
15965   DISABLE_RTTI_FALSE='#'
15966 else
15967   DISABLE_RTTI_TRUE='#'
15968   DISABLE_RTTI_FALSE=
15969 fi
15970
15971 if test x"$enable_rtti" = x"no"; then
15972
15973 $as_echo "#define DISABLE_RTTI 1" >>confdefs.h
15974
15975 fi
15976
15977 # Some of the code in this directory depends on pthreads
15978
15979
15980
15981 ac_ext=c
15982 ac_cpp='$CPP $CPPFLAGS'
15983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15986
15987 acx_pthread_ok=no
15988
15989 # We used to check for pthread.h first, but this fails if pthread.h
15990 # requires special compiler flags (e.g. on True64 or Sequent).
15991 # It gets checked for in the link test anyway.
15992
15993 # First of all, check if the user has set any of the PTHREAD_LIBS,
15994 # etcetera environment variables, and if threads linking works using
15995 # them:
15996 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15997         save_CFLAGS="$CFLAGS"
15998         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15999         save_LIBS="$LIBS"
16000         LIBS="$PTHREAD_LIBS $LIBS"
16001         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16002 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16003         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16004 /* end confdefs.h.  */
16005
16006 /* Override any GCC internal prototype to avoid an error.
16007    Use char because int might match the return type of a GCC
16008    builtin and then its argument prototype would still apply.  */
16009 #ifdef __cplusplus
16010 extern "C"
16011 #endif
16012 char pthread_join ();
16013 int
16014 main ()
16015 {
16016 return pthread_join ();
16017   ;
16018   return 0;
16019 }
16020 _ACEOF
16021 if ac_fn_c_try_link "$LINENO"; then :
16022   acx_pthread_ok=yes
16023 fi
16024 rm -f core conftest.err conftest.$ac_objext \
16025     conftest$ac_exeext conftest.$ac_ext
16026         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16027 $as_echo "$acx_pthread_ok" >&6; }
16028         if test x"$acx_pthread_ok" = xno; then
16029                 PTHREAD_LIBS=""
16030                 PTHREAD_CFLAGS=""
16031         fi
16032         LIBS="$save_LIBS"
16033         CFLAGS="$save_CFLAGS"
16034 fi
16035
16036 # We must check for the threads library under a number of different
16037 # names; the ordering is very important because some systems
16038 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16039 # libraries is broken (non-POSIX).
16040
16041 # Create a list of thread flags to try.  Items starting with a "-" are
16042 # C compiler flags, and other items are library names, except for "none"
16043 # which indicates that we try without any flags at all, and "pthread-config"
16044 # which is a program returning the flags for the Pth emulation library.
16045
16046 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16047
16048 # The ordering *is* (sometimes) important.  Some notes on the
16049 # individual items follow:
16050
16051 # pthreads: AIX (must check this before -lpthread)
16052 # none: in case threads are in libc; should be tried before -Kthread and
16053 #       other compiler flags to prevent continual compiler warnings
16054 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16055 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16056 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16057 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16058 # -pthreads: Solaris/gcc
16059 # -mthreads: Mingw32/gcc, Lynx/gcc
16060 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16061 #      doesn't hurt to check since this sometimes defines pthreads too;
16062 #      also defines -D_REENTRANT)
16063 #      ... -mt is also the pthreads flag for HP/aCC
16064 # pthread: Linux, etcetera
16065 # --thread-safe: KAI C++
16066 # pthread-config: use pthread-config program (for GNU Pth library)
16067
16068 case "${host_cpu}-${host_os}" in
16069         *solaris*)
16070
16071         # On Solaris (at least, for some versions), libc contains stubbed
16072         # (non-functional) versions of the pthreads routines, so link-based
16073         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
16074         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
16075         # a function called by this macro, so we could check for that, but
16076         # who knows whether they'll stub that too in a future libc.)  So,
16077         # we'll just look for -pthreads and -lpthread first:
16078
16079         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
16080         ;;
16081 esac
16082
16083 if test x"$acx_pthread_ok" = xno; then
16084 for flag in $acx_pthread_flags; do
16085
16086         case $flag in
16087                 none)
16088                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16089 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16090                 ;;
16091
16092                 -*)
16093                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16094 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16095                 PTHREAD_CFLAGS="$flag"
16096                 ;;
16097
16098                 pthread-config)
16099                 # Extract the first word of "pthread-config", so it can be a program name with args.
16100 set dummy pthread-config; ac_word=$2
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16102 $as_echo_n "checking for $ac_word... " >&6; }
16103 if ${ac_cv_prog_acx_pthread_config+:} false; then :
16104   $as_echo_n "(cached) " >&6
16105 else
16106   if test -n "$acx_pthread_config"; then
16107   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16108 else
16109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16110 for as_dir in $PATH
16111 do
16112   IFS=$as_save_IFS
16113   test -z "$as_dir" && as_dir=.
16114     for ac_exec_ext in '' $ac_executable_extensions; do
16115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16116     ac_cv_prog_acx_pthread_config="yes"
16117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16118     break 2
16119   fi
16120 done
16121   done
16122 IFS=$as_save_IFS
16123
16124   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16125 fi
16126 fi
16127 acx_pthread_config=$ac_cv_prog_acx_pthread_config
16128 if test -n "$acx_pthread_config"; then
16129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
16130 $as_echo "$acx_pthread_config" >&6; }
16131 else
16132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16133 $as_echo "no" >&6; }
16134 fi
16135
16136
16137                 if test x"$acx_pthread_config" = xno; then continue; fi
16138                 PTHREAD_CFLAGS="`pthread-config --cflags`"
16139                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16140                 ;;
16141
16142                 *)
16143                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16144 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16145                 PTHREAD_LIBS="-l$flag"
16146                 ;;
16147         esac
16148
16149         save_LIBS="$LIBS"
16150         save_CFLAGS="$CFLAGS"
16151         LIBS="$PTHREAD_LIBS $LIBS"
16152         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16153
16154         # Check for various functions.  We must include pthread.h,
16155         # since some functions may be macros.  (On the Sequent, we
16156         # need a special flag -Kthread to make this header compile.)
16157         # We check for pthread_join because it is in -lpthread on IRIX
16158         # while pthread_create is in libc.  We check for pthread_attr_init
16159         # due to DEC craziness with -lpthreads.  We check for
16160         # pthread_cleanup_push because it is one of the few pthread
16161         # functions on Solaris that doesn't have a non-functional libc stub.
16162         # We try pthread_create on general principles.
16163         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16164 /* end confdefs.h.  */
16165 #include <pthread.h>
16166 int
16167 main ()
16168 {
16169 pthread_t th; pthread_join(th, 0);
16170                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
16171                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16172   ;
16173   return 0;
16174 }
16175 _ACEOF
16176 if ac_fn_c_try_link "$LINENO"; then :
16177   acx_pthread_ok=yes
16178 fi
16179 rm -f core conftest.err conftest.$ac_objext \
16180     conftest$ac_exeext conftest.$ac_ext
16181
16182         LIBS="$save_LIBS"
16183         CFLAGS="$save_CFLAGS"
16184
16185         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16186 $as_echo "$acx_pthread_ok" >&6; }
16187         if test "x$acx_pthread_ok" = xyes; then
16188                 break;
16189         fi
16190
16191         PTHREAD_LIBS=""
16192         PTHREAD_CFLAGS=""
16193 done
16194 fi
16195
16196 # Various other checks:
16197 if test "x$acx_pthread_ok" = xyes; then
16198         save_LIBS="$LIBS"
16199         LIBS="$PTHREAD_LIBS $LIBS"
16200         save_CFLAGS="$CFLAGS"
16201         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16202
16203         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16204         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16205 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16206         attr_name=unknown
16207         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16208             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16209 /* end confdefs.h.  */
16210 #include <pthread.h>
16211 int
16212 main ()
16213 {
16214 int attr=$attr; return attr;
16215   ;
16216   return 0;
16217 }
16218 _ACEOF
16219 if ac_fn_c_try_link "$LINENO"; then :
16220   attr_name=$attr; break
16221 fi
16222 rm -f core conftest.err conftest.$ac_objext \
16223     conftest$ac_exeext conftest.$ac_ext
16224         done
16225         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16226 $as_echo "$attr_name" >&6; }
16227         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16228
16229 cat >>confdefs.h <<_ACEOF
16230 #define PTHREAD_CREATE_JOINABLE $attr_name
16231 _ACEOF
16232
16233         fi
16234
16235         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16236 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16237         flag=no
16238         case "${host_cpu}-${host_os}" in
16239             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16240             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16241         esac
16242         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
16243 $as_echo "${flag}" >&6; }
16244         if test "x$flag" != xno; then
16245             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16246         fi
16247
16248         LIBS="$save_LIBS"
16249         CFLAGS="$save_CFLAGS"
16250         # More AIX lossage: must compile with xlc_r or cc_r
16251         if test x"$GCC" != xyes; then
16252           for ac_prog in xlc_r cc_r
16253 do
16254   # Extract the first word of "$ac_prog", so it can be a program name with args.
16255 set dummy $ac_prog; ac_word=$2
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16257 $as_echo_n "checking for $ac_word... " >&6; }
16258 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16259   $as_echo_n "(cached) " >&6
16260 else
16261   if test -n "$PTHREAD_CC"; then
16262   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16263 else
16264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16265 for as_dir in $PATH
16266 do
16267   IFS=$as_save_IFS
16268   test -z "$as_dir" && as_dir=.
16269     for ac_exec_ext in '' $ac_executable_extensions; do
16270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16271     ac_cv_prog_PTHREAD_CC="$ac_prog"
16272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16273     break 2
16274   fi
16275 done
16276   done
16277 IFS=$as_save_IFS
16278
16279 fi
16280 fi
16281 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16282 if test -n "$PTHREAD_CC"; then
16283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16284 $as_echo "$PTHREAD_CC" >&6; }
16285 else
16286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16287 $as_echo "no" >&6; }
16288 fi
16289
16290
16291   test -n "$PTHREAD_CC" && break
16292 done
16293 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
16294
16295         else
16296           PTHREAD_CC=$CC
16297         fi
16298
16299         # The next part tries to detect GCC inconsistency with -shared on some
16300         # architectures and systems. The problem is that in certain
16301         # configurations, when -shared is specified, GCC "forgets" to
16302         # internally use various flags which are still necessary.
16303
16304         #
16305         # Prepare the flags
16306         #
16307         save_CFLAGS="$CFLAGS"
16308         save_LIBS="$LIBS"
16309         save_CC="$CC"
16310
16311         # Try with the flags determined by the earlier checks.
16312         #
16313         # -Wl,-z,defs forces link-time symbol resolution, so that the
16314         # linking checks with -shared actually have any value
16315         #
16316         # FIXME: -fPIC is required for -shared on many architectures,
16317         # so we specify it here, but the right way would probably be to
16318         # properly detect whether it is actually required.
16319         CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
16320         LIBS="$PTHREAD_LIBS $LIBS"
16321         CC="$PTHREAD_CC"
16322
16323         # In order not to create several levels of indentation, we test
16324         # the value of "$done" until we find the cure or run out of ideas.
16325         done="no"
16326
16327         # First, make sure the CFLAGS we added are actually accepted by our
16328         # compiler.  If not (and OS X's ld, for instance, does not accept -z),
16329         # then we can't do this test.
16330         if test x"$done" = xno; then
16331            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
16332 $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
16333            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16334 /* end confdefs.h.  */
16335
16336 int
16337 main ()
16338 {
16339
16340   ;
16341   return 0;
16342 }
16343 _ACEOF
16344 if ac_fn_c_try_link "$LINENO"; then :
16345
16346 else
16347   done=yes
16348 fi
16349 rm -f core conftest.err conftest.$ac_objext \
16350     conftest$ac_exeext conftest.$ac_ext
16351
16352            if test "x$done" = xyes ; then
16353               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16354 $as_echo "no" >&6; }
16355            else
16356               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16357 $as_echo "yes" >&6; }
16358            fi
16359         fi
16360
16361         if test x"$done" = xno; then
16362            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
16363 $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
16364            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16365 /* end confdefs.h.  */
16366 #include <pthread.h>
16367 int
16368 main ()
16369 {
16370 pthread_t th; pthread_join(th, 0);
16371               pthread_attr_init(0); pthread_cleanup_push(0, 0);
16372               pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16373   ;
16374   return 0;
16375 }
16376 _ACEOF
16377 if ac_fn_c_try_link "$LINENO"; then :
16378   done=yes
16379 fi
16380 rm -f core conftest.err conftest.$ac_objext \
16381     conftest$ac_exeext conftest.$ac_ext
16382
16383            if test "x$done" = xyes; then
16384               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16385 $as_echo "yes" >&6; }
16386            else
16387               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16388 $as_echo "no" >&6; }
16389            fi
16390         fi
16391
16392         #
16393         # Linux gcc on some architectures such as mips/mipsel forgets
16394         # about -lpthread
16395         #
16396         if test x"$done" = xno; then
16397            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
16398 $as_echo_n "checking whether -lpthread fixes that... " >&6; }
16399            LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
16400            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16401 /* end confdefs.h.  */
16402 #include <pthread.h>
16403 int
16404 main ()
16405 {
16406 pthread_t th; pthread_join(th, 0);
16407               pthread_attr_init(0); pthread_cleanup_push(0, 0);
16408               pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16409   ;
16410   return 0;
16411 }
16412 _ACEOF
16413 if ac_fn_c_try_link "$LINENO"; then :
16414   done=yes
16415 fi
16416 rm -f core conftest.err conftest.$ac_objext \
16417     conftest$ac_exeext conftest.$ac_ext
16418
16419            if test "x$done" = xyes; then
16420               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16421 $as_echo "yes" >&6; }
16422               PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
16423            else
16424               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16425 $as_echo "no" >&6; }
16426            fi
16427         fi
16428         #
16429         # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
16430         #
16431         if test x"$done" = xno; then
16432            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
16433 $as_echo_n "checking whether -lc_r fixes that... " >&6; }
16434            LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
16435            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16436 /* end confdefs.h.  */
16437 #include <pthread.h>
16438 int
16439 main ()
16440 {
16441 pthread_t th; pthread_join(th, 0);
16442                 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16443                 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16444   ;
16445   return 0;
16446 }
16447 _ACEOF
16448 if ac_fn_c_try_link "$LINENO"; then :
16449   done=yes
16450 fi
16451 rm -f core conftest.err conftest.$ac_objext \
16452     conftest$ac_exeext conftest.$ac_ext
16453
16454            if test "x$done" = xyes; then
16455               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16456 $as_echo "yes" >&6; }
16457               PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
16458            else
16459               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16460 $as_echo "no" >&6; }
16461            fi
16462         fi
16463         if test x"$done" = xno; then
16464            # OK, we have run out of ideas
16465            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
16466 $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
16467
16468            # so it's not safe to assume that we may use pthreads
16469            acx_pthread_ok=no
16470         fi
16471
16472         CFLAGS="$save_CFLAGS"
16473         LIBS="$save_LIBS"
16474         CC="$save_CC"
16475 else
16476         PTHREAD_CC="$CC"
16477 fi
16478
16479
16480
16481
16482
16483 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16484 if test x"$acx_pthread_ok" = xyes; then
16485
16486 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16487
16488         :
16489 else
16490         acx_pthread_ok=no
16491
16492 fi
16493 ac_ext=cpp
16494 ac_cpp='$CXXCPP $CPPFLAGS'
16495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16498
16499
16500 if test x"$acx_pthread_ok" = x"yes"; then
16501   # To make libglog depend on libpthread on Linux, we need to add
16502   # -lpthread in addition to -pthread.
16503   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
16504 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
16505 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
16506   $as_echo_n "(cached) " >&6
16507 else
16508   ac_check_lib_save_LIBS=$LIBS
16509 LIBS="-lpthread  $LIBS"
16510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16511 /* end confdefs.h.  */
16512
16513 /* Override any GCC internal prototype to avoid an error.
16514    Use char because int might match the return type of a GCC
16515    builtin and then its argument prototype would still apply.  */
16516 #ifdef __cplusplus
16517 extern "C"
16518 #endif
16519 char pthread_self ();
16520 int
16521 main ()
16522 {
16523 return pthread_self ();
16524   ;
16525   return 0;
16526 }
16527 _ACEOF
16528 if ac_fn_cxx_try_link "$LINENO"; then :
16529   ac_cv_lib_pthread_pthread_self=yes
16530 else
16531   ac_cv_lib_pthread_pthread_self=no
16532 fi
16533 rm -f core conftest.err conftest.$ac_objext \
16534     conftest$ac_exeext conftest.$ac_ext
16535 LIBS=$ac_check_lib_save_LIBS
16536 fi
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
16538 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
16539 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
16540   cat >>confdefs.h <<_ACEOF
16541 #define HAVE_LIBPTHREAD 1
16542 _ACEOF
16543
16544   LIBS="-lpthread $LIBS"
16545
16546 fi
16547
16548 fi
16549
16550 # Check if there is google-gflags library installed.
16551 SAVE_CFLAGS="$CFLAGS"
16552 SAVE_LIBS="$LIBS"
16553
16554 # Check whether --with-gflags was given.
16555 if test "${with_gflags+set}" = set; then :
16556   withval=$with_gflags; GFLAGS_CFLAGS="-I${with_gflags}/include"
16557   GFLAGS_LIBS="-L${with_gflags}/lib -lgflags"
16558   CFLAGS="$CFLAGS $GFLAGS_CFLAGS"
16559   LIBS="$LIBS $GFLAGS_LIBS"
16560
16561 fi
16562
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgflags" >&5
16564 $as_echo_n "checking for main in -lgflags... " >&6; }
16565 if ${ac_cv_lib_gflags_main+:} false; then :
16566   $as_echo_n "(cached) " >&6
16567 else
16568   ac_check_lib_save_LIBS=$LIBS
16569 LIBS="-lgflags  $LIBS"
16570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16571 /* end confdefs.h.  */
16572
16573
16574 int
16575 main ()
16576 {
16577 return main ();
16578   ;
16579   return 0;
16580 }
16581 _ACEOF
16582 if ac_fn_cxx_try_link "$LINENO"; then :
16583   ac_cv_lib_gflags_main=yes
16584 else
16585   ac_cv_lib_gflags_main=no
16586 fi
16587 rm -f core conftest.err conftest.$ac_objext \
16588     conftest$ac_exeext conftest.$ac_ext
16589 LIBS=$ac_check_lib_save_LIBS
16590 fi
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gflags_main" >&5
16592 $as_echo "$ac_cv_lib_gflags_main" >&6; }
16593 if test "x$ac_cv_lib_gflags_main" = xyes; then :
16594   ac_cv_have_libgflags=1
16595 else
16596   ac_cv_have_libgflags=0
16597 fi
16598
16599 if test x"$ac_cv_have_libgflags" = x"1"; then
16600
16601 $as_echo "#define HAVE_LIB_GFLAGS 1" >>confdefs.h
16602
16603   if test x"$GFLAGS_LIBS" = x""; then
16604     GFLAGS_LIBS="-lgflags"
16605   fi
16606 else
16607   GFLAGS_CFLAGS=
16608   GFLAGS_LIBS=
16609 fi
16610 CFLAGS="$SAVE_CFLAGS"
16611 LIBS="$SAVE_LIBS"
16612
16613 # TODO(hamaji): Use official m4 macros provided by testing libraries
16614 #               once the m4 macro of Google Mocking becomes ready.
16615 # Check if there is Google Test library installed.
16616 # Extract the first word of "gtest-config", so it can be a program name with args.
16617 set dummy gtest-config; ac_word=$2
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16619 $as_echo_n "checking for $ac_word... " >&6; }
16620 if ${ac_cv_prog_GTEST_CONFIG+:} false; then :
16621   $as_echo_n "(cached) " >&6
16622 else
16623   if test -n "$GTEST_CONFIG"; then
16624   ac_cv_prog_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test.
16625 else
16626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16627 for as_dir in $PATH
16628 do
16629   IFS=$as_save_IFS
16630   test -z "$as_dir" && as_dir=.
16631     for ac_exec_ext in '' $ac_executable_extensions; do
16632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16633     ac_cv_prog_GTEST_CONFIG=""yes""
16634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16635     break 2
16636   fi
16637 done
16638   done
16639 IFS=$as_save_IFS
16640
16641 fi
16642 fi
16643 GTEST_CONFIG=$ac_cv_prog_GTEST_CONFIG
16644 if test -n "$GTEST_CONFIG"; then
16645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
16646 $as_echo "$GTEST_CONFIG" >&6; }
16647 else
16648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16649 $as_echo "no" >&6; }
16650 fi
16651
16652
16653 if test x"$GTEST_CONFIG" = "xyes"; then
16654   GTEST_CFLAGS=`gtest-config --cppflags --cxxflags`
16655   GTEST_LIBS=`gtest-config --ldflags --libs`
16656
16657 $as_echo "#define HAVE_LIB_GTEST 1" >>confdefs.h
16658
16659
16660   # Check if there is Google Mocking library installed.
16661   # Extract the first word of "gmock-config", so it can be a program name with args.
16662 set dummy gmock-config; ac_word=$2
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16664 $as_echo_n "checking for $ac_word... " >&6; }
16665 if ${ac_cv_prog_GMOCK_CONFIG+:} false; then :
16666   $as_echo_n "(cached) " >&6
16667 else
16668   if test -n "$GMOCK_CONFIG"; then
16669   ac_cv_prog_GMOCK_CONFIG="$GMOCK_CONFIG" # Let the user override the test.
16670 else
16671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16672 for as_dir in $PATH
16673 do
16674   IFS=$as_save_IFS
16675   test -z "$as_dir" && as_dir=.
16676     for ac_exec_ext in '' $ac_executable_extensions; do
16677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16678     ac_cv_prog_GMOCK_CONFIG=""yes""
16679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16680     break 2
16681   fi
16682 done
16683   done
16684 IFS=$as_save_IFS
16685
16686 fi
16687 fi
16688 GMOCK_CONFIG=$ac_cv_prog_GMOCK_CONFIG
16689 if test -n "$GMOCK_CONFIG"; then
16690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMOCK_CONFIG" >&5
16691 $as_echo "$GMOCK_CONFIG" >&6; }
16692 else
16693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16694 $as_echo "no" >&6; }
16695 fi
16696
16697
16698   if test x"$GMOCK_CONFIG" = "xyes"; then
16699     GMOCK_CFLAGS=`gmock-config --cppflags --cxxflags`
16700     GMOCK_LIBS=`gmock-config --ldflags --libs`
16701
16702 $as_echo "#define HAVE_LIB_GMOCK 1" >>confdefs.h
16703
16704   else
16705     # We don't run test cases which use Google Mocking framework.
16706     GMOCK_CFLAGS=
16707     GMOCK_LIBS=
16708   fi
16709 else
16710   # We'll use src/googletest.h for our unittests.
16711   GTEST_CFLAGS=
16712   GTEST_LIBS=
16713 fi
16714  if test x"$GMOCK_CONFIG" = "xyes"; then
16715   HAVE_GMOCK_TRUE=
16716   HAVE_GMOCK_FALSE='#'
16717 else
16718   HAVE_GMOCK_TRUE='#'
16719   HAVE_GMOCK_FALSE=
16720 fi
16721
16722
16723 # We want to link in libunwind if it exists
16724 UNWIND_LIBS=
16725 # Unfortunately, we need to check the header file in addition to the
16726 # lib file to check if libunwind is available since libunwind-0.98
16727 # doesn't install all necessary header files.
16728 if test x"$ac_cv_have_libunwind_h" = x"1"; then
16729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5
16730 $as_echo_n "checking for backtrace in -lunwind... " >&6; }
16731 if ${ac_cv_lib_unwind_backtrace+:} false; then :
16732   $as_echo_n "(cached) " >&6
16733 else
16734   ac_check_lib_save_LIBS=$LIBS
16735 LIBS="-lunwind  $LIBS"
16736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16737 /* end confdefs.h.  */
16738
16739 /* Override any GCC internal prototype to avoid an error.
16740    Use char because int might match the return type of a GCC
16741    builtin and then its argument prototype would still apply.  */
16742 #ifdef __cplusplus
16743 extern "C"
16744 #endif
16745 char backtrace ();
16746 int
16747 main ()
16748 {
16749 return backtrace ();
16750   ;
16751   return 0;
16752 }
16753 _ACEOF
16754 if ac_fn_cxx_try_link "$LINENO"; then :
16755   ac_cv_lib_unwind_backtrace=yes
16756 else
16757   ac_cv_lib_unwind_backtrace=no
16758 fi
16759 rm -f core conftest.err conftest.$ac_objext \
16760     conftest$ac_exeext conftest.$ac_ext
16761 LIBS=$ac_check_lib_save_LIBS
16762 fi
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5
16764 $as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
16765 if test "x$ac_cv_lib_unwind_backtrace" = xyes; then :
16766   UNWIND_LIBS=-lunwind
16767 fi
16768
16769 fi
16770
16771 if test x"$UNWIND_LIBS" != x""; then
16772
16773 $as_echo "#define HAVE_LIB_UNWIND 1" >>confdefs.h
16774
16775 fi
16776
16777 # We'd like to use read/write locks in several places in the code.
16778 # See if our pthreads support extends to that.  Note: for linux, it
16779 # does as long as you define _XOPEN_SOURCE appropriately.
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for pthread_rwlock_* functions" >&5
16781 $as_echo_n "checking support for pthread_rwlock_* functions... " >&6; }
16782 if ${ac_cv_rwlock+:} false; then :
16783   $as_echo_n "(cached) " >&6
16784 else
16785
16786  ac_ext=c
16787 ac_cpp='$CPP $CPPFLAGS'
16788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16791
16792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16793 /* end confdefs.h.  */
16794 #define _XOPEN_SOURCE 500
16795                  #include <pthread.h>
16796 int
16797 main ()
16798 {
16799 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
16800                  pthread_rwlock_rdlock(&l);
16801                  return 0;
16802   ;
16803   return 0;
16804 }
16805 _ACEOF
16806 if ac_fn_c_try_compile "$LINENO"; then :
16807   ac_cv_rwlock=yes
16808 else
16809   ac_cv_rwlock=no
16810 fi
16811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16812  ac_ext=cpp
16813 ac_cpp='$CXXCPP $CPPFLAGS'
16814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16817
16818
16819 fi
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rwlock" >&5
16821 $as_echo "$ac_cv_rwlock" >&6; }
16822 if test "$ac_cv_rwlock" = yes; then
16823
16824 $as_echo "#define HAVE_RWLOCK 1" >>confdefs.h
16825
16826 fi
16827
16828
16829 # Find out what namespace 'normal' STL code lives in, and also what namespace
16830 # the user wants our classes to be defined in
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
16832 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
16833 if ${ac_cv_cxx_namespaces+:} false; then :
16834   $as_echo_n "(cached) " >&6
16835 else
16836
16837                   ac_ext=cpp
16838 ac_cpp='$CXXCPP $CPPFLAGS'
16839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16842
16843                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16844 /* end confdefs.h.  */
16845 namespace Outer {
16846                                     namespace Inner { int i = 0; }}
16847 int
16848 main ()
16849 {
16850 using namespace Outer::Inner; return i;
16851   ;
16852   return 0;
16853 }
16854 _ACEOF
16855 if ac_fn_cxx_try_compile "$LINENO"; then :
16856   ac_cv_cxx_namespaces=yes
16857 else
16858   ac_cv_cxx_namespaces=no
16859 fi
16860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16861                   ac_ext=cpp
16862 ac_cpp='$CXXCPP $CPPFLAGS'
16863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16866
16867 fi
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
16869 $as_echo "$ac_cv_cxx_namespaces" >&6; }
16870   if test "$ac_cv_cxx_namespaces" = yes; then
16871
16872 $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
16873
16874   fi
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what namespace STL code is in" >&5
16876 $as_echo_n "checking what namespace STL code is in... " >&6; }
16877 if ${ac_cv_cxx_stl_namespace+:} false; then :
16878   $as_echo_n "(cached) " >&6
16879 else
16880
16881
16882       ac_ext=cpp
16883 ac_cpp='$CXXCPP $CPPFLAGS'
16884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16887
16888       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16889 /* end confdefs.h.  */
16890 #include <vector>
16891 int
16892 main ()
16893 {
16894 vector<int> t; return 0;
16895   ;
16896   return 0;
16897 }
16898 _ACEOF
16899 if ac_fn_cxx_try_compile "$LINENO"; then :
16900   ac_cv_cxx_stl_namespace=none
16901 fi
16902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16903       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16904 /* end confdefs.h.  */
16905 #include <vector>
16906 int
16907 main ()
16908 {
16909 std::vector<int> t; return 0;
16910   ;
16911   return 0;
16912 }
16913 _ACEOF
16914 if ac_fn_cxx_try_compile "$LINENO"; then :
16915   ac_cv_cxx_stl_namespace=std
16916 fi
16917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16918       ac_ext=cpp
16919 ac_cpp='$CXXCPP $CPPFLAGS'
16920 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16921 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16922 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16923
16924 fi
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_stl_namespace" >&5
16926 $as_echo "$ac_cv_cxx_stl_namespace" >&6; }
16927    if test "$ac_cv_cxx_stl_namespace" = none; then
16928
16929 $as_echo "#define STL_NAMESPACE /**/" >>confdefs.h
16930
16931    fi
16932    if test "$ac_cv_cxx_stl_namespace" = std; then
16933
16934 $as_echo "#define STL_NAMESPACE std" >>confdefs.h
16935
16936    fi
16937
16938 google_namespace_default=google
16939    # Check whether --enable-namespace was given.
16940 if test "${enable_namespace+set}" = set; then :
16941   enableval=$enable_namespace; case "$enableval" in
16942                     yes) google_namespace="$google_namespace_default" ;;
16943                      no) google_namespace="" ;;
16944                       *) google_namespace="$enableval" ;;
16945                   esac
16946 else
16947   google_namespace="$google_namespace_default"
16948 fi
16949
16950    if test -n "$google_namespace"; then
16951      ac_google_namespace="$google_namespace"
16952      ac_google_start_namespace="namespace $google_namespace {"
16953      ac_google_end_namespace="}"
16954    else
16955      ac_google_namespace=""
16956      ac_google_start_namespace=""
16957      ac_google_end_namespace=""
16958    fi
16959
16960 cat >>confdefs.h <<_ACEOF
16961 #define GOOGLE_NAMESPACE $ac_google_namespace
16962 _ACEOF
16963
16964
16965 cat >>confdefs.h <<_ACEOF
16966 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
16967 _ACEOF
16968
16969
16970 cat >>confdefs.h <<_ACEOF
16971 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
16972 _ACEOF
16973
16974
16975
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports using ::operator<<" >&5
16977 $as_echo_n "checking whether compiler supports using ::operator<<... " >&6; }
16978 if ${ac_cv_cxx_using_operator+:} false; then :
16979   $as_echo_n "(cached) " >&6
16980 else
16981
16982        ac_ext=cpp
16983 ac_cpp='$CXXCPP $CPPFLAGS'
16984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16987
16988        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16989 /* end confdefs.h.  */
16990 #include <iostream>
16991                        std::ostream& operator<<(std::ostream&, struct s);
16992 int
16993 main ()
16994 {
16995 using ::operator<<; return 0;
16996   ;
16997   return 0;
16998 }
16999 _ACEOF
17000 if ac_fn_cxx_try_compile "$LINENO"; then :
17001   ac_cv_cxx_using_operator=1
17002 else
17003   ac_cv_cxx_using_operator=0
17004 fi
17005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17006       ac_ext=cpp
17007 ac_cpp='$CXXCPP $CPPFLAGS'
17008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17011
17012 fi
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_using_operator" >&5
17014 $as_echo "$ac_cv_cxx_using_operator" >&6; }
17015   if test "$ac_cv_cxx_using_operator" = 1; then
17016
17017 $as_echo "#define HAVE_USING_OPERATOR 1" >>confdefs.h
17018
17019   fi
17020
17021 for ac_header in ucontext.h
17022 do :
17023   ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
17024 if test "x$ac_cv_header_ucontext_h" = xyes; then :
17025   cat >>confdefs.h <<_ACEOF
17026 #define HAVE_UCONTEXT_H 1
17027 _ACEOF
17028
17029 fi
17030
17031 done
17032
17033    for ac_header in sys/ucontext.h
17034 do :
17035   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "$ac_includes_default"
17036 if test "x$ac_cv_header_sys_ucontext_h" = xyes; then :
17037   cat >>confdefs.h <<_ACEOF
17038 #define HAVE_SYS_UCONTEXT_H 1
17039 _ACEOF
17040
17041 fi
17042
17043 done
17044        # ucontext on OS X 10.6 (at least)
17045    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to access the program counter from a struct ucontext" >&5
17046 $as_echo_n "checking how to access the program counter from a struct ucontext... " >&6; }
17047    pc_fields="           uc_mcontext.gregs[REG_PC]"  # Solaris x86 (32 + 64 bit)
17048    pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
17049    pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
17050    pc_fields="$pc_fields uc_mcontext.sc_ip"            # Linux (ia64)
17051    pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
17052    pc_fields="$pc_fields uc_mcontext.gregs[R15]"     # Linux (arm old [untested])
17053    pc_fields="$pc_fields uc_mcontext.arm_pc"           # Linux (arm new [untested])
17054    pc_fields="$pc_fields uc_mcontext.mc_eip"           # FreeBSD (i386)
17055    pc_fields="$pc_fields uc_mcontext.mc_rip"           # FreeBSD (x86_64 [untested])
17056    pc_fields="$pc_fields uc_mcontext.__gregs[_REG_EIP]"  # NetBSD (i386)
17057    pc_fields="$pc_fields uc_mcontext.__gregs[_REG_RIP]"  # NetBSD (x86_64)
17058    pc_fields="$pc_fields uc_mcontext->ss.eip"          # OS X (i386, <=10.4)
17059    pc_fields="$pc_fields uc_mcontext->__ss.__eip"      # OS X (i386, >=10.5)
17060    pc_fields="$pc_fields uc_mcontext->ss.rip"          # OS X (x86_64)
17061    pc_fields="$pc_fields uc_mcontext->__ss.__rip"      # OS X (>=10.5 [untested])
17062    pc_fields="$pc_fields uc_mcontext->ss.srr0"         # OS X (ppc, ppc64 [untested])
17063    pc_fields="$pc_fields uc_mcontext->__ss.__srr0"     # OS X (>=10.5 [untested])
17064    pc_field_found=false
17065    for pc_field in $pc_fields; do
17066      if ! $pc_field_found; then
17067        if test "x$ac_cv_header_sys_ucontext_h" = xyes; then
17068          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17069 /* end confdefs.h.  */
17070 #define _GNU_SOURCE 1
17071                          #include <sys/ucontext.h>
17072 int
17073 main ()
17074 {
17075 ucontext_t u; return u.$pc_field == 0;
17076   ;
17077   return 0;
17078 }
17079 _ACEOF
17080 if ac_fn_cxx_try_compile "$LINENO"; then :
17081
17082 cat >>confdefs.h <<_ACEOF
17083 #define PC_FROM_UCONTEXT $pc_field
17084 _ACEOF
17085
17086                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
17087 $as_echo "$pc_field" >&6; }
17088                         pc_field_found=true
17089 fi
17090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17091        else
17092          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17093 /* end confdefs.h.  */
17094 #define _GNU_SOURCE 1
17095                          #include <ucontext.h>
17096 int
17097 main ()
17098 {
17099 ucontext_t u; return u.$pc_field == 0;
17100   ;
17101   return 0;
17102 }
17103 _ACEOF
17104 if ac_fn_cxx_try_compile "$LINENO"; then :
17105
17106 cat >>confdefs.h <<_ACEOF
17107 #define PC_FROM_UCONTEXT $pc_field
17108 _ACEOF
17109
17110                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
17111 $as_echo "$pc_field" >&6; }
17112                         pc_field_found=true
17113 fi
17114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17115        fi
17116      fi
17117    done
17118    if ! $pc_field_found; then
17119      pc_fields="           sc_eip"  # OpenBSD (i386)
17120      pc_fields="$pc_fields sc_rip"  # OpenBSD (x86_64)
17121      for pc_field in $pc_fields; do
17122        if ! $pc_field_found; then
17123          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17124 /* end confdefs.h.  */
17125 #include <signal.h>
17126 int
17127 main ()
17128 {
17129 ucontext_t u; return u.$pc_field == 0;
17130   ;
17131   return 0;
17132 }
17133 _ACEOF
17134 if ac_fn_cxx_try_compile "$LINENO"; then :
17135
17136 cat >>confdefs.h <<_ACEOF
17137 #define PC_FROM_UCONTEXT $pc_field
17138 _ACEOF
17139
17140                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
17141 $as_echo "$pc_field" >&6; }
17142                         pc_field_found=true
17143 fi
17144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17145        fi
17146      done
17147    fi
17148    if ! $pc_field_found; then
17149      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the PC.  Will not output failed addresses..." >&5
17150 $as_echo "$as_me: WARNING: Could not find the PC.  Will not output failed addresses..." >&2;}
17151    fi
17152
17153
17154 cat >>confdefs.h <<_ACEOF
17155 #define TEST_SRC_DIR "$srcdir"
17156 _ACEOF
17157
17158
17159 # These are what's needed by logging.h.in and raw_logging.h.in
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183 # Write generated configuration file
17184 ac_config_files="$ac_config_files Makefile src/glog/logging.h src/glog/raw_logging.h src/glog/vlog_is_on.h src/glog/stl_logging.h"
17185
17186 ac_config_files="$ac_config_files libglog.pc"
17187
17188 cat >confcache <<\_ACEOF
17189 # This file is a shell script that caches the results of configure
17190 # tests run on this system so they can be shared between configure
17191 # scripts and configure runs, see configure's option --config-cache.
17192 # It is not useful on other systems.  If it contains results you don't
17193 # want to keep, you may remove or edit it.
17194 #
17195 # config.status only pays attention to the cache file if you give it
17196 # the --recheck option to rerun configure.
17197 #
17198 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17199 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17200 # following values.
17201
17202 _ACEOF
17203
17204 # The following way of writing the cache mishandles newlines in values,
17205 # but we know of no workaround that is simple, portable, and efficient.
17206 # So, we kill variables containing newlines.
17207 # Ultrix sh set writes to stderr and can't be redirected directly,
17208 # and sets the high bit in the cache file unless we assign to the vars.
17209 (
17210   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17211     eval ac_val=\$$ac_var
17212     case $ac_val in #(
17213     *${as_nl}*)
17214       case $ac_var in #(
17215       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17216 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17217       esac
17218       case $ac_var in #(
17219       _ | IFS | as_nl) ;; #(
17220       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17221       *) { eval $ac_var=; unset $ac_var;} ;;
17222       esac ;;
17223     esac
17224   done
17225
17226   (set) 2>&1 |
17227     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17228     *${as_nl}ac_space=\ *)
17229       # `set' does not quote correctly, so add quotes: double-quote
17230       # substitution turns \\\\ into \\, and sed turns \\ into \.
17231       sed -n \
17232         "s/'/'\\\\''/g;
17233           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17234       ;; #(
17235     *)
17236       # `set' quotes correctly as required by POSIX, so do not add quotes.
17237       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17238       ;;
17239     esac |
17240     sort
17241 ) |
17242   sed '
17243      /^ac_cv_env_/b end
17244      t clear
17245      :clear
17246      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17247      t end
17248      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17249      :end' >>confcache
17250 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17251   if test -w "$cache_file"; then
17252     if test "x$cache_file" != "x/dev/null"; then
17253       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17254 $as_echo "$as_me: updating cache $cache_file" >&6;}
17255       if test ! -f "$cache_file" || test -h "$cache_file"; then
17256         cat confcache >"$cache_file"
17257       else
17258         case $cache_file in #(
17259         */* | ?:*)
17260           mv -f confcache "$cache_file"$$ &&
17261           mv -f "$cache_file"$$ "$cache_file" ;; #(
17262         *)
17263           mv -f confcache "$cache_file" ;;
17264         esac
17265       fi
17266     fi
17267   else
17268     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17269 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17270   fi
17271 fi
17272 rm -f confcache
17273
17274 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17275 # Let make expand exec_prefix.
17276 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17277
17278 DEFS=-DHAVE_CONFIG_H
17279
17280 ac_libobjs=
17281 ac_ltlibobjs=
17282 U=
17283 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17284   # 1. Remove the extension, and $U if already installed.
17285   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17286   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17287   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17288   #    will be set to the directory where LIBOBJS objects are built.
17289   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17290   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17291 done
17292 LIBOBJS=$ac_libobjs
17293
17294 LTLIBOBJS=$ac_ltlibobjs
17295
17296
17297  if test -n "$EXEEXT"; then
17298   am__EXEEXT_TRUE=
17299   am__EXEEXT_FALSE='#'
17300 else
17301   am__EXEEXT_TRUE='#'
17302   am__EXEEXT_FALSE=
17303 fi
17304
17305 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17306   as_fn_error $? "conditional \"AMDEP\" was never defined.
17307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17308 fi
17309 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17310   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17312 fi
17313 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17314   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17316 fi
17317 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
17318   as_fn_error $? "conditional \"GCC\" was never defined.
17319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17320 fi
17321 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
17322   as_fn_error $? "conditional \"ENABLE_FRAME_POINTERS\" was never defined.
17323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17324 fi
17325 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
17326   as_fn_error $? "conditional \"X86_64\" was never defined.
17327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17328 fi
17329 if test -z "${DISABLE_RTTI_TRUE}" && test -z "${DISABLE_RTTI_FALSE}"; then
17330   as_fn_error $? "conditional \"DISABLE_RTTI\" was never defined.
17331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17332 fi
17333 if test -z "${HAVE_GMOCK_TRUE}" && test -z "${HAVE_GMOCK_FALSE}"; then
17334   as_fn_error $? "conditional \"HAVE_GMOCK\" was never defined.
17335 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17336 fi
17337
17338 : "${CONFIG_STATUS=./config.status}"
17339 ac_write_fail=0
17340 ac_clean_files_save=$ac_clean_files
17341 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17343 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17344 as_write_fail=0
17345 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17346 #! $SHELL
17347 # Generated by $as_me.
17348 # Run this file to recreate the current configuration.
17349 # Compiler output produced by configure, useful for debugging
17350 # configure, is in config.log if it exists.
17351
17352 debug=false
17353 ac_cs_recheck=false
17354 ac_cs_silent=false
17355
17356 SHELL=\${CONFIG_SHELL-$SHELL}
17357 export SHELL
17358 _ASEOF
17359 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17360 ## -------------------- ##
17361 ## M4sh Initialization. ##
17362 ## -------------------- ##
17363
17364 # Be more Bourne compatible
17365 DUALCASE=1; export DUALCASE # for MKS sh
17366 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17367   emulate sh
17368   NULLCMD=:
17369   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17370   # is contrary to our usage.  Disable this feature.
17371   alias -g '${1+"$@"}'='"$@"'
17372   setopt NO_GLOB_SUBST
17373 else
17374   case `(set -o) 2>/dev/null` in #(
17375   *posix*) :
17376     set -o posix ;; #(
17377   *) :
17378      ;;
17379 esac
17380 fi
17381
17382
17383 as_nl='
17384 '
17385 export as_nl
17386 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17387 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17388 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17389 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17390 # Prefer a ksh shell builtin over an external printf program on Solaris,
17391 # but without wasting forks for bash or zsh.
17392 if test -z "$BASH_VERSION$ZSH_VERSION" \
17393     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17394   as_echo='print -r --'
17395   as_echo_n='print -rn --'
17396 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17397   as_echo='printf %s\n'
17398   as_echo_n='printf %s'
17399 else
17400   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17401     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17402     as_echo_n='/usr/ucb/echo -n'
17403   else
17404     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17405     as_echo_n_body='eval
17406       arg=$1;
17407       case $arg in #(
17408       *"$as_nl"*)
17409         expr "X$arg" : "X\\(.*\\)$as_nl";
17410         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17411       esac;
17412       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17413     '
17414     export as_echo_n_body
17415     as_echo_n='sh -c $as_echo_n_body as_echo'
17416   fi
17417   export as_echo_body
17418   as_echo='sh -c $as_echo_body as_echo'
17419 fi
17420
17421 # The user is always right.
17422 if test "${PATH_SEPARATOR+set}" != set; then
17423   PATH_SEPARATOR=:
17424   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17425     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17426       PATH_SEPARATOR=';'
17427   }
17428 fi
17429
17430
17431 # IFS
17432 # We need space, tab and new line, in precisely that order.  Quoting is
17433 # there to prevent editors from complaining about space-tab.
17434 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17435 # splitting by setting IFS to empty value.)
17436 IFS=" ""        $as_nl"
17437
17438 # Find who we are.  Look in the path if we contain no directory separator.
17439 as_myself=
17440 case $0 in #((
17441   *[\\/]* ) as_myself=$0 ;;
17442   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17443 for as_dir in $PATH
17444 do
17445   IFS=$as_save_IFS
17446   test -z "$as_dir" && as_dir=.
17447     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17448   done
17449 IFS=$as_save_IFS
17450
17451      ;;
17452 esac
17453 # We did not find ourselves, most probably we were run as `sh COMMAND'
17454 # in which case we are not to be found in the path.
17455 if test "x$as_myself" = x; then
17456   as_myself=$0
17457 fi
17458 if test ! -f "$as_myself"; then
17459   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17460   exit 1
17461 fi
17462
17463 # Unset variables that we do not need and which cause bugs (e.g. in
17464 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17465 # suppresses any "Segmentation fault" message there.  '((' could
17466 # trigger a bug in pdksh 5.2.14.
17467 for as_var in BASH_ENV ENV MAIL MAILPATH
17468 do eval test x\${$as_var+set} = xset \
17469   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17470 done
17471 PS1='$ '
17472 PS2='> '
17473 PS4='+ '
17474
17475 # NLS nuisances.
17476 LC_ALL=C
17477 export LC_ALL
17478 LANGUAGE=C
17479 export LANGUAGE
17480
17481 # CDPATH.
17482 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17483
17484
17485 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17486 # ----------------------------------------
17487 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17488 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17489 # script with STATUS, using 1 if that was 0.
17490 as_fn_error ()
17491 {
17492   as_status=$1; test $as_status -eq 0 && as_status=1
17493   if test "$4"; then
17494     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17495     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17496   fi
17497   $as_echo "$as_me: error: $2" >&2
17498   as_fn_exit $as_status
17499 } # as_fn_error
17500
17501
17502 # as_fn_set_status STATUS
17503 # -----------------------
17504 # Set $? to STATUS, without forking.
17505 as_fn_set_status ()
17506 {
17507   return $1
17508 } # as_fn_set_status
17509
17510 # as_fn_exit STATUS
17511 # -----------------
17512 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17513 as_fn_exit ()
17514 {
17515   set +e
17516   as_fn_set_status $1
17517   exit $1
17518 } # as_fn_exit
17519
17520 # as_fn_unset VAR
17521 # ---------------
17522 # Portably unset VAR.
17523 as_fn_unset ()
17524 {
17525   { eval $1=; unset $1;}
17526 }
17527 as_unset=as_fn_unset
17528 # as_fn_append VAR VALUE
17529 # ----------------------
17530 # Append the text in VALUE to the end of the definition contained in VAR. Take
17531 # advantage of any shell optimizations that allow amortized linear growth over
17532 # repeated appends, instead of the typical quadratic growth present in naive
17533 # implementations.
17534 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17535   eval 'as_fn_append ()
17536   {
17537     eval $1+=\$2
17538   }'
17539 else
17540   as_fn_append ()
17541   {
17542     eval $1=\$$1\$2
17543   }
17544 fi # as_fn_append
17545
17546 # as_fn_arith ARG...
17547 # ------------------
17548 # Perform arithmetic evaluation on the ARGs, and store the result in the
17549 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17550 # must be portable across $(()) and expr.
17551 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17552   eval 'as_fn_arith ()
17553   {
17554     as_val=$(( $* ))
17555   }'
17556 else
17557   as_fn_arith ()
17558   {
17559     as_val=`expr "$@" || test $? -eq 1`
17560   }
17561 fi # as_fn_arith
17562
17563
17564 if expr a : '\(a\)' >/dev/null 2>&1 &&
17565    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17566   as_expr=expr
17567 else
17568   as_expr=false
17569 fi
17570
17571 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17572   as_basename=basename
17573 else
17574   as_basename=false
17575 fi
17576
17577 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17578   as_dirname=dirname
17579 else
17580   as_dirname=false
17581 fi
17582
17583 as_me=`$as_basename -- "$0" ||
17584 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17585          X"$0" : 'X\(//\)$' \| \
17586          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17587 $as_echo X/"$0" |
17588     sed '/^.*\/\([^/][^/]*\)\/*$/{
17589             s//\1/
17590             q
17591           }
17592           /^X\/\(\/\/\)$/{
17593             s//\1/
17594             q
17595           }
17596           /^X\/\(\/\).*/{
17597             s//\1/
17598             q
17599           }
17600           s/.*/./; q'`
17601
17602 # Avoid depending upon Character Ranges.
17603 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17604 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17605 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17606 as_cr_digits='0123456789'
17607 as_cr_alnum=$as_cr_Letters$as_cr_digits
17608
17609 ECHO_C= ECHO_N= ECHO_T=
17610 case `echo -n x` in #(((((
17611 -n*)
17612   case `echo 'xy\c'` in
17613   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17614   xy)  ECHO_C='\c';;
17615   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17616        ECHO_T=' ';;
17617   esac;;
17618 *)
17619   ECHO_N='-n';;
17620 esac
17621
17622 rm -f conf$$ conf$$.exe conf$$.file
17623 if test -d conf$$.dir; then
17624   rm -f conf$$.dir/conf$$.file
17625 else
17626   rm -f conf$$.dir
17627   mkdir conf$$.dir 2>/dev/null
17628 fi
17629 if (echo >conf$$.file) 2>/dev/null; then
17630   if ln -s conf$$.file conf$$ 2>/dev/null; then
17631     as_ln_s='ln -s'
17632     # ... but there are two gotchas:
17633     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17634     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17635     # In both cases, we have to default to `cp -p'.
17636     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17637       as_ln_s='cp -p'
17638   elif ln conf$$.file conf$$ 2>/dev/null; then
17639     as_ln_s=ln
17640   else
17641     as_ln_s='cp -p'
17642   fi
17643 else
17644   as_ln_s='cp -p'
17645 fi
17646 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17647 rmdir conf$$.dir 2>/dev/null
17648
17649
17650 # as_fn_mkdir_p
17651 # -------------
17652 # Create "$as_dir" as a directory, including parents if necessary.
17653 as_fn_mkdir_p ()
17654 {
17655
17656   case $as_dir in #(
17657   -*) as_dir=./$as_dir;;
17658   esac
17659   test -d "$as_dir" || eval $as_mkdir_p || {
17660     as_dirs=
17661     while :; do
17662       case $as_dir in #(
17663       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17664       *) as_qdir=$as_dir;;
17665       esac
17666       as_dirs="'$as_qdir' $as_dirs"
17667       as_dir=`$as_dirname -- "$as_dir" ||
17668 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17669          X"$as_dir" : 'X\(//\)[^/]' \| \
17670          X"$as_dir" : 'X\(//\)$' \| \
17671          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17672 $as_echo X"$as_dir" |
17673     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17674             s//\1/
17675             q
17676           }
17677           /^X\(\/\/\)[^/].*/{
17678             s//\1/
17679             q
17680           }
17681           /^X\(\/\/\)$/{
17682             s//\1/
17683             q
17684           }
17685           /^X\(\/\).*/{
17686             s//\1/
17687             q
17688           }
17689           s/.*/./; q'`
17690       test -d "$as_dir" && break
17691     done
17692     test -z "$as_dirs" || eval "mkdir $as_dirs"
17693   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17694
17695
17696 } # as_fn_mkdir_p
17697 if mkdir -p . 2>/dev/null; then
17698   as_mkdir_p='mkdir -p "$as_dir"'
17699 else
17700   test -d ./-p && rmdir ./-p
17701   as_mkdir_p=false
17702 fi
17703
17704 if test -x / >/dev/null 2>&1; then
17705   as_test_x='test -x'
17706 else
17707   if ls -dL / >/dev/null 2>&1; then
17708     as_ls_L_option=L
17709   else
17710     as_ls_L_option=
17711   fi
17712   as_test_x='
17713     eval sh -c '\''
17714       if test -d "$1"; then
17715         test -d "$1/.";
17716       else
17717         case $1 in #(
17718         -*)set "./$1";;
17719         esac;
17720         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17721         ???[sx]*):;;*)false;;esac;fi
17722     '\'' sh
17723   '
17724 fi
17725 as_executable_p=$as_test_x
17726
17727 # Sed expression to map a string onto a valid CPP name.
17728 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17729
17730 # Sed expression to map a string onto a valid variable name.
17731 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17732
17733
17734 exec 6>&1
17735 ## ----------------------------------- ##
17736 ## Main body of $CONFIG_STATUS script. ##
17737 ## ----------------------------------- ##
17738 _ASEOF
17739 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17740
17741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17742 # Save the log message, to keep $0 and so on meaningful, and to
17743 # report actual input values of CONFIG_FILES etc. instead of their
17744 # values after options handling.
17745 ac_log="
17746 This file was extended by glog $as_me 0.3.3, which was
17747 generated by GNU Autoconf 2.68.  Invocation command line was
17748
17749   CONFIG_FILES    = $CONFIG_FILES
17750   CONFIG_HEADERS  = $CONFIG_HEADERS
17751   CONFIG_LINKS    = $CONFIG_LINKS
17752   CONFIG_COMMANDS = $CONFIG_COMMANDS
17753   $ $0 $@
17754
17755 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17756 "
17757
17758 _ACEOF
17759
17760 case $ac_config_files in *"
17761 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17762 esac
17763
17764 case $ac_config_headers in *"
17765 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17766 esac
17767
17768
17769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17770 # Files that config.status was made for.
17771 config_files="$ac_config_files"
17772 config_headers="$ac_config_headers"
17773 config_commands="$ac_config_commands"
17774
17775 _ACEOF
17776
17777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17778 ac_cs_usage="\
17779 \`$as_me' instantiates files and other configuration actions
17780 from templates according to the current configuration.  Unless the files
17781 and actions are specified as TAGs, all are instantiated by default.
17782
17783 Usage: $0 [OPTION]... [TAG]...
17784
17785   -h, --help       print this help, then exit
17786   -V, --version    print version number and configuration settings, then exit
17787       --config     print configuration, then exit
17788   -q, --quiet, --silent
17789                    do not print progress messages
17790   -d, --debug      don't remove temporary files
17791       --recheck    update $as_me by reconfiguring in the same conditions
17792       --file=FILE[:TEMPLATE]
17793                    instantiate the configuration file FILE
17794       --header=FILE[:TEMPLATE]
17795                    instantiate the configuration header FILE
17796
17797 Configuration files:
17798 $config_files
17799
17800 Configuration headers:
17801 $config_headers
17802
17803 Configuration commands:
17804 $config_commands
17805
17806 Report bugs to <opensource@google.com>."
17807
17808 _ACEOF
17809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17810 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17811 ac_cs_version="\\
17812 glog config.status 0.3.3
17813 configured by $0, generated by GNU Autoconf 2.68,
17814   with options \\"\$ac_cs_config\\"
17815
17816 Copyright (C) 2010 Free Software Foundation, Inc.
17817 This config.status script is free software; the Free Software Foundation
17818 gives unlimited permission to copy, distribute and modify it."
17819
17820 ac_pwd='$ac_pwd'
17821 srcdir='$srcdir'
17822 INSTALL='$INSTALL'
17823 MKDIR_P='$MKDIR_P'
17824 AWK='$AWK'
17825 test -n "\$AWK" || AWK=awk
17826 _ACEOF
17827
17828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17829 # The default lists apply if the user does not specify any file.
17830 ac_need_defaults=:
17831 while test $# != 0
17832 do
17833   case $1 in
17834   --*=?*)
17835     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17836     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17837     ac_shift=:
17838     ;;
17839   --*=)
17840     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17841     ac_optarg=
17842     ac_shift=:
17843     ;;
17844   *)
17845     ac_option=$1
17846     ac_optarg=$2
17847     ac_shift=shift
17848     ;;
17849   esac
17850
17851   case $ac_option in
17852   # Handling of the options.
17853   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17854     ac_cs_recheck=: ;;
17855   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17856     $as_echo "$ac_cs_version"; exit ;;
17857   --config | --confi | --conf | --con | --co | --c )
17858     $as_echo "$ac_cs_config"; exit ;;
17859   --debug | --debu | --deb | --de | --d | -d )
17860     debug=: ;;
17861   --file | --fil | --fi | --f )
17862     $ac_shift
17863     case $ac_optarg in
17864     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17865     '') as_fn_error $? "missing file argument" ;;
17866     esac
17867     as_fn_append CONFIG_FILES " '$ac_optarg'"
17868     ac_need_defaults=false;;
17869   --header | --heade | --head | --hea )
17870     $ac_shift
17871     case $ac_optarg in
17872     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17873     esac
17874     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17875     ac_need_defaults=false;;
17876   --he | --h)
17877     # Conflict between --help and --header
17878     as_fn_error $? "ambiguous option: \`$1'
17879 Try \`$0 --help' for more information.";;
17880   --help | --hel | -h )
17881     $as_echo "$ac_cs_usage"; exit ;;
17882   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17883   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17884     ac_cs_silent=: ;;
17885
17886   # This is an error.
17887   -*) as_fn_error $? "unrecognized option: \`$1'
17888 Try \`$0 --help' for more information." ;;
17889
17890   *) as_fn_append ac_config_targets " $1"
17891      ac_need_defaults=false ;;
17892
17893   esac
17894   shift
17895 done
17896
17897 ac_configure_extra_args=
17898
17899 if $ac_cs_silent; then
17900   exec 6>/dev/null
17901   ac_configure_extra_args="$ac_configure_extra_args --silent"
17902 fi
17903
17904 _ACEOF
17905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17906 if \$ac_cs_recheck; then
17907   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17908   shift
17909   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17910   CONFIG_SHELL='$SHELL'
17911   export CONFIG_SHELL
17912   exec "\$@"
17913 fi
17914
17915 _ACEOF
17916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17917 exec 5>>config.log
17918 {
17919   echo
17920   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17921 ## Running $as_me. ##
17922 _ASBOX
17923   $as_echo "$ac_log"
17924 } >&5
17925
17926 _ACEOF
17927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17928 #
17929 # INIT-COMMANDS
17930 #
17931 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17932
17933
17934 # The HP-UX ksh and POSIX shell print the target directory to stdout
17935 # if CDPATH is set.
17936 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17937
17938 sed_quote_subst='$sed_quote_subst'
17939 double_quote_subst='$double_quote_subst'
17940 delay_variable_subst='$delay_variable_subst'
17941 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17942 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17943 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17944 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17945 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17946 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17947 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17948 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17949 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17950 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17951 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17952 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17953 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17954 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17955 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17956 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17957 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17958 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17959 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17960 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17961 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17962 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17963 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17964 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17965 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17966 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17967 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17968 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17969 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17970 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17971 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17972 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17973 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17974 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17975 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17976 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17977 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17978 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17979 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17980 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17981 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17982 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17983 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17984 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17985 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17986 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17987 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17988 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17989 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17990 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17991 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17992 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17993 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17994 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17995 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17996 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17997 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"`'
17998 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17999 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18000 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18001 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18002 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18003 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18004 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18005 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18006 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18007 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18008 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18009 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18010 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18011 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18012 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18013 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18014 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18015 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18016 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18017 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18018 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18019 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18020 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18021 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18022 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18023 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18024 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18025 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18026 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18027 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18028 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18029 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18030 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18031 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18032 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18033 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18034 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18035 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18036 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18037 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18038 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18039 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18040 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18041 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18042 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18043 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18044 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18045 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18046 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18047 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18048 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18049 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18050 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18051 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18052 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18053 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18054 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18055 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18056 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18057 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18058 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18059 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18060 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18061 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18062 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18063 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18064 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18065 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18066 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18067 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18068 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18069 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18070 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18071 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18072 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18073 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18074 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18075 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18076 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18077 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18078 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18079 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18080 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18081 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18082 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18083 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18084 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18085 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18086 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18087 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18088 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18089 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18090 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18091 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18092 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18093 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18094 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18095 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18096 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18097 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18098 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18099 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18100 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18101 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18102 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18103 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18104 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18105 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18106 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18107 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18108 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18109 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18110 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18111 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18112 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18113 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18114 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18115 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18116 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18117 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18118 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18119 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18120 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18121 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18122 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18123 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18124 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18125
18126 LTCC='$LTCC'
18127 LTCFLAGS='$LTCFLAGS'
18128 compiler='$compiler_DEFAULT'
18129
18130 # A function that is used when there is no print builtin or printf.
18131 func_fallback_echo ()
18132 {
18133   eval 'cat <<_LTECHO_EOF
18134 \$1
18135 _LTECHO_EOF'
18136 }
18137
18138 # Quote evaled strings.
18139 for var in SHELL \
18140 ECHO \
18141 PATH_SEPARATOR \
18142 SED \
18143 GREP \
18144 EGREP \
18145 FGREP \
18146 LD \
18147 NM \
18148 LN_S \
18149 lt_SP2NL \
18150 lt_NL2SP \
18151 reload_flag \
18152 OBJDUMP \
18153 deplibs_check_method \
18154 file_magic_cmd \
18155 file_magic_glob \
18156 want_nocaseglob \
18157 DLLTOOL \
18158 sharedlib_from_linklib_cmd \
18159 AR \
18160 AR_FLAGS \
18161 archiver_list_spec \
18162 STRIP \
18163 RANLIB \
18164 CC \
18165 CFLAGS \
18166 compiler \
18167 lt_cv_sys_global_symbol_pipe \
18168 lt_cv_sys_global_symbol_to_cdecl \
18169 lt_cv_sys_global_symbol_to_c_name_address \
18170 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18171 nm_file_list_spec \
18172 lt_prog_compiler_no_builtin_flag \
18173 lt_prog_compiler_pic \
18174 lt_prog_compiler_wl \
18175 lt_prog_compiler_static \
18176 lt_cv_prog_compiler_c_o \
18177 need_locks \
18178 MANIFEST_TOOL \
18179 DSYMUTIL \
18180 NMEDIT \
18181 LIPO \
18182 OTOOL \
18183 OTOOL64 \
18184 shrext_cmds \
18185 export_dynamic_flag_spec \
18186 whole_archive_flag_spec \
18187 compiler_needs_object \
18188 with_gnu_ld \
18189 allow_undefined_flag \
18190 no_undefined_flag \
18191 hardcode_libdir_flag_spec \
18192 hardcode_libdir_separator \
18193 exclude_expsyms \
18194 include_expsyms \
18195 file_list_spec \
18196 variables_saved_for_relink \
18197 libname_spec \
18198 library_names_spec \
18199 soname_spec \
18200 install_override_mode \
18201 finish_eval \
18202 old_striplib \
18203 striplib \
18204 compiler_lib_search_dirs \
18205 predep_objects \
18206 postdep_objects \
18207 predeps \
18208 postdeps \
18209 compiler_lib_search_path \
18210 LD_CXX \
18211 reload_flag_CXX \
18212 compiler_CXX \
18213 lt_prog_compiler_no_builtin_flag_CXX \
18214 lt_prog_compiler_pic_CXX \
18215 lt_prog_compiler_wl_CXX \
18216 lt_prog_compiler_static_CXX \
18217 lt_cv_prog_compiler_c_o_CXX \
18218 export_dynamic_flag_spec_CXX \
18219 whole_archive_flag_spec_CXX \
18220 compiler_needs_object_CXX \
18221 with_gnu_ld_CXX \
18222 allow_undefined_flag_CXX \
18223 no_undefined_flag_CXX \
18224 hardcode_libdir_flag_spec_CXX \
18225 hardcode_libdir_separator_CXX \
18226 exclude_expsyms_CXX \
18227 include_expsyms_CXX \
18228 file_list_spec_CXX \
18229 compiler_lib_search_dirs_CXX \
18230 predep_objects_CXX \
18231 postdep_objects_CXX \
18232 predeps_CXX \
18233 postdeps_CXX \
18234 compiler_lib_search_path_CXX; do
18235     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18236     *[\\\\\\\`\\"\\\$]*)
18237       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18238       ;;
18239     *)
18240       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18241       ;;
18242     esac
18243 done
18244
18245 # Double-quote double-evaled strings.
18246 for var in reload_cmds \
18247 old_postinstall_cmds \
18248 old_postuninstall_cmds \
18249 old_archive_cmds \
18250 extract_expsyms_cmds \
18251 old_archive_from_new_cmds \
18252 old_archive_from_expsyms_cmds \
18253 archive_cmds \
18254 archive_expsym_cmds \
18255 module_cmds \
18256 module_expsym_cmds \
18257 export_symbols_cmds \
18258 prelink_cmds \
18259 postlink_cmds \
18260 postinstall_cmds \
18261 postuninstall_cmds \
18262 finish_cmds \
18263 sys_lib_search_path_spec \
18264 sys_lib_dlsearch_path_spec \
18265 reload_cmds_CXX \
18266 old_archive_cmds_CXX \
18267 old_archive_from_new_cmds_CXX \
18268 old_archive_from_expsyms_cmds_CXX \
18269 archive_cmds_CXX \
18270 archive_expsym_cmds_CXX \
18271 module_cmds_CXX \
18272 module_expsym_cmds_CXX \
18273 export_symbols_cmds_CXX \
18274 prelink_cmds_CXX \
18275 postlink_cmds_CXX; do
18276     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18277     *[\\\\\\\`\\"\\\$]*)
18278       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18279       ;;
18280     *)
18281       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18282       ;;
18283     esac
18284 done
18285
18286 ac_aux_dir='$ac_aux_dir'
18287 xsi_shell='$xsi_shell'
18288 lt_shell_append='$lt_shell_append'
18289
18290 # See if we are running on zsh, and set the options which allow our
18291 # commands through without removal of \ escapes INIT.
18292 if test -n "\${ZSH_VERSION+set}" ; then
18293    setopt NO_GLOB_SUBST
18294 fi
18295
18296
18297     PACKAGE='$PACKAGE'
18298     VERSION='$VERSION'
18299     TIMESTAMP='$TIMESTAMP'
18300     RM='$RM'
18301     ofile='$ofile'
18302
18303
18304
18305
18306
18307
18308 _ACEOF
18309
18310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18311
18312 # Handling of arguments.
18313 for ac_config_target in $ac_config_targets
18314 do
18315   case $ac_config_target in
18316     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
18317     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18318     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18319     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18320     "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
18321     "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
18322     "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
18323     "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
18324     "libglog.pc") CONFIG_FILES="$CONFIG_FILES libglog.pc" ;;
18325
18326   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18327   esac
18328 done
18329
18330
18331 # If the user did not use the arguments to specify the items to instantiate,
18332 # then the envvar interface is used.  Set only those that are not.
18333 # We use the long form for the default assignment because of an extremely
18334 # bizarre bug on SunOS 4.1.3.
18335 if $ac_need_defaults; then
18336   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18337   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18338   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18339 fi
18340
18341 # Have a temporary directory for convenience.  Make it in the build tree
18342 # simply because there is no reason against having it here, and in addition,
18343 # creating and moving files from /tmp can sometimes cause problems.
18344 # Hook for its removal unless debugging.
18345 # Note that there is a small window in which the directory will not be cleaned:
18346 # after its creation but before its name has been assigned to `$tmp'.
18347 $debug ||
18348 {
18349   tmp= ac_tmp=
18350   trap 'exit_status=$?
18351   : "${ac_tmp:=$tmp}"
18352   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18353 ' 0
18354   trap 'as_fn_exit 1' 1 2 13 15
18355 }
18356 # Create a (secure) tmp directory for tmp files.
18357
18358 {
18359   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18360   test -d "$tmp"
18361 }  ||
18362 {
18363   tmp=./conf$$-$RANDOM
18364   (umask 077 && mkdir "$tmp")
18365 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18366 ac_tmp=$tmp
18367
18368 # Set up the scripts for CONFIG_FILES section.
18369 # No need to generate them if there are no CONFIG_FILES.
18370 # This happens for instance with `./config.status config.h'.
18371 if test -n "$CONFIG_FILES"; then
18372
18373
18374 ac_cr=`echo X | tr X '\015'`
18375 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18376 # But we know of no other shell where ac_cr would be empty at this
18377 # point, so we can use a bashism as a fallback.
18378 if test "x$ac_cr" = x; then
18379   eval ac_cr=\$\'\\r\'
18380 fi
18381 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18382 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18383   ac_cs_awk_cr='\\r'
18384 else
18385   ac_cs_awk_cr=$ac_cr
18386 fi
18387
18388 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18389 _ACEOF
18390
18391
18392 {
18393   echo "cat >conf$$subs.awk <<_ACEOF" &&
18394   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18395   echo "_ACEOF"
18396 } >conf$$subs.sh ||
18397   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18398 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18399 ac_delim='%!_!# '
18400 for ac_last_try in false false false false false :; do
18401   . ./conf$$subs.sh ||
18402     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18403
18404   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18405   if test $ac_delim_n = $ac_delim_num; then
18406     break
18407   elif $ac_last_try; then
18408     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18409   else
18410     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18411   fi
18412 done
18413 rm -f conf$$subs.sh
18414
18415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18416 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18417 _ACEOF
18418 sed -n '
18419 h
18420 s/^/S["/; s/!.*/"]=/
18421 p
18422 g
18423 s/^[^!]*!//
18424 :repl
18425 t repl
18426 s/'"$ac_delim"'$//
18427 t delim
18428 :nl
18429 h
18430 s/\(.\{148\}\)..*/\1/
18431 t more1
18432 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18433 p
18434 n
18435 b repl
18436 :more1
18437 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18438 p
18439 g
18440 s/.\{148\}//
18441 t nl
18442 :delim
18443 h
18444 s/\(.\{148\}\)..*/\1/
18445 t more2
18446 s/["\\]/\\&/g; s/^/"/; s/$/"/
18447 p
18448 b
18449 :more2
18450 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18451 p
18452 g
18453 s/.\{148\}//
18454 t delim
18455 ' <conf$$subs.awk | sed '
18456 /^[^""]/{
18457   N
18458   s/\n//
18459 }
18460 ' >>$CONFIG_STATUS || ac_write_fail=1
18461 rm -f conf$$subs.awk
18462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18463 _ACAWK
18464 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18465   for (key in S) S_is_set[key] = 1
18466   FS = "\a"
18467
18468 }
18469 {
18470   line = $ 0
18471   nfields = split(line, field, "@")
18472   substed = 0
18473   len = length(field[1])
18474   for (i = 2; i < nfields; i++) {
18475     key = field[i]
18476     keylen = length(key)
18477     if (S_is_set[key]) {
18478       value = S[key]
18479       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18480       len += length(value) + length(field[++i])
18481       substed = 1
18482     } else
18483       len += 1 + keylen
18484   }
18485
18486   print line
18487 }
18488
18489 _ACAWK
18490 _ACEOF
18491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18492 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18493   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18494 else
18495   cat
18496 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18497   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18498 _ACEOF
18499
18500 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18501 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18502 # trailing colons and then remove the whole line if VPATH becomes empty
18503 # (actually we leave an empty line to preserve line numbers).
18504 if test "x$srcdir" = x.; then
18505   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18506 h
18507 s///
18508 s/^/:/
18509 s/[      ]*$/:/
18510 s/:\$(srcdir):/:/g
18511 s/:\${srcdir}:/:/g
18512 s/:@srcdir@:/:/g
18513 s/^:*//
18514 s/:*$//
18515 x
18516 s/\(=[   ]*\).*/\1/
18517 G
18518 s/\n//
18519 s/^[^=]*=[       ]*$//
18520 }'
18521 fi
18522
18523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18524 fi # test -n "$CONFIG_FILES"
18525
18526 # Set up the scripts for CONFIG_HEADERS section.
18527 # No need to generate them if there are no CONFIG_HEADERS.
18528 # This happens for instance with `./config.status Makefile'.
18529 if test -n "$CONFIG_HEADERS"; then
18530 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18531 BEGIN {
18532 _ACEOF
18533
18534 # Transform confdefs.h into an awk script `defines.awk', embedded as
18535 # here-document in config.status, that substitutes the proper values into
18536 # config.h.in to produce config.h.
18537
18538 # Create a delimiter string that does not exist in confdefs.h, to ease
18539 # handling of long lines.
18540 ac_delim='%!_!# '
18541 for ac_last_try in false false :; do
18542   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18543   if test -z "$ac_tt"; then
18544     break
18545   elif $ac_last_try; then
18546     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18547   else
18548     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18549   fi
18550 done
18551
18552 # For the awk script, D is an array of macro values keyed by name,
18553 # likewise P contains macro parameters if any.  Preserve backslash
18554 # newline sequences.
18555
18556 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18557 sed -n '
18558 s/.\{148\}/&'"$ac_delim"'/g
18559 t rset
18560 :rset
18561 s/^[     ]*#[    ]*define[       ][      ]*/ /
18562 t def
18563 d
18564 :def
18565 s/\\$//
18566 t bsnl
18567 s/["\\]/\\&/g
18568 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18569 D["\1"]=" \3"/p
18570 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18571 d
18572 :bsnl
18573 s/["\\]/\\&/g
18574 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18575 D["\1"]=" \3\\\\\\n"\\/p
18576 t cont
18577 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18578 t cont
18579 d
18580 :cont
18581 n
18582 s/.\{148\}/&'"$ac_delim"'/g
18583 t clear
18584 :clear
18585 s/\\$//
18586 t bsnlc
18587 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18588 d
18589 :bsnlc
18590 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18591 b cont
18592 ' <confdefs.h | sed '
18593 s/'"$ac_delim"'/"\\\
18594 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18595
18596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18597   for (key in D) D_is_set[key] = 1
18598   FS = "\a"
18599 }
18600 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18601   line = \$ 0
18602   split(line, arg, " ")
18603   if (arg[1] == "#") {
18604     defundef = arg[2]
18605     mac1 = arg[3]
18606   } else {
18607     defundef = substr(arg[1], 2)
18608     mac1 = arg[2]
18609   }
18610   split(mac1, mac2, "(") #)
18611   macro = mac2[1]
18612   prefix = substr(line, 1, index(line, defundef) - 1)
18613   if (D_is_set[macro]) {
18614     # Preserve the white space surrounding the "#".
18615     print prefix "define", macro P[macro] D[macro]
18616     next
18617   } else {
18618     # Replace #undef with comments.  This is necessary, for example,
18619     # in the case of _POSIX_SOURCE, which is predefined and required
18620     # on some systems where configure will not decide to define it.
18621     if (defundef == "undef") {
18622       print "/*", prefix defundef, macro, "*/"
18623       next
18624     }
18625   }
18626 }
18627 { print }
18628 _ACAWK
18629 _ACEOF
18630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18631   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18632 fi # test -n "$CONFIG_HEADERS"
18633
18634
18635 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18636 shift
18637 for ac_tag
18638 do
18639   case $ac_tag in
18640   :[FHLC]) ac_mode=$ac_tag; continue;;
18641   esac
18642   case $ac_mode$ac_tag in
18643   :[FHL]*:*);;
18644   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18645   :[FH]-) ac_tag=-:-;;
18646   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18647   esac
18648   ac_save_IFS=$IFS
18649   IFS=:
18650   set x $ac_tag
18651   IFS=$ac_save_IFS
18652   shift
18653   ac_file=$1
18654   shift
18655
18656   case $ac_mode in
18657   :L) ac_source=$1;;
18658   :[FH])
18659     ac_file_inputs=
18660     for ac_f
18661     do
18662       case $ac_f in
18663       -) ac_f="$ac_tmp/stdin";;
18664       *) # Look for the file first in the build tree, then in the source tree
18665          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18666          # because $ac_f cannot contain `:'.
18667          test -f "$ac_f" ||
18668            case $ac_f in
18669            [\\/$]*) false;;
18670            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18671            esac ||
18672            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18673       esac
18674       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18675       as_fn_append ac_file_inputs " '$ac_f'"
18676     done
18677
18678     # Let's still pretend it is `configure' which instantiates (i.e., don't
18679     # use $as_me), people would be surprised to read:
18680     #    /* config.h.  Generated by config.status.  */
18681     configure_input='Generated from '`
18682           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18683         `' by configure.'
18684     if test x"$ac_file" != x-; then
18685       configure_input="$ac_file.  $configure_input"
18686       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18687 $as_echo "$as_me: creating $ac_file" >&6;}
18688     fi
18689     # Neutralize special characters interpreted by sed in replacement strings.
18690     case $configure_input in #(
18691     *\&* | *\|* | *\\* )
18692        ac_sed_conf_input=`$as_echo "$configure_input" |
18693        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18694     *) ac_sed_conf_input=$configure_input;;
18695     esac
18696
18697     case $ac_tag in
18698     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18699       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18700     esac
18701     ;;
18702   esac
18703
18704   ac_dir=`$as_dirname -- "$ac_file" ||
18705 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18706          X"$ac_file" : 'X\(//\)[^/]' \| \
18707          X"$ac_file" : 'X\(//\)$' \| \
18708          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18709 $as_echo X"$ac_file" |
18710     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18711             s//\1/
18712             q
18713           }
18714           /^X\(\/\/\)[^/].*/{
18715             s//\1/
18716             q
18717           }
18718           /^X\(\/\/\)$/{
18719             s//\1/
18720             q
18721           }
18722           /^X\(\/\).*/{
18723             s//\1/
18724             q
18725           }
18726           s/.*/./; q'`
18727   as_dir="$ac_dir"; as_fn_mkdir_p
18728   ac_builddir=.
18729
18730 case "$ac_dir" in
18731 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18732 *)
18733   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18734   # A ".." for each directory in $ac_dir_suffix.
18735   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18736   case $ac_top_builddir_sub in
18737   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18738   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18739   esac ;;
18740 esac
18741 ac_abs_top_builddir=$ac_pwd
18742 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18743 # for backward compatibility:
18744 ac_top_builddir=$ac_top_build_prefix
18745
18746 case $srcdir in
18747   .)  # We are building in place.
18748     ac_srcdir=.
18749     ac_top_srcdir=$ac_top_builddir_sub
18750     ac_abs_top_srcdir=$ac_pwd ;;
18751   [\\/]* | ?:[\\/]* )  # Absolute name.
18752     ac_srcdir=$srcdir$ac_dir_suffix;
18753     ac_top_srcdir=$srcdir
18754     ac_abs_top_srcdir=$srcdir ;;
18755   *) # Relative name.
18756     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18757     ac_top_srcdir=$ac_top_build_prefix$srcdir
18758     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18759 esac
18760 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18761
18762
18763   case $ac_mode in
18764   :F)
18765   #
18766   # CONFIG_FILE
18767   #
18768
18769   case $INSTALL in
18770   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18771   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18772   esac
18773   ac_MKDIR_P=$MKDIR_P
18774   case $MKDIR_P in
18775   [\\/$]* | ?:[\\/]* ) ;;
18776   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18777   esac
18778 _ACEOF
18779
18780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18781 # If the template does not know about datarootdir, expand it.
18782 # FIXME: This hack should be removed a few years after 2.60.
18783 ac_datarootdir_hack=; ac_datarootdir_seen=
18784 ac_sed_dataroot='
18785 /datarootdir/ {
18786   p
18787   q
18788 }
18789 /@datadir@/p
18790 /@docdir@/p
18791 /@infodir@/p
18792 /@localedir@/p
18793 /@mandir@/p'
18794 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18795 *datarootdir*) ac_datarootdir_seen=yes;;
18796 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18797   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18798 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18799 _ACEOF
18800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18801   ac_datarootdir_hack='
18802   s&@datadir@&$datadir&g
18803   s&@docdir@&$docdir&g
18804   s&@infodir@&$infodir&g
18805   s&@localedir@&$localedir&g
18806   s&@mandir@&$mandir&g
18807   s&\\\${datarootdir}&$datarootdir&g' ;;
18808 esac
18809 _ACEOF
18810
18811 # Neutralize VPATH when `$srcdir' = `.'.
18812 # Shell code in configure.ac might set extrasub.
18813 # FIXME: do we really want to maintain this feature?
18814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18815 ac_sed_extra="$ac_vpsub
18816 $extrasub
18817 _ACEOF
18818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18819 :t
18820 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18821 s|@configure_input@|$ac_sed_conf_input|;t t
18822 s&@top_builddir@&$ac_top_builddir_sub&;t t
18823 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18824 s&@srcdir@&$ac_srcdir&;t t
18825 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18826 s&@top_srcdir@&$ac_top_srcdir&;t t
18827 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18828 s&@builddir@&$ac_builddir&;t t
18829 s&@abs_builddir@&$ac_abs_builddir&;t t
18830 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18831 s&@INSTALL@&$ac_INSTALL&;t t
18832 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18833 $ac_datarootdir_hack
18834 "
18835 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18836   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18837
18838 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18839   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18840   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18841       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18842   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18843 which seems to be undefined.  Please make sure it is defined" >&5
18844 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18845 which seems to be undefined.  Please make sure it is defined" >&2;}
18846
18847   rm -f "$ac_tmp/stdin"
18848   case $ac_file in
18849   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18850   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18851   esac \
18852   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18853  ;;
18854   :H)
18855   #
18856   # CONFIG_HEADER
18857   #
18858   if test x"$ac_file" != x-; then
18859     {
18860       $as_echo "/* $configure_input  */" \
18861       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18862     } >"$ac_tmp/config.h" \
18863       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18864     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18865       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18866 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18867     else
18868       rm -f "$ac_file"
18869       mv "$ac_tmp/config.h" "$ac_file" \
18870         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18871     fi
18872   else
18873     $as_echo "/* $configure_input  */" \
18874       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18875       || as_fn_error $? "could not create -" "$LINENO" 5
18876   fi
18877 # Compute "$ac_file"'s index in $config_headers.
18878 _am_arg="$ac_file"
18879 _am_stamp_count=1
18880 for _am_header in $config_headers :; do
18881   case $_am_header in
18882     $_am_arg | $_am_arg:* )
18883       break ;;
18884     * )
18885       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18886   esac
18887 done
18888 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18889 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18890          X"$_am_arg" : 'X\(//\)[^/]' \| \
18891          X"$_am_arg" : 'X\(//\)$' \| \
18892          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18893 $as_echo X"$_am_arg" |
18894     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18895             s//\1/
18896             q
18897           }
18898           /^X\(\/\/\)[^/].*/{
18899             s//\1/
18900             q
18901           }
18902           /^X\(\/\/\)$/{
18903             s//\1/
18904             q
18905           }
18906           /^X\(\/\).*/{
18907             s//\1/
18908             q
18909           }
18910           s/.*/./; q'`/stamp-h$_am_stamp_count
18911  ;;
18912
18913   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18914 $as_echo "$as_me: executing $ac_file commands" >&6;}
18915  ;;
18916   esac
18917
18918
18919   case $ac_file$ac_mode in
18920     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18921   # Autoconf 2.62 quotes --file arguments for eval, but not when files
18922   # are listed without --file.  Let's play safe and only enable the eval
18923   # if we detect the quoting.
18924   case $CONFIG_FILES in
18925   *\'*) eval set x "$CONFIG_FILES" ;;
18926   *)   set x $CONFIG_FILES ;;
18927   esac
18928   shift
18929   for mf
18930   do
18931     # Strip MF so we end up with the name of the file.
18932     mf=`echo "$mf" | sed -e 's/:.*$//'`
18933     # Check whether this is an Automake generated Makefile or not.
18934     # We used to match only the files named `Makefile.in', but
18935     # some people rename them; so instead we look at the file content.
18936     # Grep'ing the first line is not enough: some people post-process
18937     # each Makefile.in and add a new line on top of each file to say so.
18938     # Grep'ing the whole file is not good either: AIX grep has a line
18939     # limit of 2048, but all sed's we know have understand at least 4000.
18940     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18941       dirpart=`$as_dirname -- "$mf" ||
18942 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18943          X"$mf" : 'X\(//\)[^/]' \| \
18944          X"$mf" : 'X\(//\)$' \| \
18945          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18946 $as_echo X"$mf" |
18947     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18948             s//\1/
18949             q
18950           }
18951           /^X\(\/\/\)[^/].*/{
18952             s//\1/
18953             q
18954           }
18955           /^X\(\/\/\)$/{
18956             s//\1/
18957             q
18958           }
18959           /^X\(\/\).*/{
18960             s//\1/
18961             q
18962           }
18963           s/.*/./; q'`
18964     else
18965       continue
18966     fi
18967     # Extract the definition of DEPDIR, am__include, and am__quote
18968     # from the Makefile without running `make'.
18969     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18970     test -z "$DEPDIR" && continue
18971     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18972     test -z "am__include" && continue
18973     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18974     # When using ansi2knr, U may be empty or an underscore; expand it
18975     U=`sed -n 's/^U = //p' < "$mf"`
18976     # Find all dependency output files, they are included files with
18977     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18978     # simplest approach to changing $(DEPDIR) to its actual value in the
18979     # expansion.
18980     for file in `sed -n "
18981       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18982          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18983       # Make sure the directory exists.
18984       test -f "$dirpart/$file" && continue
18985       fdir=`$as_dirname -- "$file" ||
18986 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18987          X"$file" : 'X\(//\)[^/]' \| \
18988          X"$file" : 'X\(//\)$' \| \
18989          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18990 $as_echo X"$file" |
18991     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18992             s//\1/
18993             q
18994           }
18995           /^X\(\/\/\)[^/].*/{
18996             s//\1/
18997             q
18998           }
18999           /^X\(\/\/\)$/{
19000             s//\1/
19001             q
19002           }
19003           /^X\(\/\).*/{
19004             s//\1/
19005             q
19006           }
19007           s/.*/./; q'`
19008       as_dir=$dirpart/$fdir; as_fn_mkdir_p
19009       # echo "creating $dirpart/$file"
19010       echo '# dummy' > "$dirpart/$file"
19011     done
19012   done
19013 }
19014  ;;
19015     "libtool":C)
19016
19017     # See if we are running on zsh, and set the options which allow our
19018     # commands through without removal of \ escapes.
19019     if test -n "${ZSH_VERSION+set}" ; then
19020       setopt NO_GLOB_SUBST
19021     fi
19022
19023     cfgfile="${ofile}T"
19024     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19025     $RM "$cfgfile"
19026
19027     cat <<_LT_EOF >> "$cfgfile"
19028 #! $SHELL
19029
19030 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19031 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19032 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19033 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19034 #
19035 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19036 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19037 #                 Foundation, Inc.
19038 #   Written by Gordon Matzigkeit, 1996
19039 #
19040 #   This file is part of GNU Libtool.
19041 #
19042 # GNU Libtool is free software; you can redistribute it and/or
19043 # modify it under the terms of the GNU General Public License as
19044 # published by the Free Software Foundation; either version 2 of
19045 # the License, or (at your option) any later version.
19046 #
19047 # As a special exception to the GNU General Public License,
19048 # if you distribute this file as part of a program or library that
19049 # is built using GNU Libtool, you may include this file under the
19050 # same distribution terms that you use for the rest of that program.
19051 #
19052 # GNU Libtool is distributed in the hope that it will be useful,
19053 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19054 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19055 # GNU General Public License for more details.
19056 #
19057 # You should have received a copy of the GNU General Public License
19058 # along with GNU Libtool; see the file COPYING.  If not, a copy
19059 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19060 # obtained by writing to the Free Software Foundation, Inc.,
19061 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19062
19063
19064 # The names of the tagged configurations supported by this script.
19065 available_tags="CXX "
19066
19067 # ### BEGIN LIBTOOL CONFIG
19068
19069 # Which release of libtool.m4 was used?
19070 macro_version=$macro_version
19071 macro_revision=$macro_revision
19072
19073 # Whether or not to build shared libraries.
19074 build_libtool_libs=$enable_shared
19075
19076 # Whether or not to build static libraries.
19077 build_old_libs=$enable_static
19078
19079 # What type of objects to build.
19080 pic_mode=$pic_mode
19081
19082 # Whether or not to optimize for fast installation.
19083 fast_install=$enable_fast_install
19084
19085 # Shell to use when invoking shell scripts.
19086 SHELL=$lt_SHELL
19087
19088 # An echo program that protects backslashes.
19089 ECHO=$lt_ECHO
19090
19091 # The PATH separator for the build system.
19092 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19093
19094 # The host system.
19095 host_alias=$host_alias
19096 host=$host
19097 host_os=$host_os
19098
19099 # The build system.
19100 build_alias=$build_alias
19101 build=$build
19102 build_os=$build_os
19103
19104 # A sed program that does not truncate output.
19105 SED=$lt_SED
19106
19107 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19108 Xsed="\$SED -e 1s/^X//"
19109
19110 # A grep program that handles long lines.
19111 GREP=$lt_GREP
19112
19113 # An ERE matcher.
19114 EGREP=$lt_EGREP
19115
19116 # A literal string matcher.
19117 FGREP=$lt_FGREP
19118
19119 # A BSD- or MS-compatible name lister.
19120 NM=$lt_NM
19121
19122 # Whether we need soft or hard links.
19123 LN_S=$lt_LN_S
19124
19125 # What is the maximum length of a command?
19126 max_cmd_len=$max_cmd_len
19127
19128 # Object file suffix (normally "o").
19129 objext=$ac_objext
19130
19131 # Executable file suffix (normally "").
19132 exeext=$exeext
19133
19134 # whether the shell understands "unset".
19135 lt_unset=$lt_unset
19136
19137 # turn spaces into newlines.
19138 SP2NL=$lt_lt_SP2NL
19139
19140 # turn newlines into spaces.
19141 NL2SP=$lt_lt_NL2SP
19142
19143 # convert \$build file names to \$host format.
19144 to_host_file_cmd=$lt_cv_to_host_file_cmd
19145
19146 # convert \$build files to toolchain format.
19147 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19148
19149 # An object symbol dumper.
19150 OBJDUMP=$lt_OBJDUMP
19151
19152 # Method to check whether dependent libraries are shared objects.
19153 deplibs_check_method=$lt_deplibs_check_method
19154
19155 # Command to use when deplibs_check_method = "file_magic".
19156 file_magic_cmd=$lt_file_magic_cmd
19157
19158 # How to find potential files when deplibs_check_method = "file_magic".
19159 file_magic_glob=$lt_file_magic_glob
19160
19161 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19162 want_nocaseglob=$lt_want_nocaseglob
19163
19164 # DLL creation program.
19165 DLLTOOL=$lt_DLLTOOL
19166
19167 # Command to associate shared and link libraries.
19168 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19169
19170 # The archiver.
19171 AR=$lt_AR
19172
19173 # Flags to create an archive.
19174 AR_FLAGS=$lt_AR_FLAGS
19175
19176 # How to feed a file listing to the archiver.
19177 archiver_list_spec=$lt_archiver_list_spec
19178
19179 # A symbol stripping program.
19180 STRIP=$lt_STRIP
19181
19182 # Commands used to install an old-style archive.
19183 RANLIB=$lt_RANLIB
19184 old_postinstall_cmds=$lt_old_postinstall_cmds
19185 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19186
19187 # Whether to use a lock for old archive extraction.
19188 lock_old_archive_extraction=$lock_old_archive_extraction
19189
19190 # A C compiler.
19191 LTCC=$lt_CC
19192
19193 # LTCC compiler flags.
19194 LTCFLAGS=$lt_CFLAGS
19195
19196 # Take the output of nm and produce a listing of raw symbols and C names.
19197 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19198
19199 # Transform the output of nm in a proper C declaration.
19200 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19201
19202 # Transform the output of nm in a C name address pair.
19203 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19204
19205 # Transform the output of nm in a C name address pair when lib prefix is needed.
19206 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19207
19208 # Specify filename containing input files for \$NM.
19209 nm_file_list_spec=$lt_nm_file_list_spec
19210
19211 # The root where to search for dependent libraries,and in which our libraries should be installed.
19212 lt_sysroot=$lt_sysroot
19213
19214 # The name of the directory that contains temporary libtool files.
19215 objdir=$objdir
19216
19217 # Used to examine libraries when file_magic_cmd begins with "file".
19218 MAGIC_CMD=$MAGIC_CMD
19219
19220 # Must we lock files when doing compilation?
19221 need_locks=$lt_need_locks
19222
19223 # Manifest tool.
19224 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19225
19226 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19227 DSYMUTIL=$lt_DSYMUTIL
19228
19229 # Tool to change global to local symbols on Mac OS X.
19230 NMEDIT=$lt_NMEDIT
19231
19232 # Tool to manipulate fat objects and archives on Mac OS X.
19233 LIPO=$lt_LIPO
19234
19235 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19236 OTOOL=$lt_OTOOL
19237
19238 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19239 OTOOL64=$lt_OTOOL64
19240
19241 # Old archive suffix (normally "a").
19242 libext=$libext
19243
19244 # Shared library suffix (normally ".so").
19245 shrext_cmds=$lt_shrext_cmds
19246
19247 # The commands to extract the exported symbol list from a shared archive.
19248 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19249
19250 # Variables whose values should be saved in libtool wrapper scripts and
19251 # restored at link time.
19252 variables_saved_for_relink=$lt_variables_saved_for_relink
19253
19254 # Do we need the "lib" prefix for modules?
19255 need_lib_prefix=$need_lib_prefix
19256
19257 # Do we need a version for libraries?
19258 need_version=$need_version
19259
19260 # Library versioning type.
19261 version_type=$version_type
19262
19263 # Shared library runtime path variable.
19264 runpath_var=$runpath_var
19265
19266 # Shared library path variable.
19267 shlibpath_var=$shlibpath_var
19268
19269 # Is shlibpath searched before the hard-coded library search path?
19270 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19271
19272 # Format of library name prefix.
19273 libname_spec=$lt_libname_spec
19274
19275 # List of archive names.  First name is the real one, the rest are links.
19276 # The last name is the one that the linker finds with -lNAME
19277 library_names_spec=$lt_library_names_spec
19278
19279 # The coded name of the library, if different from the real name.
19280 soname_spec=$lt_soname_spec
19281
19282 # Permission mode override for installation of shared libraries.
19283 install_override_mode=$lt_install_override_mode
19284
19285 # Command to use after installation of a shared archive.
19286 postinstall_cmds=$lt_postinstall_cmds
19287
19288 # Command to use after uninstallation of a shared archive.
19289 postuninstall_cmds=$lt_postuninstall_cmds
19290
19291 # Commands used to finish a libtool library installation in a directory.
19292 finish_cmds=$lt_finish_cmds
19293
19294 # As "finish_cmds", except a single script fragment to be evaled but
19295 # not shown.
19296 finish_eval=$lt_finish_eval
19297
19298 # Whether we should hardcode library paths into libraries.
19299 hardcode_into_libs=$hardcode_into_libs
19300
19301 # Compile-time system search path for libraries.
19302 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19303
19304 # Run-time system search path for libraries.
19305 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19306
19307 # Whether dlopen is supported.
19308 dlopen_support=$enable_dlopen
19309
19310 # Whether dlopen of programs is supported.
19311 dlopen_self=$enable_dlopen_self
19312
19313 # Whether dlopen of statically linked programs is supported.
19314 dlopen_self_static=$enable_dlopen_self_static
19315
19316 # Commands to strip libraries.
19317 old_striplib=$lt_old_striplib
19318 striplib=$lt_striplib
19319
19320
19321 # The linker used to build libraries.
19322 LD=$lt_LD
19323
19324 # How to create reloadable object files.
19325 reload_flag=$lt_reload_flag
19326 reload_cmds=$lt_reload_cmds
19327
19328 # Commands used to build an old-style archive.
19329 old_archive_cmds=$lt_old_archive_cmds
19330
19331 # A language specific compiler.
19332 CC=$lt_compiler
19333
19334 # Is the compiler the GNU compiler?
19335 with_gcc=$GCC
19336
19337 # Compiler flag to turn off builtin functions.
19338 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19339
19340 # Additional compiler flags for building library objects.
19341 pic_flag=$lt_lt_prog_compiler_pic
19342
19343 # How to pass a linker flag through the compiler.
19344 wl=$lt_lt_prog_compiler_wl
19345
19346 # Compiler flag to prevent dynamic linking.
19347 link_static_flag=$lt_lt_prog_compiler_static
19348
19349 # Does compiler simultaneously support -c and -o options?
19350 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19351
19352 # Whether or not to add -lc for building shared libraries.
19353 build_libtool_need_lc=$archive_cmds_need_lc
19354
19355 # Whether or not to disallow shared libs when runtime libs are static.
19356 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19357
19358 # Compiler flag to allow reflexive dlopens.
19359 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19360
19361 # Compiler flag to generate shared objects directly from archives.
19362 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19363
19364 # Whether the compiler copes with passing no objects directly.
19365 compiler_needs_object=$lt_compiler_needs_object
19366
19367 # Create an old-style archive from a shared archive.
19368 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19369
19370 # Create a temporary old-style archive to link instead of a shared archive.
19371 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19372
19373 # Commands used to build a shared archive.
19374 archive_cmds=$lt_archive_cmds
19375 archive_expsym_cmds=$lt_archive_expsym_cmds
19376
19377 # Commands used to build a loadable module if different from building
19378 # a shared archive.
19379 module_cmds=$lt_module_cmds
19380 module_expsym_cmds=$lt_module_expsym_cmds
19381
19382 # Whether we are building with GNU ld or not.
19383 with_gnu_ld=$lt_with_gnu_ld
19384
19385 # Flag that allows shared libraries with undefined symbols to be built.
19386 allow_undefined_flag=$lt_allow_undefined_flag
19387
19388 # Flag that enforces no undefined symbols.
19389 no_undefined_flag=$lt_no_undefined_flag
19390
19391 # Flag to hardcode \$libdir into a binary during linking.
19392 # This must work even if \$libdir does not exist
19393 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19394
19395 # Whether we need a single "-rpath" flag with a separated argument.
19396 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19397
19398 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19399 # DIR into the resulting binary.
19400 hardcode_direct=$hardcode_direct
19401
19402 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19403 # DIR into the resulting binary and the resulting library dependency is
19404 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19405 # library is relocated.
19406 hardcode_direct_absolute=$hardcode_direct_absolute
19407
19408 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19409 # into the resulting binary.
19410 hardcode_minus_L=$hardcode_minus_L
19411
19412 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19413 # into the resulting binary.
19414 hardcode_shlibpath_var=$hardcode_shlibpath_var
19415
19416 # Set to "yes" if building a shared library automatically hardcodes DIR
19417 # into the library and all subsequent libraries and executables linked
19418 # against it.
19419 hardcode_automatic=$hardcode_automatic
19420
19421 # Set to yes if linker adds runtime paths of dependent libraries
19422 # to runtime path list.
19423 inherit_rpath=$inherit_rpath
19424
19425 # Whether libtool must link a program against all its dependency libraries.
19426 link_all_deplibs=$link_all_deplibs
19427
19428 # Set to "yes" if exported symbols are required.
19429 always_export_symbols=$always_export_symbols
19430
19431 # The commands to list exported symbols.
19432 export_symbols_cmds=$lt_export_symbols_cmds
19433
19434 # Symbols that should not be listed in the preloaded symbols.
19435 exclude_expsyms=$lt_exclude_expsyms
19436
19437 # Symbols that must always be exported.
19438 include_expsyms=$lt_include_expsyms
19439
19440 # Commands necessary for linking programs (against libraries) with templates.
19441 prelink_cmds=$lt_prelink_cmds
19442
19443 # Commands necessary for finishing linking programs.
19444 postlink_cmds=$lt_postlink_cmds
19445
19446 # Specify filename containing input files.
19447 file_list_spec=$lt_file_list_spec
19448
19449 # How to hardcode a shared library path into an executable.
19450 hardcode_action=$hardcode_action
19451
19452 # The directories searched by this compiler when creating a shared library.
19453 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19454
19455 # Dependencies to place before and after the objects being linked to
19456 # create a shared library.
19457 predep_objects=$lt_predep_objects
19458 postdep_objects=$lt_postdep_objects
19459 predeps=$lt_predeps
19460 postdeps=$lt_postdeps
19461
19462 # The library search path used internally by the compiler when linking
19463 # a shared library.
19464 compiler_lib_search_path=$lt_compiler_lib_search_path
19465
19466 # ### END LIBTOOL CONFIG
19467
19468 _LT_EOF
19469
19470   case $host_os in
19471   aix3*)
19472     cat <<\_LT_EOF >> "$cfgfile"
19473 # AIX sometimes has problems with the GCC collect2 program.  For some
19474 # reason, if we set the COLLECT_NAMES environment variable, the problems
19475 # vanish in a puff of smoke.
19476 if test "X${COLLECT_NAMES+set}" != Xset; then
19477   COLLECT_NAMES=
19478   export COLLECT_NAMES
19479 fi
19480 _LT_EOF
19481     ;;
19482   esac
19483
19484
19485 ltmain="$ac_aux_dir/ltmain.sh"
19486
19487
19488   # We use sed instead of cat because bash on DJGPP gets confused if
19489   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19490   # text mode, it properly converts lines to CR/LF.  This bash problem
19491   # is reportedly fixed, but why not run on old versions too?
19492   sed '$q' "$ltmain" >> "$cfgfile" \
19493      || (rm -f "$cfgfile"; exit 1)
19494
19495   if test x"$xsi_shell" = xyes; then
19496   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19497 func_dirname ()\
19498 {\
19499 \    case ${1} in\
19500 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19501 \      *  ) func_dirname_result="${3}" ;;\
19502 \    esac\
19503 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19504   && mv -f "$cfgfile.tmp" "$cfgfile" \
19505     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19506 test 0 -eq $? || _lt_function_replace_fail=:
19507
19508
19509   sed -e '/^func_basename ()$/,/^} # func_basename /c\
19510 func_basename ()\
19511 {\
19512 \    func_basename_result="${1##*/}"\
19513 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19514   && mv -f "$cfgfile.tmp" "$cfgfile" \
19515     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19516 test 0 -eq $? || _lt_function_replace_fail=:
19517
19518
19519   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19520 func_dirname_and_basename ()\
19521 {\
19522 \    case ${1} in\
19523 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19524 \      *  ) func_dirname_result="${3}" ;;\
19525 \    esac\
19526 \    func_basename_result="${1##*/}"\
19527 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19528   && mv -f "$cfgfile.tmp" "$cfgfile" \
19529     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19530 test 0 -eq $? || _lt_function_replace_fail=:
19531
19532
19533   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19534 func_stripname ()\
19535 {\
19536 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19537 \    # positional parameters, so assign one to ordinary parameter first.\
19538 \    func_stripname_result=${3}\
19539 \    func_stripname_result=${func_stripname_result#"${1}"}\
19540 \    func_stripname_result=${func_stripname_result%"${2}"}\
19541 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19542   && mv -f "$cfgfile.tmp" "$cfgfile" \
19543     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19544 test 0 -eq $? || _lt_function_replace_fail=:
19545
19546
19547   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19548 func_split_long_opt ()\
19549 {\
19550 \    func_split_long_opt_name=${1%%=*}\
19551 \    func_split_long_opt_arg=${1#*=}\
19552 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19553   && mv -f "$cfgfile.tmp" "$cfgfile" \
19554     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19555 test 0 -eq $? || _lt_function_replace_fail=:
19556
19557
19558   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19559 func_split_short_opt ()\
19560 {\
19561 \    func_split_short_opt_arg=${1#??}\
19562 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19563 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19564   && mv -f "$cfgfile.tmp" "$cfgfile" \
19565     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19566 test 0 -eq $? || _lt_function_replace_fail=:
19567
19568
19569   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19570 func_lo2o ()\
19571 {\
19572 \    case ${1} in\
19573 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19574 \      *)    func_lo2o_result=${1} ;;\
19575 \    esac\
19576 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19577   && mv -f "$cfgfile.tmp" "$cfgfile" \
19578     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19579 test 0 -eq $? || _lt_function_replace_fail=:
19580
19581
19582   sed -e '/^func_xform ()$/,/^} # func_xform /c\
19583 func_xform ()\
19584 {\
19585     func_xform_result=${1%.*}.lo\
19586 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19587   && mv -f "$cfgfile.tmp" "$cfgfile" \
19588     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19589 test 0 -eq $? || _lt_function_replace_fail=:
19590
19591
19592   sed -e '/^func_arith ()$/,/^} # func_arith /c\
19593 func_arith ()\
19594 {\
19595     func_arith_result=$(( $* ))\
19596 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19597   && mv -f "$cfgfile.tmp" "$cfgfile" \
19598     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19599 test 0 -eq $? || _lt_function_replace_fail=:
19600
19601
19602   sed -e '/^func_len ()$/,/^} # func_len /c\
19603 func_len ()\
19604 {\
19605     func_len_result=${#1}\
19606 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19607   && mv -f "$cfgfile.tmp" "$cfgfile" \
19608     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19609 test 0 -eq $? || _lt_function_replace_fail=:
19610
19611 fi
19612
19613 if test x"$lt_shell_append" = xyes; then
19614   sed -e '/^func_append ()$/,/^} # func_append /c\
19615 func_append ()\
19616 {\
19617     eval "${1}+=\\${2}"\
19618 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19619   && mv -f "$cfgfile.tmp" "$cfgfile" \
19620     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19621 test 0 -eq $? || _lt_function_replace_fail=:
19622
19623
19624   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19625 func_append_quoted ()\
19626 {\
19627 \    func_quote_for_eval "${2}"\
19628 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19629 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19630   && mv -f "$cfgfile.tmp" "$cfgfile" \
19631     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19632 test 0 -eq $? || _lt_function_replace_fail=:
19633
19634
19635   # Save a `func_append' function call where possible by direct use of '+='
19636   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19637     && mv -f "$cfgfile.tmp" "$cfgfile" \
19638       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19639   test 0 -eq $? || _lt_function_replace_fail=:
19640 else
19641   # Save a `func_append' function call even when '+=' is not available
19642   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19643     && mv -f "$cfgfile.tmp" "$cfgfile" \
19644       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19645   test 0 -eq $? || _lt_function_replace_fail=:
19646 fi
19647
19648 if test x"$_lt_function_replace_fail" = x":"; then
19649   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19650 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19651 fi
19652
19653
19654    mv -f "$cfgfile" "$ofile" ||
19655     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19656   chmod +x "$ofile"
19657
19658
19659     cat <<_LT_EOF >> "$ofile"
19660
19661 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19662
19663 # The linker used to build libraries.
19664 LD=$lt_LD_CXX
19665
19666 # How to create reloadable object files.
19667 reload_flag=$lt_reload_flag_CXX
19668 reload_cmds=$lt_reload_cmds_CXX
19669
19670 # Commands used to build an old-style archive.
19671 old_archive_cmds=$lt_old_archive_cmds_CXX
19672
19673 # A language specific compiler.
19674 CC=$lt_compiler_CXX
19675
19676 # Is the compiler the GNU compiler?
19677 with_gcc=$GCC_CXX
19678
19679 # Compiler flag to turn off builtin functions.
19680 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19681
19682 # Additional compiler flags for building library objects.
19683 pic_flag=$lt_lt_prog_compiler_pic_CXX
19684
19685 # How to pass a linker flag through the compiler.
19686 wl=$lt_lt_prog_compiler_wl_CXX
19687
19688 # Compiler flag to prevent dynamic linking.
19689 link_static_flag=$lt_lt_prog_compiler_static_CXX
19690
19691 # Does compiler simultaneously support -c and -o options?
19692 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19693
19694 # Whether or not to add -lc for building shared libraries.
19695 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19696
19697 # Whether or not to disallow shared libs when runtime libs are static.
19698 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19699
19700 # Compiler flag to allow reflexive dlopens.
19701 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19702
19703 # Compiler flag to generate shared objects directly from archives.
19704 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19705
19706 # Whether the compiler copes with passing no objects directly.
19707 compiler_needs_object=$lt_compiler_needs_object_CXX
19708
19709 # Create an old-style archive from a shared archive.
19710 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19711
19712 # Create a temporary old-style archive to link instead of a shared archive.
19713 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19714
19715 # Commands used to build a shared archive.
19716 archive_cmds=$lt_archive_cmds_CXX
19717 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19718
19719 # Commands used to build a loadable module if different from building
19720 # a shared archive.
19721 module_cmds=$lt_module_cmds_CXX
19722 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19723
19724 # Whether we are building with GNU ld or not.
19725 with_gnu_ld=$lt_with_gnu_ld_CXX
19726
19727 # Flag that allows shared libraries with undefined symbols to be built.
19728 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19729
19730 # Flag that enforces no undefined symbols.
19731 no_undefined_flag=$lt_no_undefined_flag_CXX
19732
19733 # Flag to hardcode \$libdir into a binary during linking.
19734 # This must work even if \$libdir does not exist
19735 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19736
19737 # Whether we need a single "-rpath" flag with a separated argument.
19738 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19739
19740 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19741 # DIR into the resulting binary.
19742 hardcode_direct=$hardcode_direct_CXX
19743
19744 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19745 # DIR into the resulting binary and the resulting library dependency is
19746 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19747 # library is relocated.
19748 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19749
19750 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19751 # into the resulting binary.
19752 hardcode_minus_L=$hardcode_minus_L_CXX
19753
19754 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19755 # into the resulting binary.
19756 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19757
19758 # Set to "yes" if building a shared library automatically hardcodes DIR
19759 # into the library and all subsequent libraries and executables linked
19760 # against it.
19761 hardcode_automatic=$hardcode_automatic_CXX
19762
19763 # Set to yes if linker adds runtime paths of dependent libraries
19764 # to runtime path list.
19765 inherit_rpath=$inherit_rpath_CXX
19766
19767 # Whether libtool must link a program against all its dependency libraries.
19768 link_all_deplibs=$link_all_deplibs_CXX
19769
19770 # Set to "yes" if exported symbols are required.
19771 always_export_symbols=$always_export_symbols_CXX
19772
19773 # The commands to list exported symbols.
19774 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19775
19776 # Symbols that should not be listed in the preloaded symbols.
19777 exclude_expsyms=$lt_exclude_expsyms_CXX
19778
19779 # Symbols that must always be exported.
19780 include_expsyms=$lt_include_expsyms_CXX
19781
19782 # Commands necessary for linking programs (against libraries) with templates.
19783 prelink_cmds=$lt_prelink_cmds_CXX
19784
19785 # Commands necessary for finishing linking programs.
19786 postlink_cmds=$lt_postlink_cmds_CXX
19787
19788 # Specify filename containing input files.
19789 file_list_spec=$lt_file_list_spec_CXX
19790
19791 # How to hardcode a shared library path into an executable.
19792 hardcode_action=$hardcode_action_CXX
19793
19794 # The directories searched by this compiler when creating a shared library.
19795 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19796
19797 # Dependencies to place before and after the objects being linked to
19798 # create a shared library.
19799 predep_objects=$lt_predep_objects_CXX
19800 postdep_objects=$lt_postdep_objects_CXX
19801 predeps=$lt_predeps_CXX
19802 postdeps=$lt_postdeps_CXX
19803
19804 # The library search path used internally by the compiler when linking
19805 # a shared library.
19806 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19807
19808 # ### END LIBTOOL TAG CONFIG: CXX
19809 _LT_EOF
19810
19811  ;;
19812
19813   esac
19814 done # for ac_tag
19815
19816
19817 as_fn_exit 0
19818 _ACEOF
19819 ac_clean_files=$ac_clean_files_save
19820
19821 test $ac_write_fail = 0 ||
19822   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19823
19824
19825 # configure is writing to config.log, and then calls config.status.
19826 # config.status does its own redirection, appending to config.log.
19827 # Unfortunately, on DOS this fails, as config.log is still kept open
19828 # by configure, so config.status won't be able to write to it; its
19829 # output is simply discarded.  So we exec the FD to /dev/null,
19830 # effectively closing config.log, so it can be properly (re)opened and
19831 # appended to by config.status.  When coming back to configure, we
19832 # need to make the FD available again.
19833 if test "$no_create" != yes; then
19834   ac_cs_success=:
19835   ac_config_status_args=
19836   test "$silent" = yes &&
19837     ac_config_status_args="$ac_config_status_args --quiet"
19838   exec 5>/dev/null
19839   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19840   exec 5>>config.log
19841   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19842   # would make configure fail if this is the last instruction.
19843   $ac_cs_success || as_fn_exit 1
19844 fi
19845 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19846   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19847 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19848 fi
19849