272381e91d257c903f0ff001959729307ac883a0
[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.2.
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.2'
574 PACKAGE_STRING='glog 0.3.2'
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___noreturn
636 ac_cv_cxx_using_operator
637 ac_google_namespace
638 ac_google_end_namespace
639 ac_google_start_namespace
640 UNWIND_LIBS
641 HAVE_GMOCK_FALSE
642 HAVE_GMOCK_TRUE
643 GMOCK_CONFIG
644 GTEST_CONFIG
645 PTHREAD_CFLAGS
646 PTHREAD_LIBS
647 PTHREAD_CC
648 acx_pthread_config
649 DISABLE_RTTI_FALSE
650 DISABLE_RTTI_TRUE
651 X86_64_FALSE
652 X86_64_TRUE
653 ENABLE_FRAME_POINTERS_FALSE
654 ENABLE_FRAME_POINTERS_TRUE
655 LIBTOOL_DEPS
656 CXXCPP
657 OTOOL64
658 OTOOL
659 LIPO
660 NMEDIT
661 DSYMUTIL
662 MANIFEST_TOOL
663 RANLIB
664 ac_ct_AR
665 AR
666 DLLTOOL
667 OBJDUMP
668 LN_S
669 NM
670 ac_ct_DUMPBIN
671 DUMPBIN
672 LD
673 FGREP
674 EGREP
675 GREP
676 SED
677 host_os
678 host_vendor
679 host_cpu
680 host
681 build_os
682 build_vendor
683 build_cpu
684 build
685 LIBTOOL
686 GCC_FALSE
687 GCC_TRUE
688 am__fastdepCXX_FALSE
689 am__fastdepCXX_TRUE
690 CXXDEPMODE
691 ac_ct_CXX
692 CXXFLAGS
693 CXX
694 CPP
695 am__fastdepCC_FALSE
696 am__fastdepCC_TRUE
697 CCDEPMODE
698 am__nodep
699 AMDEPBACKSLASH
700 AMDEP_FALSE
701 AMDEP_TRUE
702 am__quote
703 am__include
704 DEPDIR
705 OBJEXT
706 EXEEXT
707 ac_ct_CC
708 CPPFLAGS
709 LDFLAGS
710 CFLAGS
711 CC
712 am__untar
713 am__tar
714 AMTAR
715 am__leading_dot
716 SET_MAKE
717 AWK
718 mkdir_p
719 MKDIR_P
720 INSTALL_STRIP_PROGRAM
721 STRIP
722 install_sh
723 MAKEINFO
724 AUTOHEADER
725 AUTOMAKE
726 AUTOCONF
727 ACLOCAL
728 VERSION
729 PACKAGE
730 CYGPATH_W
731 am__isrc
732 INSTALL_DATA
733 INSTALL_SCRIPT
734 INSTALL_PROGRAM
735 target_alias
736 host_alias
737 build_alias
738 LIBS
739 ECHO_T
740 ECHO_N
741 ECHO_C
742 DEFS
743 mandir
744 localedir
745 libdir
746 psdir
747 pdfdir
748 dvidir
749 htmldir
750 infodir
751 docdir
752 oldincludedir
753 includedir
754 localstatedir
755 sharedstatedir
756 sysconfdir
757 datadir
758 datarootdir
759 libexecdir
760 sbindir
761 bindir
762 program_transform_name
763 prefix
764 exec_prefix
765 PACKAGE_URL
766 PACKAGE_BUGREPORT
767 PACKAGE_STRING
768 PACKAGE_VERSION
769 PACKAGE_TARNAME
770 PACKAGE_NAME
771 PATH_SEPARATOR
772 SHELL'
773 ac_subst_files=''
774 ac_user_opts='
775 enable_option_checking
776 enable_dependency_tracking
777 enable_shared
778 enable_static
779 with_pic
780 enable_fast_install
781 with_gnu_ld
782 with_sysroot
783 enable_libtool_lock
784 enable_frame_pointers
785 enable_rtti
786 with_gflags
787 enable_namespace
788 '
789       ac_precious_vars='build_alias
790 host_alias
791 target_alias
792 CC
793 CFLAGS
794 LDFLAGS
795 LIBS
796 CPPFLAGS
797 CPP
798 CXX
799 CXXFLAGS
800 CCC
801 CXXCPP'
802
803
804 # Initialize some variables set by options.
805 ac_init_help=
806 ac_init_version=false
807 ac_unrecognized_opts=
808 ac_unrecognized_sep=
809 # The variables have the same names as the options, with
810 # dashes changed to underlines.
811 cache_file=/dev/null
812 exec_prefix=NONE
813 no_create=
814 no_recursion=
815 prefix=NONE
816 program_prefix=NONE
817 program_suffix=NONE
818 program_transform_name=s,x,x,
819 silent=
820 site=
821 srcdir=
822 verbose=
823 x_includes=NONE
824 x_libraries=NONE
825
826 # Installation directory options.
827 # These are left unexpanded so users can "make install exec_prefix=/foo"
828 # and all the variables that are supposed to be based on exec_prefix
829 # by default will actually change.
830 # Use braces instead of parens because sh, perl, etc. also accept them.
831 # (The list follows the same order as the GNU Coding Standards.)
832 bindir='${exec_prefix}/bin'
833 sbindir='${exec_prefix}/sbin'
834 libexecdir='${exec_prefix}/libexec'
835 datarootdir='${prefix}/share'
836 datadir='${datarootdir}'
837 sysconfdir='${prefix}/etc'
838 sharedstatedir='${prefix}/com'
839 localstatedir='${prefix}/var'
840 includedir='${prefix}/include'
841 oldincludedir='/usr/include'
842 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
843 infodir='${datarootdir}/info'
844 htmldir='${docdir}'
845 dvidir='${docdir}'
846 pdfdir='${docdir}'
847 psdir='${docdir}'
848 libdir='${exec_prefix}/lib'
849 localedir='${datarootdir}/locale'
850 mandir='${datarootdir}/man'
851
852 ac_prev=
853 ac_dashdash=
854 for ac_option
855 do
856   # If the previous option needs an argument, assign it.
857   if test -n "$ac_prev"; then
858     eval $ac_prev=\$ac_option
859     ac_prev=
860     continue
861   fi
862
863   case $ac_option in
864   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
865   *=)   ac_optarg= ;;
866   *)    ac_optarg=yes ;;
867   esac
868
869   # Accept the important Cygnus configure options, so we can diagnose typos.
870
871   case $ac_dashdash$ac_option in
872   --)
873     ac_dashdash=yes ;;
874
875   -bindir | --bindir | --bindi | --bind | --bin | --bi)
876     ac_prev=bindir ;;
877   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
878     bindir=$ac_optarg ;;
879
880   -build | --build | --buil | --bui | --bu)
881     ac_prev=build_alias ;;
882   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
883     build_alias=$ac_optarg ;;
884
885   -cache-file | --cache-file | --cache-fil | --cache-fi \
886   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
887     ac_prev=cache_file ;;
888   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
889   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
890     cache_file=$ac_optarg ;;
891
892   --config-cache | -C)
893     cache_file=config.cache ;;
894
895   -datadir | --datadir | --datadi | --datad)
896     ac_prev=datadir ;;
897   -datadir=* | --datadir=* | --datadi=* | --datad=*)
898     datadir=$ac_optarg ;;
899
900   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
901   | --dataroo | --dataro | --datar)
902     ac_prev=datarootdir ;;
903   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
904   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
905     datarootdir=$ac_optarg ;;
906
907   -disable-* | --disable-*)
908     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
909     # Reject names that are not valid shell variable names.
910     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911       as_fn_error $? "invalid feature name: $ac_useropt"
912     ac_useropt_orig=$ac_useropt
913     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914     case $ac_user_opts in
915       *"
916 "enable_$ac_useropt"
917 "*) ;;
918       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
919          ac_unrecognized_sep=', ';;
920     esac
921     eval enable_$ac_useropt=no ;;
922
923   -docdir | --docdir | --docdi | --doc | --do)
924     ac_prev=docdir ;;
925   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
926     docdir=$ac_optarg ;;
927
928   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
929     ac_prev=dvidir ;;
930   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
931     dvidir=$ac_optarg ;;
932
933   -enable-* | --enable-*)
934     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
935     # Reject names that are not valid shell variable names.
936     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937       as_fn_error $? "invalid feature name: $ac_useropt"
938     ac_useropt_orig=$ac_useropt
939     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940     case $ac_user_opts in
941       *"
942 "enable_$ac_useropt"
943 "*) ;;
944       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
945          ac_unrecognized_sep=', ';;
946     esac
947     eval enable_$ac_useropt=\$ac_optarg ;;
948
949   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951   | --exec | --exe | --ex)
952     ac_prev=exec_prefix ;;
953   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955   | --exec=* | --exe=* | --ex=*)
956     exec_prefix=$ac_optarg ;;
957
958   -gas | --gas | --ga | --g)
959     # Obsolete; use --with-gas.
960     with_gas=yes ;;
961
962   -help | --help | --hel | --he | -h)
963     ac_init_help=long ;;
964   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965     ac_init_help=recursive ;;
966   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967     ac_init_help=short ;;
968
969   -host | --host | --hos | --ho)
970     ac_prev=host_alias ;;
971   -host=* | --host=* | --hos=* | --ho=*)
972     host_alias=$ac_optarg ;;
973
974   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975     ac_prev=htmldir ;;
976   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977   | --ht=*)
978     htmldir=$ac_optarg ;;
979
980   -includedir | --includedir | --includedi | --included | --include \
981   | --includ | --inclu | --incl | --inc)
982     ac_prev=includedir ;;
983   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984   | --includ=* | --inclu=* | --incl=* | --inc=*)
985     includedir=$ac_optarg ;;
986
987   -infodir | --infodir | --infodi | --infod | --info | --inf)
988     ac_prev=infodir ;;
989   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990     infodir=$ac_optarg ;;
991
992   -libdir | --libdir | --libdi | --libd)
993     ac_prev=libdir ;;
994   -libdir=* | --libdir=* | --libdi=* | --libd=*)
995     libdir=$ac_optarg ;;
996
997   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998   | --libexe | --libex | --libe)
999     ac_prev=libexecdir ;;
1000   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001   | --libexe=* | --libex=* | --libe=*)
1002     libexecdir=$ac_optarg ;;
1003
1004   -localedir | --localedir | --localedi | --localed | --locale)
1005     ac_prev=localedir ;;
1006   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007     localedir=$ac_optarg ;;
1008
1009   -localstatedir | --localstatedir | --localstatedi | --localstated \
1010   | --localstate | --localstat | --localsta | --localst | --locals)
1011     ac_prev=localstatedir ;;
1012   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014     localstatedir=$ac_optarg ;;
1015
1016   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017     ac_prev=mandir ;;
1018   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019     mandir=$ac_optarg ;;
1020
1021   -nfp | --nfp | --nf)
1022     # Obsolete; use --without-fp.
1023     with_fp=no ;;
1024
1025   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026   | --no-cr | --no-c | -n)
1027     no_create=yes ;;
1028
1029   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031     no_recursion=yes ;;
1032
1033   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035   | --oldin | --oldi | --old | --ol | --o)
1036     ac_prev=oldincludedir ;;
1037   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040     oldincludedir=$ac_optarg ;;
1041
1042   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043     ac_prev=prefix ;;
1044   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045     prefix=$ac_optarg ;;
1046
1047   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048   | --program-pre | --program-pr | --program-p)
1049     ac_prev=program_prefix ;;
1050   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052     program_prefix=$ac_optarg ;;
1053
1054   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055   | --program-suf | --program-su | --program-s)
1056     ac_prev=program_suffix ;;
1057   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059     program_suffix=$ac_optarg ;;
1060
1061   -program-transform-name | --program-transform-name \
1062   | --program-transform-nam | --program-transform-na \
1063   | --program-transform-n | --program-transform- \
1064   | --program-transform | --program-transfor \
1065   | --program-transfo | --program-transf \
1066   | --program-trans | --program-tran \
1067   | --progr-tra | --program-tr | --program-t)
1068     ac_prev=program_transform_name ;;
1069   -program-transform-name=* | --program-transform-name=* \
1070   | --program-transform-nam=* | --program-transform-na=* \
1071   | --program-transform-n=* | --program-transform-=* \
1072   | --program-transform=* | --program-transfor=* \
1073   | --program-transfo=* | --program-transf=* \
1074   | --program-trans=* | --program-tran=* \
1075   | --progr-tra=* | --program-tr=* | --program-t=*)
1076     program_transform_name=$ac_optarg ;;
1077
1078   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079     ac_prev=pdfdir ;;
1080   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081     pdfdir=$ac_optarg ;;
1082
1083   -psdir | --psdir | --psdi | --psd | --ps)
1084     ac_prev=psdir ;;
1085   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086     psdir=$ac_optarg ;;
1087
1088   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089   | -silent | --silent | --silen | --sile | --sil)
1090     silent=yes ;;
1091
1092   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093     ac_prev=sbindir ;;
1094   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095   | --sbi=* | --sb=*)
1096     sbindir=$ac_optarg ;;
1097
1098   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100   | --sharedst | --shareds | --shared | --share | --shar \
1101   | --sha | --sh)
1102     ac_prev=sharedstatedir ;;
1103   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106   | --sha=* | --sh=*)
1107     sharedstatedir=$ac_optarg ;;
1108
1109   -site | --site | --sit)
1110     ac_prev=site ;;
1111   -site=* | --site=* | --sit=*)
1112     site=$ac_optarg ;;
1113
1114   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115     ac_prev=srcdir ;;
1116   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117     srcdir=$ac_optarg ;;
1118
1119   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120   | --syscon | --sysco | --sysc | --sys | --sy)
1121     ac_prev=sysconfdir ;;
1122   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124     sysconfdir=$ac_optarg ;;
1125
1126   -target | --target | --targe | --targ | --tar | --ta | --t)
1127     ac_prev=target_alias ;;
1128   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129     target_alias=$ac_optarg ;;
1130
1131   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132     verbose=yes ;;
1133
1134   -version | --version | --versio | --versi | --vers | -V)
1135     ac_init_version=: ;;
1136
1137   -with-* | --with-*)
1138     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139     # Reject names that are not valid shell variable names.
1140     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141       as_fn_error $? "invalid package name: $ac_useropt"
1142     ac_useropt_orig=$ac_useropt
1143     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144     case $ac_user_opts in
1145       *"
1146 "with_$ac_useropt"
1147 "*) ;;
1148       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1149          ac_unrecognized_sep=', ';;
1150     esac
1151     eval with_$ac_useropt=\$ac_optarg ;;
1152
1153   -without-* | --without-*)
1154     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1155     # Reject names that are not valid shell variable names.
1156     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157       as_fn_error $? "invalid package name: $ac_useropt"
1158     ac_useropt_orig=$ac_useropt
1159     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160     case $ac_user_opts in
1161       *"
1162 "with_$ac_useropt"
1163 "*) ;;
1164       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1165          ac_unrecognized_sep=', ';;
1166     esac
1167     eval with_$ac_useropt=no ;;
1168
1169   --x)
1170     # Obsolete; use --with-x.
1171     with_x=yes ;;
1172
1173   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1174   | --x-incl | --x-inc | --x-in | --x-i)
1175     ac_prev=x_includes ;;
1176   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1177   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1178     x_includes=$ac_optarg ;;
1179
1180   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1181   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1182     ac_prev=x_libraries ;;
1183   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1184   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1185     x_libraries=$ac_optarg ;;
1186
1187   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1188 Try \`$0 --help' for more information"
1189     ;;
1190
1191   *=*)
1192     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193     # Reject names that are not valid shell variable names.
1194     case $ac_envvar in #(
1195       '' | [0-9]* | *[!_$as_cr_alnum]* )
1196       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1197     esac
1198     eval $ac_envvar=\$ac_optarg
1199     export $ac_envvar ;;
1200
1201   *)
1202     # FIXME: should be removed in autoconf 3.0.
1203     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1204     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1206     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1207     ;;
1208
1209   esac
1210 done
1211
1212 if test -n "$ac_prev"; then
1213   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1214   as_fn_error $? "missing argument to $ac_option"
1215 fi
1216
1217 if test -n "$ac_unrecognized_opts"; then
1218   case $enable_option_checking in
1219     no) ;;
1220     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1221     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1222   esac
1223 fi
1224
1225 # Check all directory arguments for consistency.
1226 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1227                 datadir sysconfdir sharedstatedir localstatedir includedir \
1228                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1229                 libdir localedir mandir
1230 do
1231   eval ac_val=\$$ac_var
1232   # Remove trailing slashes.
1233   case $ac_val in
1234     */ )
1235       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1236       eval $ac_var=\$ac_val;;
1237   esac
1238   # Be sure to have absolute directory names.
1239   case $ac_val in
1240     [\\/$]* | ?:[\\/]* )  continue;;
1241     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1242   esac
1243   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1244 done
1245
1246 # There might be people who depend on the old broken behavior: `$host'
1247 # used to hold the argument of --host etc.
1248 # FIXME: To remove some day.
1249 build=$build_alias
1250 host=$host_alias
1251 target=$target_alias
1252
1253 # FIXME: To remove some day.
1254 if test "x$host_alias" != x; then
1255   if test "x$build_alias" = x; then
1256     cross_compiling=maybe
1257     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1258     If a cross compiler is detected then cross compile mode will be used" >&2
1259   elif test "x$build_alias" != "x$host_alias"; then
1260     cross_compiling=yes
1261   fi
1262 fi
1263
1264 ac_tool_prefix=
1265 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1266
1267 test "$silent" = yes && exec 6>/dev/null
1268
1269
1270 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1271 ac_ls_di=`ls -di .` &&
1272 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1273   as_fn_error $? "working directory cannot be determined"
1274 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1275   as_fn_error $? "pwd does not report name of working directory"
1276
1277
1278 # Find the source files, if location was not specified.
1279 if test -z "$srcdir"; then
1280   ac_srcdir_defaulted=yes
1281   # Try the directory containing this script, then the parent directory.
1282   ac_confdir=`$as_dirname -- "$as_myself" ||
1283 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1284          X"$as_myself" : 'X\(//\)[^/]' \| \
1285          X"$as_myself" : 'X\(//\)$' \| \
1286          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1287 $as_echo X"$as_myself" |
1288     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289             s//\1/
1290             q
1291           }
1292           /^X\(\/\/\)[^/].*/{
1293             s//\1/
1294             q
1295           }
1296           /^X\(\/\/\)$/{
1297             s//\1/
1298             q
1299           }
1300           /^X\(\/\).*/{
1301             s//\1/
1302             q
1303           }
1304           s/.*/./; q'`
1305   srcdir=$ac_confdir
1306   if test ! -r "$srcdir/$ac_unique_file"; then
1307     srcdir=..
1308   fi
1309 else
1310   ac_srcdir_defaulted=no
1311 fi
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1313   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1314   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1315 fi
1316 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1317 ac_abs_confdir=`(
1318         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1319         pwd)`
1320 # When building in place, set srcdir=.
1321 if test "$ac_abs_confdir" = "$ac_pwd"; then
1322   srcdir=.
1323 fi
1324 # Remove unnecessary trailing slashes from srcdir.
1325 # Double slashes in file names in object file debugging info
1326 # mess up M-x gdb in Emacs.
1327 case $srcdir in
1328 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1329 esac
1330 for ac_var in $ac_precious_vars; do
1331   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1332   eval ac_env_${ac_var}_value=\$${ac_var}
1333   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1334   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1335 done
1336
1337 #
1338 # Report the --help message.
1339 #
1340 if test "$ac_init_help" = "long"; then
1341   # Omit some internal or obsolete options to make the list less imposing.
1342   # This message is too long to be a string in the A/UX 3.1 sh.
1343   cat <<_ACEOF
1344 \`configure' configures glog 0.3.2 to adapt to many kinds of systems.
1345
1346 Usage: $0 [OPTION]... [VAR=VALUE]...
1347
1348 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1349 VAR=VALUE.  See below for descriptions of some of the useful variables.
1350
1351 Defaults for the options are specified in brackets.
1352
1353 Configuration:
1354   -h, --help              display this help and exit
1355       --help=short        display options specific to this package
1356       --help=recursive    display the short help of all the included packages
1357   -V, --version           display version information and exit
1358   -q, --quiet, --silent   do not print \`checking ...' messages
1359       --cache-file=FILE   cache test results in FILE [disabled]
1360   -C, --config-cache      alias for \`--cache-file=config.cache'
1361   -n, --no-create         do not create output files
1362       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1363
1364 Installation directories:
1365   --prefix=PREFIX         install architecture-independent files in PREFIX
1366                           [$ac_default_prefix]
1367   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1368                           [PREFIX]
1369
1370 By default, \`make install' will install all the files in
1371 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1372 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1373 for instance \`--prefix=\$HOME'.
1374
1375 For better control, use the options below.
1376
1377 Fine tuning of the installation directories:
1378   --bindir=DIR            user executables [EPREFIX/bin]
1379   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1380   --libexecdir=DIR        program executables [EPREFIX/libexec]
1381   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1382   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1383   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1384   --libdir=DIR            object code libraries [EPREFIX/lib]
1385   --includedir=DIR        C header files [PREFIX/include]
1386   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1387   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1388   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1389   --infodir=DIR           info documentation [DATAROOTDIR/info]
1390   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1391   --mandir=DIR            man documentation [DATAROOTDIR/man]
1392   --docdir=DIR            documentation root [DATAROOTDIR/doc/glog]
1393   --htmldir=DIR           html documentation [DOCDIR]
1394   --dvidir=DIR            dvi documentation [DOCDIR]
1395   --pdfdir=DIR            pdf documentation [DOCDIR]
1396   --psdir=DIR             ps documentation [DOCDIR]
1397 _ACEOF
1398
1399   cat <<\_ACEOF
1400
1401 Program names:
1402   --program-prefix=PREFIX            prepend PREFIX to installed program names
1403   --program-suffix=SUFFIX            append SUFFIX to installed program names
1404   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1405
1406 System types:
1407   --build=BUILD     configure for building on BUILD [guessed]
1408   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1409 _ACEOF
1410 fi
1411
1412 if test -n "$ac_init_help"; then
1413   case $ac_init_help in
1414      short | recursive ) echo "Configuration of glog 0.3.2:";;
1415    esac
1416   cat <<\_ACEOF
1417
1418 Optional Features:
1419   --disable-option-checking  ignore unrecognized --enable/--with options
1420   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1421   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1422   --disable-dependency-tracking  speeds up one-time build
1423   --enable-dependency-tracking   do not reject slow dependency extractors
1424   --enable-shared[=PKGS]  build shared libraries [default=yes]
1425   --enable-static[=PKGS]  build static libraries [default=yes]
1426   --enable-fast-install[=PKGS]
1427                           optimize for fast installation [default=yes]
1428   --disable-libtool-lock  avoid locking (might break parallel builds)
1429   --enable-frame-pointers On x86_64 systems, compile with
1430                           -fno-omit-frame-pointer (see INSTALL)
1431   --disable-rtti          Disable RTTI in glog
1432   --enable-namespace=FOO to define these Google
1433                              classes in the FOO namespace. --disable-namespace
1434                              to define them in the global namespace. Default
1435                              is to define them in namespace google.
1436
1437 Optional Packages:
1438   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1439   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1440   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1441                           both]
1442   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1443   --with-sysroot=DIR Search for dependent libraries within DIR
1444                         (or the compiler's sysroot if not specified).
1445                           --with-gflags=GFLAGS_DIR
1446
1447 Some influential environment variables:
1448   CC          C compiler command
1449   CFLAGS      C compiler flags
1450   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1451               nonstandard directory <lib dir>
1452   LIBS        libraries to pass to the linker, e.g. -l<library>
1453   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1454               you have headers in a nonstandard directory <include dir>
1455   CPP         C preprocessor
1456   CXX         C++ compiler command
1457   CXXFLAGS    C++ compiler flags
1458   CXXCPP      C++ preprocessor
1459
1460 Use these variables to override the choices made by `configure' or to help
1461 it to find libraries and programs with nonstandard names/locations.
1462
1463 Report bugs to <opensource@google.com>.
1464 _ACEOF
1465 ac_status=$?
1466 fi
1467
1468 if test "$ac_init_help" = "recursive"; then
1469   # If there are subdirs, report their specific --help.
1470   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1471     test -d "$ac_dir" ||
1472       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1473       continue
1474     ac_builddir=.
1475
1476 case "$ac_dir" in
1477 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 *)
1479   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1480   # A ".." for each directory in $ac_dir_suffix.
1481   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1482   case $ac_top_builddir_sub in
1483   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1485   esac ;;
1486 esac
1487 ac_abs_top_builddir=$ac_pwd
1488 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1489 # for backward compatibility:
1490 ac_top_builddir=$ac_top_build_prefix
1491
1492 case $srcdir in
1493   .)  # We are building in place.
1494     ac_srcdir=.
1495     ac_top_srcdir=$ac_top_builddir_sub
1496     ac_abs_top_srcdir=$ac_pwd ;;
1497   [\\/]* | ?:[\\/]* )  # Absolute name.
1498     ac_srcdir=$srcdir$ac_dir_suffix;
1499     ac_top_srcdir=$srcdir
1500     ac_abs_top_srcdir=$srcdir ;;
1501   *) # Relative name.
1502     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1503     ac_top_srcdir=$ac_top_build_prefix$srcdir
1504     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1505 esac
1506 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1507
1508     cd "$ac_dir" || { ac_status=$?; continue; }
1509     # Check for guested configure.
1510     if test -f "$ac_srcdir/configure.gnu"; then
1511       echo &&
1512       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1513     elif test -f "$ac_srcdir/configure"; then
1514       echo &&
1515       $SHELL "$ac_srcdir/configure" --help=recursive
1516     else
1517       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1518     fi || ac_status=$?
1519     cd "$ac_pwd" || { ac_status=$?; break; }
1520   done
1521 fi
1522
1523 test -n "$ac_init_help" && exit $ac_status
1524 if $ac_init_version; then
1525   cat <<\_ACEOF
1526 glog configure 0.3.2
1527 generated by GNU Autoconf 2.68
1528
1529 Copyright (C) 2010 Free Software Foundation, Inc.
1530 This configure script is free software; the Free Software Foundation
1531 gives unlimited permission to copy, distribute and modify it.
1532 _ACEOF
1533   exit
1534 fi
1535
1536 ## ------------------------ ##
1537 ## Autoconf initialization. ##
1538 ## ------------------------ ##
1539
1540 # ac_fn_c_try_compile LINENO
1541 # --------------------------
1542 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1543 ac_fn_c_try_compile ()
1544 {
1545   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546   rm -f conftest.$ac_objext
1547   if { { ac_try="$ac_compile"
1548 case "(($ac_try" in
1549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1550   *) ac_try_echo=$ac_try;;
1551 esac
1552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553 $as_echo "$ac_try_echo"; } >&5
1554   (eval "$ac_compile") 2>conftest.err
1555   ac_status=$?
1556   if test -s conftest.err; then
1557     grep -v '^ *+' conftest.err >conftest.er1
1558     cat conftest.er1 >&5
1559     mv -f conftest.er1 conftest.err
1560   fi
1561   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562   test $ac_status = 0; } && {
1563          test -z "$ac_c_werror_flag" ||
1564          test ! -s conftest.err
1565        } && test -s conftest.$ac_objext; then :
1566   ac_retval=0
1567 else
1568   $as_echo "$as_me: failed program was:" >&5
1569 sed 's/^/| /' conftest.$ac_ext >&5
1570
1571         ac_retval=1
1572 fi
1573   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574   as_fn_set_status $ac_retval
1575
1576 } # ac_fn_c_try_compile
1577
1578 # ac_fn_c_try_cpp LINENO
1579 # ----------------------
1580 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1581 ac_fn_c_try_cpp ()
1582 {
1583   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584   if { { ac_try="$ac_cpp conftest.$ac_ext"
1585 case "(($ac_try" in
1586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587   *) ac_try_echo=$ac_try;;
1588 esac
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1592   ac_status=$?
1593   if test -s conftest.err; then
1594     grep -v '^ *+' conftest.err >conftest.er1
1595     cat conftest.er1 >&5
1596     mv -f conftest.er1 conftest.err
1597   fi
1598   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599   test $ac_status = 0; } > conftest.i && {
1600          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1601          test ! -s conftest.err
1602        }; then :
1603   ac_retval=0
1604 else
1605   $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1607
1608     ac_retval=1
1609 fi
1610   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611   as_fn_set_status $ac_retval
1612
1613 } # ac_fn_c_try_cpp
1614
1615 # ac_fn_cxx_try_compile LINENO
1616 # ----------------------------
1617 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_cxx_try_compile ()
1619 {
1620   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621   rm -f conftest.$ac_objext
1622   if { { ac_try="$ac_compile"
1623 case "(($ac_try" in
1624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625   *) ac_try_echo=$ac_try;;
1626 esac
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629   (eval "$ac_compile") 2>conftest.err
1630   ac_status=$?
1631   if test -s conftest.err; then
1632     grep -v '^ *+' conftest.err >conftest.er1
1633     cat conftest.er1 >&5
1634     mv -f conftest.er1 conftest.err
1635   fi
1636   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637   test $ac_status = 0; } && {
1638          test -z "$ac_cxx_werror_flag" ||
1639          test ! -s conftest.err
1640        } && test -s conftest.$ac_objext; then :
1641   ac_retval=0
1642 else
1643   $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1645
1646         ac_retval=1
1647 fi
1648   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649   as_fn_set_status $ac_retval
1650
1651 } # ac_fn_cxx_try_compile
1652
1653 # ac_fn_c_try_link LINENO
1654 # -----------------------
1655 # Try to link conftest.$ac_ext, and return whether this succeeded.
1656 ac_fn_c_try_link ()
1657 {
1658   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659   rm -f conftest.$ac_objext conftest$ac_exeext
1660   if { { ac_try="$ac_link"
1661 case "(($ac_try" in
1662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663   *) ac_try_echo=$ac_try;;
1664 esac
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667   (eval "$ac_link") 2>conftest.err
1668   ac_status=$?
1669   if test -s conftest.err; then
1670     grep -v '^ *+' conftest.err >conftest.er1
1671     cat conftest.er1 >&5
1672     mv -f conftest.er1 conftest.err
1673   fi
1674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675   test $ac_status = 0; } && {
1676          test -z "$ac_c_werror_flag" ||
1677          test ! -s conftest.err
1678        } && test -s conftest$ac_exeext && {
1679          test "$cross_compiling" = yes ||
1680          $as_test_x conftest$ac_exeext
1681        }; then :
1682   ac_retval=0
1683 else
1684   $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1686
1687         ac_retval=1
1688 fi
1689   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1690   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1691   # interfere with the next link command; also delete a directory that is
1692   # left behind by Apple's compiler.  We do this before executing the actions.
1693   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1694   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695   as_fn_set_status $ac_retval
1696
1697 } # ac_fn_c_try_link
1698
1699 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1700 # -------------------------------------------------------
1701 # Tests whether HEADER exists and can be compiled using the include files in
1702 # INCLUDES, setting the cache variable VAR accordingly.
1703 ac_fn_c_check_header_compile ()
1704 {
1705   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 $as_echo_n "checking for $2... " >&6; }
1708 if eval \${$3+:} false; then :
1709   $as_echo_n "(cached) " >&6
1710 else
1711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712 /* end confdefs.h.  */
1713 $4
1714 #include <$2>
1715 _ACEOF
1716 if ac_fn_c_try_compile "$LINENO"; then :
1717   eval "$3=yes"
1718 else
1719   eval "$3=no"
1720 fi
1721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1722 fi
1723 eval ac_res=\$$3
1724                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1725 $as_echo "$ac_res" >&6; }
1726   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727
1728 } # ac_fn_c_check_header_compile
1729
1730 # ac_fn_c_try_run LINENO
1731 # ----------------------
1732 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1733 # that executables *can* be run.
1734 ac_fn_c_try_run ()
1735 {
1736   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737   if { { ac_try="$ac_link"
1738 case "(($ac_try" in
1739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740   *) ac_try_echo=$ac_try;;
1741 esac
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744   (eval "$ac_link") 2>&5
1745   ac_status=$?
1746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1748   { { case "(($ac_try" in
1749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750   *) ac_try_echo=$ac_try;;
1751 esac
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754   (eval "$ac_try") 2>&5
1755   ac_status=$?
1756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757   test $ac_status = 0; }; }; then :
1758   ac_retval=0
1759 else
1760   $as_echo "$as_me: program exited with status $ac_status" >&5
1761        $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1763
1764        ac_retval=$ac_status
1765 fi
1766   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1767   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768   as_fn_set_status $ac_retval
1769
1770 } # ac_fn_c_try_run
1771
1772 # ac_fn_c_check_func LINENO FUNC VAR
1773 # ----------------------------------
1774 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1775 ac_fn_c_check_func ()
1776 {
1777   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 $as_echo_n "checking for $2... " >&6; }
1780 if eval \${$3+:} false; then :
1781   $as_echo_n "(cached) " >&6
1782 else
1783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h.  */
1785 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1786    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1787 #define $2 innocuous_$2
1788
1789 /* System header to define __stub macros and hopefully few prototypes,
1790     which can conflict with char $2 (); below.
1791     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1792     <limits.h> exists even on freestanding compilers.  */
1793
1794 #ifdef __STDC__
1795 # include <limits.h>
1796 #else
1797 # include <assert.h>
1798 #endif
1799
1800 #undef $2
1801
1802 /* Override any GCC internal prototype to avoid an error.
1803    Use char because int might match the return type of a GCC
1804    builtin and then its argument prototype would still apply.  */
1805 #ifdef __cplusplus
1806 extern "C"
1807 #endif
1808 char $2 ();
1809 /* The GNU C library defines this for functions which it implements
1810     to always fail with ENOSYS.  Some functions are actually named
1811     something starting with __ and the normal name is an alias.  */
1812 #if defined __stub_$2 || defined __stub___$2
1813 choke me
1814 #endif
1815
1816 int
1817 main ()
1818 {
1819 return $2 ();
1820   ;
1821   return 0;
1822 }
1823 _ACEOF
1824 if ac_fn_c_try_link "$LINENO"; then :
1825   eval "$3=yes"
1826 else
1827   eval "$3=no"
1828 fi
1829 rm -f core conftest.err conftest.$ac_objext \
1830     conftest$ac_exeext conftest.$ac_ext
1831 fi
1832 eval ac_res=\$$3
1833                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1834 $as_echo "$ac_res" >&6; }
1835   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836
1837 } # ac_fn_c_check_func
1838
1839 # ac_fn_cxx_try_cpp LINENO
1840 # ------------------------
1841 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1842 ac_fn_cxx_try_cpp ()
1843 {
1844   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845   if { { ac_try="$ac_cpp conftest.$ac_ext"
1846 case "(($ac_try" in
1847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848   *) ac_try_echo=$ac_try;;
1849 esac
1850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1853   ac_status=$?
1854   if test -s conftest.err; then
1855     grep -v '^ *+' conftest.err >conftest.er1
1856     cat conftest.er1 >&5
1857     mv -f conftest.er1 conftest.err
1858   fi
1859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860   test $ac_status = 0; } > conftest.i && {
1861          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1862          test ! -s conftest.err
1863        }; then :
1864   ac_retval=0
1865 else
1866   $as_echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1868
1869     ac_retval=1
1870 fi
1871   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872   as_fn_set_status $ac_retval
1873
1874 } # ac_fn_cxx_try_cpp
1875
1876 # ac_fn_cxx_try_link LINENO
1877 # -------------------------
1878 # Try to link conftest.$ac_ext, and return whether this succeeded.
1879 ac_fn_cxx_try_link ()
1880 {
1881   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882   rm -f conftest.$ac_objext conftest$ac_exeext
1883   if { { ac_try="$ac_link"
1884 case "(($ac_try" in
1885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886   *) ac_try_echo=$ac_try;;
1887 esac
1888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889 $as_echo "$ac_try_echo"; } >&5
1890   (eval "$ac_link") 2>conftest.err
1891   ac_status=$?
1892   if test -s conftest.err; then
1893     grep -v '^ *+' conftest.err >conftest.er1
1894     cat conftest.er1 >&5
1895     mv -f conftest.er1 conftest.err
1896   fi
1897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898   test $ac_status = 0; } && {
1899          test -z "$ac_cxx_werror_flag" ||
1900          test ! -s conftest.err
1901        } && test -s conftest$ac_exeext && {
1902          test "$cross_compiling" = yes ||
1903          $as_test_x conftest$ac_exeext
1904        }; then :
1905   ac_retval=0
1906 else
1907   $as_echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1909
1910         ac_retval=1
1911 fi
1912   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1913   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1914   # interfere with the next link command; also delete a directory that is
1915   # left behind by Apple's compiler.  We do this before executing the actions.
1916   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1917   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918   as_fn_set_status $ac_retval
1919
1920 } # ac_fn_cxx_try_link
1921
1922 # ac_fn_cxx_try_run LINENO
1923 # ------------------------
1924 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1925 # that executables *can* be run.
1926 ac_fn_cxx_try_run ()
1927 {
1928   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929   if { { ac_try="$ac_link"
1930 case "(($ac_try" in
1931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932   *) ac_try_echo=$ac_try;;
1933 esac
1934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935 $as_echo "$ac_try_echo"; } >&5
1936   (eval "$ac_link") 2>&5
1937   ac_status=$?
1938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1940   { { case "(($ac_try" in
1941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942   *) ac_try_echo=$ac_try;;
1943 esac
1944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945 $as_echo "$ac_try_echo"; } >&5
1946   (eval "$ac_try") 2>&5
1947   ac_status=$?
1948   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1949   test $ac_status = 0; }; }; then :
1950   ac_retval=0
1951 else
1952   $as_echo "$as_me: program exited with status $ac_status" >&5
1953        $as_echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1955
1956        ac_retval=$ac_status
1957 fi
1958   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1959   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960   as_fn_set_status $ac_retval
1961
1962 } # ac_fn_cxx_try_run
1963
1964 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1965 # ---------------------------------------------------------
1966 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1967 # the include files in INCLUDES and setting the cache variable VAR
1968 # accordingly.
1969 ac_fn_cxx_check_header_mongrel ()
1970 {
1971   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972   if eval \${$3+:} false; then :
1973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1974 $as_echo_n "checking for $2... " >&6; }
1975 if eval \${$3+:} false; then :
1976   $as_echo_n "(cached) " >&6
1977 fi
1978 eval ac_res=\$$3
1979                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1981 else
1982   # Is the header compilable?
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1984 $as_echo_n "checking $2 usability... " >&6; }
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h.  */
1987 $4
1988 #include <$2>
1989 _ACEOF
1990 if ac_fn_cxx_try_compile "$LINENO"; then :
1991   ac_header_compiler=yes
1992 else
1993   ac_header_compiler=no
1994 fi
1995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1997 $as_echo "$ac_header_compiler" >&6; }
1998
1999 # Is the header present?
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2001 $as_echo_n "checking $2 presence... " >&6; }
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h.  */
2004 #include <$2>
2005 _ACEOF
2006 if ac_fn_cxx_try_cpp "$LINENO"; then :
2007   ac_header_preproc=yes
2008 else
2009   ac_header_preproc=no
2010 fi
2011 rm -f conftest.err conftest.i conftest.$ac_ext
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2013 $as_echo "$ac_header_preproc" >&6; }
2014
2015 # So?  What about this header?
2016 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2017   yes:no: )
2018     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2019 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2020     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2021 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2022     ;;
2023   no:yes:* )
2024     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2025 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2026     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2027 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2028     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2029 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2030     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2031 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2032     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2033 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2034 ( $as_echo "## ------------------------------------ ##
2035 ## Report this to opensource@google.com ##
2036 ## ------------------------------------ ##"
2037      ) | sed "s/^/$as_me: WARNING:     /" >&2
2038     ;;
2039 esac
2040   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2041 $as_echo_n "checking for $2... " >&6; }
2042 if eval \${$3+:} false; then :
2043   $as_echo_n "(cached) " >&6
2044 else
2045   eval "$3=\$ac_header_compiler"
2046 fi
2047 eval ac_res=\$$3
2048                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2050 fi
2051   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052
2053 } # ac_fn_cxx_check_header_mongrel
2054
2055 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2056 # ----------------------------------------------
2057 # Tries to find the compile-time value of EXPR in a program that includes
2058 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2059 # computed
2060 ac_fn_cxx_compute_int ()
2061 {
2062   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063   if test "$cross_compiling" = yes; then
2064     # Depending upon the size, compute the lo and hi bounds.
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h.  */
2067 $4
2068 int
2069 main ()
2070 {
2071 static int test_array [1 - 2 * !(($2) >= 0)];
2072 test_array [0] = 0
2073
2074   ;
2075   return 0;
2076 }
2077 _ACEOF
2078 if ac_fn_cxx_try_compile "$LINENO"; then :
2079   ac_lo=0 ac_mid=0
2080   while :; do
2081     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h.  */
2083 $4
2084 int
2085 main ()
2086 {
2087 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2088 test_array [0] = 0
2089
2090   ;
2091   return 0;
2092 }
2093 _ACEOF
2094 if ac_fn_cxx_try_compile "$LINENO"; then :
2095   ac_hi=$ac_mid; break
2096 else
2097   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2098                         if test $ac_lo -le $ac_mid; then
2099                           ac_lo= ac_hi=
2100                           break
2101                         fi
2102                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2103 fi
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105   done
2106 else
2107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h.  */
2109 $4
2110 int
2111 main ()
2112 {
2113 static int test_array [1 - 2 * !(($2) < 0)];
2114 test_array [0] = 0
2115
2116   ;
2117   return 0;
2118 }
2119 _ACEOF
2120 if ac_fn_cxx_try_compile "$LINENO"; then :
2121   ac_hi=-1 ac_mid=-1
2122   while :; do
2123     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h.  */
2125 $4
2126 int
2127 main ()
2128 {
2129 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2130 test_array [0] = 0
2131
2132   ;
2133   return 0;
2134 }
2135 _ACEOF
2136 if ac_fn_cxx_try_compile "$LINENO"; then :
2137   ac_lo=$ac_mid; break
2138 else
2139   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2140                         if test $ac_mid -le $ac_hi; then
2141                           ac_lo= ac_hi=
2142                           break
2143                         fi
2144                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2145 fi
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147   done
2148 else
2149   ac_lo= ac_hi=
2150 fi
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 fi
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 # Binary search between lo and hi bounds.
2155 while test "x$ac_lo" != "x$ac_hi"; do
2156   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h.  */
2159 $4
2160 int
2161 main ()
2162 {
2163 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2164 test_array [0] = 0
2165
2166   ;
2167   return 0;
2168 }
2169 _ACEOF
2170 if ac_fn_cxx_try_compile "$LINENO"; then :
2171   ac_hi=$ac_mid
2172 else
2173   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2174 fi
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 done
2177 case $ac_lo in #((
2178 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2179 '') ac_retval=1 ;;
2180 esac
2181   else
2182     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h.  */
2184 $4
2185 static long int longval () { return $2; }
2186 static unsigned long int ulongval () { return $2; }
2187 #include <stdio.h>
2188 #include <stdlib.h>
2189 int
2190 main ()
2191 {
2192
2193   FILE *f = fopen ("conftest.val", "w");
2194   if (! f)
2195     return 1;
2196   if (($2) < 0)
2197     {
2198       long int i = longval ();
2199       if (i != ($2))
2200         return 1;
2201       fprintf (f, "%ld", i);
2202     }
2203   else
2204     {
2205       unsigned long int i = ulongval ();
2206       if (i != ($2))
2207         return 1;
2208       fprintf (f, "%lu", i);
2209     }
2210   /* Do not output a trailing newline, as this causes \r\n confusion
2211      on some platforms.  */
2212   return ferror (f) || fclose (f) != 0;
2213
2214   ;
2215   return 0;
2216 }
2217 _ACEOF
2218 if ac_fn_cxx_try_run "$LINENO"; then :
2219   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2220 else
2221   ac_retval=1
2222 fi
2223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2224   conftest.$ac_objext conftest.beam conftest.$ac_ext
2225 rm -f conftest.val
2226
2227   fi
2228   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2229   as_fn_set_status $ac_retval
2230
2231 } # ac_fn_cxx_compute_int
2232
2233 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2234 # ---------------------------------------------
2235 # Tests whether TYPE exists after having included INCLUDES, setting cache
2236 # variable VAR accordingly.
2237 ac_fn_cxx_check_type ()
2238 {
2239   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2241 $as_echo_n "checking for $2... " >&6; }
2242 if eval \${$3+:} false; then :
2243   $as_echo_n "(cached) " >&6
2244 else
2245   eval "$3=no"
2246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h.  */
2248 $4
2249 int
2250 main ()
2251 {
2252 if (sizeof ($2))
2253          return 0;
2254   ;
2255   return 0;
2256 }
2257 _ACEOF
2258 if ac_fn_cxx_try_compile "$LINENO"; then :
2259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h.  */
2261 $4
2262 int
2263 main ()
2264 {
2265 if (sizeof (($2)))
2266             return 0;
2267   ;
2268   return 0;
2269 }
2270 _ACEOF
2271 if ac_fn_cxx_try_compile "$LINENO"; then :
2272
2273 else
2274   eval "$3=yes"
2275 fi
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277 fi
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279 fi
2280 eval ac_res=\$$3
2281                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2282 $as_echo "$ac_res" >&6; }
2283   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2284
2285 } # ac_fn_cxx_check_type
2286
2287 # ac_fn_cxx_check_func LINENO FUNC VAR
2288 # ------------------------------------
2289 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2290 ac_fn_cxx_check_func ()
2291 {
2292   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2294 $as_echo_n "checking for $2... " >&6; }
2295 if eval \${$3+:} false; then :
2296   $as_echo_n "(cached) " >&6
2297 else
2298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h.  */
2300 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2301    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2302 #define $2 innocuous_$2
2303
2304 /* System header to define __stub macros and hopefully few prototypes,
2305     which can conflict with char $2 (); below.
2306     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2307     <limits.h> exists even on freestanding compilers.  */
2308
2309 #ifdef __STDC__
2310 # include <limits.h>
2311 #else
2312 # include <assert.h>
2313 #endif
2314
2315 #undef $2
2316
2317 /* Override any GCC internal prototype to avoid an error.
2318    Use char because int might match the return type of a GCC
2319    builtin and then its argument prototype would still apply.  */
2320 #ifdef __cplusplus
2321 extern "C"
2322 #endif
2323 char $2 ();
2324 /* The GNU C library defines this for functions which it implements
2325     to always fail with ENOSYS.  Some functions are actually named
2326     something starting with __ and the normal name is an alias.  */
2327 #if defined __stub_$2 || defined __stub___$2
2328 choke me
2329 #endif
2330
2331 int
2332 main ()
2333 {
2334 return $2 ();
2335   ;
2336   return 0;
2337 }
2338 _ACEOF
2339 if ac_fn_cxx_try_link "$LINENO"; then :
2340   eval "$3=yes"
2341 else
2342   eval "$3=no"
2343 fi
2344 rm -f core conftest.err conftest.$ac_objext \
2345     conftest$ac_exeext conftest.$ac_ext
2346 fi
2347 eval ac_res=\$$3
2348                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2350   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2351
2352 } # ac_fn_cxx_check_func
2353 cat >config.log <<_ACEOF
2354 This file contains any messages produced by compilers while
2355 running configure, to aid debugging if configure makes a mistake.
2356
2357 It was created by glog $as_me 0.3.2, which was
2358 generated by GNU Autoconf 2.68.  Invocation command line was
2359
2360   $ $0 $@
2361
2362 _ACEOF
2363 exec 5>>config.log
2364 {
2365 cat <<_ASUNAME
2366 ## --------- ##
2367 ## Platform. ##
2368 ## --------- ##
2369
2370 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2371 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2372 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2373 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2374 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2375
2376 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2377 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2378
2379 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2380 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2381 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2382 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2383 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2384 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2385 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2386
2387 _ASUNAME
2388
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 for as_dir in $PATH
2391 do
2392   IFS=$as_save_IFS
2393   test -z "$as_dir" && as_dir=.
2394     $as_echo "PATH: $as_dir"
2395   done
2396 IFS=$as_save_IFS
2397
2398 } >&5
2399
2400 cat >&5 <<_ACEOF
2401
2402
2403 ## ----------- ##
2404 ## Core tests. ##
2405 ## ----------- ##
2406
2407 _ACEOF
2408
2409
2410 # Keep a trace of the command line.
2411 # Strip out --no-create and --no-recursion so they do not pile up.
2412 # Strip out --silent because we don't want to record it for future runs.
2413 # Also quote any args containing shell meta-characters.
2414 # Make two passes to allow for proper duplicate-argument suppression.
2415 ac_configure_args=
2416 ac_configure_args0=
2417 ac_configure_args1=
2418 ac_must_keep_next=false
2419 for ac_pass in 1 2
2420 do
2421   for ac_arg
2422   do
2423     case $ac_arg in
2424     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2425     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2426     | -silent | --silent | --silen | --sile | --sil)
2427       continue ;;
2428     *\'*)
2429       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2430     esac
2431     case $ac_pass in
2432     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2433     2)
2434       as_fn_append ac_configure_args1 " '$ac_arg'"
2435       if test $ac_must_keep_next = true; then
2436         ac_must_keep_next=false # Got value, back to normal.
2437       else
2438         case $ac_arg in
2439           *=* | --config-cache | -C | -disable-* | --disable-* \
2440           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2441           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2442           | -with-* | --with-* | -without-* | --without-* | --x)
2443             case "$ac_configure_args0 " in
2444               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2445             esac
2446             ;;
2447           -* ) ac_must_keep_next=true ;;
2448         esac
2449       fi
2450       as_fn_append ac_configure_args " '$ac_arg'"
2451       ;;
2452     esac
2453   done
2454 done
2455 { ac_configure_args0=; unset ac_configure_args0;}
2456 { ac_configure_args1=; unset ac_configure_args1;}
2457
2458 # When interrupted or exit'd, cleanup temporary files, and complete
2459 # config.log.  We remove comments because anyway the quotes in there
2460 # would cause problems or look ugly.
2461 # WARNING: Use '\'' to represent an apostrophe within the trap.
2462 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2463 trap 'exit_status=$?
2464   # Save into config.log some information that might help in debugging.
2465   {
2466     echo
2467
2468     $as_echo "## ---------------- ##
2469 ## Cache variables. ##
2470 ## ---------------- ##"
2471     echo
2472     # The following way of writing the cache mishandles newlines in values,
2473 (
2474   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2475     eval ac_val=\$$ac_var
2476     case $ac_val in #(
2477     *${as_nl}*)
2478       case $ac_var in #(
2479       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2480 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2481       esac
2482       case $ac_var in #(
2483       _ | IFS | as_nl) ;; #(
2484       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2485       *) { eval $ac_var=; unset $ac_var;} ;;
2486       esac ;;
2487     esac
2488   done
2489   (set) 2>&1 |
2490     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2491     *${as_nl}ac_space=\ *)
2492       sed -n \
2493         "s/'\''/'\''\\\\'\'''\''/g;
2494           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2495       ;; #(
2496     *)
2497       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2498       ;;
2499     esac |
2500     sort
2501 )
2502     echo
2503
2504     $as_echo "## ----------------- ##
2505 ## Output variables. ##
2506 ## ----------------- ##"
2507     echo
2508     for ac_var in $ac_subst_vars
2509     do
2510       eval ac_val=\$$ac_var
2511       case $ac_val in
2512       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2513       esac
2514       $as_echo "$ac_var='\''$ac_val'\''"
2515     done | sort
2516     echo
2517
2518     if test -n "$ac_subst_files"; then
2519       $as_echo "## ------------------- ##
2520 ## File substitutions. ##
2521 ## ------------------- ##"
2522       echo
2523       for ac_var in $ac_subst_files
2524       do
2525         eval ac_val=\$$ac_var
2526         case $ac_val in
2527         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2528         esac
2529         $as_echo "$ac_var='\''$ac_val'\''"
2530       done | sort
2531       echo
2532     fi
2533
2534     if test -s confdefs.h; then
2535       $as_echo "## ----------- ##
2536 ## confdefs.h. ##
2537 ## ----------- ##"
2538       echo
2539       cat confdefs.h
2540       echo
2541     fi
2542     test "$ac_signal" != 0 &&
2543       $as_echo "$as_me: caught signal $ac_signal"
2544     $as_echo "$as_me: exit $exit_status"
2545   } >&5
2546   rm -f core *.core core.conftest.* &&
2547     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2548     exit $exit_status
2549 ' 0
2550 for ac_signal in 1 2 13 15; do
2551   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2552 done
2553 ac_signal=0
2554
2555 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2556 rm -f -r conftest* confdefs.h
2557
2558 $as_echo "/* confdefs.h */" > confdefs.h
2559
2560 # Predefined preprocessor variables.
2561
2562 cat >>confdefs.h <<_ACEOF
2563 #define PACKAGE_NAME "$PACKAGE_NAME"
2564 _ACEOF
2565
2566 cat >>confdefs.h <<_ACEOF
2567 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2568 _ACEOF
2569
2570 cat >>confdefs.h <<_ACEOF
2571 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2572 _ACEOF
2573
2574 cat >>confdefs.h <<_ACEOF
2575 #define PACKAGE_STRING "$PACKAGE_STRING"
2576 _ACEOF
2577
2578 cat >>confdefs.h <<_ACEOF
2579 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2580 _ACEOF
2581
2582 cat >>confdefs.h <<_ACEOF
2583 #define PACKAGE_URL "$PACKAGE_URL"
2584 _ACEOF
2585
2586
2587 # Let the site file select an alternate cache file if it wants to.
2588 # Prefer an explicitly selected file to automatically selected ones.
2589 ac_site_file1=NONE
2590 ac_site_file2=NONE
2591 if test -n "$CONFIG_SITE"; then
2592   # We do not want a PATH search for config.site.
2593   case $CONFIG_SITE in #((
2594     -*)  ac_site_file1=./$CONFIG_SITE;;
2595     */*) ac_site_file1=$CONFIG_SITE;;
2596     *)   ac_site_file1=./$CONFIG_SITE;;
2597   esac
2598 elif test "x$prefix" != xNONE; then
2599   ac_site_file1=$prefix/share/config.site
2600   ac_site_file2=$prefix/etc/config.site
2601 else
2602   ac_site_file1=$ac_default_prefix/share/config.site
2603   ac_site_file2=$ac_default_prefix/etc/config.site
2604 fi
2605 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2606 do
2607   test "x$ac_site_file" = xNONE && continue
2608   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2609     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2610 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2611     sed 's/^/| /' "$ac_site_file" >&5
2612     . "$ac_site_file" \
2613       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2615 as_fn_error $? "failed to load site script $ac_site_file
2616 See \`config.log' for more details" "$LINENO" 5; }
2617   fi
2618 done
2619
2620 if test -r "$cache_file"; then
2621   # Some versions of bash will fail to source /dev/null (special files
2622   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2623   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2624     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2625 $as_echo "$as_me: loading cache $cache_file" >&6;}
2626     case $cache_file in
2627       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2628       *)                      . "./$cache_file";;
2629     esac
2630   fi
2631 else
2632   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2633 $as_echo "$as_me: creating cache $cache_file" >&6;}
2634   >$cache_file
2635 fi
2636
2637 # Check that the precious variables saved in the cache have kept the same
2638 # value.
2639 ac_cache_corrupted=false
2640 for ac_var in $ac_precious_vars; do
2641   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2642   eval ac_new_set=\$ac_env_${ac_var}_set
2643   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2644   eval ac_new_val=\$ac_env_${ac_var}_value
2645   case $ac_old_set,$ac_new_set in
2646     set,)
2647       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2648 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2649       ac_cache_corrupted=: ;;
2650     ,set)
2651       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2652 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2653       ac_cache_corrupted=: ;;
2654     ,);;
2655     *)
2656       if test "x$ac_old_val" != "x$ac_new_val"; then
2657         # differences in whitespace do not lead to failure.
2658         ac_old_val_w=`echo x $ac_old_val`
2659         ac_new_val_w=`echo x $ac_new_val`
2660         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2661           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2662 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2663           ac_cache_corrupted=:
2664         else
2665           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2666 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2667           eval $ac_var=\$ac_old_val
2668         fi
2669         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2670 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2671         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2672 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2673       fi;;
2674   esac
2675   # Pass precious variables to config.status.
2676   if test "$ac_new_set" = set; then
2677     case $ac_new_val in
2678     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2679     *) ac_arg=$ac_var=$ac_new_val ;;
2680     esac
2681     case " $ac_configure_args " in
2682       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2683       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2684     esac
2685   fi
2686 done
2687 if $ac_cache_corrupted; then
2688   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2690   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2691 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2692   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2693 fi
2694 ## -------------------- ##
2695 ## Main body of script. ##
2696 ## -------------------- ##
2697
2698 ac_ext=c
2699 ac_cpp='$CPP $CPPFLAGS'
2700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2703
2704
2705 # The argument here is just something that should be in the current directory
2706 # (for sanity checking)
2707
2708
2709 am__api_version='1.11'
2710
2711 ac_aux_dir=
2712 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2713   if test -f "$ac_dir/install-sh"; then
2714     ac_aux_dir=$ac_dir
2715     ac_install_sh="$ac_aux_dir/install-sh -c"
2716     break
2717   elif test -f "$ac_dir/install.sh"; then
2718     ac_aux_dir=$ac_dir
2719     ac_install_sh="$ac_aux_dir/install.sh -c"
2720     break
2721   elif test -f "$ac_dir/shtool"; then
2722     ac_aux_dir=$ac_dir
2723     ac_install_sh="$ac_aux_dir/shtool install -c"
2724     break
2725   fi
2726 done
2727 if test -z "$ac_aux_dir"; then
2728   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2729 fi
2730
2731 # These three variables are undocumented and unsupported,
2732 # and are intended to be withdrawn in a future Autoconf release.
2733 # They can cause serious problems if a builder's source tree is in a directory
2734 # whose full name contains unusual characters.
2735 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2736 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2737 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2738
2739
2740 # Find a good install program.  We prefer a C program (faster),
2741 # so one script is as good as another.  But avoid the broken or
2742 # incompatible versions:
2743 # SysV /etc/install, /usr/sbin/install
2744 # SunOS /usr/etc/install
2745 # IRIX /sbin/install
2746 # AIX /bin/install
2747 # AmigaOS /C/install, which installs bootblocks on floppy discs
2748 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2749 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2750 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2751 # OS/2's system install, which has a completely different semantic
2752 # ./install, which can be erroneously created by make from ./install.sh.
2753 # Reject install programs that cannot install multiple files.
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2755 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2756 if test -z "$INSTALL"; then
2757 if ${ac_cv_path_install+:} false; then :
2758   $as_echo_n "(cached) " >&6
2759 else
2760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in $PATH
2762 do
2763   IFS=$as_save_IFS
2764   test -z "$as_dir" && as_dir=.
2765     # Account for people who put trailing slashes in PATH elements.
2766 case $as_dir/ in #((
2767   ./ | .// | /[cC]/* | \
2768   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2769   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2770   /usr/ucb/* ) ;;
2771   *)
2772     # OSF1 and SCO ODT 3.0 have their own names for install.
2773     # Don't use installbsd from OSF since it installs stuff as root
2774     # by default.
2775     for ac_prog in ginstall scoinst install; do
2776       for ac_exec_ext in '' $ac_executable_extensions; do
2777         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2778           if test $ac_prog = install &&
2779             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2780             # AIX install.  It has an incompatible calling convention.
2781             :
2782           elif test $ac_prog = install &&
2783             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2784             # program-specific install script used by HP pwplus--don't use.
2785             :
2786           else
2787             rm -rf conftest.one conftest.two conftest.dir
2788             echo one > conftest.one
2789             echo two > conftest.two
2790             mkdir conftest.dir
2791             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2792               test -s conftest.one && test -s conftest.two &&
2793               test -s conftest.dir/conftest.one &&
2794               test -s conftest.dir/conftest.two
2795             then
2796               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2797               break 3
2798             fi
2799           fi
2800         fi
2801       done
2802     done
2803     ;;
2804 esac
2805
2806   done
2807 IFS=$as_save_IFS
2808
2809 rm -rf conftest.one conftest.two conftest.dir
2810
2811 fi
2812   if test "${ac_cv_path_install+set}" = set; then
2813     INSTALL=$ac_cv_path_install
2814   else
2815     # As a last resort, use the slow shell script.  Don't cache a
2816     # value for INSTALL within a source directory, because that will
2817     # break other packages using the cache if that directory is
2818     # removed, or if the value is a relative name.
2819     INSTALL=$ac_install_sh
2820   fi
2821 fi
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2823 $as_echo "$INSTALL" >&6; }
2824
2825 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2826 # It thinks the first close brace ends the variable substitution.
2827 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2828
2829 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2830
2831 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2832
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2834 $as_echo_n "checking whether build environment is sane... " >&6; }
2835 # Just in case
2836 sleep 1
2837 echo timestamp > conftest.file
2838 # Reject unsafe characters in $srcdir or the absolute working directory
2839 # name.  Accept space and tab only in the latter.
2840 am_lf='
2841 '
2842 case `pwd` in
2843   *[\\\"\#\$\&\'\`$am_lf]*)
2844     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2845 esac
2846 case $srcdir in
2847   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2848     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2849 esac
2850
2851 # Do `set' in a subshell so we don't clobber the current shell's
2852 # arguments.  Must try -L first in case configure is actually a
2853 # symlink; some systems play weird games with the mod time of symlinks
2854 # (eg FreeBSD returns the mod time of the symlink's containing
2855 # directory).
2856 if (
2857    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2858    if test "$*" = "X"; then
2859       # -L didn't work.
2860       set X `ls -t "$srcdir/configure" conftest.file`
2861    fi
2862    rm -f conftest.file
2863    if test "$*" != "X $srcdir/configure conftest.file" \
2864       && test "$*" != "X conftest.file $srcdir/configure"; then
2865
2866       # If neither matched, then we have a broken ls.  This can happen
2867       # if, for instance, CONFIG_SHELL is bash and it inherits a
2868       # broken ls alias from the environment.  This has actually
2869       # happened.  Such a system could not be considered "sane".
2870       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2871 alias in your environment" "$LINENO" 5
2872    fi
2873
2874    test "$2" = conftest.file
2875    )
2876 then
2877    # Ok.
2878    :
2879 else
2880    as_fn_error $? "newly created file is older than distributed files!
2881 Check your system clock" "$LINENO" 5
2882 fi
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2884 $as_echo "yes" >&6; }
2885 test "$program_prefix" != NONE &&
2886   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2887 # Use a double $ so make ignores it.
2888 test "$program_suffix" != NONE &&
2889   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2890 # Double any \ or $.
2891 # By default was `s,x,x', remove it if useless.
2892 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2893 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2894
2895 # expand $ac_aux_dir to an absolute path
2896 am_aux_dir=`cd $ac_aux_dir && pwd`
2897
2898 if test x"${MISSING+set}" != xset; then
2899   case $am_aux_dir in
2900   *\ * | *\     *)
2901     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2902   *)
2903     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2904   esac
2905 fi
2906 # Use eval to expand $SHELL
2907 if eval "$MISSING --run true"; then
2908   am_missing_run="$MISSING --run "
2909 else
2910   am_missing_run=
2911   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2912 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2913 fi
2914
2915 if test x"${install_sh}" != xset; then
2916   case $am_aux_dir in
2917   *\ * | *\     *)
2918     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2919   *)
2920     install_sh="\${SHELL} $am_aux_dir/install-sh"
2921   esac
2922 fi
2923
2924 # Installed binaries are usually stripped using `strip' when the user
2925 # run `make install-strip'.  However `strip' might not be the right
2926 # tool to use in cross-compilation environments, therefore Automake
2927 # will honor the `STRIP' environment variable to overrule this program.
2928 if test "$cross_compiling" != no; then
2929   if test -n "$ac_tool_prefix"; then
2930   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2931 set dummy ${ac_tool_prefix}strip; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if ${ac_cv_prog_STRIP+:} false; then :
2935   $as_echo_n "(cached) " >&6
2936 else
2937   if test -n "$STRIP"; then
2938   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2942 do
2943   IFS=$as_save_IFS
2944   test -z "$as_dir" && as_dir=.
2945     for ac_exec_ext in '' $ac_executable_extensions; do
2946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2947     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949     break 2
2950   fi
2951 done
2952   done
2953 IFS=$as_save_IFS
2954
2955 fi
2956 fi
2957 STRIP=$ac_cv_prog_STRIP
2958 if test -n "$STRIP"; then
2959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2960 $as_echo "$STRIP" >&6; }
2961 else
2962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2964 fi
2965
2966
2967 fi
2968 if test -z "$ac_cv_prog_STRIP"; then
2969   ac_ct_STRIP=$STRIP
2970   # Extract the first word of "strip", so it can be a program name with args.
2971 set dummy strip; ac_word=$2
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973 $as_echo_n "checking for $ac_word... " >&6; }
2974 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2975   $as_echo_n "(cached) " >&6
2976 else
2977   if test -n "$ac_ct_STRIP"; then
2978   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2979 else
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 for as_dir in $PATH
2982 do
2983   IFS=$as_save_IFS
2984   test -z "$as_dir" && as_dir=.
2985     for ac_exec_ext in '' $ac_executable_extensions; do
2986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2987     ac_cv_prog_ac_ct_STRIP="strip"
2988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989     break 2
2990   fi
2991 done
2992   done
2993 IFS=$as_save_IFS
2994
2995 fi
2996 fi
2997 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2998 if test -n "$ac_ct_STRIP"; then
2999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3000 $as_echo "$ac_ct_STRIP" >&6; }
3001 else
3002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003 $as_echo "no" >&6; }
3004 fi
3005
3006   if test "x$ac_ct_STRIP" = x; then
3007     STRIP=":"
3008   else
3009     case $cross_compiling:$ac_tool_warned in
3010 yes:)
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3013 ac_tool_warned=yes ;;
3014 esac
3015     STRIP=$ac_ct_STRIP
3016   fi
3017 else
3018   STRIP="$ac_cv_prog_STRIP"
3019 fi
3020
3021 fi
3022 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3023
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3025 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3026 if test -z "$MKDIR_P"; then
3027   if ${ac_cv_path_mkdir+:} false; then :
3028   $as_echo_n "(cached) " >&6
3029 else
3030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3032 do
3033   IFS=$as_save_IFS
3034   test -z "$as_dir" && as_dir=.
3035     for ac_prog in mkdir gmkdir; do
3036          for ac_exec_ext in '' $ac_executable_extensions; do
3037            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3038            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3039              'mkdir (GNU coreutils) '* | \
3040              'mkdir (coreutils) '* | \
3041              'mkdir (fileutils) '4.1*)
3042                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3043                break 3;;
3044            esac
3045          done
3046        done
3047   done
3048 IFS=$as_save_IFS
3049
3050 fi
3051
3052   test -d ./--version && rmdir ./--version
3053   if test "${ac_cv_path_mkdir+set}" = set; then
3054     MKDIR_P="$ac_cv_path_mkdir -p"
3055   else
3056     # As a last resort, use the slow shell script.  Don't cache a
3057     # value for MKDIR_P within a source directory, because that will
3058     # break other packages using the cache if that directory is
3059     # removed, or if the value is a relative name.
3060     MKDIR_P="$ac_install_sh -d"
3061   fi
3062 fi
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3064 $as_echo "$MKDIR_P" >&6; }
3065
3066 mkdir_p="$MKDIR_P"
3067 case $mkdir_p in
3068   [\\/$]* | ?:[\\/]*) ;;
3069   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3070 esac
3071
3072 for ac_prog in gawk mawk nawk awk
3073 do
3074   # Extract the first word of "$ac_prog", so it can be a program name with args.
3075 set dummy $ac_prog; ac_word=$2
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if ${ac_cv_prog_AWK+:} false; then :
3079   $as_echo_n "(cached) " >&6
3080 else
3081   if test -n "$AWK"; then
3082   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3086 do
3087   IFS=$as_save_IFS
3088   test -z "$as_dir" && as_dir=.
3089     for ac_exec_ext in '' $ac_executable_extensions; do
3090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091     ac_cv_prog_AWK="$ac_prog"
3092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093     break 2
3094   fi
3095 done
3096   done
3097 IFS=$as_save_IFS
3098
3099 fi
3100 fi
3101 AWK=$ac_cv_prog_AWK
3102 if test -n "$AWK"; then
3103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3104 $as_echo "$AWK" >&6; }
3105 else
3106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3108 fi
3109
3110
3111   test -n "$AWK" && break
3112 done
3113
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3115 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3116 set x ${MAKE-make}
3117 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3118 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3119   $as_echo_n "(cached) " >&6
3120 else
3121   cat >conftest.make <<\_ACEOF
3122 SHELL = /bin/sh
3123 all:
3124         @echo '@@@%%%=$(MAKE)=@@@%%%'
3125 _ACEOF
3126 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3127 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3128   *@@@%%%=?*=@@@%%%*)
3129     eval ac_cv_prog_make_${ac_make}_set=yes;;
3130   *)
3131     eval ac_cv_prog_make_${ac_make}_set=no;;
3132 esac
3133 rm -f conftest.make
3134 fi
3135 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3137 $as_echo "yes" >&6; }
3138   SET_MAKE=
3139 else
3140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141 $as_echo "no" >&6; }
3142   SET_MAKE="MAKE=${MAKE-make}"
3143 fi
3144
3145 rm -rf .tst 2>/dev/null
3146 mkdir .tst 2>/dev/null
3147 if test -d .tst; then
3148   am__leading_dot=.
3149 else
3150   am__leading_dot=_
3151 fi
3152 rmdir .tst 2>/dev/null
3153
3154 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3155   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3156   # is not polluted with repeated "-I."
3157   am__isrc=' -I$(srcdir)'
3158   # test to see if srcdir already configured
3159   if test -f $srcdir/config.status; then
3160     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3161   fi
3162 fi
3163
3164 # test whether we have cygpath
3165 if test -z "$CYGPATH_W"; then
3166   if (cygpath --version) >/dev/null 2>/dev/null; then
3167     CYGPATH_W='cygpath -w'
3168   else
3169     CYGPATH_W=echo
3170   fi
3171 fi
3172
3173
3174 # Define the identity of the package.
3175  PACKAGE='glog'
3176  VERSION='0.3.2'
3177
3178
3179 cat >>confdefs.h <<_ACEOF
3180 #define PACKAGE "$PACKAGE"
3181 _ACEOF
3182
3183
3184 cat >>confdefs.h <<_ACEOF
3185 #define VERSION "$VERSION"
3186 _ACEOF
3187
3188 # Some tools Automake needs.
3189
3190 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3191
3192
3193 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3194
3195
3196 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3197
3198
3199 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3200
3201
3202 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3203
3204 # We need awk for the "check" target.  The system "awk" is bad on
3205 # some platforms.
3206 # Always define AMTAR for backward compatibility.  Yes, it's still used
3207 # in the wild :-(  We should find a proper way to deprecate it ...
3208 AMTAR='$${TAR-tar}'
3209
3210 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3211
3212
3213
3214
3215
3216 ac_config_headers="$ac_config_headers src/config.h"
3217
3218
3219 ac_ext=cpp
3220 ac_cpp='$CXXCPP $CPPFLAGS'
3221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3224
3225
3226 # Checks for programs.
3227 ac_ext=c
3228 ac_cpp='$CPP $CPPFLAGS'
3229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3232 if test -n "$ac_tool_prefix"; then
3233   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3234 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if ${ac_cv_prog_CC+:} false; then :
3238   $as_echo_n "(cached) " >&6
3239 else
3240   if test -n "$CC"; then
3241   ac_cv_prog_CC="$CC" # Let the user override the test.
3242 else
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 for as_dir in $PATH
3245 do
3246   IFS=$as_save_IFS
3247   test -z "$as_dir" && as_dir=.
3248     for ac_exec_ext in '' $ac_executable_extensions; do
3249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3250     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3252     break 2
3253   fi
3254 done
3255   done
3256 IFS=$as_save_IFS
3257
3258 fi
3259 fi
3260 CC=$ac_cv_prog_CC
3261 if test -n "$CC"; then
3262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3263 $as_echo "$CC" >&6; }
3264 else
3265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3267 fi
3268
3269
3270 fi
3271 if test -z "$ac_cv_prog_CC"; then
3272   ac_ct_CC=$CC
3273   # Extract the first word of "gcc", so it can be a program name with args.
3274 set dummy gcc; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3278   $as_echo_n "(cached) " >&6
3279 else
3280   if test -n "$ac_ct_CC"; then
3281   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3285 do
3286   IFS=$as_save_IFS
3287   test -z "$as_dir" && as_dir=.
3288     for ac_exec_ext in '' $ac_executable_extensions; do
3289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290     ac_cv_prog_ac_ct_CC="gcc"
3291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292     break 2
3293   fi
3294 done
3295   done
3296 IFS=$as_save_IFS
3297
3298 fi
3299 fi
3300 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3301 if test -n "$ac_ct_CC"; then
3302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3303 $as_echo "$ac_ct_CC" >&6; }
3304 else
3305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 fi
3308
3309   if test "x$ac_ct_CC" = x; then
3310     CC=""
3311   else
3312     case $cross_compiling:$ac_tool_warned in
3313 yes:)
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3316 ac_tool_warned=yes ;;
3317 esac
3318     CC=$ac_ct_CC
3319   fi
3320 else
3321   CC="$ac_cv_prog_CC"
3322 fi
3323
3324 if test -z "$CC"; then
3325           if test -n "$ac_tool_prefix"; then
3326     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3327 set dummy ${ac_tool_prefix}cc; ac_word=$2
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329 $as_echo_n "checking for $ac_word... " >&6; }
3330 if ${ac_cv_prog_CC+:} false; then :
3331   $as_echo_n "(cached) " >&6
3332 else
3333   if test -n "$CC"; then
3334   ac_cv_prog_CC="$CC" # Let the user override the test.
3335 else
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 for as_dir in $PATH
3338 do
3339   IFS=$as_save_IFS
3340   test -z "$as_dir" && as_dir=.
3341     for ac_exec_ext in '' $ac_executable_extensions; do
3342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3343     ac_cv_prog_CC="${ac_tool_prefix}cc"
3344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3345     break 2
3346   fi
3347 done
3348   done
3349 IFS=$as_save_IFS
3350
3351 fi
3352 fi
3353 CC=$ac_cv_prog_CC
3354 if test -n "$CC"; then
3355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3356 $as_echo "$CC" >&6; }
3357 else
3358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3360 fi
3361
3362
3363   fi
3364 fi
3365 if test -z "$CC"; then
3366   # Extract the first word of "cc", so it can be a program name with args.
3367 set dummy cc; ac_word=$2
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369 $as_echo_n "checking for $ac_word... " >&6; }
3370 if ${ac_cv_prog_CC+:} false; then :
3371   $as_echo_n "(cached) " >&6
3372 else
3373   if test -n "$CC"; then
3374   ac_cv_prog_CC="$CC" # Let the user override the test.
3375 else
3376   ac_prog_rejected=no
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH
3379 do
3380   IFS=$as_save_IFS
3381   test -z "$as_dir" && as_dir=.
3382     for ac_exec_ext in '' $ac_executable_extensions; do
3383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3384     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3385        ac_prog_rejected=yes
3386        continue
3387      fi
3388     ac_cv_prog_CC="cc"
3389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3390     break 2
3391   fi
3392 done
3393   done
3394 IFS=$as_save_IFS
3395
3396 if test $ac_prog_rejected = yes; then
3397   # We found a bogon in the path, so make sure we never use it.
3398   set dummy $ac_cv_prog_CC
3399   shift
3400   if test $# != 0; then
3401     # We chose a different compiler from the bogus one.
3402     # However, it has the same basename, so the bogon will be chosen
3403     # first if we set CC to just the basename; use the full file name.
3404     shift
3405     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3406   fi
3407 fi
3408 fi
3409 fi
3410 CC=$ac_cv_prog_CC
3411 if test -n "$CC"; then
3412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3413 $as_echo "$CC" >&6; }
3414 else
3415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416 $as_echo "no" >&6; }
3417 fi
3418
3419
3420 fi
3421 if test -z "$CC"; then
3422   if test -n "$ac_tool_prefix"; then
3423   for ac_prog in cl.exe
3424   do
3425     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3426 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428 $as_echo_n "checking for $ac_word... " >&6; }
3429 if ${ac_cv_prog_CC+:} false; then :
3430   $as_echo_n "(cached) " >&6
3431 else
3432   if test -n "$CC"; then
3433   ac_cv_prog_CC="$CC" # Let the user override the test.
3434 else
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 for as_dir in $PATH
3437 do
3438   IFS=$as_save_IFS
3439   test -z "$as_dir" && as_dir=.
3440     for ac_exec_ext in '' $ac_executable_extensions; do
3441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3442     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3444     break 2
3445   fi
3446 done
3447   done
3448 IFS=$as_save_IFS
3449
3450 fi
3451 fi
3452 CC=$ac_cv_prog_CC
3453 if test -n "$CC"; then
3454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3455 $as_echo "$CC" >&6; }
3456 else
3457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458 $as_echo "no" >&6; }
3459 fi
3460
3461
3462     test -n "$CC" && break
3463   done
3464 fi
3465 if test -z "$CC"; then
3466   ac_ct_CC=$CC
3467   for ac_prog in cl.exe
3468 do
3469   # Extract the first word of "$ac_prog", so it can be a program name with args.
3470 set dummy $ac_prog; ac_word=$2
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472 $as_echo_n "checking for $ac_word... " >&6; }
3473 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3474   $as_echo_n "(cached) " >&6
3475 else
3476   if test -n "$ac_ct_CC"; then
3477   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3478 else
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 for as_dir in $PATH
3481 do
3482   IFS=$as_save_IFS
3483   test -z "$as_dir" && as_dir=.
3484     for ac_exec_ext in '' $ac_executable_extensions; do
3485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3486     ac_cv_prog_ac_ct_CC="$ac_prog"
3487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3488     break 2
3489   fi
3490 done
3491   done
3492 IFS=$as_save_IFS
3493
3494 fi
3495 fi
3496 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3497 if test -n "$ac_ct_CC"; then
3498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3499 $as_echo "$ac_ct_CC" >&6; }
3500 else
3501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502 $as_echo "no" >&6; }
3503 fi
3504
3505
3506   test -n "$ac_ct_CC" && break
3507 done
3508
3509   if test "x$ac_ct_CC" = x; then
3510     CC=""
3511   else
3512     case $cross_compiling:$ac_tool_warned in
3513 yes:)
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3516 ac_tool_warned=yes ;;
3517 esac
3518     CC=$ac_ct_CC
3519   fi
3520 fi
3521
3522 fi
3523
3524
3525 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527 as_fn_error $? "no acceptable C compiler found in \$PATH
3528 See \`config.log' for more details" "$LINENO" 5; }
3529
3530 # Provide some information about the compiler.
3531 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3532 set X $ac_compile
3533 ac_compiler=$2
3534 for ac_option in --version -v -V -qversion; do
3535   { { ac_try="$ac_compiler $ac_option >&5"
3536 case "(($ac_try" in
3537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538   *) ac_try_echo=$ac_try;;
3539 esac
3540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3541 $as_echo "$ac_try_echo"; } >&5
3542   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3543   ac_status=$?
3544   if test -s conftest.err; then
3545     sed '10a\
3546 ... rest of stderr output deleted ...
3547          10q' conftest.err >conftest.er1
3548     cat conftest.er1 >&5
3549   fi
3550   rm -f conftest.er1 conftest.err
3551   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3552   test $ac_status = 0; }
3553 done
3554
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h.  */
3557
3558 int
3559 main ()
3560 {
3561
3562   ;
3563   return 0;
3564 }
3565 _ACEOF
3566 ac_clean_files_save=$ac_clean_files
3567 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3568 # Try to create an executable without -o first, disregard a.out.
3569 # It will help us diagnose broken compilers, and finding out an intuition
3570 # of exeext.
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3572 $as_echo_n "checking whether the C compiler works... " >&6; }
3573 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3574
3575 # The possible output files:
3576 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3577
3578 ac_rmfiles=
3579 for ac_file in $ac_files
3580 do
3581   case $ac_file in
3582     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3583     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3584   esac
3585 done
3586 rm -f $ac_rmfiles
3587
3588 if { { ac_try="$ac_link_default"
3589 case "(($ac_try" in
3590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591   *) ac_try_echo=$ac_try;;
3592 esac
3593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3594 $as_echo "$ac_try_echo"; } >&5
3595   (eval "$ac_link_default") 2>&5
3596   ac_status=$?
3597   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3598   test $ac_status = 0; }; then :
3599   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3600 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3601 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3602 # so that the user can short-circuit this test for compilers unknown to
3603 # Autoconf.
3604 for ac_file in $ac_files ''
3605 do
3606   test -f "$ac_file" || continue
3607   case $ac_file in
3608     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3609         ;;
3610     [ab].out )
3611         # We found the default executable, but exeext='' is most
3612         # certainly right.
3613         break;;
3614     *.* )
3615         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3616         then :; else
3617            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3618         fi
3619         # We set ac_cv_exeext here because the later test for it is not
3620         # safe: cross compilers may not add the suffix if given an `-o'
3621         # argument, so we may need to know it at that point already.
3622         # Even if this section looks crufty: it has the advantage of
3623         # actually working.
3624         break;;
3625     * )
3626         break;;
3627   esac
3628 done
3629 test "$ac_cv_exeext" = no && ac_cv_exeext=
3630
3631 else
3632   ac_file=''
3633 fi
3634 if test -z "$ac_file"; then :
3635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636 $as_echo "no" >&6; }
3637 $as_echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3639
3640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3642 as_fn_error 77 "C compiler cannot create executables
3643 See \`config.log' for more details" "$LINENO" 5; }
3644 else
3645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3646 $as_echo "yes" >&6; }
3647 fi
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3649 $as_echo_n "checking for C compiler default output file name... " >&6; }
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3651 $as_echo "$ac_file" >&6; }
3652 ac_exeext=$ac_cv_exeext
3653
3654 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3655 ac_clean_files=$ac_clean_files_save
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3657 $as_echo_n "checking for suffix of executables... " >&6; }
3658 if { { ac_try="$ac_link"
3659 case "(($ac_try" in
3660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661   *) ac_try_echo=$ac_try;;
3662 esac
3663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3664 $as_echo "$ac_try_echo"; } >&5
3665   (eval "$ac_link") 2>&5
3666   ac_status=$?
3667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3668   test $ac_status = 0; }; then :
3669   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3670 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3671 # work properly (i.e., refer to `conftest.exe'), while it won't with
3672 # `rm'.
3673 for ac_file in conftest.exe conftest conftest.*; do
3674   test -f "$ac_file" || continue
3675   case $ac_file in
3676     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3677     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3678           break;;
3679     * ) break;;
3680   esac
3681 done
3682 else
3683   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3685 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3686 See \`config.log' for more details" "$LINENO" 5; }
3687 fi
3688 rm -f conftest conftest$ac_cv_exeext
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3690 $as_echo "$ac_cv_exeext" >&6; }
3691
3692 rm -f conftest.$ac_ext
3693 EXEEXT=$ac_cv_exeext
3694 ac_exeext=$EXEEXT
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h.  */
3697 #include <stdio.h>
3698 int
3699 main ()
3700 {
3701 FILE *f = fopen ("conftest.out", "w");
3702  return ferror (f) || fclose (f) != 0;
3703
3704   ;
3705   return 0;
3706 }
3707 _ACEOF
3708 ac_clean_files="$ac_clean_files conftest.out"
3709 # Check that the compiler produces executables we can run.  If not, either
3710 # the compiler is broken, or we cross compile.
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3712 $as_echo_n "checking whether we are cross compiling... " >&6; }
3713 if test "$cross_compiling" != yes; then
3714   { { ac_try="$ac_link"
3715 case "(($ac_try" in
3716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717   *) ac_try_echo=$ac_try;;
3718 esac
3719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3720 $as_echo "$ac_try_echo"; } >&5
3721   (eval "$ac_link") 2>&5
3722   ac_status=$?
3723   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3724   test $ac_status = 0; }
3725   if { ac_try='./conftest$ac_cv_exeext'
3726   { { case "(($ac_try" in
3727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728   *) ac_try_echo=$ac_try;;
3729 esac
3730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3731 $as_echo "$ac_try_echo"; } >&5
3732   (eval "$ac_try") 2>&5
3733   ac_status=$?
3734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3735   test $ac_status = 0; }; }; then
3736     cross_compiling=no
3737   else
3738     if test "$cross_compiling" = maybe; then
3739         cross_compiling=yes
3740     else
3741         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3743 as_fn_error $? "cannot run C compiled programs.
3744 If you meant to cross compile, use \`--host'.
3745 See \`config.log' for more details" "$LINENO" 5; }
3746     fi
3747   fi
3748 fi
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3750 $as_echo "$cross_compiling" >&6; }
3751
3752 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3753 ac_clean_files=$ac_clean_files_save
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3755 $as_echo_n "checking for suffix of object files... " >&6; }
3756 if ${ac_cv_objext+:} false; then :
3757   $as_echo_n "(cached) " >&6
3758 else
3759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h.  */
3761
3762 int
3763 main ()
3764 {
3765
3766   ;
3767   return 0;
3768 }
3769 _ACEOF
3770 rm -f conftest.o conftest.obj
3771 if { { ac_try="$ac_compile"
3772 case "(($ac_try" in
3773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774   *) ac_try_echo=$ac_try;;
3775 esac
3776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3777 $as_echo "$ac_try_echo"; } >&5
3778   (eval "$ac_compile") 2>&5
3779   ac_status=$?
3780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3781   test $ac_status = 0; }; then :
3782   for ac_file in conftest.o conftest.obj conftest.*; do
3783   test -f "$ac_file" || continue;
3784   case $ac_file in
3785     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3786     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3787        break;;
3788   esac
3789 done
3790 else
3791   $as_echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3793
3794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3796 as_fn_error $? "cannot compute suffix of object files: cannot compile
3797 See \`config.log' for more details" "$LINENO" 5; }
3798 fi
3799 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3800 fi
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3802 $as_echo "$ac_cv_objext" >&6; }
3803 OBJEXT=$ac_cv_objext
3804 ac_objext=$OBJEXT
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3806 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3807 if ${ac_cv_c_compiler_gnu+:} false; then :
3808   $as_echo_n "(cached) " >&6
3809 else
3810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h.  */
3812
3813 int
3814 main ()
3815 {
3816 #ifndef __GNUC__
3817        choke me
3818 #endif
3819
3820   ;
3821   return 0;
3822 }
3823 _ACEOF
3824 if ac_fn_c_try_compile "$LINENO"; then :
3825   ac_compiler_gnu=yes
3826 else
3827   ac_compiler_gnu=no
3828 fi
3829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3830 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3831
3832 fi
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3834 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3835 if test $ac_compiler_gnu = yes; then
3836   GCC=yes
3837 else
3838   GCC=
3839 fi
3840 ac_test_CFLAGS=${CFLAGS+set}
3841 ac_save_CFLAGS=$CFLAGS
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3843 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3844 if ${ac_cv_prog_cc_g+:} false; then :
3845   $as_echo_n "(cached) " >&6
3846 else
3847   ac_save_c_werror_flag=$ac_c_werror_flag
3848    ac_c_werror_flag=yes
3849    ac_cv_prog_cc_g=no
3850    CFLAGS="-g"
3851    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h.  */
3853
3854 int
3855 main ()
3856 {
3857
3858   ;
3859   return 0;
3860 }
3861 _ACEOF
3862 if ac_fn_c_try_compile "$LINENO"; then :
3863   ac_cv_prog_cc_g=yes
3864 else
3865   CFLAGS=""
3866       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h.  */
3868
3869 int
3870 main ()
3871 {
3872
3873   ;
3874   return 0;
3875 }
3876 _ACEOF
3877 if ac_fn_c_try_compile "$LINENO"; then :
3878
3879 else
3880   ac_c_werror_flag=$ac_save_c_werror_flag
3881          CFLAGS="-g"
3882          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h.  */
3884
3885 int
3886 main ()
3887 {
3888
3889   ;
3890   return 0;
3891 }
3892 _ACEOF
3893 if ac_fn_c_try_compile "$LINENO"; then :
3894   ac_cv_prog_cc_g=yes
3895 fi
3896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3897 fi
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899 fi
3900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901    ac_c_werror_flag=$ac_save_c_werror_flag
3902 fi
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3904 $as_echo "$ac_cv_prog_cc_g" >&6; }
3905 if test "$ac_test_CFLAGS" = set; then
3906   CFLAGS=$ac_save_CFLAGS
3907 elif test $ac_cv_prog_cc_g = yes; then
3908   if test "$GCC" = yes; then
3909     CFLAGS="-g -O2"
3910   else
3911     CFLAGS="-g"
3912   fi
3913 else
3914   if test "$GCC" = yes; then
3915     CFLAGS="-O2"
3916   else
3917     CFLAGS=
3918   fi
3919 fi
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3921 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3922 if ${ac_cv_prog_cc_c89+:} false; then :
3923   $as_echo_n "(cached) " >&6
3924 else
3925   ac_cv_prog_cc_c89=no
3926 ac_save_CC=$CC
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h.  */
3929 #include <stdarg.h>
3930 #include <stdio.h>
3931 #include <sys/types.h>
3932 #include <sys/stat.h>
3933 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3934 struct buf { int x; };
3935 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3936 static char *e (p, i)
3937      char **p;
3938      int i;
3939 {
3940   return p[i];
3941 }
3942 static char *f (char * (*g) (char **, int), char **p, ...)
3943 {
3944   char *s;
3945   va_list v;
3946   va_start (v,p);
3947   s = g (p, va_arg (v,int));
3948   va_end (v);
3949   return s;
3950 }
3951
3952 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3953    function prototypes and stuff, but not '\xHH' hex character constants.
3954    These don't provoke an error unfortunately, instead are silently treated
3955    as 'x'.  The following induces an error, until -std is added to get
3956    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3957    array size at least.  It's necessary to write '\x00'==0 to get something
3958    that's true only with -std.  */
3959 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3960
3961 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3962    inside strings and character constants.  */
3963 #define FOO(x) 'x'
3964 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3965
3966 int test (int i, double x);
3967 struct s1 {int (*f) (int a);};
3968 struct s2 {int (*f) (double a);};
3969 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3970 int argc;
3971 char **argv;
3972 int
3973 main ()
3974 {
3975 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3976   ;
3977   return 0;
3978 }
3979 _ACEOF
3980 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3981         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3982 do
3983   CC="$ac_save_CC $ac_arg"
3984   if ac_fn_c_try_compile "$LINENO"; then :
3985   ac_cv_prog_cc_c89=$ac_arg
3986 fi
3987 rm -f core conftest.err conftest.$ac_objext
3988   test "x$ac_cv_prog_cc_c89" != "xno" && break
3989 done
3990 rm -f conftest.$ac_ext
3991 CC=$ac_save_CC
3992
3993 fi
3994 # AC_CACHE_VAL
3995 case "x$ac_cv_prog_cc_c89" in
3996   x)
3997     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3998 $as_echo "none needed" >&6; } ;;
3999   xno)
4000     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4001 $as_echo "unsupported" >&6; } ;;
4002   *)
4003     CC="$CC $ac_cv_prog_cc_c89"
4004     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4005 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4006 esac
4007 if test "x$ac_cv_prog_cc_c89" != xno; then :
4008
4009 fi
4010
4011 ac_ext=cpp
4012 ac_cpp='$CXXCPP $CPPFLAGS'
4013 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4014 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4015 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4016 DEPDIR="${am__leading_dot}deps"
4017
4018 ac_config_commands="$ac_config_commands depfiles"
4019
4020
4021 am_make=${MAKE-make}
4022 cat > confinc << 'END'
4023 am__doit:
4024         @echo this is the am__doit target
4025 .PHONY: am__doit
4026 END
4027 # If we don't find an include directive, just comment out the code.
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4029 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4030 am__include="#"
4031 am__quote=
4032 _am_result=none
4033 # First try GNU make style include.
4034 echo "include confinc" > confmf
4035 # Ignore all kinds of additional output from `make'.
4036 case `$am_make -s -f confmf 2> /dev/null` in #(
4037 *the\ am__doit\ target*)
4038   am__include=include
4039   am__quote=
4040   _am_result=GNU
4041   ;;
4042 esac
4043 # Now try BSD make style include.
4044 if test "$am__include" = "#"; then
4045    echo '.include "confinc"' > confmf
4046    case `$am_make -s -f confmf 2> /dev/null` in #(
4047    *the\ am__doit\ target*)
4048      am__include=.include
4049      am__quote="\""
4050      _am_result=BSD
4051      ;;
4052    esac
4053 fi
4054
4055
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4057 $as_echo "$_am_result" >&6; }
4058 rm -f confinc confmf
4059
4060 # Check whether --enable-dependency-tracking was given.
4061 if test "${enable_dependency_tracking+set}" = set; then :
4062   enableval=$enable_dependency_tracking;
4063 fi
4064
4065 if test "x$enable_dependency_tracking" != xno; then
4066   am_depcomp="$ac_aux_dir/depcomp"
4067   AMDEPBACKSLASH='\'
4068   am__nodep='_no'
4069 fi
4070  if test "x$enable_dependency_tracking" != xno; then
4071   AMDEP_TRUE=
4072   AMDEP_FALSE='#'
4073 else
4074   AMDEP_TRUE='#'
4075   AMDEP_FALSE=
4076 fi
4077
4078
4079
4080 depcc="$CC"   am_compiler_list=
4081
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4083 $as_echo_n "checking dependency style of $depcc... " >&6; }
4084 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4085   $as_echo_n "(cached) " >&6
4086 else
4087   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4088   # We make a subdir and do the tests there.  Otherwise we can end up
4089   # making bogus files that we don't know about and never remove.  For
4090   # instance it was reported that on HP-UX the gcc test will end up
4091   # making a dummy file named `D' -- because `-MD' means `put the output
4092   # in D'.
4093   rm -rf conftest.dir
4094   mkdir conftest.dir
4095   # Copy depcomp to subdir because otherwise we won't find it if we're
4096   # using a relative directory.
4097   cp "$am_depcomp" conftest.dir
4098   cd conftest.dir
4099   # We will build objects and dependencies in a subdirectory because
4100   # it helps to detect inapplicable dependency modes.  For instance
4101   # both Tru64's cc and ICC support -MD to output dependencies as a
4102   # side effect of compilation, but ICC will put the dependencies in
4103   # the current directory while Tru64 will put them in the object
4104   # directory.
4105   mkdir sub
4106
4107   am_cv_CC_dependencies_compiler_type=none
4108   if test "$am_compiler_list" = ""; then
4109      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4110   fi
4111   am__universal=false
4112   case " $depcc " in #(
4113      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4114      esac
4115
4116   for depmode in $am_compiler_list; do
4117     # Setup a source with many dependencies, because some compilers
4118     # like to wrap large dependency lists on column 80 (with \), and
4119     # we should not choose a depcomp mode which is confused by this.
4120     #
4121     # We need to recreate these files for each test, as the compiler may
4122     # overwrite some of them when testing with obscure command lines.
4123     # This happens at least with the AIX C compiler.
4124     : > sub/conftest.c
4125     for i in 1 2 3 4 5 6; do
4126       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4127       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4128       # Solaris 8's {/usr,}/bin/sh.
4129       touch sub/conftst$i.h
4130     done
4131     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4132
4133     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4134     # mode.  It turns out that the SunPro C++ compiler does not properly
4135     # handle `-M -o', and we need to detect this.  Also, some Intel
4136     # versions had trouble with output in subdirs
4137     am__obj=sub/conftest.${OBJEXT-o}
4138     am__minus_obj="-o $am__obj"
4139     case $depmode in
4140     gcc)
4141       # This depmode causes a compiler race in universal mode.
4142       test "$am__universal" = false || continue
4143       ;;
4144     nosideeffect)
4145       # after this tag, mechanisms are not by side-effect, so they'll
4146       # only be used when explicitly requested
4147       if test "x$enable_dependency_tracking" = xyes; then
4148         continue
4149       else
4150         break
4151       fi
4152       ;;
4153     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4154       # This compiler won't grok `-c -o', but also, the minuso test has
4155       # not run yet.  These depmodes are late enough in the game, and
4156       # so weak that their functioning should not be impacted.
4157       am__obj=conftest.${OBJEXT-o}
4158       am__minus_obj=
4159       ;;
4160     none) break ;;
4161     esac
4162     if depmode=$depmode \
4163        source=sub/conftest.c object=$am__obj \
4164        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4165        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4166          >/dev/null 2>conftest.err &&
4167        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4168        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4169        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4170        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4171       # icc doesn't choke on unknown options, it will just issue warnings
4172       # or remarks (even with -Werror).  So we grep stderr for any message
4173       # that says an option was ignored or not supported.
4174       # When given -MP, icc 7.0 and 7.1 complain thusly:
4175       #   icc: Command line warning: ignoring option '-M'; no argument required
4176       # The diagnosis changed in icc 8.0:
4177       #   icc: Command line remark: option '-MP' not supported
4178       if (grep 'ignoring option' conftest.err ||
4179           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4180         am_cv_CC_dependencies_compiler_type=$depmode
4181         break
4182       fi
4183     fi
4184   done
4185
4186   cd ..
4187   rm -rf conftest.dir
4188 else
4189   am_cv_CC_dependencies_compiler_type=none
4190 fi
4191
4192 fi
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4194 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4195 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4196
4197  if
4198   test "x$enable_dependency_tracking" != xno \
4199   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4200   am__fastdepCC_TRUE=
4201   am__fastdepCC_FALSE='#'
4202 else
4203   am__fastdepCC_TRUE='#'
4204   am__fastdepCC_FALSE=
4205 fi
4206
4207
4208 ac_ext=c
4209 ac_cpp='$CPP $CPPFLAGS'
4210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4214 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4215 # On Suns, sometimes $CPP names a directory.
4216 if test -n "$CPP" && test -d "$CPP"; then
4217   CPP=
4218 fi
4219 if test -z "$CPP"; then
4220   if ${ac_cv_prog_CPP+:} false; then :
4221   $as_echo_n "(cached) " >&6
4222 else
4223       # Double quotes because CPP needs to be expanded
4224     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4225     do
4226       ac_preproc_ok=false
4227 for ac_c_preproc_warn_flag in '' yes
4228 do
4229   # Use a header file that comes with gcc, so configuring glibc
4230   # with a fresh cross-compiler works.
4231   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4232   # <limits.h> exists even on freestanding compilers.
4233   # On the NeXT, cc -E runs the code through the compiler's parser,
4234   # not just through cpp. "Syntax error" is here to catch this case.
4235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h.  */
4237 #ifdef __STDC__
4238 # include <limits.h>
4239 #else
4240 # include <assert.h>
4241 #endif
4242                      Syntax error
4243 _ACEOF
4244 if ac_fn_c_try_cpp "$LINENO"; then :
4245
4246 else
4247   # Broken: fails on valid input.
4248 continue
4249 fi
4250 rm -f conftest.err conftest.i conftest.$ac_ext
4251
4252   # OK, works on sane cases.  Now check whether nonexistent headers
4253   # can be detected and how.
4254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h.  */
4256 #include <ac_nonexistent.h>
4257 _ACEOF
4258 if ac_fn_c_try_cpp "$LINENO"; then :
4259   # Broken: success on invalid input.
4260 continue
4261 else
4262   # Passes both tests.
4263 ac_preproc_ok=:
4264 break
4265 fi
4266 rm -f conftest.err conftest.i conftest.$ac_ext
4267
4268 done
4269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4270 rm -f conftest.i conftest.err conftest.$ac_ext
4271 if $ac_preproc_ok; then :
4272   break
4273 fi
4274
4275     done
4276     ac_cv_prog_CPP=$CPP
4277
4278 fi
4279   CPP=$ac_cv_prog_CPP
4280 else
4281   ac_cv_prog_CPP=$CPP
4282 fi
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4284 $as_echo "$CPP" >&6; }
4285 ac_preproc_ok=false
4286 for ac_c_preproc_warn_flag in '' yes
4287 do
4288   # Use a header file that comes with gcc, so configuring glibc
4289   # with a fresh cross-compiler works.
4290   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4291   # <limits.h> exists even on freestanding compilers.
4292   # On the NeXT, cc -E runs the code through the compiler's parser,
4293   # not just through cpp. "Syntax error" is here to catch this case.
4294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h.  */
4296 #ifdef __STDC__
4297 # include <limits.h>
4298 #else
4299 # include <assert.h>
4300 #endif
4301                      Syntax error
4302 _ACEOF
4303 if ac_fn_c_try_cpp "$LINENO"; then :
4304
4305 else
4306   # Broken: fails on valid input.
4307 continue
4308 fi
4309 rm -f conftest.err conftest.i conftest.$ac_ext
4310
4311   # OK, works on sane cases.  Now check whether nonexistent headers
4312   # can be detected and how.
4313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h.  */
4315 #include <ac_nonexistent.h>
4316 _ACEOF
4317 if ac_fn_c_try_cpp "$LINENO"; then :
4318   # Broken: success on invalid input.
4319 continue
4320 else
4321   # Passes both tests.
4322 ac_preproc_ok=:
4323 break
4324 fi
4325 rm -f conftest.err conftest.i conftest.$ac_ext
4326
4327 done
4328 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4329 rm -f conftest.i conftest.err conftest.$ac_ext
4330 if $ac_preproc_ok; then :
4331
4332 else
4333   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4335 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4336 See \`config.log' for more details" "$LINENO" 5; }
4337 fi
4338
4339 ac_ext=cpp
4340 ac_cpp='$CXXCPP $CPPFLAGS'
4341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4344
4345 ac_ext=cpp
4346 ac_cpp='$CXXCPP $CPPFLAGS'
4347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4350 if test -z "$CXX"; then
4351   if test -n "$CCC"; then
4352     CXX=$CCC
4353   else
4354     if test -n "$ac_tool_prefix"; then
4355   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4356   do
4357     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4358 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360 $as_echo_n "checking for $ac_word... " >&6; }
4361 if ${ac_cv_prog_CXX+:} false; then :
4362   $as_echo_n "(cached) " >&6
4363 else
4364   if test -n "$CXX"; then
4365   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4366 else
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 for as_dir in $PATH
4369 do
4370   IFS=$as_save_IFS
4371   test -z "$as_dir" && as_dir=.
4372     for ac_exec_ext in '' $ac_executable_extensions; do
4373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4374     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4376     break 2
4377   fi
4378 done
4379   done
4380 IFS=$as_save_IFS
4381
4382 fi
4383 fi
4384 CXX=$ac_cv_prog_CXX
4385 if test -n "$CXX"; then
4386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4387 $as_echo "$CXX" >&6; }
4388 else
4389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390 $as_echo "no" >&6; }
4391 fi
4392
4393
4394     test -n "$CXX" && break
4395   done
4396 fi
4397 if test -z "$CXX"; then
4398   ac_ct_CXX=$CXX
4399   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4400 do
4401   # Extract the first word of "$ac_prog", so it can be a program name with args.
4402 set dummy $ac_prog; ac_word=$2
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404 $as_echo_n "checking for $ac_word... " >&6; }
4405 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4406   $as_echo_n "(cached) " >&6
4407 else
4408   if test -n "$ac_ct_CXX"; then
4409   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4410 else
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH
4413 do
4414   IFS=$as_save_IFS
4415   test -z "$as_dir" && as_dir=.
4416     for ac_exec_ext in '' $ac_executable_extensions; do
4417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4418     ac_cv_prog_ac_ct_CXX="$ac_prog"
4419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4420     break 2
4421   fi
4422 done
4423   done
4424 IFS=$as_save_IFS
4425
4426 fi
4427 fi
4428 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4429 if test -n "$ac_ct_CXX"; then
4430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4431 $as_echo "$ac_ct_CXX" >&6; }
4432 else
4433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434 $as_echo "no" >&6; }
4435 fi
4436
4437
4438   test -n "$ac_ct_CXX" && break
4439 done
4440
4441   if test "x$ac_ct_CXX" = x; then
4442     CXX="g++"
4443   else
4444     case $cross_compiling:$ac_tool_warned in
4445 yes:)
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4448 ac_tool_warned=yes ;;
4449 esac
4450     CXX=$ac_ct_CXX
4451   fi
4452 fi
4453
4454   fi
4455 fi
4456 # Provide some information about the compiler.
4457 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4458 set X $ac_compile
4459 ac_compiler=$2
4460 for ac_option in --version -v -V -qversion; do
4461   { { ac_try="$ac_compiler $ac_option >&5"
4462 case "(($ac_try" in
4463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464   *) ac_try_echo=$ac_try;;
4465 esac
4466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4467 $as_echo "$ac_try_echo"; } >&5
4468   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4469   ac_status=$?
4470   if test -s conftest.err; then
4471     sed '10a\
4472 ... rest of stderr output deleted ...
4473          10q' conftest.err >conftest.er1
4474     cat conftest.er1 >&5
4475   fi
4476   rm -f conftest.er1 conftest.err
4477   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4478   test $ac_status = 0; }
4479 done
4480
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4482 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4483 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4484   $as_echo_n "(cached) " >&6
4485 else
4486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h.  */
4488
4489 int
4490 main ()
4491 {
4492 #ifndef __GNUC__
4493        choke me
4494 #endif
4495
4496   ;
4497   return 0;
4498 }
4499 _ACEOF
4500 if ac_fn_cxx_try_compile "$LINENO"; then :
4501   ac_compiler_gnu=yes
4502 else
4503   ac_compiler_gnu=no
4504 fi
4505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4506 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4507
4508 fi
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4510 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4511 if test $ac_compiler_gnu = yes; then
4512   GXX=yes
4513 else
4514   GXX=
4515 fi
4516 ac_test_CXXFLAGS=${CXXFLAGS+set}
4517 ac_save_CXXFLAGS=$CXXFLAGS
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4519 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4520 if ${ac_cv_prog_cxx_g+:} false; then :
4521   $as_echo_n "(cached) " >&6
4522 else
4523   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4524    ac_cxx_werror_flag=yes
4525    ac_cv_prog_cxx_g=no
4526    CXXFLAGS="-g"
4527    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h.  */
4529
4530 int
4531 main ()
4532 {
4533
4534   ;
4535   return 0;
4536 }
4537 _ACEOF
4538 if ac_fn_cxx_try_compile "$LINENO"; then :
4539   ac_cv_prog_cxx_g=yes
4540 else
4541   CXXFLAGS=""
4542       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h.  */
4544
4545 int
4546 main ()
4547 {
4548
4549   ;
4550   return 0;
4551 }
4552 _ACEOF
4553 if ac_fn_cxx_try_compile "$LINENO"; then :
4554
4555 else
4556   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4557          CXXFLAGS="-g"
4558          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h.  */
4560
4561 int
4562 main ()
4563 {
4564
4565   ;
4566   return 0;
4567 }
4568 _ACEOF
4569 if ac_fn_cxx_try_compile "$LINENO"; then :
4570   ac_cv_prog_cxx_g=yes
4571 fi
4572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 fi
4574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575 fi
4576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4577    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4578 fi
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4580 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4581 if test "$ac_test_CXXFLAGS" = set; then
4582   CXXFLAGS=$ac_save_CXXFLAGS
4583 elif test $ac_cv_prog_cxx_g = yes; then
4584   if test "$GXX" = yes; then
4585     CXXFLAGS="-g -O2"
4586   else
4587     CXXFLAGS="-g"
4588   fi
4589 else
4590   if test "$GXX" = yes; then
4591     CXXFLAGS="-O2"
4592   else
4593     CXXFLAGS=
4594   fi
4595 fi
4596 ac_ext=cpp
4597 ac_cpp='$CXXCPP $CPPFLAGS'
4598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4601
4602 depcc="$CXX"  am_compiler_list=
4603
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4605 $as_echo_n "checking dependency style of $depcc... " >&6; }
4606 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4607   $as_echo_n "(cached) " >&6
4608 else
4609   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4610   # We make a subdir and do the tests there.  Otherwise we can end up
4611   # making bogus files that we don't know about and never remove.  For
4612   # instance it was reported that on HP-UX the gcc test will end up
4613   # making a dummy file named `D' -- because `-MD' means `put the output
4614   # in D'.
4615   rm -rf conftest.dir
4616   mkdir conftest.dir
4617   # Copy depcomp to subdir because otherwise we won't find it if we're
4618   # using a relative directory.
4619   cp "$am_depcomp" conftest.dir
4620   cd conftest.dir
4621   # We will build objects and dependencies in a subdirectory because
4622   # it helps to detect inapplicable dependency modes.  For instance
4623   # both Tru64's cc and ICC support -MD to output dependencies as a
4624   # side effect of compilation, but ICC will put the dependencies in
4625   # the current directory while Tru64 will put them in the object
4626   # directory.
4627   mkdir sub
4628
4629   am_cv_CXX_dependencies_compiler_type=none
4630   if test "$am_compiler_list" = ""; then
4631      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4632   fi
4633   am__universal=false
4634   case " $depcc " in #(
4635      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4636      esac
4637
4638   for depmode in $am_compiler_list; do
4639     # Setup a source with many dependencies, because some compilers
4640     # like to wrap large dependency lists on column 80 (with \), and
4641     # we should not choose a depcomp mode which is confused by this.
4642     #
4643     # We need to recreate these files for each test, as the compiler may
4644     # overwrite some of them when testing with obscure command lines.
4645     # This happens at least with the AIX C compiler.
4646     : > sub/conftest.c
4647     for i in 1 2 3 4 5 6; do
4648       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4649       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4650       # Solaris 8's {/usr,}/bin/sh.
4651       touch sub/conftst$i.h
4652     done
4653     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4654
4655     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4656     # mode.  It turns out that the SunPro C++ compiler does not properly
4657     # handle `-M -o', and we need to detect this.  Also, some Intel
4658     # versions had trouble with output in subdirs
4659     am__obj=sub/conftest.${OBJEXT-o}
4660     am__minus_obj="-o $am__obj"
4661     case $depmode in
4662     gcc)
4663       # This depmode causes a compiler race in universal mode.
4664       test "$am__universal" = false || continue
4665       ;;
4666     nosideeffect)
4667       # after this tag, mechanisms are not by side-effect, so they'll
4668       # only be used when explicitly requested
4669       if test "x$enable_dependency_tracking" = xyes; then
4670         continue
4671       else
4672         break
4673       fi
4674       ;;
4675     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4676       # This compiler won't grok `-c -o', but also, the minuso test has
4677       # not run yet.  These depmodes are late enough in the game, and
4678       # so weak that their functioning should not be impacted.
4679       am__obj=conftest.${OBJEXT-o}
4680       am__minus_obj=
4681       ;;
4682     none) break ;;
4683     esac
4684     if depmode=$depmode \
4685        source=sub/conftest.c object=$am__obj \
4686        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4687        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4688          >/dev/null 2>conftest.err &&
4689        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4690        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4691        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4692        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4693       # icc doesn't choke on unknown options, it will just issue warnings
4694       # or remarks (even with -Werror).  So we grep stderr for any message
4695       # that says an option was ignored or not supported.
4696       # When given -MP, icc 7.0 and 7.1 complain thusly:
4697       #   icc: Command line warning: ignoring option '-M'; no argument required
4698       # The diagnosis changed in icc 8.0:
4699       #   icc: Command line remark: option '-MP' not supported
4700       if (grep 'ignoring option' conftest.err ||
4701           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4702         am_cv_CXX_dependencies_compiler_type=$depmode
4703         break
4704       fi
4705     fi
4706   done
4707
4708   cd ..
4709   rm -rf conftest.dir
4710 else
4711   am_cv_CXX_dependencies_compiler_type=none
4712 fi
4713
4714 fi
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4716 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4717 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4718
4719  if
4720   test "x$enable_dependency_tracking" != xno \
4721   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4722   am__fastdepCXX_TRUE=
4723   am__fastdepCXX_FALSE='#'
4724 else
4725   am__fastdepCXX_TRUE='#'
4726   am__fastdepCXX_FALSE=
4727 fi
4728
4729
4730  if test "$GCC" = yes; then
4731   GCC_TRUE=
4732   GCC_FALSE='#'
4733 else
4734   GCC_TRUE='#'
4735   GCC_FALSE=
4736 fi
4737    # let the Makefile know if we're gcc
4738
4739 case `pwd` in
4740   *\ * | *\     *)
4741     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4742 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4743 esac
4744
4745
4746
4747 macro_version='2.4.2'
4748 macro_revision='1.3337'
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762 ltmain="$ac_aux_dir/ltmain.sh"
4763
4764 # Make sure we can run config.sub.
4765 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4766   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4767
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4769 $as_echo_n "checking build system type... " >&6; }
4770 if ${ac_cv_build+:} false; then :
4771   $as_echo_n "(cached) " >&6
4772 else
4773   ac_build_alias=$build_alias
4774 test "x$ac_build_alias" = x &&
4775   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4776 test "x$ac_build_alias" = x &&
4777   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4778 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4779   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4780
4781 fi
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4783 $as_echo "$ac_cv_build" >&6; }
4784 case $ac_cv_build in
4785 *-*-*) ;;
4786 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4787 esac
4788 build=$ac_cv_build
4789 ac_save_IFS=$IFS; IFS='-'
4790 set x $ac_cv_build
4791 shift
4792 build_cpu=$1
4793 build_vendor=$2
4794 shift; shift
4795 # Remember, the first character of IFS is used to create $*,
4796 # except with old shells:
4797 build_os=$*
4798 IFS=$ac_save_IFS
4799 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4800
4801
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4803 $as_echo_n "checking host system type... " >&6; }
4804 if ${ac_cv_host+:} false; then :
4805   $as_echo_n "(cached) " >&6
4806 else
4807   if test "x$host_alias" = x; then
4808   ac_cv_host=$ac_cv_build
4809 else
4810   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4811     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4812 fi
4813
4814 fi
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4816 $as_echo "$ac_cv_host" >&6; }
4817 case $ac_cv_host in
4818 *-*-*) ;;
4819 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4820 esac
4821 host=$ac_cv_host
4822 ac_save_IFS=$IFS; IFS='-'
4823 set x $ac_cv_host
4824 shift
4825 host_cpu=$1
4826 host_vendor=$2
4827 shift; shift
4828 # Remember, the first character of IFS is used to create $*,
4829 # except with old shells:
4830 host_os=$*
4831 IFS=$ac_save_IFS
4832 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4833
4834
4835 # Backslashify metacharacters that are still active within
4836 # double-quoted strings.
4837 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4838
4839 # Same as above, but do not quote variable references.
4840 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4841
4842 # Sed substitution to delay expansion of an escaped shell variable in a
4843 # double_quote_subst'ed string.
4844 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4845
4846 # Sed substitution to delay expansion of an escaped single quote.
4847 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4848
4849 # Sed substitution to avoid accidental globbing in evaled expressions
4850 no_glob_subst='s/\*/\\\*/g'
4851
4852 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4853 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4854 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4855
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4857 $as_echo_n "checking how to print strings... " >&6; }
4858 # Test print first, because it will be a builtin if present.
4859 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4860    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4861   ECHO='print -r --'
4862 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4863   ECHO='printf %s\n'
4864 else
4865   # Use this function as a fallback that always works.
4866   func_fallback_echo ()
4867   {
4868     eval 'cat <<_LTECHO_EOF
4869 $1
4870 _LTECHO_EOF'
4871   }
4872   ECHO='func_fallback_echo'
4873 fi
4874
4875 # func_echo_all arg...
4876 # Invoke $ECHO with all args, space-separated.
4877 func_echo_all ()
4878 {
4879     $ECHO ""
4880 }
4881
4882 case "$ECHO" in
4883   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4884 $as_echo "printf" >&6; } ;;
4885   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4886 $as_echo "print -r" >&6; } ;;
4887   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4888 $as_echo "cat" >&6; } ;;
4889 esac
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4905 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4906 if ${ac_cv_path_SED+:} false; then :
4907   $as_echo_n "(cached) " >&6
4908 else
4909             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4910      for ac_i in 1 2 3 4 5 6 7; do
4911        ac_script="$ac_script$as_nl$ac_script"
4912      done
4913      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4914      { ac_script=; unset ac_script;}
4915      if test -z "$SED"; then
4916   ac_path_SED_found=false
4917   # Loop through the user's path and test for each of PROGNAME-LIST
4918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 for as_dir in $PATH
4920 do
4921   IFS=$as_save_IFS
4922   test -z "$as_dir" && as_dir=.
4923     for ac_prog in sed gsed; do
4924     for ac_exec_ext in '' $ac_executable_extensions; do
4925       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4926       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4927 # Check for GNU ac_path_SED and select it if it is found.
4928   # Check for GNU $ac_path_SED
4929 case `"$ac_path_SED" --version 2>&1` in
4930 *GNU*)
4931   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4932 *)
4933   ac_count=0
4934   $as_echo_n 0123456789 >"conftest.in"
4935   while :
4936   do
4937     cat "conftest.in" "conftest.in" >"conftest.tmp"
4938     mv "conftest.tmp" "conftest.in"
4939     cp "conftest.in" "conftest.nl"
4940     $as_echo '' >> "conftest.nl"
4941     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4942     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4943     as_fn_arith $ac_count + 1 && ac_count=$as_val
4944     if test $ac_count -gt ${ac_path_SED_max-0}; then
4945       # Best one so far, save it but keep looking for a better one
4946       ac_cv_path_SED="$ac_path_SED"
4947       ac_path_SED_max=$ac_count
4948     fi
4949     # 10*(2^10) chars as input seems more than enough
4950     test $ac_count -gt 10 && break
4951   done
4952   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4953 esac
4954
4955       $ac_path_SED_found && break 3
4956     done
4957   done
4958   done
4959 IFS=$as_save_IFS
4960   if test -z "$ac_cv_path_SED"; then
4961     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4962   fi
4963 else
4964   ac_cv_path_SED=$SED
4965 fi
4966
4967 fi
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4969 $as_echo "$ac_cv_path_SED" >&6; }
4970  SED="$ac_cv_path_SED"
4971   rm -f conftest.sed
4972
4973 test -z "$SED" && SED=sed
4974 Xsed="$SED -e 1s/^X//"
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4987 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4988 if ${ac_cv_path_GREP+:} false; then :
4989   $as_echo_n "(cached) " >&6
4990 else
4991   if test -z "$GREP"; then
4992   ac_path_GREP_found=false
4993   # Loop through the user's path and test for each of PROGNAME-LIST
4994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4996 do
4997   IFS=$as_save_IFS
4998   test -z "$as_dir" && as_dir=.
4999     for ac_prog in grep ggrep; do
5000     for ac_exec_ext in '' $ac_executable_extensions; do
5001       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5002       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5003 # Check for GNU ac_path_GREP and select it if it is found.
5004   # Check for GNU $ac_path_GREP
5005 case `"$ac_path_GREP" --version 2>&1` in
5006 *GNU*)
5007   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5008 *)
5009   ac_count=0
5010   $as_echo_n 0123456789 >"conftest.in"
5011   while :
5012   do
5013     cat "conftest.in" "conftest.in" >"conftest.tmp"
5014     mv "conftest.tmp" "conftest.in"
5015     cp "conftest.in" "conftest.nl"
5016     $as_echo 'GREP' >> "conftest.nl"
5017     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5018     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5019     as_fn_arith $ac_count + 1 && ac_count=$as_val
5020     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5021       # Best one so far, save it but keep looking for a better one
5022       ac_cv_path_GREP="$ac_path_GREP"
5023       ac_path_GREP_max=$ac_count
5024     fi
5025     # 10*(2^10) chars as input seems more than enough
5026     test $ac_count -gt 10 && break
5027   done
5028   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5029 esac
5030
5031       $ac_path_GREP_found && break 3
5032     done
5033   done
5034   done
5035 IFS=$as_save_IFS
5036   if test -z "$ac_cv_path_GREP"; then
5037     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5038   fi
5039 else
5040   ac_cv_path_GREP=$GREP
5041 fi
5042
5043 fi
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5045 $as_echo "$ac_cv_path_GREP" >&6; }
5046  GREP="$ac_cv_path_GREP"
5047
5048
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5050 $as_echo_n "checking for egrep... " >&6; }
5051 if ${ac_cv_path_EGREP+:} false; then :
5052   $as_echo_n "(cached) " >&6
5053 else
5054   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5055    then ac_cv_path_EGREP="$GREP -E"
5056    else
5057      if test -z "$EGREP"; then
5058   ac_path_EGREP_found=false
5059   # Loop through the user's path and test for each of PROGNAME-LIST
5060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5062 do
5063   IFS=$as_save_IFS
5064   test -z "$as_dir" && as_dir=.
5065     for ac_prog in egrep; do
5066     for ac_exec_ext in '' $ac_executable_extensions; do
5067       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5068       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5069 # Check for GNU ac_path_EGREP and select it if it is found.
5070   # Check for GNU $ac_path_EGREP
5071 case `"$ac_path_EGREP" --version 2>&1` in
5072 *GNU*)
5073   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5074 *)
5075   ac_count=0
5076   $as_echo_n 0123456789 >"conftest.in"
5077   while :
5078   do
5079     cat "conftest.in" "conftest.in" >"conftest.tmp"
5080     mv "conftest.tmp" "conftest.in"
5081     cp "conftest.in" "conftest.nl"
5082     $as_echo 'EGREP' >> "conftest.nl"
5083     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5084     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5085     as_fn_arith $ac_count + 1 && ac_count=$as_val
5086     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5087       # Best one so far, save it but keep looking for a better one
5088       ac_cv_path_EGREP="$ac_path_EGREP"
5089       ac_path_EGREP_max=$ac_count
5090     fi
5091     # 10*(2^10) chars as input seems more than enough
5092     test $ac_count -gt 10 && break
5093   done
5094   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5095 esac
5096
5097       $ac_path_EGREP_found && break 3
5098     done
5099   done
5100   done
5101 IFS=$as_save_IFS
5102   if test -z "$ac_cv_path_EGREP"; then
5103     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5104   fi
5105 else
5106   ac_cv_path_EGREP=$EGREP
5107 fi
5108
5109    fi
5110 fi
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5112 $as_echo "$ac_cv_path_EGREP" >&6; }
5113  EGREP="$ac_cv_path_EGREP"
5114
5115
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5117 $as_echo_n "checking for fgrep... " >&6; }
5118 if ${ac_cv_path_FGREP+:} false; then :
5119   $as_echo_n "(cached) " >&6
5120 else
5121   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5122    then ac_cv_path_FGREP="$GREP -F"
5123    else
5124      if test -z "$FGREP"; then
5125   ac_path_FGREP_found=false
5126   # Loop through the user's path and test for each of PROGNAME-LIST
5127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5129 do
5130   IFS=$as_save_IFS
5131   test -z "$as_dir" && as_dir=.
5132     for ac_prog in fgrep; do
5133     for ac_exec_ext in '' $ac_executable_extensions; do
5134       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5135       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5136 # Check for GNU ac_path_FGREP and select it if it is found.
5137   # Check for GNU $ac_path_FGREP
5138 case `"$ac_path_FGREP" --version 2>&1` in
5139 *GNU*)
5140   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5141 *)
5142   ac_count=0
5143   $as_echo_n 0123456789 >"conftest.in"
5144   while :
5145   do
5146     cat "conftest.in" "conftest.in" >"conftest.tmp"
5147     mv "conftest.tmp" "conftest.in"
5148     cp "conftest.in" "conftest.nl"
5149     $as_echo 'FGREP' >> "conftest.nl"
5150     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5151     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5152     as_fn_arith $ac_count + 1 && ac_count=$as_val
5153     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5154       # Best one so far, save it but keep looking for a better one
5155       ac_cv_path_FGREP="$ac_path_FGREP"
5156       ac_path_FGREP_max=$ac_count
5157     fi
5158     # 10*(2^10) chars as input seems more than enough
5159     test $ac_count -gt 10 && break
5160   done
5161   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5162 esac
5163
5164       $ac_path_FGREP_found && break 3
5165     done
5166   done
5167   done
5168 IFS=$as_save_IFS
5169   if test -z "$ac_cv_path_FGREP"; then
5170     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5171   fi
5172 else
5173   ac_cv_path_FGREP=$FGREP
5174 fi
5175
5176    fi
5177 fi
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5179 $as_echo "$ac_cv_path_FGREP" >&6; }
5180  FGREP="$ac_cv_path_FGREP"
5181
5182
5183 test -z "$GREP" && GREP=grep
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203 # Check whether --with-gnu-ld was given.
5204 if test "${with_gnu_ld+set}" = set; then :
5205   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5206 else
5207   with_gnu_ld=no
5208 fi
5209
5210 ac_prog=ld
5211 if test "$GCC" = yes; then
5212   # Check if gcc -print-prog-name=ld gives a path.
5213   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5214 $as_echo_n "checking for ld used by $CC... " >&6; }
5215   case $host in
5216   *-*-mingw*)
5217     # gcc leaves a trailing carriage return which upsets mingw
5218     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5219   *)
5220     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5221   esac
5222   case $ac_prog in
5223     # Accept absolute paths.
5224     [\\/]* | ?:[\\/]*)
5225       re_direlt='/[^/][^/]*/\.\./'
5226       # Canonicalize the pathname of ld
5227       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5228       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5229         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5230       done
5231       test -z "$LD" && LD="$ac_prog"
5232       ;;
5233   "")
5234     # If it fails, then pretend we aren't using GCC.
5235     ac_prog=ld
5236     ;;
5237   *)
5238     # If it is relative, then search for the first ld in PATH.
5239     with_gnu_ld=unknown
5240     ;;
5241   esac
5242 elif test "$with_gnu_ld" = yes; then
5243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5244 $as_echo_n "checking for GNU ld... " >&6; }
5245 else
5246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5247 $as_echo_n "checking for non-GNU ld... " >&6; }
5248 fi
5249 if ${lt_cv_path_LD+:} false; then :
5250   $as_echo_n "(cached) " >&6
5251 else
5252   if test -z "$LD"; then
5253   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5254   for ac_dir in $PATH; do
5255     IFS="$lt_save_ifs"
5256     test -z "$ac_dir" && ac_dir=.
5257     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5258       lt_cv_path_LD="$ac_dir/$ac_prog"
5259       # Check to see if the program is GNU ld.  I'd rather use --version,
5260       # but apparently some variants of GNU ld only accept -v.
5261       # Break only if it was the GNU/non-GNU ld that we prefer.
5262       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5263       *GNU* | *'with BFD'*)
5264         test "$with_gnu_ld" != no && break
5265         ;;
5266       *)
5267         test "$with_gnu_ld" != yes && break
5268         ;;
5269       esac
5270     fi
5271   done
5272   IFS="$lt_save_ifs"
5273 else
5274   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5275 fi
5276 fi
5277
5278 LD="$lt_cv_path_LD"
5279 if test -n "$LD"; then
5280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5281 $as_echo "$LD" >&6; }
5282 else
5283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 $as_echo "no" >&6; }
5285 fi
5286 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5288 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5289 if ${lt_cv_prog_gnu_ld+:} false; then :
5290   $as_echo_n "(cached) " >&6
5291 else
5292   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5293 case `$LD -v 2>&1 </dev/null` in
5294 *GNU* | *'with BFD'*)
5295   lt_cv_prog_gnu_ld=yes
5296   ;;
5297 *)
5298   lt_cv_prog_gnu_ld=no
5299   ;;
5300 esac
5301 fi
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5303 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5304 with_gnu_ld=$lt_cv_prog_gnu_ld
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5315 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5316 if ${lt_cv_path_NM+:} false; then :
5317   $as_echo_n "(cached) " >&6
5318 else
5319   if test -n "$NM"; then
5320   # Let the user override the test.
5321   lt_cv_path_NM="$NM"
5322 else
5323   lt_nm_to_check="${ac_tool_prefix}nm"
5324   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5325     lt_nm_to_check="$lt_nm_to_check nm"
5326   fi
5327   for lt_tmp_nm in $lt_nm_to_check; do
5328     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5329     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5330       IFS="$lt_save_ifs"
5331       test -z "$ac_dir" && ac_dir=.
5332       tmp_nm="$ac_dir/$lt_tmp_nm"
5333       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5334         # Check to see if the nm accepts a BSD-compat flag.
5335         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5336         #   nm: unknown option "B" ignored
5337         # Tru64's nm complains that /dev/null is an invalid object file
5338         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5339         */dev/null* | *'Invalid file or object type'*)
5340           lt_cv_path_NM="$tmp_nm -B"
5341           break
5342           ;;
5343         *)
5344           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5345           */dev/null*)
5346             lt_cv_path_NM="$tmp_nm -p"
5347             break
5348             ;;
5349           *)
5350             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5351             continue # so that we can try to find one that supports BSD flags
5352             ;;
5353           esac
5354           ;;
5355         esac
5356       fi
5357     done
5358     IFS="$lt_save_ifs"
5359   done
5360   : ${lt_cv_path_NM=no}
5361 fi
5362 fi
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5364 $as_echo "$lt_cv_path_NM" >&6; }
5365 if test "$lt_cv_path_NM" != "no"; then
5366   NM="$lt_cv_path_NM"
5367 else
5368   # Didn't find any BSD compatible name lister, look for dumpbin.
5369   if test -n "$DUMPBIN"; then :
5370     # Let the user override the test.
5371   else
5372     if test -n "$ac_tool_prefix"; then
5373   for ac_prog in dumpbin "link -dump"
5374   do
5375     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5376 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378 $as_echo_n "checking for $ac_word... " >&6; }
5379 if ${ac_cv_prog_DUMPBIN+:} false; then :
5380   $as_echo_n "(cached) " >&6
5381 else
5382   if test -n "$DUMPBIN"; then
5383   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5384 else
5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 for as_dir in $PATH
5387 do
5388   IFS=$as_save_IFS
5389   test -z "$as_dir" && as_dir=.
5390     for ac_exec_ext in '' $ac_executable_extensions; do
5391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5392     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5394     break 2
5395   fi
5396 done
5397   done
5398 IFS=$as_save_IFS
5399
5400 fi
5401 fi
5402 DUMPBIN=$ac_cv_prog_DUMPBIN
5403 if test -n "$DUMPBIN"; then
5404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5405 $as_echo "$DUMPBIN" >&6; }
5406 else
5407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5409 fi
5410
5411
5412     test -n "$DUMPBIN" && break
5413   done
5414 fi
5415 if test -z "$DUMPBIN"; then
5416   ac_ct_DUMPBIN=$DUMPBIN
5417   for ac_prog in dumpbin "link -dump"
5418 do
5419   # Extract the first word of "$ac_prog", so it can be a program name with args.
5420 set dummy $ac_prog; ac_word=$2
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5422 $as_echo_n "checking for $ac_word... " >&6; }
5423 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5424   $as_echo_n "(cached) " >&6
5425 else
5426   if test -n "$ac_ct_DUMPBIN"; then
5427   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5428 else
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 for as_dir in $PATH
5431 do
5432   IFS=$as_save_IFS
5433   test -z "$as_dir" && as_dir=.
5434     for ac_exec_ext in '' $ac_executable_extensions; do
5435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5436     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5438     break 2
5439   fi
5440 done
5441   done
5442 IFS=$as_save_IFS
5443
5444 fi
5445 fi
5446 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5447 if test -n "$ac_ct_DUMPBIN"; then
5448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5449 $as_echo "$ac_ct_DUMPBIN" >&6; }
5450 else
5451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 $as_echo "no" >&6; }
5453 fi
5454
5455
5456   test -n "$ac_ct_DUMPBIN" && break
5457 done
5458
5459   if test "x$ac_ct_DUMPBIN" = x; then
5460     DUMPBIN=":"
5461   else
5462     case $cross_compiling:$ac_tool_warned in
5463 yes:)
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5466 ac_tool_warned=yes ;;
5467 esac
5468     DUMPBIN=$ac_ct_DUMPBIN
5469   fi
5470 fi
5471
5472     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5473     *COFF*)
5474       DUMPBIN="$DUMPBIN -symbols"
5475       ;;
5476     *)
5477       DUMPBIN=:
5478       ;;
5479     esac
5480   fi
5481
5482   if test "$DUMPBIN" != ":"; then
5483     NM="$DUMPBIN"
5484   fi
5485 fi
5486 test -z "$NM" && NM=nm
5487
5488
5489
5490
5491
5492
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5494 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5495 if ${lt_cv_nm_interface+:} false; then :
5496   $as_echo_n "(cached) " >&6
5497 else
5498   lt_cv_nm_interface="BSD nm"
5499   echo "int some_variable = 0;" > conftest.$ac_ext
5500   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5501   (eval "$ac_compile" 2>conftest.err)
5502   cat conftest.err >&5
5503   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5504   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5505   cat conftest.err >&5
5506   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5507   cat conftest.out >&5
5508   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5509     lt_cv_nm_interface="MS dumpbin"
5510   fi
5511   rm -f conftest*
5512 fi
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5514 $as_echo "$lt_cv_nm_interface" >&6; }
5515
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5517 $as_echo_n "checking whether ln -s works... " >&6; }
5518 LN_S=$as_ln_s
5519 if test "$LN_S" = "ln -s"; then
5520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5521 $as_echo "yes" >&6; }
5522 else
5523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5524 $as_echo "no, using $LN_S" >&6; }
5525 fi
5526
5527 # find the maximum length of command line arguments
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5529 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5530 if ${lt_cv_sys_max_cmd_len+:} false; then :
5531   $as_echo_n "(cached) " >&6
5532 else
5533     i=0
5534   teststring="ABCD"
5535
5536   case $build_os in
5537   msdosdjgpp*)
5538     # On DJGPP, this test can blow up pretty badly due to problems in libc
5539     # (any single argument exceeding 2000 bytes causes a buffer overrun
5540     # during glob expansion).  Even if it were fixed, the result of this
5541     # check would be larger than it should be.
5542     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5543     ;;
5544
5545   gnu*)
5546     # Under GNU Hurd, this test is not required because there is
5547     # no limit to the length of command line arguments.
5548     # Libtool will interpret -1 as no limit whatsoever
5549     lt_cv_sys_max_cmd_len=-1;
5550     ;;
5551
5552   cygwin* | mingw* | cegcc*)
5553     # On Win9x/ME, this test blows up -- it succeeds, but takes
5554     # about 5 minutes as the teststring grows exponentially.
5555     # Worse, since 9x/ME are not pre-emptively multitasking,
5556     # you end up with a "frozen" computer, even though with patience
5557     # the test eventually succeeds (with a max line length of 256k).
5558     # Instead, let's just punt: use the minimum linelength reported by
5559     # all of the supported platforms: 8192 (on NT/2K/XP).
5560     lt_cv_sys_max_cmd_len=8192;
5561     ;;
5562
5563   mint*)
5564     # On MiNT this can take a long time and run out of memory.
5565     lt_cv_sys_max_cmd_len=8192;
5566     ;;
5567
5568   amigaos*)
5569     # On AmigaOS with pdksh, this test takes hours, literally.
5570     # So we just punt and use a minimum line length of 8192.
5571     lt_cv_sys_max_cmd_len=8192;
5572     ;;
5573
5574   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5575     # This has been around since 386BSD, at least.  Likely further.
5576     if test -x /sbin/sysctl; then
5577       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5578     elif test -x /usr/sbin/sysctl; then
5579       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5580     else
5581       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5582     fi
5583     # And add a safety zone
5584     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5585     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5586     ;;
5587
5588   interix*)
5589     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5590     lt_cv_sys_max_cmd_len=196608
5591     ;;
5592
5593   os2*)
5594     # The test takes a long time on OS/2.
5595     lt_cv_sys_max_cmd_len=8192
5596     ;;
5597
5598   osf*)
5599     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5600     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5601     # nice to cause kernel panics so lets avoid the loop below.
5602     # First set a reasonable default.
5603     lt_cv_sys_max_cmd_len=16384
5604     #
5605     if test -x /sbin/sysconfig; then
5606       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5607         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5608       esac
5609     fi
5610     ;;
5611   sco3.2v5*)
5612     lt_cv_sys_max_cmd_len=102400
5613     ;;
5614   sysv5* | sco5v6* | sysv4.2uw2*)
5615     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5616     if test -n "$kargmax"; then
5617       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5618     else
5619       lt_cv_sys_max_cmd_len=32768
5620     fi
5621     ;;
5622   *)
5623     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5624     if test -n "$lt_cv_sys_max_cmd_len"; then
5625       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5626       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5627     else
5628       # Make teststring a little bigger before we do anything with it.
5629       # a 1K string should be a reasonable start.
5630       for i in 1 2 3 4 5 6 7 8 ; do
5631         teststring=$teststring$teststring
5632       done
5633       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5634       # If test is not a shell built-in, we'll probably end up computing a
5635       # maximum length that is only half of the actual maximum length, but
5636       # we can't tell.
5637       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5638                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5639               test $i != 17 # 1/2 MB should be enough
5640       do
5641         i=`expr $i + 1`
5642         teststring=$teststring$teststring
5643       done
5644       # Only check the string length outside the loop.
5645       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5646       teststring=
5647       # Add a significant safety factor because C++ compilers can tack on
5648       # massive amounts of additional arguments before passing them to the
5649       # linker.  It appears as though 1/2 is a usable value.
5650       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5651     fi
5652     ;;
5653   esac
5654
5655 fi
5656
5657 if test -n $lt_cv_sys_max_cmd_len ; then
5658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5659 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5660 else
5661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5662 $as_echo "none" >&6; }
5663 fi
5664 max_cmd_len=$lt_cv_sys_max_cmd_len
5665
5666
5667
5668
5669
5670
5671 : ${CP="cp -f"}
5672 : ${MV="mv -f"}
5673 : ${RM="rm -f"}
5674
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5676 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5677 # Try some XSI features
5678 xsi_shell=no
5679 ( _lt_dummy="a/b/c"
5680   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5681       = c,a/b,b/c, \
5682     && eval 'test $(( 1 + 1 )) -eq 2 \
5683     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5684   && xsi_shell=yes
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5686 $as_echo "$xsi_shell" >&6; }
5687
5688
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5690 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5691 lt_shell_append=no
5692 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5693     >/dev/null 2>&1 \
5694   && lt_shell_append=yes
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5696 $as_echo "$lt_shell_append" >&6; }
5697
5698
5699 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5700   lt_unset=unset
5701 else
5702   lt_unset=false
5703 fi
5704
5705
5706
5707
5708
5709 # test EBCDIC or ASCII
5710 case `echo X|tr X '\101'` in
5711  A) # ASCII based system
5712     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5713   lt_SP2NL='tr \040 \012'
5714   lt_NL2SP='tr \015\012 \040\040'
5715   ;;
5716  *) # EBCDIC based system
5717   lt_SP2NL='tr \100 \n'
5718   lt_NL2SP='tr \r\n \100\100'
5719   ;;
5720 esac
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5731 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5732 if ${lt_cv_to_host_file_cmd+:} false; then :
5733   $as_echo_n "(cached) " >&6
5734 else
5735   case $host in
5736   *-*-mingw* )
5737     case $build in
5738       *-*-mingw* ) # actually msys
5739         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5740         ;;
5741       *-*-cygwin* )
5742         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5743         ;;
5744       * ) # otherwise, assume *nix
5745         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5746         ;;
5747     esac
5748     ;;
5749   *-*-cygwin* )
5750     case $build in
5751       *-*-mingw* ) # actually msys
5752         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5753         ;;
5754       *-*-cygwin* )
5755         lt_cv_to_host_file_cmd=func_convert_file_noop
5756         ;;
5757       * ) # otherwise, assume *nix
5758         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5759         ;;
5760     esac
5761     ;;
5762   * ) # unhandled hosts (and "normal" native builds)
5763     lt_cv_to_host_file_cmd=func_convert_file_noop
5764     ;;
5765 esac
5766
5767 fi
5768
5769 to_host_file_cmd=$lt_cv_to_host_file_cmd
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5771 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5772
5773
5774
5775
5776
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5778 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5779 if ${lt_cv_to_tool_file_cmd+:} false; then :
5780   $as_echo_n "(cached) " >&6
5781 else
5782   #assume ordinary cross tools, or native build.
5783 lt_cv_to_tool_file_cmd=func_convert_file_noop
5784 case $host in
5785   *-*-mingw* )
5786     case $build in
5787       *-*-mingw* ) # actually msys
5788         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5789         ;;
5790     esac
5791     ;;
5792 esac
5793
5794 fi
5795
5796 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5798 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5799
5800
5801
5802
5803
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5805 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5806 if ${lt_cv_ld_reload_flag+:} false; then :
5807   $as_echo_n "(cached) " >&6
5808 else
5809   lt_cv_ld_reload_flag='-r'
5810 fi
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5812 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5813 reload_flag=$lt_cv_ld_reload_flag
5814 case $reload_flag in
5815 "" | " "*) ;;
5816 *) reload_flag=" $reload_flag" ;;
5817 esac
5818 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5819 case $host_os in
5820   cygwin* | mingw* | pw32* | cegcc*)
5821     if test "$GCC" != yes; then
5822       reload_cmds=false
5823     fi
5824     ;;
5825   darwin*)
5826     if test "$GCC" = yes; then
5827       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5828     else
5829       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5830     fi
5831     ;;
5832 esac
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842 if test -n "$ac_tool_prefix"; then
5843   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5844 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5846 $as_echo_n "checking for $ac_word... " >&6; }
5847 if ${ac_cv_prog_OBJDUMP+:} false; then :
5848   $as_echo_n "(cached) " >&6
5849 else
5850   if test -n "$OBJDUMP"; then
5851   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5852 else
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 for as_dir in $PATH
5855 do
5856   IFS=$as_save_IFS
5857   test -z "$as_dir" && as_dir=.
5858     for ac_exec_ext in '' $ac_executable_extensions; do
5859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5860     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5862     break 2
5863   fi
5864 done
5865   done
5866 IFS=$as_save_IFS
5867
5868 fi
5869 fi
5870 OBJDUMP=$ac_cv_prog_OBJDUMP
5871 if test -n "$OBJDUMP"; then
5872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5873 $as_echo "$OBJDUMP" >&6; }
5874 else
5875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876 $as_echo "no" >&6; }
5877 fi
5878
5879
5880 fi
5881 if test -z "$ac_cv_prog_OBJDUMP"; then
5882   ac_ct_OBJDUMP=$OBJDUMP
5883   # Extract the first word of "objdump", so it can be a program name with args.
5884 set dummy objdump; ac_word=$2
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5886 $as_echo_n "checking for $ac_word... " >&6; }
5887 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5888   $as_echo_n "(cached) " >&6
5889 else
5890   if test -n "$ac_ct_OBJDUMP"; then
5891   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5892 else
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 for as_dir in $PATH
5895 do
5896   IFS=$as_save_IFS
5897   test -z "$as_dir" && as_dir=.
5898     for ac_exec_ext in '' $ac_executable_extensions; do
5899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5900     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5902     break 2
5903   fi
5904 done
5905   done
5906 IFS=$as_save_IFS
5907
5908 fi
5909 fi
5910 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5911 if test -n "$ac_ct_OBJDUMP"; then
5912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5913 $as_echo "$ac_ct_OBJDUMP" >&6; }
5914 else
5915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916 $as_echo "no" >&6; }
5917 fi
5918
5919   if test "x$ac_ct_OBJDUMP" = x; then
5920     OBJDUMP="false"
5921   else
5922     case $cross_compiling:$ac_tool_warned in
5923 yes:)
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5926 ac_tool_warned=yes ;;
5927 esac
5928     OBJDUMP=$ac_ct_OBJDUMP
5929   fi
5930 else
5931   OBJDUMP="$ac_cv_prog_OBJDUMP"
5932 fi
5933
5934 test -z "$OBJDUMP" && OBJDUMP=objdump
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5945 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5946 if ${lt_cv_deplibs_check_method+:} false; then :
5947   $as_echo_n "(cached) " >&6
5948 else
5949   lt_cv_file_magic_cmd='$MAGIC_CMD'
5950 lt_cv_file_magic_test_file=
5951 lt_cv_deplibs_check_method='unknown'
5952 # Need to set the preceding variable on all platforms that support
5953 # interlibrary dependencies.
5954 # 'none' -- dependencies not supported.
5955 # `unknown' -- same as none, but documents that we really don't know.
5956 # 'pass_all' -- all dependencies passed with no checks.
5957 # 'test_compile' -- check by making test program.
5958 # 'file_magic [[regex]]' -- check by looking for files in library path
5959 # which responds to the $file_magic_cmd with a given extended regex.
5960 # If you have `file' or equivalent on your system and you're not sure
5961 # whether `pass_all' will *always* work, you probably want this one.
5962
5963 case $host_os in
5964 aix[4-9]*)
5965   lt_cv_deplibs_check_method=pass_all
5966   ;;
5967
5968 beos*)
5969   lt_cv_deplibs_check_method=pass_all
5970   ;;
5971
5972 bsdi[45]*)
5973   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5974   lt_cv_file_magic_cmd='/usr/bin/file -L'
5975   lt_cv_file_magic_test_file=/shlib/libc.so
5976   ;;
5977
5978 cygwin*)
5979   # func_win32_libid is a shell function defined in ltmain.sh
5980   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5981   lt_cv_file_magic_cmd='func_win32_libid'
5982   ;;
5983
5984 mingw* | pw32*)
5985   # Base MSYS/MinGW do not provide the 'file' command needed by
5986   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5987   # unless we find 'file', for example because we are cross-compiling.
5988   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5989   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5990     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5991     lt_cv_file_magic_cmd='func_win32_libid'
5992   else
5993     # Keep this pattern in sync with the one in func_win32_libid.
5994     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5995     lt_cv_file_magic_cmd='$OBJDUMP -f'
5996   fi
5997   ;;
5998
5999 cegcc*)
6000   # use the weaker test based on 'objdump'. See mingw*.
6001   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6002   lt_cv_file_magic_cmd='$OBJDUMP -f'
6003   ;;
6004
6005 darwin* | rhapsody*)
6006   lt_cv_deplibs_check_method=pass_all
6007   ;;
6008
6009 freebsd* | dragonfly*)
6010   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6011     case $host_cpu in
6012     i*86 )
6013       # Not sure whether the presence of OpenBSD here was a mistake.
6014       # Let's accept both of them until this is cleared up.
6015       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6016       lt_cv_file_magic_cmd=/usr/bin/file
6017       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6018       ;;
6019     esac
6020   else
6021     lt_cv_deplibs_check_method=pass_all
6022   fi
6023   ;;
6024
6025 gnu*)
6026   lt_cv_deplibs_check_method=pass_all
6027   ;;
6028
6029 haiku*)
6030   lt_cv_deplibs_check_method=pass_all
6031   ;;
6032
6033 hpux10.20* | hpux11*)
6034   lt_cv_file_magic_cmd=/usr/bin/file
6035   case $host_cpu in
6036   ia64*)
6037     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6038     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6039     ;;
6040   hppa*64*)
6041     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]'
6042     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6043     ;;
6044   *)
6045     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6046     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6047     ;;
6048   esac
6049   ;;
6050
6051 interix[3-9]*)
6052   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6053   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6054   ;;
6055
6056 irix5* | irix6* | nonstopux*)
6057   case $LD in
6058   *-32|*"-32 ") libmagic=32-bit;;
6059   *-n32|*"-n32 ") libmagic=N32;;
6060   *-64|*"-64 ") libmagic=64-bit;;
6061   *) libmagic=never-match;;
6062   esac
6063   lt_cv_deplibs_check_method=pass_all
6064   ;;
6065
6066 # This must be glibc/ELF.
6067 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6068   lt_cv_deplibs_check_method=pass_all
6069   ;;
6070
6071 netbsd* | netbsdelf*-gnu)
6072   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6073     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6074   else
6075     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6076   fi
6077   ;;
6078
6079 newos6*)
6080   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6081   lt_cv_file_magic_cmd=/usr/bin/file
6082   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6083   ;;
6084
6085 *nto* | *qnx*)
6086   lt_cv_deplibs_check_method=pass_all
6087   ;;
6088
6089 openbsd*)
6090   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6091     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6092   else
6093     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6094   fi
6095   ;;
6096
6097 osf3* | osf4* | osf5*)
6098   lt_cv_deplibs_check_method=pass_all
6099   ;;
6100
6101 rdos*)
6102   lt_cv_deplibs_check_method=pass_all
6103   ;;
6104
6105 solaris*)
6106   lt_cv_deplibs_check_method=pass_all
6107   ;;
6108
6109 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6110   lt_cv_deplibs_check_method=pass_all
6111   ;;
6112
6113 sysv4 | sysv4.3*)
6114   case $host_vendor in
6115   motorola)
6116     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]'
6117     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6118     ;;
6119   ncr)
6120     lt_cv_deplibs_check_method=pass_all
6121     ;;
6122   sequent)
6123     lt_cv_file_magic_cmd='/bin/file'
6124     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6125     ;;
6126   sni)
6127     lt_cv_file_magic_cmd='/bin/file'
6128     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6129     lt_cv_file_magic_test_file=/lib/libc.so
6130     ;;
6131   siemens)
6132     lt_cv_deplibs_check_method=pass_all
6133     ;;
6134   pc)
6135     lt_cv_deplibs_check_method=pass_all
6136     ;;
6137   esac
6138   ;;
6139
6140 tpf*)
6141   lt_cv_deplibs_check_method=pass_all
6142   ;;
6143 esac
6144
6145 fi
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6147 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6148
6149 file_magic_glob=
6150 want_nocaseglob=no
6151 if test "$build" = "$host"; then
6152   case $host_os in
6153   mingw* | pw32*)
6154     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6155       want_nocaseglob=yes
6156     else
6157       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6158     fi
6159     ;;
6160   esac
6161 fi
6162
6163 file_magic_cmd=$lt_cv_file_magic_cmd
6164 deplibs_check_method=$lt_cv_deplibs_check_method
6165 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188 if test -n "$ac_tool_prefix"; then
6189   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6190 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6192 $as_echo_n "checking for $ac_word... " >&6; }
6193 if ${ac_cv_prog_DLLTOOL+:} false; then :
6194   $as_echo_n "(cached) " >&6
6195 else
6196   if test -n "$DLLTOOL"; then
6197   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6198 else
6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 for as_dir in $PATH
6201 do
6202   IFS=$as_save_IFS
6203   test -z "$as_dir" && as_dir=.
6204     for ac_exec_ext in '' $ac_executable_extensions; do
6205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6206     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6208     break 2
6209   fi
6210 done
6211   done
6212 IFS=$as_save_IFS
6213
6214 fi
6215 fi
6216 DLLTOOL=$ac_cv_prog_DLLTOOL
6217 if test -n "$DLLTOOL"; then
6218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6219 $as_echo "$DLLTOOL" >&6; }
6220 else
6221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6222 $as_echo "no" >&6; }
6223 fi
6224
6225
6226 fi
6227 if test -z "$ac_cv_prog_DLLTOOL"; then
6228   ac_ct_DLLTOOL=$DLLTOOL
6229   # Extract the first word of "dlltool", so it can be a program name with args.
6230 set dummy dlltool; ac_word=$2
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6232 $as_echo_n "checking for $ac_word... " >&6; }
6233 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6234   $as_echo_n "(cached) " >&6
6235 else
6236   if test -n "$ac_ct_DLLTOOL"; then
6237   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6238 else
6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 for as_dir in $PATH
6241 do
6242   IFS=$as_save_IFS
6243   test -z "$as_dir" && as_dir=.
6244     for ac_exec_ext in '' $ac_executable_extensions; do
6245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6246     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6248     break 2
6249   fi
6250 done
6251   done
6252 IFS=$as_save_IFS
6253
6254 fi
6255 fi
6256 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6257 if test -n "$ac_ct_DLLTOOL"; then
6258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6259 $as_echo "$ac_ct_DLLTOOL" >&6; }
6260 else
6261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6262 $as_echo "no" >&6; }
6263 fi
6264
6265   if test "x$ac_ct_DLLTOOL" = x; then
6266     DLLTOOL="false"
6267   else
6268     case $cross_compiling:$ac_tool_warned in
6269 yes:)
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6272 ac_tool_warned=yes ;;
6273 esac
6274     DLLTOOL=$ac_ct_DLLTOOL
6275   fi
6276 else
6277   DLLTOOL="$ac_cv_prog_DLLTOOL"
6278 fi
6279
6280 test -z "$DLLTOOL" && DLLTOOL=dlltool
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6292 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6293 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6294   $as_echo_n "(cached) " >&6
6295 else
6296   lt_cv_sharedlib_from_linklib_cmd='unknown'
6297
6298 case $host_os in
6299 cygwin* | mingw* | pw32* | cegcc*)
6300   # two different shell functions defined in ltmain.sh
6301   # decide which to use based on capabilities of $DLLTOOL
6302   case `$DLLTOOL --help 2>&1` in
6303   *--identify-strict*)
6304     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6305     ;;
6306   *)
6307     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6308     ;;
6309   esac
6310   ;;
6311 *)
6312   # fallback: assume linklib IS sharedlib
6313   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6314   ;;
6315 esac
6316
6317 fi
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6319 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6320 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6321 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6322
6323
6324
6325
6326
6327
6328
6329
6330 if test -n "$ac_tool_prefix"; then
6331   for ac_prog in ar
6332   do
6333     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6336 $as_echo_n "checking for $ac_word... " >&6; }
6337 if ${ac_cv_prog_AR+:} false; then :
6338   $as_echo_n "(cached) " >&6
6339 else
6340   if test -n "$AR"; then
6341   ac_cv_prog_AR="$AR" # Let the user override the test.
6342 else
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 for as_dir in $PATH
6345 do
6346   IFS=$as_save_IFS
6347   test -z "$as_dir" && as_dir=.
6348     for ac_exec_ext in '' $ac_executable_extensions; do
6349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6350     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6352     break 2
6353   fi
6354 done
6355   done
6356 IFS=$as_save_IFS
6357
6358 fi
6359 fi
6360 AR=$ac_cv_prog_AR
6361 if test -n "$AR"; then
6362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6363 $as_echo "$AR" >&6; }
6364 else
6365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366 $as_echo "no" >&6; }
6367 fi
6368
6369
6370     test -n "$AR" && break
6371   done
6372 fi
6373 if test -z "$AR"; then
6374   ac_ct_AR=$AR
6375   for ac_prog in ar
6376 do
6377   # Extract the first word of "$ac_prog", so it can be a program name with args.
6378 set dummy $ac_prog; ac_word=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6382   $as_echo_n "(cached) " >&6
6383 else
6384   if test -n "$ac_ct_AR"; then
6385   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6386 else
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6389 do
6390   IFS=$as_save_IFS
6391   test -z "$as_dir" && as_dir=.
6392     for ac_exec_ext in '' $ac_executable_extensions; do
6393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394     ac_cv_prog_ac_ct_AR="$ac_prog"
6395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396     break 2
6397   fi
6398 done
6399   done
6400 IFS=$as_save_IFS
6401
6402 fi
6403 fi
6404 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6405 if test -n "$ac_ct_AR"; then
6406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6407 $as_echo "$ac_ct_AR" >&6; }
6408 else
6409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410 $as_echo "no" >&6; }
6411 fi
6412
6413
6414   test -n "$ac_ct_AR" && break
6415 done
6416
6417   if test "x$ac_ct_AR" = x; then
6418     AR="false"
6419   else
6420     case $cross_compiling:$ac_tool_warned in
6421 yes:)
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6424 ac_tool_warned=yes ;;
6425 esac
6426     AR=$ac_ct_AR
6427   fi
6428 fi
6429
6430 : ${AR=ar}
6431 : ${AR_FLAGS=cru}
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6444 $as_echo_n "checking for archiver @FILE support... " >&6; }
6445 if ${lt_cv_ar_at_file+:} false; then :
6446   $as_echo_n "(cached) " >&6
6447 else
6448   lt_cv_ar_at_file=no
6449    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h.  */
6451
6452 int
6453 main ()
6454 {
6455
6456   ;
6457   return 0;
6458 }
6459 _ACEOF
6460 if ac_fn_cxx_try_compile "$LINENO"; then :
6461   echo conftest.$ac_objext > conftest.lst
6462       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6463       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6464   (eval $lt_ar_try) 2>&5
6465   ac_status=$?
6466   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6467   test $ac_status = 0; }
6468       if test "$ac_status" -eq 0; then
6469         # Ensure the archiver fails upon bogus file names.
6470         rm -f conftest.$ac_objext libconftest.a
6471         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6472   (eval $lt_ar_try) 2>&5
6473   ac_status=$?
6474   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6475   test $ac_status = 0; }
6476         if test "$ac_status" -ne 0; then
6477           lt_cv_ar_at_file=@
6478         fi
6479       fi
6480       rm -f conftest.* libconftest.a
6481
6482 fi
6483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6484
6485 fi
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6487 $as_echo "$lt_cv_ar_at_file" >&6; }
6488
6489 if test "x$lt_cv_ar_at_file" = xno; then
6490   archiver_list_spec=
6491 else
6492   archiver_list_spec=$lt_cv_ar_at_file
6493 fi
6494
6495
6496
6497
6498
6499
6500
6501 if test -n "$ac_tool_prefix"; then
6502   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6503 set dummy ${ac_tool_prefix}strip; ac_word=$2
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505 $as_echo_n "checking for $ac_word... " >&6; }
6506 if ${ac_cv_prog_STRIP+:} false; then :
6507   $as_echo_n "(cached) " >&6
6508 else
6509   if test -n "$STRIP"; then
6510   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6511 else
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 for as_dir in $PATH
6514 do
6515   IFS=$as_save_IFS
6516   test -z "$as_dir" && as_dir=.
6517     for ac_exec_ext in '' $ac_executable_extensions; do
6518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6519     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6521     break 2
6522   fi
6523 done
6524   done
6525 IFS=$as_save_IFS
6526
6527 fi
6528 fi
6529 STRIP=$ac_cv_prog_STRIP
6530 if test -n "$STRIP"; then
6531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6532 $as_echo "$STRIP" >&6; }
6533 else
6534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535 $as_echo "no" >&6; }
6536 fi
6537
6538
6539 fi
6540 if test -z "$ac_cv_prog_STRIP"; then
6541   ac_ct_STRIP=$STRIP
6542   # Extract the first word of "strip", so it can be a program name with args.
6543 set dummy strip; ac_word=$2
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545 $as_echo_n "checking for $ac_word... " >&6; }
6546 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6547   $as_echo_n "(cached) " >&6
6548 else
6549   if test -n "$ac_ct_STRIP"; then
6550   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6551 else
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH
6554 do
6555   IFS=$as_save_IFS
6556   test -z "$as_dir" && as_dir=.
6557     for ac_exec_ext in '' $ac_executable_extensions; do
6558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6559     ac_cv_prog_ac_ct_STRIP="strip"
6560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561     break 2
6562   fi
6563 done
6564   done
6565 IFS=$as_save_IFS
6566
6567 fi
6568 fi
6569 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6570 if test -n "$ac_ct_STRIP"; then
6571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6572 $as_echo "$ac_ct_STRIP" >&6; }
6573 else
6574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 $as_echo "no" >&6; }
6576 fi
6577
6578   if test "x$ac_ct_STRIP" = x; then
6579     STRIP=":"
6580   else
6581     case $cross_compiling:$ac_tool_warned in
6582 yes:)
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6585 ac_tool_warned=yes ;;
6586 esac
6587     STRIP=$ac_ct_STRIP
6588   fi
6589 else
6590   STRIP="$ac_cv_prog_STRIP"
6591 fi
6592
6593 test -z "$STRIP" && STRIP=:
6594
6595
6596
6597
6598
6599
6600 if test -n "$ac_tool_prefix"; then
6601   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6602 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604 $as_echo_n "checking for $ac_word... " >&6; }
6605 if ${ac_cv_prog_RANLIB+:} false; then :
6606   $as_echo_n "(cached) " >&6
6607 else
6608   if test -n "$RANLIB"; then
6609   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6610 else
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 for as_dir in $PATH
6613 do
6614   IFS=$as_save_IFS
6615   test -z "$as_dir" && as_dir=.
6616     for ac_exec_ext in '' $ac_executable_extensions; do
6617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6618     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6620     break 2
6621   fi
6622 done
6623   done
6624 IFS=$as_save_IFS
6625
6626 fi
6627 fi
6628 RANLIB=$ac_cv_prog_RANLIB
6629 if test -n "$RANLIB"; then
6630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6631 $as_echo "$RANLIB" >&6; }
6632 else
6633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; }
6635 fi
6636
6637
6638 fi
6639 if test -z "$ac_cv_prog_RANLIB"; then
6640   ac_ct_RANLIB=$RANLIB
6641   # Extract the first word of "ranlib", so it can be a program name with args.
6642 set dummy ranlib; ac_word=$2
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6644 $as_echo_n "checking for $ac_word... " >&6; }
6645 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6646   $as_echo_n "(cached) " >&6
6647 else
6648   if test -n "$ac_ct_RANLIB"; then
6649   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6650 else
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 for as_dir in $PATH
6653 do
6654   IFS=$as_save_IFS
6655   test -z "$as_dir" && as_dir=.
6656     for ac_exec_ext in '' $ac_executable_extensions; do
6657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6658     ac_cv_prog_ac_ct_RANLIB="ranlib"
6659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6660     break 2
6661   fi
6662 done
6663   done
6664 IFS=$as_save_IFS
6665
6666 fi
6667 fi
6668 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6669 if test -n "$ac_ct_RANLIB"; then
6670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6671 $as_echo "$ac_ct_RANLIB" >&6; }
6672 else
6673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674 $as_echo "no" >&6; }
6675 fi
6676
6677   if test "x$ac_ct_RANLIB" = x; then
6678     RANLIB=":"
6679   else
6680     case $cross_compiling:$ac_tool_warned in
6681 yes:)
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6684 ac_tool_warned=yes ;;
6685 esac
6686     RANLIB=$ac_ct_RANLIB
6687   fi
6688 else
6689   RANLIB="$ac_cv_prog_RANLIB"
6690 fi
6691
6692 test -z "$RANLIB" && RANLIB=:
6693
6694
6695
6696
6697
6698
6699 # Determine commands to create old-style static archives.
6700 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6701 old_postinstall_cmds='chmod 644 $oldlib'
6702 old_postuninstall_cmds=
6703
6704 if test -n "$RANLIB"; then
6705   case $host_os in
6706   openbsd*)
6707     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6708     ;;
6709   *)
6710     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6711     ;;
6712   esac
6713   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6714 fi
6715
6716 case $host_os in
6717   darwin*)
6718     lock_old_archive_extraction=yes ;;
6719   *)
6720     lock_old_archive_extraction=no ;;
6721 esac
6722
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 # If no C compiler was specified, use CC.
6762 LTCC=${LTCC-"$CC"}
6763
6764 # If no C compiler flags were specified, use CFLAGS.
6765 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6766
6767 # Allow CC to be a program name with arguments.
6768 compiler=$CC
6769
6770
6771 # Check for command to grab the raw symbol name followed by C symbol from nm.
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6773 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6774 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6775   $as_echo_n "(cached) " >&6
6776 else
6777
6778 # These are sane defaults that work on at least a few old systems.
6779 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6780
6781 # Character class describing NM global symbol codes.
6782 symcode='[BCDEGRST]'
6783
6784 # Regexp to match symbols that can be accessed directly from C.
6785 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6786
6787 # Define system-specific variables.
6788 case $host_os in
6789 aix*)
6790   symcode='[BCDT]'
6791   ;;
6792 cygwin* | mingw* | pw32* | cegcc*)
6793   symcode='[ABCDGISTW]'
6794   ;;
6795 hpux*)
6796   if test "$host_cpu" = ia64; then
6797     symcode='[ABCDEGRST]'
6798   fi
6799   ;;
6800 irix* | nonstopux*)
6801   symcode='[BCDEGRST]'
6802   ;;
6803 osf*)
6804   symcode='[BCDEGQRST]'
6805   ;;
6806 solaris*)
6807   symcode='[BDRT]'
6808   ;;
6809 sco3.2v5*)
6810   symcode='[DT]'
6811   ;;
6812 sysv4.2uw2*)
6813   symcode='[DT]'
6814   ;;
6815 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6816   symcode='[ABDT]'
6817   ;;
6818 sysv4)
6819   symcode='[DFNSTU]'
6820   ;;
6821 esac
6822
6823 # If we're using GNU nm, then use its standard symbol codes.
6824 case `$NM -V 2>&1` in
6825 *GNU* | *'with BFD'*)
6826   symcode='[ABCDGIRSTW]' ;;
6827 esac
6828
6829 # Transform an extracted symbol line into a proper C declaration.
6830 # Some systems (esp. on ia64) link data and code symbols differently,
6831 # so use this general approach.
6832 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6833
6834 # Transform an extracted symbol line into symbol name and symbol address
6835 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6836 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'"
6837
6838 # Handle CRLF in mingw tool chain
6839 opt_cr=
6840 case $build_os in
6841 mingw*)
6842   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6843   ;;
6844 esac
6845
6846 # Try without a prefix underscore, then with it.
6847 for ac_symprfx in "" "_"; do
6848
6849   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6850   symxfrm="\\1 $ac_symprfx\\2 \\2"
6851
6852   # Write the raw and C identifiers.
6853   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6854     # Fake it for dumpbin and say T for any non-static function
6855     # and D for any global variable.
6856     # Also find C++ and __fastcall symbols from MSVC++,
6857     # which start with @ or ?.
6858     lt_cv_sys_global_symbol_pipe="$AWK '"\
6859 "     {last_section=section; section=\$ 3};"\
6860 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6861 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6862 "     \$ 0!~/External *\|/{next};"\
6863 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6864 "     {if(hide[section]) next};"\
6865 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6866 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6867 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6868 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6869 "     ' prfx=^$ac_symprfx"
6870   else
6871     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6872   fi
6873   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6874
6875   # Check to see that the pipe works correctly.
6876   pipe_works=no
6877
6878   rm -f conftest*
6879   cat > conftest.$ac_ext <<_LT_EOF
6880 #ifdef __cplusplus
6881 extern "C" {
6882 #endif
6883 char nm_test_var;
6884 void nm_test_func(void);
6885 void nm_test_func(void){}
6886 #ifdef __cplusplus
6887 }
6888 #endif
6889 int main(){nm_test_var='a';nm_test_func();return(0);}
6890 _LT_EOF
6891
6892   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6893   (eval $ac_compile) 2>&5
6894   ac_status=$?
6895   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6896   test $ac_status = 0; }; then
6897     # Now try to grab the symbols.
6898     nlist=conftest.nm
6899     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6900   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6901   ac_status=$?
6902   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6903   test $ac_status = 0; } && test -s "$nlist"; then
6904       # Try sorting and uniquifying the output.
6905       if sort "$nlist" | uniq > "$nlist"T; then
6906         mv -f "$nlist"T "$nlist"
6907       else
6908         rm -f "$nlist"T
6909       fi
6910
6911       # Make sure that we snagged all the symbols we need.
6912       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6913         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6914           cat <<_LT_EOF > conftest.$ac_ext
6915 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6916 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6917 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6918    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6919 # define LT_DLSYM_CONST
6920 #elif defined(__osf__)
6921 /* This system does not cope well with relocations in const data.  */
6922 # define LT_DLSYM_CONST
6923 #else
6924 # define LT_DLSYM_CONST const
6925 #endif
6926
6927 #ifdef __cplusplus
6928 extern "C" {
6929 #endif
6930
6931 _LT_EOF
6932           # Now generate the symbol file.
6933           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6934
6935           cat <<_LT_EOF >> conftest.$ac_ext
6936
6937 /* The mapping between symbol names and symbols.  */
6938 LT_DLSYM_CONST struct {
6939   const char *name;
6940   void       *address;
6941 }
6942 lt__PROGRAM__LTX_preloaded_symbols[] =
6943 {
6944   { "@PROGRAM@", (void *) 0 },
6945 _LT_EOF
6946           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6947           cat <<\_LT_EOF >> conftest.$ac_ext
6948   {0, (void *) 0}
6949 };
6950
6951 /* This works around a problem in FreeBSD linker */
6952 #ifdef FREEBSD_WORKAROUND
6953 static const void *lt_preloaded_setup() {
6954   return lt__PROGRAM__LTX_preloaded_symbols;
6955 }
6956 #endif
6957
6958 #ifdef __cplusplus
6959 }
6960 #endif
6961 _LT_EOF
6962           # Now try linking the two files.
6963           mv conftest.$ac_objext conftstm.$ac_objext
6964           lt_globsym_save_LIBS=$LIBS
6965           lt_globsym_save_CFLAGS=$CFLAGS
6966           LIBS="conftstm.$ac_objext"
6967           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6968           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6969   (eval $ac_link) 2>&5
6970   ac_status=$?
6971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6972   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6973             pipe_works=yes
6974           fi
6975           LIBS=$lt_globsym_save_LIBS
6976           CFLAGS=$lt_globsym_save_CFLAGS
6977         else
6978           echo "cannot find nm_test_func in $nlist" >&5
6979         fi
6980       else
6981         echo "cannot find nm_test_var in $nlist" >&5
6982       fi
6983     else
6984       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6985     fi
6986   else
6987     echo "$progname: failed program was:" >&5
6988     cat conftest.$ac_ext >&5
6989   fi
6990   rm -rf conftest* conftst*
6991
6992   # Do not use the global_symbol_pipe unless it works.
6993   if test "$pipe_works" = yes; then
6994     break
6995   else
6996     lt_cv_sys_global_symbol_pipe=
6997   fi
6998 done
6999
7000 fi
7001
7002 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7003   lt_cv_sys_global_symbol_to_cdecl=
7004 fi
7005 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7007 $as_echo "failed" >&6; }
7008 else
7009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7010 $as_echo "ok" >&6; }
7011 fi
7012
7013 # Response file support.
7014 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7015   nm_file_list_spec='@'
7016 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7017   nm_file_list_spec='@'
7018 fi
7019
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7047 $as_echo_n "checking for sysroot... " >&6; }
7048
7049 # Check whether --with-sysroot was given.
7050 if test "${with_sysroot+set}" = set; then :
7051   withval=$with_sysroot;
7052 else
7053   with_sysroot=no
7054 fi
7055
7056
7057 lt_sysroot=
7058 case ${with_sysroot} in #(
7059  yes)
7060    if test "$GCC" = yes; then
7061      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7062    fi
7063    ;; #(
7064  /*)
7065    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7066    ;; #(
7067  no|'')
7068    ;; #(
7069  *)
7070    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7071 $as_echo "${with_sysroot}" >&6; }
7072    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7073    ;;
7074 esac
7075
7076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7077 $as_echo "${lt_sysroot:-no}" >&6; }
7078
7079
7080
7081
7082
7083
7084 # Check whether --enable-libtool-lock was given.
7085 if test "${enable_libtool_lock+set}" = set; then :
7086   enableval=$enable_libtool_lock;
7087 fi
7088
7089 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7090
7091 # Some flags need to be propagated to the compiler or linker for good
7092 # libtool support.
7093 case $host in
7094 ia64-*-hpux*)
7095   # Find out which ABI we are using.
7096   echo 'int i;' > conftest.$ac_ext
7097   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7098   (eval $ac_compile) 2>&5
7099   ac_status=$?
7100   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7101   test $ac_status = 0; }; then
7102     case `/usr/bin/file conftest.$ac_objext` in
7103       *ELF-32*)
7104         HPUX_IA64_MODE="32"
7105         ;;
7106       *ELF-64*)
7107         HPUX_IA64_MODE="64"
7108         ;;
7109     esac
7110   fi
7111   rm -rf conftest*
7112   ;;
7113 *-*-irix6*)
7114   # Find out which ABI we are using.
7115   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7116   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7117   (eval $ac_compile) 2>&5
7118   ac_status=$?
7119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7120   test $ac_status = 0; }; then
7121     if test "$lt_cv_prog_gnu_ld" = yes; then
7122       case `/usr/bin/file conftest.$ac_objext` in
7123         *32-bit*)
7124           LD="${LD-ld} -melf32bsmip"
7125           ;;
7126         *N32*)
7127           LD="${LD-ld} -melf32bmipn32"
7128           ;;
7129         *64-bit*)
7130           LD="${LD-ld} -melf64bmip"
7131         ;;
7132       esac
7133     else
7134       case `/usr/bin/file conftest.$ac_objext` in
7135         *32-bit*)
7136           LD="${LD-ld} -32"
7137           ;;
7138         *N32*)
7139           LD="${LD-ld} -n32"
7140           ;;
7141         *64-bit*)
7142           LD="${LD-ld} -64"
7143           ;;
7144       esac
7145     fi
7146   fi
7147   rm -rf conftest*
7148   ;;
7149
7150 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7151 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7152   # Find out which ABI we are using.
7153   echo 'int i;' > conftest.$ac_ext
7154   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7155   (eval $ac_compile) 2>&5
7156   ac_status=$?
7157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7158   test $ac_status = 0; }; then
7159     case `/usr/bin/file conftest.o` in
7160       *32-bit*)
7161         case $host in
7162           x86_64-*kfreebsd*-gnu)
7163             LD="${LD-ld} -m elf_i386_fbsd"
7164             ;;
7165           x86_64-*linux*)
7166             LD="${LD-ld} -m elf_i386"
7167             ;;
7168           ppc64-*linux*|powerpc64-*linux*)
7169             LD="${LD-ld} -m elf32ppclinux"
7170             ;;
7171           s390x-*linux*)
7172             LD="${LD-ld} -m elf_s390"
7173             ;;
7174           sparc64-*linux*)
7175             LD="${LD-ld} -m elf32_sparc"
7176             ;;
7177         esac
7178         ;;
7179       *64-bit*)
7180         case $host in
7181           x86_64-*kfreebsd*-gnu)
7182             LD="${LD-ld} -m elf_x86_64_fbsd"
7183             ;;
7184           x86_64-*linux*)
7185             LD="${LD-ld} -m elf_x86_64"
7186             ;;
7187           ppc*-*linux*|powerpc*-*linux*)
7188             LD="${LD-ld} -m elf64ppc"
7189             ;;
7190           s390*-*linux*|s390*-*tpf*)
7191             LD="${LD-ld} -m elf64_s390"
7192             ;;
7193           sparc*-*linux*)
7194             LD="${LD-ld} -m elf64_sparc"
7195             ;;
7196         esac
7197         ;;
7198     esac
7199   fi
7200   rm -rf conftest*
7201   ;;
7202
7203 *-*-sco3.2v5*)
7204   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7205   SAVE_CFLAGS="$CFLAGS"
7206   CFLAGS="$CFLAGS -belf"
7207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7208 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7209 if ${lt_cv_cc_needs_belf+:} false; then :
7210   $as_echo_n "(cached) " >&6
7211 else
7212   ac_ext=c
7213 ac_cpp='$CPP $CPPFLAGS'
7214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7217
7218      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7219 /* end confdefs.h.  */
7220
7221 int
7222 main ()
7223 {
7224
7225   ;
7226   return 0;
7227 }
7228 _ACEOF
7229 if ac_fn_c_try_link "$LINENO"; then :
7230   lt_cv_cc_needs_belf=yes
7231 else
7232   lt_cv_cc_needs_belf=no
7233 fi
7234 rm -f core conftest.err conftest.$ac_objext \
7235     conftest$ac_exeext conftest.$ac_ext
7236      ac_ext=c
7237 ac_cpp='$CPP $CPPFLAGS'
7238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7241
7242 fi
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7244 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7245   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7246     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7247     CFLAGS="$SAVE_CFLAGS"
7248   fi
7249   ;;
7250 *-*solaris*)
7251   # Find out which ABI we are using.
7252   echo 'int i;' > conftest.$ac_ext
7253   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7254   (eval $ac_compile) 2>&5
7255   ac_status=$?
7256   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7257   test $ac_status = 0; }; then
7258     case `/usr/bin/file conftest.o` in
7259     *64-bit*)
7260       case $lt_cv_prog_gnu_ld in
7261       yes*)
7262         case $host in
7263         i?86-*-solaris*)
7264           LD="${LD-ld} -m elf_x86_64"
7265           ;;
7266         sparc*-*-solaris*)
7267           LD="${LD-ld} -m elf64_sparc"
7268           ;;
7269         esac
7270         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7271         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7272           LD="${LD-ld}_sol2"
7273         fi
7274         ;;
7275       *)
7276         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7277           LD="${LD-ld} -64"
7278         fi
7279         ;;
7280       esac
7281       ;;
7282     esac
7283   fi
7284   rm -rf conftest*
7285   ;;
7286 esac
7287
7288 need_locks="$enable_libtool_lock"
7289
7290 if test -n "$ac_tool_prefix"; then
7291   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7292 set dummy ${ac_tool_prefix}mt; ac_word=$2
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7294 $as_echo_n "checking for $ac_word... " >&6; }
7295 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7296   $as_echo_n "(cached) " >&6
7297 else
7298   if test -n "$MANIFEST_TOOL"; then
7299   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7300 else
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 for as_dir in $PATH
7303 do
7304   IFS=$as_save_IFS
7305   test -z "$as_dir" && as_dir=.
7306     for ac_exec_ext in '' $ac_executable_extensions; do
7307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7308     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7310     break 2
7311   fi
7312 done
7313   done
7314 IFS=$as_save_IFS
7315
7316 fi
7317 fi
7318 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7319 if test -n "$MANIFEST_TOOL"; then
7320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7321 $as_echo "$MANIFEST_TOOL" >&6; }
7322 else
7323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7324 $as_echo "no" >&6; }
7325 fi
7326
7327
7328 fi
7329 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7330   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7331   # Extract the first word of "mt", so it can be a program name with args.
7332 set dummy mt; ac_word=$2
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334 $as_echo_n "checking for $ac_word... " >&6; }
7335 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7336   $as_echo_n "(cached) " >&6
7337 else
7338   if test -n "$ac_ct_MANIFEST_TOOL"; then
7339   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7340 else
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 for as_dir in $PATH
7343 do
7344   IFS=$as_save_IFS
7345   test -z "$as_dir" && as_dir=.
7346     for ac_exec_ext in '' $ac_executable_extensions; do
7347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7348     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7350     break 2
7351   fi
7352 done
7353   done
7354 IFS=$as_save_IFS
7355
7356 fi
7357 fi
7358 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7359 if test -n "$ac_ct_MANIFEST_TOOL"; then
7360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7361 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7362 else
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 $as_echo "no" >&6; }
7365 fi
7366
7367   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7368     MANIFEST_TOOL=":"
7369   else
7370     case $cross_compiling:$ac_tool_warned in
7371 yes:)
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7374 ac_tool_warned=yes ;;
7375 esac
7376     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7377   fi
7378 else
7379   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7380 fi
7381
7382 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7384 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7385 if ${lt_cv_path_mainfest_tool+:} false; then :
7386   $as_echo_n "(cached) " >&6
7387 else
7388   lt_cv_path_mainfest_tool=no
7389   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7390   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7391   cat conftest.err >&5
7392   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7393     lt_cv_path_mainfest_tool=yes
7394   fi
7395   rm -f conftest*
7396 fi
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7398 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7399 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7400   MANIFEST_TOOL=:
7401 fi
7402
7403
7404
7405
7406
7407
7408   case $host_os in
7409     rhapsody* | darwin*)
7410     if test -n "$ac_tool_prefix"; then
7411   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7412 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7414 $as_echo_n "checking for $ac_word... " >&6; }
7415 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7416   $as_echo_n "(cached) " >&6
7417 else
7418   if test -n "$DSYMUTIL"; then
7419   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7420 else
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 for as_dir in $PATH
7423 do
7424   IFS=$as_save_IFS
7425   test -z "$as_dir" && as_dir=.
7426     for ac_exec_ext in '' $ac_executable_extensions; do
7427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7428     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7430     break 2
7431   fi
7432 done
7433   done
7434 IFS=$as_save_IFS
7435
7436 fi
7437 fi
7438 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7439 if test -n "$DSYMUTIL"; then
7440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7441 $as_echo "$DSYMUTIL" >&6; }
7442 else
7443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444 $as_echo "no" >&6; }
7445 fi
7446
7447
7448 fi
7449 if test -z "$ac_cv_prog_DSYMUTIL"; then
7450   ac_ct_DSYMUTIL=$DSYMUTIL
7451   # Extract the first word of "dsymutil", so it can be a program name with args.
7452 set dummy dsymutil; ac_word=$2
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454 $as_echo_n "checking for $ac_word... " >&6; }
7455 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7456   $as_echo_n "(cached) " >&6
7457 else
7458   if test -n "$ac_ct_DSYMUTIL"; then
7459   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7460 else
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 for as_dir in $PATH
7463 do
7464   IFS=$as_save_IFS
7465   test -z "$as_dir" && as_dir=.
7466     for ac_exec_ext in '' $ac_executable_extensions; do
7467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7468     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7470     break 2
7471   fi
7472 done
7473   done
7474 IFS=$as_save_IFS
7475
7476 fi
7477 fi
7478 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7479 if test -n "$ac_ct_DSYMUTIL"; then
7480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7481 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7482 else
7483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484 $as_echo "no" >&6; }
7485 fi
7486
7487   if test "x$ac_ct_DSYMUTIL" = x; then
7488     DSYMUTIL=":"
7489   else
7490     case $cross_compiling:$ac_tool_warned in
7491 yes:)
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7494 ac_tool_warned=yes ;;
7495 esac
7496     DSYMUTIL=$ac_ct_DSYMUTIL
7497   fi
7498 else
7499   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7500 fi
7501
7502     if test -n "$ac_tool_prefix"; then
7503   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7504 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7506 $as_echo_n "checking for $ac_word... " >&6; }
7507 if ${ac_cv_prog_NMEDIT+:} false; then :
7508   $as_echo_n "(cached) " >&6
7509 else
7510   if test -n "$NMEDIT"; then
7511   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7512 else
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514 for as_dir in $PATH
7515 do
7516   IFS=$as_save_IFS
7517   test -z "$as_dir" && as_dir=.
7518     for ac_exec_ext in '' $ac_executable_extensions; do
7519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7520     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7522     break 2
7523   fi
7524 done
7525   done
7526 IFS=$as_save_IFS
7527
7528 fi
7529 fi
7530 NMEDIT=$ac_cv_prog_NMEDIT
7531 if test -n "$NMEDIT"; then
7532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7533 $as_echo "$NMEDIT" >&6; }
7534 else
7535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536 $as_echo "no" >&6; }
7537 fi
7538
7539
7540 fi
7541 if test -z "$ac_cv_prog_NMEDIT"; then
7542   ac_ct_NMEDIT=$NMEDIT
7543   # Extract the first word of "nmedit", so it can be a program name with args.
7544 set dummy nmedit; ac_word=$2
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7546 $as_echo_n "checking for $ac_word... " >&6; }
7547 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7548   $as_echo_n "(cached) " >&6
7549 else
7550   if test -n "$ac_ct_NMEDIT"; then
7551   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7552 else
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 for as_dir in $PATH
7555 do
7556   IFS=$as_save_IFS
7557   test -z "$as_dir" && as_dir=.
7558     for ac_exec_ext in '' $ac_executable_extensions; do
7559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7560     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562     break 2
7563   fi
7564 done
7565   done
7566 IFS=$as_save_IFS
7567
7568 fi
7569 fi
7570 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7571 if test -n "$ac_ct_NMEDIT"; then
7572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7573 $as_echo "$ac_ct_NMEDIT" >&6; }
7574 else
7575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576 $as_echo "no" >&6; }
7577 fi
7578
7579   if test "x$ac_ct_NMEDIT" = x; then
7580     NMEDIT=":"
7581   else
7582     case $cross_compiling:$ac_tool_warned in
7583 yes:)
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7586 ac_tool_warned=yes ;;
7587 esac
7588     NMEDIT=$ac_ct_NMEDIT
7589   fi
7590 else
7591   NMEDIT="$ac_cv_prog_NMEDIT"
7592 fi
7593
7594     if test -n "$ac_tool_prefix"; then
7595   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7596 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7598 $as_echo_n "checking for $ac_word... " >&6; }
7599 if ${ac_cv_prog_LIPO+:} false; then :
7600   $as_echo_n "(cached) " >&6
7601 else
7602   if test -n "$LIPO"; then
7603   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7604 else
7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 for as_dir in $PATH
7607 do
7608   IFS=$as_save_IFS
7609   test -z "$as_dir" && as_dir=.
7610     for ac_exec_ext in '' $ac_executable_extensions; do
7611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7612     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7614     break 2
7615   fi
7616 done
7617   done
7618 IFS=$as_save_IFS
7619
7620 fi
7621 fi
7622 LIPO=$ac_cv_prog_LIPO
7623 if test -n "$LIPO"; then
7624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7625 $as_echo "$LIPO" >&6; }
7626 else
7627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7628 $as_echo "no" >&6; }
7629 fi
7630
7631
7632 fi
7633 if test -z "$ac_cv_prog_LIPO"; then
7634   ac_ct_LIPO=$LIPO
7635   # Extract the first word of "lipo", so it can be a program name with args.
7636 set dummy lipo; ac_word=$2
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638 $as_echo_n "checking for $ac_word... " >&6; }
7639 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7640   $as_echo_n "(cached) " >&6
7641 else
7642   if test -n "$ac_ct_LIPO"; then
7643   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7644 else
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 for as_dir in $PATH
7647 do
7648   IFS=$as_save_IFS
7649   test -z "$as_dir" && as_dir=.
7650     for ac_exec_ext in '' $ac_executable_extensions; do
7651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7652     ac_cv_prog_ac_ct_LIPO="lipo"
7653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7654     break 2
7655   fi
7656 done
7657   done
7658 IFS=$as_save_IFS
7659
7660 fi
7661 fi
7662 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7663 if test -n "$ac_ct_LIPO"; then
7664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7665 $as_echo "$ac_ct_LIPO" >&6; }
7666 else
7667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668 $as_echo "no" >&6; }
7669 fi
7670
7671   if test "x$ac_ct_LIPO" = x; then
7672     LIPO=":"
7673   else
7674     case $cross_compiling:$ac_tool_warned in
7675 yes:)
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7678 ac_tool_warned=yes ;;
7679 esac
7680     LIPO=$ac_ct_LIPO
7681   fi
7682 else
7683   LIPO="$ac_cv_prog_LIPO"
7684 fi
7685
7686     if test -n "$ac_tool_prefix"; then
7687   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7688 set dummy ${ac_tool_prefix}otool; ac_word=$2
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7690 $as_echo_n "checking for $ac_word... " >&6; }
7691 if ${ac_cv_prog_OTOOL+:} false; then :
7692   $as_echo_n "(cached) " >&6
7693 else
7694   if test -n "$OTOOL"; then
7695   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7696 else
7697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698 for as_dir in $PATH
7699 do
7700   IFS=$as_save_IFS
7701   test -z "$as_dir" && as_dir=.
7702     for ac_exec_ext in '' $ac_executable_extensions; do
7703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7704     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7706     break 2
7707   fi
7708 done
7709   done
7710 IFS=$as_save_IFS
7711
7712 fi
7713 fi
7714 OTOOL=$ac_cv_prog_OTOOL
7715 if test -n "$OTOOL"; then
7716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7717 $as_echo "$OTOOL" >&6; }
7718 else
7719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7720 $as_echo "no" >&6; }
7721 fi
7722
7723
7724 fi
7725 if test -z "$ac_cv_prog_OTOOL"; then
7726   ac_ct_OTOOL=$OTOOL
7727   # Extract the first word of "otool", so it can be a program name with args.
7728 set dummy otool; ac_word=$2
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7730 $as_echo_n "checking for $ac_word... " >&6; }
7731 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7732   $as_echo_n "(cached) " >&6
7733 else
7734   if test -n "$ac_ct_OTOOL"; then
7735   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7736 else
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738 for as_dir in $PATH
7739 do
7740   IFS=$as_save_IFS
7741   test -z "$as_dir" && as_dir=.
7742     for ac_exec_ext in '' $ac_executable_extensions; do
7743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7744     ac_cv_prog_ac_ct_OTOOL="otool"
7745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7746     break 2
7747   fi
7748 done
7749   done
7750 IFS=$as_save_IFS
7751
7752 fi
7753 fi
7754 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7755 if test -n "$ac_ct_OTOOL"; then
7756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7757 $as_echo "$ac_ct_OTOOL" >&6; }
7758 else
7759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760 $as_echo "no" >&6; }
7761 fi
7762
7763   if test "x$ac_ct_OTOOL" = x; then
7764     OTOOL=":"
7765   else
7766     case $cross_compiling:$ac_tool_warned in
7767 yes:)
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7770 ac_tool_warned=yes ;;
7771 esac
7772     OTOOL=$ac_ct_OTOOL
7773   fi
7774 else
7775   OTOOL="$ac_cv_prog_OTOOL"
7776 fi
7777
7778     if test -n "$ac_tool_prefix"; then
7779   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7780 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782 $as_echo_n "checking for $ac_word... " >&6; }
7783 if ${ac_cv_prog_OTOOL64+:} false; then :
7784   $as_echo_n "(cached) " >&6
7785 else
7786   if test -n "$OTOOL64"; then
7787   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7788 else
7789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790 for as_dir in $PATH
7791 do
7792   IFS=$as_save_IFS
7793   test -z "$as_dir" && as_dir=.
7794     for ac_exec_ext in '' $ac_executable_extensions; do
7795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7796     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7798     break 2
7799   fi
7800 done
7801   done
7802 IFS=$as_save_IFS
7803
7804 fi
7805 fi
7806 OTOOL64=$ac_cv_prog_OTOOL64
7807 if test -n "$OTOOL64"; then
7808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7809 $as_echo "$OTOOL64" >&6; }
7810 else
7811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812 $as_echo "no" >&6; }
7813 fi
7814
7815
7816 fi
7817 if test -z "$ac_cv_prog_OTOOL64"; then
7818   ac_ct_OTOOL64=$OTOOL64
7819   # Extract the first word of "otool64", so it can be a program name with args.
7820 set dummy otool64; ac_word=$2
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7822 $as_echo_n "checking for $ac_word... " >&6; }
7823 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7824   $as_echo_n "(cached) " >&6
7825 else
7826   if test -n "$ac_ct_OTOOL64"; then
7827   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7828 else
7829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830 for as_dir in $PATH
7831 do
7832   IFS=$as_save_IFS
7833   test -z "$as_dir" && as_dir=.
7834     for ac_exec_ext in '' $ac_executable_extensions; do
7835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7836     ac_cv_prog_ac_ct_OTOOL64="otool64"
7837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7838     break 2
7839   fi
7840 done
7841   done
7842 IFS=$as_save_IFS
7843
7844 fi
7845 fi
7846 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7847 if test -n "$ac_ct_OTOOL64"; then
7848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7849 $as_echo "$ac_ct_OTOOL64" >&6; }
7850 else
7851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 $as_echo "no" >&6; }
7853 fi
7854
7855   if test "x$ac_ct_OTOOL64" = x; then
7856     OTOOL64=":"
7857   else
7858     case $cross_compiling:$ac_tool_warned in
7859 yes:)
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7862 ac_tool_warned=yes ;;
7863 esac
7864     OTOOL64=$ac_ct_OTOOL64
7865   fi
7866 else
7867   OTOOL64="$ac_cv_prog_OTOOL64"
7868 fi
7869
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7897 $as_echo_n "checking for -single_module linker flag... " >&6; }
7898 if ${lt_cv_apple_cc_single_mod+:} false; then :
7899   $as_echo_n "(cached) " >&6
7900 else
7901   lt_cv_apple_cc_single_mod=no
7902       if test -z "${LT_MULTI_MODULE}"; then
7903         # By default we will add the -single_module flag. You can override
7904         # by either setting the environment variable LT_MULTI_MODULE
7905         # non-empty at configure time, or by adding -multi_module to the
7906         # link flags.
7907         rm -rf libconftest.dylib*
7908         echo "int foo(void){return 1;}" > conftest.c
7909         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7910 -dynamiclib -Wl,-single_module conftest.c" >&5
7911         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7912           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7913         _lt_result=$?
7914         # If there is a non-empty error log, and "single_module"
7915         # appears in it, assume the flag caused a linker warning
7916         if test -s conftest.err && $GREP single_module conftest.err; then
7917           cat conftest.err >&5
7918         # Otherwise, if the output was created with a 0 exit code from
7919         # the compiler, it worked.
7920         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7921           lt_cv_apple_cc_single_mod=yes
7922         else
7923           cat conftest.err >&5
7924         fi
7925         rm -rf libconftest.dylib*
7926         rm -f conftest.*
7927       fi
7928 fi
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7930 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7931
7932     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7933 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7934 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7935   $as_echo_n "(cached) " >&6
7936 else
7937   lt_cv_ld_exported_symbols_list=no
7938       save_LDFLAGS=$LDFLAGS
7939       echo "_main" > conftest.sym
7940       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7941       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942 /* end confdefs.h.  */
7943
7944 int
7945 main ()
7946 {
7947
7948   ;
7949   return 0;
7950 }
7951 _ACEOF
7952 if ac_fn_c_try_link "$LINENO"; then :
7953   lt_cv_ld_exported_symbols_list=yes
7954 else
7955   lt_cv_ld_exported_symbols_list=no
7956 fi
7957 rm -f core conftest.err conftest.$ac_objext \
7958     conftest$ac_exeext conftest.$ac_ext
7959         LDFLAGS="$save_LDFLAGS"
7960
7961 fi
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7963 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7964
7965     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7966 $as_echo_n "checking for -force_load linker flag... " >&6; }
7967 if ${lt_cv_ld_force_load+:} false; then :
7968   $as_echo_n "(cached) " >&6
7969 else
7970   lt_cv_ld_force_load=no
7971       cat > conftest.c << _LT_EOF
7972 int forced_loaded() { return 2;}
7973 _LT_EOF
7974       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7975       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7976       echo "$AR cru libconftest.a conftest.o" >&5
7977       $AR cru libconftest.a conftest.o 2>&5
7978       echo "$RANLIB libconftest.a" >&5
7979       $RANLIB libconftest.a 2>&5
7980       cat > conftest.c << _LT_EOF
7981 int main() { return 0;}
7982 _LT_EOF
7983       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7984       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7985       _lt_result=$?
7986       if test -s conftest.err && $GREP force_load conftest.err; then
7987         cat conftest.err >&5
7988       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7989         lt_cv_ld_force_load=yes
7990       else
7991         cat conftest.err >&5
7992       fi
7993         rm -f conftest.err libconftest.a conftest conftest.c
7994         rm -rf conftest.dSYM
7995
7996 fi
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7998 $as_echo "$lt_cv_ld_force_load" >&6; }
7999     case $host_os in
8000     rhapsody* | darwin1.[012])
8001       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8002     darwin1.*)
8003       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8004     darwin*) # darwin 5.x on
8005       # if running on 10.5 or later, the deployment target defaults
8006       # to the OS version, if on x86, and 10.4, the deployment
8007       # target defaults to 10.4. Don't you love it?
8008       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8009         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8010           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8011         10.[012]*)
8012           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8013         10.*)
8014           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8015       esac
8016     ;;
8017   esac
8018     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8019       _lt_dar_single_mod='$single_module'
8020     fi
8021     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8022       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8023     else
8024       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8025     fi
8026     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8027       _lt_dsymutil='~$DSYMUTIL $lib || :'
8028     else
8029       _lt_dsymutil=
8030     fi
8031     ;;
8032   esac
8033
8034
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8036 $as_echo_n "checking for ANSI C header files... " >&6; }
8037 if ${ac_cv_header_stdc+:} false; then :
8038   $as_echo_n "(cached) " >&6
8039 else
8040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8041 /* end confdefs.h.  */
8042 #include <stdlib.h>
8043 #include <stdarg.h>
8044 #include <string.h>
8045 #include <float.h>
8046
8047 int
8048 main ()
8049 {
8050
8051   ;
8052   return 0;
8053 }
8054 _ACEOF
8055 if ac_fn_c_try_compile "$LINENO"; then :
8056   ac_cv_header_stdc=yes
8057 else
8058   ac_cv_header_stdc=no
8059 fi
8060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8061
8062 if test $ac_cv_header_stdc = yes; then
8063   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065 /* end confdefs.h.  */
8066 #include <string.h>
8067
8068 _ACEOF
8069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8070   $EGREP "memchr" >/dev/null 2>&1; then :
8071
8072 else
8073   ac_cv_header_stdc=no
8074 fi
8075 rm -f conftest*
8076
8077 fi
8078
8079 if test $ac_cv_header_stdc = yes; then
8080   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h.  */
8083 #include <stdlib.h>
8084
8085 _ACEOF
8086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8087   $EGREP "free" >/dev/null 2>&1; then :
8088
8089 else
8090   ac_cv_header_stdc=no
8091 fi
8092 rm -f conftest*
8093
8094 fi
8095
8096 if test $ac_cv_header_stdc = yes; then
8097   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8098   if test "$cross_compiling" = yes; then :
8099   :
8100 else
8101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h.  */
8103 #include <ctype.h>
8104 #include <stdlib.h>
8105 #if ((' ' & 0x0FF) == 0x020)
8106 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8107 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8108 #else
8109 # define ISLOWER(c) \
8110                    (('a' <= (c) && (c) <= 'i') \
8111                      || ('j' <= (c) && (c) <= 'r') \
8112                      || ('s' <= (c) && (c) <= 'z'))
8113 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8114 #endif
8115
8116 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8117 int
8118 main ()
8119 {
8120   int i;
8121   for (i = 0; i < 256; i++)
8122     if (XOR (islower (i), ISLOWER (i))
8123         || toupper (i) != TOUPPER (i))
8124       return 2;
8125   return 0;
8126 }
8127 _ACEOF
8128 if ac_fn_c_try_run "$LINENO"; then :
8129
8130 else
8131   ac_cv_header_stdc=no
8132 fi
8133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8134   conftest.$ac_objext conftest.beam conftest.$ac_ext
8135 fi
8136
8137 fi
8138 fi
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8140 $as_echo "$ac_cv_header_stdc" >&6; }
8141 if test $ac_cv_header_stdc = yes; then
8142
8143 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8144
8145 fi
8146
8147 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8148 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8149                   inttypes.h stdint.h unistd.h
8150 do :
8151   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8152 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8153 "
8154 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8155   cat >>confdefs.h <<_ACEOF
8156 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8157 _ACEOF
8158
8159 fi
8160
8161 done
8162
8163
8164 for ac_header in dlfcn.h
8165 do :
8166   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8167 "
8168 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8169   cat >>confdefs.h <<_ACEOF
8170 #define HAVE_DLFCN_H 1
8171 _ACEOF
8172
8173 fi
8174
8175 done
8176
8177
8178
8179 func_stripname_cnf ()
8180 {
8181   case ${2} in
8182   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8183   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8184   esac
8185 } # func_stripname_cnf
8186
8187
8188
8189
8190
8191 # Set options
8192
8193
8194
8195         enable_dlopen=no
8196
8197
8198   enable_win32_dll=no
8199
8200
8201             # Check whether --enable-shared was given.
8202 if test "${enable_shared+set}" = set; then :
8203   enableval=$enable_shared; p=${PACKAGE-default}
8204     case $enableval in
8205     yes) enable_shared=yes ;;
8206     no) enable_shared=no ;;
8207     *)
8208       enable_shared=no
8209       # Look at the argument we got.  We use all the common list separators.
8210       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8211       for pkg in $enableval; do
8212         IFS="$lt_save_ifs"
8213         if test "X$pkg" = "X$p"; then
8214           enable_shared=yes
8215         fi
8216       done
8217       IFS="$lt_save_ifs"
8218       ;;
8219     esac
8220 else
8221   enable_shared=yes
8222 fi
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232   # Check whether --enable-static was given.
8233 if test "${enable_static+set}" = set; then :
8234   enableval=$enable_static; p=${PACKAGE-default}
8235     case $enableval in
8236     yes) enable_static=yes ;;
8237     no) enable_static=no ;;
8238     *)
8239      enable_static=no
8240       # Look at the argument we got.  We use all the common list separators.
8241       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8242       for pkg in $enableval; do
8243         IFS="$lt_save_ifs"
8244         if test "X$pkg" = "X$p"; then
8245           enable_static=yes
8246         fi
8247       done
8248       IFS="$lt_save_ifs"
8249       ;;
8250     esac
8251 else
8252   enable_static=yes
8253 fi
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264 # Check whether --with-pic was given.
8265 if test "${with_pic+set}" = set; then :
8266   withval=$with_pic; lt_p=${PACKAGE-default}
8267     case $withval in
8268     yes|no) pic_mode=$withval ;;
8269     *)
8270       pic_mode=default
8271       # Look at the argument we got.  We use all the common list separators.
8272       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8273       for lt_pkg in $withval; do
8274         IFS="$lt_save_ifs"
8275         if test "X$lt_pkg" = "X$lt_p"; then
8276           pic_mode=yes
8277         fi
8278       done
8279       IFS="$lt_save_ifs"
8280       ;;
8281     esac
8282 else
8283   pic_mode=default
8284 fi
8285
8286
8287 test -z "$pic_mode" && pic_mode=default
8288
8289
8290
8291
8292
8293
8294
8295   # Check whether --enable-fast-install was given.
8296 if test "${enable_fast_install+set}" = set; then :
8297   enableval=$enable_fast_install; p=${PACKAGE-default}
8298     case $enableval in
8299     yes) enable_fast_install=yes ;;
8300     no) enable_fast_install=no ;;
8301     *)
8302       enable_fast_install=no
8303       # Look at the argument we got.  We use all the common list separators.
8304       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8305       for pkg in $enableval; do
8306         IFS="$lt_save_ifs"
8307         if test "X$pkg" = "X$p"; then
8308           enable_fast_install=yes
8309         fi
8310       done
8311       IFS="$lt_save_ifs"
8312       ;;
8313     esac
8314 else
8315   enable_fast_install=yes
8316 fi
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328 # This can be used to rebuild libtool when needed
8329 LIBTOOL_DEPS="$ltmain"
8330
8331 # Always use our own libtool.
8332 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8333
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 test -z "$LN_S" && LN_S="ln -s"
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378 if test -n "${ZSH_VERSION+set}" ; then
8379    setopt NO_GLOB_SUBST
8380 fi
8381
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8383 $as_echo_n "checking for objdir... " >&6; }
8384 if ${lt_cv_objdir+:} false; then :
8385   $as_echo_n "(cached) " >&6
8386 else
8387   rm -f .libs 2>/dev/null
8388 mkdir .libs 2>/dev/null
8389 if test -d .libs; then
8390   lt_cv_objdir=.libs
8391 else
8392   # MS-DOS does not allow filenames that begin with a dot.
8393   lt_cv_objdir=_libs
8394 fi
8395 rmdir .libs 2>/dev/null
8396 fi
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8398 $as_echo "$lt_cv_objdir" >&6; }
8399 objdir=$lt_cv_objdir
8400
8401
8402
8403
8404
8405 cat >>confdefs.h <<_ACEOF
8406 #define LT_OBJDIR "$lt_cv_objdir/"
8407 _ACEOF
8408
8409
8410
8411
8412 case $host_os in
8413 aix3*)
8414   # AIX sometimes has problems with the GCC collect2 program.  For some
8415   # reason, if we set the COLLECT_NAMES environment variable, the problems
8416   # vanish in a puff of smoke.
8417   if test "X${COLLECT_NAMES+set}" != Xset; then
8418     COLLECT_NAMES=
8419     export COLLECT_NAMES
8420   fi
8421   ;;
8422 esac
8423
8424 # Global variables:
8425 ofile=libtool
8426 can_build_shared=yes
8427
8428 # All known linkers require a `.a' archive for static linking (except MSVC,
8429 # which needs '.lib').
8430 libext=a
8431
8432 with_gnu_ld="$lt_cv_prog_gnu_ld"
8433
8434 old_CC="$CC"
8435 old_CFLAGS="$CFLAGS"
8436
8437 # Set sane defaults for various variables
8438 test -z "$CC" && CC=cc
8439 test -z "$LTCC" && LTCC=$CC
8440 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8441 test -z "$LD" && LD=ld
8442 test -z "$ac_objext" && ac_objext=o
8443
8444 for cc_temp in $compiler""; do
8445   case $cc_temp in
8446     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8447     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8448     \-*) ;;
8449     *) break;;
8450   esac
8451 done
8452 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8453
8454
8455 # Only perform the check for file, if the check method requires it
8456 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8457 case $deplibs_check_method in
8458 file_magic*)
8459   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8461 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8462 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8463   $as_echo_n "(cached) " >&6
8464 else
8465   case $MAGIC_CMD in
8466 [\\/*] |  ?:[\\/]*)
8467   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8468   ;;
8469 *)
8470   lt_save_MAGIC_CMD="$MAGIC_CMD"
8471   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8472   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8473   for ac_dir in $ac_dummy; do
8474     IFS="$lt_save_ifs"
8475     test -z "$ac_dir" && ac_dir=.
8476     if test -f $ac_dir/${ac_tool_prefix}file; then
8477       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8478       if test -n "$file_magic_test_file"; then
8479         case $deplibs_check_method in
8480         "file_magic "*)
8481           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8482           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8483           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8484             $EGREP "$file_magic_regex" > /dev/null; then
8485             :
8486           else
8487             cat <<_LT_EOF 1>&2
8488
8489 *** Warning: the command libtool uses to detect shared libraries,
8490 *** $file_magic_cmd, produces output that libtool cannot recognize.
8491 *** The result is that libtool may fail to recognize shared libraries
8492 *** as such.  This will affect the creation of libtool libraries that
8493 *** depend on shared libraries, but programs linked with such libtool
8494 *** libraries will work regardless of this problem.  Nevertheless, you
8495 *** may want to report the problem to your system manager and/or to
8496 *** bug-libtool@gnu.org
8497
8498 _LT_EOF
8499           fi ;;
8500         esac
8501       fi
8502       break
8503     fi
8504   done
8505   IFS="$lt_save_ifs"
8506   MAGIC_CMD="$lt_save_MAGIC_CMD"
8507   ;;
8508 esac
8509 fi
8510
8511 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8512 if test -n "$MAGIC_CMD"; then
8513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8514 $as_echo "$MAGIC_CMD" >&6; }
8515 else
8516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8517 $as_echo "no" >&6; }
8518 fi
8519
8520
8521
8522
8523
8524 if test -z "$lt_cv_path_MAGIC_CMD"; then
8525   if test -n "$ac_tool_prefix"; then
8526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8527 $as_echo_n "checking for file... " >&6; }
8528 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8529   $as_echo_n "(cached) " >&6
8530 else
8531   case $MAGIC_CMD in
8532 [\\/*] |  ?:[\\/]*)
8533   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8534   ;;
8535 *)
8536   lt_save_MAGIC_CMD="$MAGIC_CMD"
8537   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8538   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8539   for ac_dir in $ac_dummy; do
8540     IFS="$lt_save_ifs"
8541     test -z "$ac_dir" && ac_dir=.
8542     if test -f $ac_dir/file; then
8543       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8544       if test -n "$file_magic_test_file"; then
8545         case $deplibs_check_method in
8546         "file_magic "*)
8547           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8548           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8549           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8550             $EGREP "$file_magic_regex" > /dev/null; then
8551             :
8552           else
8553             cat <<_LT_EOF 1>&2
8554
8555 *** Warning: the command libtool uses to detect shared libraries,
8556 *** $file_magic_cmd, produces output that libtool cannot recognize.
8557 *** The result is that libtool may fail to recognize shared libraries
8558 *** as such.  This will affect the creation of libtool libraries that
8559 *** depend on shared libraries, but programs linked with such libtool
8560 *** libraries will work regardless of this problem.  Nevertheless, you
8561 *** may want to report the problem to your system manager and/or to
8562 *** bug-libtool@gnu.org
8563
8564 _LT_EOF
8565           fi ;;
8566         esac
8567       fi
8568       break
8569     fi
8570   done
8571   IFS="$lt_save_ifs"
8572   MAGIC_CMD="$lt_save_MAGIC_CMD"
8573   ;;
8574 esac
8575 fi
8576
8577 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8578 if test -n "$MAGIC_CMD"; then
8579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8580 $as_echo "$MAGIC_CMD" >&6; }
8581 else
8582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583 $as_echo "no" >&6; }
8584 fi
8585
8586
8587   else
8588     MAGIC_CMD=:
8589   fi
8590 fi
8591
8592   fi
8593   ;;
8594 esac
8595
8596 # Use C for the default configuration in the libtool script
8597
8598 lt_save_CC="$CC"
8599 ac_ext=c
8600 ac_cpp='$CPP $CPPFLAGS'
8601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8604
8605
8606 # Source file extension for C test sources.
8607 ac_ext=c
8608
8609 # Object file extension for compiled C test sources.
8610 objext=o
8611 objext=$objext
8612
8613 # Code to be used in simple compile tests
8614 lt_simple_compile_test_code="int some_variable = 0;"
8615
8616 # Code to be used in simple link tests
8617 lt_simple_link_test_code='int main(){return(0);}'
8618
8619
8620
8621
8622
8623
8624
8625 # If no C compiler was specified, use CC.
8626 LTCC=${LTCC-"$CC"}
8627
8628 # If no C compiler flags were specified, use CFLAGS.
8629 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8630
8631 # Allow CC to be a program name with arguments.
8632 compiler=$CC
8633
8634 # Save the default compiler, since it gets overwritten when the other
8635 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8636 compiler_DEFAULT=$CC
8637
8638 # save warnings/boilerplate of simple test code
8639 ac_outfile=conftest.$ac_objext
8640 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8641 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8642 _lt_compiler_boilerplate=`cat conftest.err`
8643 $RM conftest*
8644
8645 ac_outfile=conftest.$ac_objext
8646 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8647 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8648 _lt_linker_boilerplate=`cat conftest.err`
8649 $RM -r conftest*
8650
8651
8652 ## CAVEAT EMPTOR:
8653 ## There is no encapsulation within the following macros, do not change
8654 ## the running order or otherwise move them around unless you know exactly
8655 ## what you are doing...
8656 if test -n "$compiler"; then
8657
8658 lt_prog_compiler_no_builtin_flag=
8659
8660 if test "$GCC" = yes; then
8661   case $cc_basename in
8662   nvcc*)
8663     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8664   *)
8665     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8666   esac
8667
8668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8669 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8670 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8671   $as_echo_n "(cached) " >&6
8672 else
8673   lt_cv_prog_compiler_rtti_exceptions=no
8674    ac_outfile=conftest.$ac_objext
8675    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8676    lt_compiler_flag="-fno-rtti -fno-exceptions"
8677    # Insert the option either (1) after the last *FLAGS variable, or
8678    # (2) before a word containing "conftest.", or (3) at the end.
8679    # Note that $ac_compile itself does not contain backslashes and begins
8680    # with a dollar sign (not a hyphen), so the echo should work correctly.
8681    # The option is referenced via a variable to avoid confusing sed.
8682    lt_compile=`echo "$ac_compile" | $SED \
8683    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8684    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8685    -e 's:$: $lt_compiler_flag:'`
8686    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8687    (eval "$lt_compile" 2>conftest.err)
8688    ac_status=$?
8689    cat conftest.err >&5
8690    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691    if (exit $ac_status) && test -s "$ac_outfile"; then
8692      # The compiler can only warn and ignore the option if not recognized
8693      # So say no if there are warnings other than the usual output.
8694      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8695      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8696      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8697        lt_cv_prog_compiler_rtti_exceptions=yes
8698      fi
8699    fi
8700    $RM conftest*
8701
8702 fi
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8704 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8705
8706 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8707     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8708 else
8709     :
8710 fi
8711
8712 fi
8713
8714
8715
8716
8717
8718
8719   lt_prog_compiler_wl=
8720 lt_prog_compiler_pic=
8721 lt_prog_compiler_static=
8722
8723
8724   if test "$GCC" = yes; then
8725     lt_prog_compiler_wl='-Wl,'
8726     lt_prog_compiler_static='-static'
8727
8728     case $host_os in
8729       aix*)
8730       # All AIX code is PIC.
8731       if test "$host_cpu" = ia64; then
8732         # AIX 5 now supports IA64 processor
8733         lt_prog_compiler_static='-Bstatic'
8734       fi
8735       ;;
8736
8737     amigaos*)
8738       case $host_cpu in
8739       powerpc)
8740             # see comment about AmigaOS4 .so support
8741             lt_prog_compiler_pic='-fPIC'
8742         ;;
8743       m68k)
8744             # FIXME: we need at least 68020 code to build shared libraries, but
8745             # adding the `-m68020' flag to GCC prevents building anything better,
8746             # like `-m68040'.
8747             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8748         ;;
8749       esac
8750       ;;
8751
8752     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8753       # PIC is the default for these OSes.
8754       ;;
8755
8756     mingw* | cygwin* | pw32* | os2* | cegcc*)
8757       # This hack is so that the source file can tell whether it is being
8758       # built for inclusion in a dll (and should export symbols for example).
8759       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8760       # (--disable-auto-import) libraries
8761       lt_prog_compiler_pic='-DDLL_EXPORT'
8762       ;;
8763
8764     darwin* | rhapsody*)
8765       # PIC is the default on this platform
8766       # Common symbols not allowed in MH_DYLIB files
8767       lt_prog_compiler_pic='-fno-common'
8768       ;;
8769
8770     haiku*)
8771       # PIC is the default for Haiku.
8772       # The "-static" flag exists, but is broken.
8773       lt_prog_compiler_static=
8774       ;;
8775
8776     hpux*)
8777       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8778       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8779       # sets the default TLS model and affects inlining.
8780       case $host_cpu in
8781       hppa*64*)
8782         # +Z the default
8783         ;;
8784       *)
8785         lt_prog_compiler_pic='-fPIC'
8786         ;;
8787       esac
8788       ;;
8789
8790     interix[3-9]*)
8791       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8792       # Instead, we relocate shared libraries at runtime.
8793       ;;
8794
8795     msdosdjgpp*)
8796       # Just because we use GCC doesn't mean we suddenly get shared libraries
8797       # on systems that don't support them.
8798       lt_prog_compiler_can_build_shared=no
8799       enable_shared=no
8800       ;;
8801
8802     *nto* | *qnx*)
8803       # QNX uses GNU C++, but need to define -shared option too, otherwise
8804       # it will coredump.
8805       lt_prog_compiler_pic='-fPIC -shared'
8806       ;;
8807
8808     sysv4*MP*)
8809       if test -d /usr/nec; then
8810         lt_prog_compiler_pic=-Kconform_pic
8811       fi
8812       ;;
8813
8814     *)
8815       lt_prog_compiler_pic='-fPIC'
8816       ;;
8817     esac
8818
8819     case $cc_basename in
8820     nvcc*) # Cuda Compiler Driver 2.2
8821       lt_prog_compiler_wl='-Xlinker '
8822       if test -n "$lt_prog_compiler_pic"; then
8823         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8824       fi
8825       ;;
8826     esac
8827   else
8828     # PORTME Check for flag to pass linker flags through the system compiler.
8829     case $host_os in
8830     aix*)
8831       lt_prog_compiler_wl='-Wl,'
8832       if test "$host_cpu" = ia64; then
8833         # AIX 5 now supports IA64 processor
8834         lt_prog_compiler_static='-Bstatic'
8835       else
8836         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8837       fi
8838       ;;
8839
8840     mingw* | cygwin* | pw32* | os2* | cegcc*)
8841       # This hack is so that the source file can tell whether it is being
8842       # built for inclusion in a dll (and should export symbols for example).
8843       lt_prog_compiler_pic='-DDLL_EXPORT'
8844       ;;
8845
8846     hpux9* | hpux10* | hpux11*)
8847       lt_prog_compiler_wl='-Wl,'
8848       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8849       # not for PA HP-UX.
8850       case $host_cpu in
8851       hppa*64*|ia64*)
8852         # +Z the default
8853         ;;
8854       *)
8855         lt_prog_compiler_pic='+Z'
8856         ;;
8857       esac
8858       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8859       lt_prog_compiler_static='${wl}-a ${wl}archive'
8860       ;;
8861
8862     irix5* | irix6* | nonstopux*)
8863       lt_prog_compiler_wl='-Wl,'
8864       # PIC (with -KPIC) is the default.
8865       lt_prog_compiler_static='-non_shared'
8866       ;;
8867
8868     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8869       case $cc_basename in
8870       # old Intel for x86_64 which still supported -KPIC.
8871       ecc*)
8872         lt_prog_compiler_wl='-Wl,'
8873         lt_prog_compiler_pic='-KPIC'
8874         lt_prog_compiler_static='-static'
8875         ;;
8876       # icc used to be incompatible with GCC.
8877       # ICC 10 doesn't accept -KPIC any more.
8878       icc* | ifort*)
8879         lt_prog_compiler_wl='-Wl,'
8880         lt_prog_compiler_pic='-fPIC'
8881         lt_prog_compiler_static='-static'
8882         ;;
8883       # Lahey Fortran 8.1.
8884       lf95*)
8885         lt_prog_compiler_wl='-Wl,'
8886         lt_prog_compiler_pic='--shared'
8887         lt_prog_compiler_static='--static'
8888         ;;
8889       nagfor*)
8890         # NAG Fortran compiler
8891         lt_prog_compiler_wl='-Wl,-Wl,,'
8892         lt_prog_compiler_pic='-PIC'
8893         lt_prog_compiler_static='-Bstatic'
8894         ;;
8895       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8896         # Portland Group compilers (*not* the Pentium gcc compiler,
8897         # which looks to be a dead project)
8898         lt_prog_compiler_wl='-Wl,'
8899         lt_prog_compiler_pic='-fpic'
8900         lt_prog_compiler_static='-Bstatic'
8901         ;;
8902       ccc*)
8903         lt_prog_compiler_wl='-Wl,'
8904         # All Alpha code is PIC.
8905         lt_prog_compiler_static='-non_shared'
8906         ;;
8907       xl* | bgxl* | bgf* | mpixl*)
8908         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8909         lt_prog_compiler_wl='-Wl,'
8910         lt_prog_compiler_pic='-qpic'
8911         lt_prog_compiler_static='-qstaticlink'
8912         ;;
8913       *)
8914         case `$CC -V 2>&1 | sed 5q` in
8915         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8916           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8917           lt_prog_compiler_pic='-KPIC'
8918           lt_prog_compiler_static='-Bstatic'
8919           lt_prog_compiler_wl=''
8920           ;;
8921         *Sun\ F* | *Sun*Fortran*)
8922           lt_prog_compiler_pic='-KPIC'
8923           lt_prog_compiler_static='-Bstatic'
8924           lt_prog_compiler_wl='-Qoption ld '
8925           ;;
8926         *Sun\ C*)
8927           # Sun C 5.9
8928           lt_prog_compiler_pic='-KPIC'
8929           lt_prog_compiler_static='-Bstatic'
8930           lt_prog_compiler_wl='-Wl,'
8931           ;;
8932         *Intel*\ [CF]*Compiler*)
8933           lt_prog_compiler_wl='-Wl,'
8934           lt_prog_compiler_pic='-fPIC'
8935           lt_prog_compiler_static='-static'
8936           ;;
8937         *Portland\ Group*)
8938           lt_prog_compiler_wl='-Wl,'
8939           lt_prog_compiler_pic='-fpic'
8940           lt_prog_compiler_static='-Bstatic'
8941           ;;
8942         esac
8943         ;;
8944       esac
8945       ;;
8946
8947     newsos6)
8948       lt_prog_compiler_pic='-KPIC'
8949       lt_prog_compiler_static='-Bstatic'
8950       ;;
8951
8952     *nto* | *qnx*)
8953       # QNX uses GNU C++, but need to define -shared option too, otherwise
8954       # it will coredump.
8955       lt_prog_compiler_pic='-fPIC -shared'
8956       ;;
8957
8958     osf3* | osf4* | osf5*)
8959       lt_prog_compiler_wl='-Wl,'
8960       # All OSF/1 code is PIC.
8961       lt_prog_compiler_static='-non_shared'
8962       ;;
8963
8964     rdos*)
8965       lt_prog_compiler_static='-non_shared'
8966       ;;
8967
8968     solaris*)
8969       lt_prog_compiler_pic='-KPIC'
8970       lt_prog_compiler_static='-Bstatic'
8971       case $cc_basename in
8972       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8973         lt_prog_compiler_wl='-Qoption ld ';;
8974       *)
8975         lt_prog_compiler_wl='-Wl,';;
8976       esac
8977       ;;
8978
8979     sunos4*)
8980       lt_prog_compiler_wl='-Qoption ld '
8981       lt_prog_compiler_pic='-PIC'
8982       lt_prog_compiler_static='-Bstatic'
8983       ;;
8984
8985     sysv4 | sysv4.2uw2* | sysv4.3*)
8986       lt_prog_compiler_wl='-Wl,'
8987       lt_prog_compiler_pic='-KPIC'
8988       lt_prog_compiler_static='-Bstatic'
8989       ;;
8990
8991     sysv4*MP*)
8992       if test -d /usr/nec ;then
8993         lt_prog_compiler_pic='-Kconform_pic'
8994         lt_prog_compiler_static='-Bstatic'
8995       fi
8996       ;;
8997
8998     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8999       lt_prog_compiler_wl='-Wl,'
9000       lt_prog_compiler_pic='-KPIC'
9001       lt_prog_compiler_static='-Bstatic'
9002       ;;
9003
9004     unicos*)
9005       lt_prog_compiler_wl='-Wl,'
9006       lt_prog_compiler_can_build_shared=no
9007       ;;
9008
9009     uts4*)
9010       lt_prog_compiler_pic='-pic'
9011       lt_prog_compiler_static='-Bstatic'
9012       ;;
9013
9014     *)
9015       lt_prog_compiler_can_build_shared=no
9016       ;;
9017     esac
9018   fi
9019
9020 case $host_os in
9021   # For platforms which do not support PIC, -DPIC is meaningless:
9022   *djgpp*)
9023     lt_prog_compiler_pic=
9024     ;;
9025   *)
9026     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9027     ;;
9028 esac
9029
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9031 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9032 if ${lt_cv_prog_compiler_pic+:} false; then :
9033   $as_echo_n "(cached) " >&6
9034 else
9035   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9036 fi
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9038 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9039 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9040
9041 #
9042 # Check to make sure the PIC flag actually works.
9043 #
9044 if test -n "$lt_prog_compiler_pic"; then
9045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9046 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9047 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9048   $as_echo_n "(cached) " >&6
9049 else
9050   lt_cv_prog_compiler_pic_works=no
9051    ac_outfile=conftest.$ac_objext
9052    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9053    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9054    # Insert the option either (1) after the last *FLAGS variable, or
9055    # (2) before a word containing "conftest.", or (3) at the end.
9056    # Note that $ac_compile itself does not contain backslashes and begins
9057    # with a dollar sign (not a hyphen), so the echo should work correctly.
9058    # The option is referenced via a variable to avoid confusing sed.
9059    lt_compile=`echo "$ac_compile" | $SED \
9060    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9061    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9062    -e 's:$: $lt_compiler_flag:'`
9063    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9064    (eval "$lt_compile" 2>conftest.err)
9065    ac_status=$?
9066    cat conftest.err >&5
9067    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068    if (exit $ac_status) && test -s "$ac_outfile"; then
9069      # The compiler can only warn and ignore the option if not recognized
9070      # So say no if there are warnings other than the usual output.
9071      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9072      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9073      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9074        lt_cv_prog_compiler_pic_works=yes
9075      fi
9076    fi
9077    $RM conftest*
9078
9079 fi
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9081 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9082
9083 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9084     case $lt_prog_compiler_pic in
9085      "" | " "*) ;;
9086      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9087      esac
9088 else
9089     lt_prog_compiler_pic=
9090      lt_prog_compiler_can_build_shared=no
9091 fi
9092
9093 fi
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105 #
9106 # Check to make sure the static flag actually works.
9107 #
9108 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9110 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9111 if ${lt_cv_prog_compiler_static_works+:} false; then :
9112   $as_echo_n "(cached) " >&6
9113 else
9114   lt_cv_prog_compiler_static_works=no
9115    save_LDFLAGS="$LDFLAGS"
9116    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9117    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9118    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9119      # The linker can only warn and ignore the option if not recognized
9120      # So say no if there are warnings
9121      if test -s conftest.err; then
9122        # Append any errors to the config.log.
9123        cat conftest.err 1>&5
9124        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9125        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9126        if diff conftest.exp conftest.er2 >/dev/null; then
9127          lt_cv_prog_compiler_static_works=yes
9128        fi
9129      else
9130        lt_cv_prog_compiler_static_works=yes
9131      fi
9132    fi
9133    $RM -r conftest*
9134    LDFLAGS="$save_LDFLAGS"
9135
9136 fi
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9138 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9139
9140 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9141     :
9142 else
9143     lt_prog_compiler_static=
9144 fi
9145
9146
9147
9148
9149
9150
9151
9152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9153 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9154 if ${lt_cv_prog_compiler_c_o+:} false; then :
9155   $as_echo_n "(cached) " >&6
9156 else
9157   lt_cv_prog_compiler_c_o=no
9158    $RM -r conftest 2>/dev/null
9159    mkdir conftest
9160    cd conftest
9161    mkdir out
9162    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9163
9164    lt_compiler_flag="-o out/conftest2.$ac_objext"
9165    # Insert the option either (1) after the last *FLAGS variable, or
9166    # (2) before a word containing "conftest.", or (3) at the end.
9167    # Note that $ac_compile itself does not contain backslashes and begins
9168    # with a dollar sign (not a hyphen), so the echo should work correctly.
9169    lt_compile=`echo "$ac_compile" | $SED \
9170    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9171    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9172    -e 's:$: $lt_compiler_flag:'`
9173    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9174    (eval "$lt_compile" 2>out/conftest.err)
9175    ac_status=$?
9176    cat out/conftest.err >&5
9177    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9179    then
9180      # The compiler can only warn and ignore the option if not recognized
9181      # So say no if there are warnings
9182      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9183      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9184      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9185        lt_cv_prog_compiler_c_o=yes
9186      fi
9187    fi
9188    chmod u+w . 2>&5
9189    $RM conftest*
9190    # SGI C++ compiler will create directory out/ii_files/ for
9191    # template instantiation
9192    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9193    $RM out/* && rmdir out
9194    cd ..
9195    $RM -r conftest
9196    $RM conftest*
9197
9198 fi
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9200 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9201
9202
9203
9204
9205
9206
9207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9208 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9209 if ${lt_cv_prog_compiler_c_o+:} false; then :
9210   $as_echo_n "(cached) " >&6
9211 else
9212   lt_cv_prog_compiler_c_o=no
9213    $RM -r conftest 2>/dev/null
9214    mkdir conftest
9215    cd conftest
9216    mkdir out
9217    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9218
9219    lt_compiler_flag="-o out/conftest2.$ac_objext"
9220    # Insert the option either (1) after the last *FLAGS variable, or
9221    # (2) before a word containing "conftest.", or (3) at the end.
9222    # Note that $ac_compile itself does not contain backslashes and begins
9223    # with a dollar sign (not a hyphen), so the echo should work correctly.
9224    lt_compile=`echo "$ac_compile" | $SED \
9225    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9226    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9227    -e 's:$: $lt_compiler_flag:'`
9228    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9229    (eval "$lt_compile" 2>out/conftest.err)
9230    ac_status=$?
9231    cat out/conftest.err >&5
9232    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9234    then
9235      # The compiler can only warn and ignore the option if not recognized
9236      # So say no if there are warnings
9237      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9238      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9239      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9240        lt_cv_prog_compiler_c_o=yes
9241      fi
9242    fi
9243    chmod u+w . 2>&5
9244    $RM conftest*
9245    # SGI C++ compiler will create directory out/ii_files/ for
9246    # template instantiation
9247    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9248    $RM out/* && rmdir out
9249    cd ..
9250    $RM -r conftest
9251    $RM conftest*
9252
9253 fi
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9255 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9256
9257
9258
9259
9260 hard_links="nottested"
9261 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9262   # do not overwrite the value of need_locks provided by the user
9263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9264 $as_echo_n "checking if we can lock with hard links... " >&6; }
9265   hard_links=yes
9266   $RM conftest*
9267   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9268   touch conftest.a
9269   ln conftest.a conftest.b 2>&5 || hard_links=no
9270   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9272 $as_echo "$hard_links" >&6; }
9273   if test "$hard_links" = no; then
9274     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9275 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9276     need_locks=warn
9277   fi
9278 else
9279   need_locks=no
9280 fi
9281
9282
9283
9284
9285
9286
9287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9288 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9289
9290   runpath_var=
9291   allow_undefined_flag=
9292   always_export_symbols=no
9293   archive_cmds=
9294   archive_expsym_cmds=
9295   compiler_needs_object=no
9296   enable_shared_with_static_runtimes=no
9297   export_dynamic_flag_spec=
9298   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9299   hardcode_automatic=no
9300   hardcode_direct=no
9301   hardcode_direct_absolute=no
9302   hardcode_libdir_flag_spec=
9303   hardcode_libdir_separator=
9304   hardcode_minus_L=no
9305   hardcode_shlibpath_var=unsupported
9306   inherit_rpath=no
9307   link_all_deplibs=unknown
9308   module_cmds=
9309   module_expsym_cmds=
9310   old_archive_from_new_cmds=
9311   old_archive_from_expsyms_cmds=
9312   thread_safe_flag_spec=
9313   whole_archive_flag_spec=
9314   # include_expsyms should be a list of space-separated symbols to be *always*
9315   # included in the symbol list
9316   include_expsyms=
9317   # exclude_expsyms can be an extended regexp of symbols to exclude
9318   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9319   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9320   # as well as any symbol that contains `d'.
9321   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9322   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9323   # platforms (ab)use it in PIC code, but their linkers get confused if
9324   # the symbol is explicitly referenced.  Since portable code cannot
9325   # rely on this symbol name, it's probably fine to never include it in
9326   # preloaded symbol tables.
9327   # Exclude shared library initialization/finalization symbols.
9328   extract_expsyms_cmds=
9329
9330   case $host_os in
9331   cygwin* | mingw* | pw32* | cegcc*)
9332     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9333     # When not using gcc, we currently assume that we are using
9334     # Microsoft Visual C++.
9335     if test "$GCC" != yes; then
9336       with_gnu_ld=no
9337     fi
9338     ;;
9339   interix*)
9340     # we just hope/assume this is gcc and not c89 (= MSVC++)
9341     with_gnu_ld=yes
9342     ;;
9343   openbsd*)
9344     with_gnu_ld=no
9345     ;;
9346   linux* | k*bsd*-gnu | gnu*)
9347     link_all_deplibs=no
9348     ;;
9349   esac
9350
9351   ld_shlibs=yes
9352
9353   # On some targets, GNU ld is compatible enough with the native linker
9354   # that we're better off using the native interface for both.
9355   lt_use_gnu_ld_interface=no
9356   if test "$with_gnu_ld" = yes; then
9357     case $host_os in
9358       aix*)
9359         # The AIX port of GNU ld has always aspired to compatibility
9360         # with the native linker.  However, as the warning in the GNU ld
9361         # block says, versions before 2.19.5* couldn't really create working
9362         # shared libraries, regardless of the interface used.
9363         case `$LD -v 2>&1` in
9364           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9365           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9366           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9367           *)
9368             lt_use_gnu_ld_interface=yes
9369             ;;
9370         esac
9371         ;;
9372       *)
9373         lt_use_gnu_ld_interface=yes
9374         ;;
9375     esac
9376   fi
9377
9378   if test "$lt_use_gnu_ld_interface" = yes; then
9379     # If archive_cmds runs LD, not CC, wlarc should be empty
9380     wlarc='${wl}'
9381
9382     # Set some defaults for GNU ld with shared library support. These
9383     # are reset later if shared libraries are not supported. Putting them
9384     # here allows them to be overridden if necessary.
9385     runpath_var=LD_RUN_PATH
9386     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9387     export_dynamic_flag_spec='${wl}--export-dynamic'
9388     # ancient GNU ld didn't support --whole-archive et. al.
9389     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9390       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9391     else
9392       whole_archive_flag_spec=
9393     fi
9394     supports_anon_versioning=no
9395     case `$LD -v 2>&1` in
9396       *GNU\ gold*) supports_anon_versioning=yes ;;
9397       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9398       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9399       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9400       *\ 2.11.*) ;; # other 2.11 versions
9401       *) supports_anon_versioning=yes ;;
9402     esac
9403
9404     # See if GNU ld supports shared libraries.
9405     case $host_os in
9406     aix[3-9]*)
9407       # On AIX/PPC, the GNU linker is very broken
9408       if test "$host_cpu" != ia64; then
9409         ld_shlibs=no
9410         cat <<_LT_EOF 1>&2
9411
9412 *** Warning: the GNU linker, at least up to release 2.19, is reported
9413 *** to be unable to reliably create shared libraries on AIX.
9414 *** Therefore, libtool is disabling shared libraries support.  If you
9415 *** really care for shared libraries, you may want to install binutils
9416 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9417 *** You will then need to restart the configuration process.
9418
9419 _LT_EOF
9420       fi
9421       ;;
9422
9423     amigaos*)
9424       case $host_cpu in
9425       powerpc)
9426             # see comment about AmigaOS4 .so support
9427             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9428             archive_expsym_cmds=''
9429         ;;
9430       m68k)
9431             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)'
9432             hardcode_libdir_flag_spec='-L$libdir'
9433             hardcode_minus_L=yes
9434         ;;
9435       esac
9436       ;;
9437
9438     beos*)
9439       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9440         allow_undefined_flag=unsupported
9441         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9442         # support --undefined.  This deserves some investigation.  FIXME
9443         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9444       else
9445         ld_shlibs=no
9446       fi
9447       ;;
9448
9449     cygwin* | mingw* | pw32* | cegcc*)
9450       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9451       # as there is no search path for DLLs.
9452       hardcode_libdir_flag_spec='-L$libdir'
9453       export_dynamic_flag_spec='${wl}--export-all-symbols'
9454       allow_undefined_flag=unsupported
9455       always_export_symbols=no
9456       enable_shared_with_static_runtimes=yes
9457       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'
9458       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9459
9460       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9461         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9462         # If the export-symbols file already is a .def file (1st line
9463         # is EXPORTS), use it as is; otherwise, prepend...
9464         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9465           cp $export_symbols $output_objdir/$soname.def;
9466         else
9467           echo EXPORTS > $output_objdir/$soname.def;
9468           cat $export_symbols >> $output_objdir/$soname.def;
9469         fi~
9470         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9471       else
9472         ld_shlibs=no
9473       fi
9474       ;;
9475
9476     haiku*)
9477       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9478       link_all_deplibs=yes
9479       ;;
9480
9481     interix[3-9]*)
9482       hardcode_direct=no
9483       hardcode_shlibpath_var=no
9484       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9485       export_dynamic_flag_spec='${wl}-E'
9486       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9487       # Instead, shared libraries are loaded at an image base (0x10000000 by
9488       # default) and relocated if they conflict, which is a slow very memory
9489       # consuming and fragmenting process.  To avoid this, we pick a random,
9490       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9491       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9492       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9493       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'
9494       ;;
9495
9496     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9497       tmp_diet=no
9498       if test "$host_os" = linux-dietlibc; then
9499         case $cc_basename in
9500           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9501         esac
9502       fi
9503       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9504          && test "$tmp_diet" = no
9505       then
9506         tmp_addflag=' $pic_flag'
9507         tmp_sharedflag='-shared'
9508         case $cc_basename,$host_cpu in
9509         pgcc*)                          # Portland Group C compiler
9510           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'
9511           tmp_addflag=' $pic_flag'
9512           ;;
9513         pgf77* | pgf90* | pgf95* | pgfortran*)
9514                                         # Portland Group f77 and f90 compilers
9515           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'
9516           tmp_addflag=' $pic_flag -Mnomain' ;;
9517         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9518           tmp_addflag=' -i_dynamic' ;;
9519         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9520           tmp_addflag=' -i_dynamic -nofor_main' ;;
9521         ifc* | ifort*)                  # Intel Fortran compiler
9522           tmp_addflag=' -nofor_main' ;;
9523         lf95*)                          # Lahey Fortran 8.1
9524           whole_archive_flag_spec=
9525           tmp_sharedflag='--shared' ;;
9526         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9527           tmp_sharedflag='-qmkshrobj'
9528           tmp_addflag= ;;
9529         nvcc*)  # Cuda Compiler Driver 2.2
9530           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'
9531           compiler_needs_object=yes
9532           ;;
9533         esac
9534         case `$CC -V 2>&1 | sed 5q` in
9535         *Sun\ C*)                       # Sun C 5.9
9536           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'
9537           compiler_needs_object=yes
9538           tmp_sharedflag='-G' ;;
9539         *Sun\ F*)                       # Sun Fortran 8.3
9540           tmp_sharedflag='-G' ;;
9541         esac
9542         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9543
9544         if test "x$supports_anon_versioning" = xyes; then
9545           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9546             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9547             echo "local: *; };" >> $output_objdir/$libname.ver~
9548             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9549         fi
9550
9551         case $cc_basename in
9552         xlf* | bgf* | bgxlf* | mpixlf*)
9553           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9554           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9555           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9556           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9557           if test "x$supports_anon_versioning" = xyes; then
9558             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9559               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9560               echo "local: *; };" >> $output_objdir/$libname.ver~
9561               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9562           fi
9563           ;;
9564         esac
9565       else
9566         ld_shlibs=no
9567       fi
9568       ;;
9569
9570     netbsd* | netbsdelf*-gnu)
9571       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9572         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9573         wlarc=
9574       else
9575         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9576         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9577       fi
9578       ;;
9579
9580     solaris*)
9581       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9582         ld_shlibs=no
9583         cat <<_LT_EOF 1>&2
9584
9585 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9586 *** create shared libraries on Solaris systems.  Therefore, libtool
9587 *** is disabling shared libraries support.  We urge you to upgrade GNU
9588 *** binutils to release 2.9.1 or newer.  Another option is to modify
9589 *** your PATH or compiler configuration so that the native linker is
9590 *** used, and then restart.
9591
9592 _LT_EOF
9593       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9594         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9595         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9596       else
9597         ld_shlibs=no
9598       fi
9599       ;;
9600
9601     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9602       case `$LD -v 2>&1` in
9603         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9604         ld_shlibs=no
9605         cat <<_LT_EOF 1>&2
9606
9607 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9608 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9609 *** is disabling shared libraries support.  We urge you to upgrade GNU
9610 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9611 *** your PATH or compiler configuration so that the native linker is
9612 *** used, and then restart.
9613
9614 _LT_EOF
9615         ;;
9616         *)
9617           # For security reasons, it is highly recommended that you always
9618           # use absolute paths for naming shared libraries, and exclude the
9619           # DT_RUNPATH tag from executables and libraries.  But doing so
9620           # requires that you compile everything twice, which is a pain.
9621           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9622             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9623             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9624             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9625           else
9626             ld_shlibs=no
9627           fi
9628         ;;
9629       esac
9630       ;;
9631
9632     sunos4*)
9633       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9634       wlarc=
9635       hardcode_direct=yes
9636       hardcode_shlibpath_var=no
9637       ;;
9638
9639     *)
9640       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9641         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9642         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9643       else
9644         ld_shlibs=no
9645       fi
9646       ;;
9647     esac
9648
9649     if test "$ld_shlibs" = no; then
9650       runpath_var=
9651       hardcode_libdir_flag_spec=
9652       export_dynamic_flag_spec=
9653       whole_archive_flag_spec=
9654     fi
9655   else
9656     # PORTME fill in a description of your system's linker (not GNU ld)
9657     case $host_os in
9658     aix3*)
9659       allow_undefined_flag=unsupported
9660       always_export_symbols=yes
9661       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'
9662       # Note: this linker hardcodes the directories in LIBPATH if there
9663       # are no directories specified by -L.
9664       hardcode_minus_L=yes
9665       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9666         # Neither direct hardcoding nor static linking is supported with a
9667         # broken collect2.
9668         hardcode_direct=unsupported
9669       fi
9670       ;;
9671
9672     aix[4-9]*)
9673       if test "$host_cpu" = ia64; then
9674         # On IA64, the linker does run time linking by default, so we don't
9675         # have to do anything special.
9676         aix_use_runtimelinking=no
9677         exp_sym_flag='-Bexport'
9678         no_entry_flag=""
9679       else
9680         # If we're using GNU nm, then we don't want the "-C" option.
9681         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9682         # Also, AIX nm treats weak defined symbols like other global
9683         # defined symbols, whereas GNU nm marks them as "W".
9684         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9685           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'
9686         else
9687           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'
9688         fi
9689         aix_use_runtimelinking=no
9690
9691         # Test if we are trying to use run time linking or normal
9692         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9693         # need to do runtime linking.
9694         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9695           for ld_flag in $LDFLAGS; do
9696           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9697             aix_use_runtimelinking=yes
9698             break
9699           fi
9700           done
9701           ;;
9702         esac
9703
9704         exp_sym_flag='-bexport'
9705         no_entry_flag='-bnoentry'
9706       fi
9707
9708       # When large executables or shared objects are built, AIX ld can
9709       # have problems creating the table of contents.  If linking a library
9710       # or program results in "error TOC overflow" add -mminimal-toc to
9711       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9712       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9713
9714       archive_cmds=''
9715       hardcode_direct=yes
9716       hardcode_direct_absolute=yes
9717       hardcode_libdir_separator=':'
9718       link_all_deplibs=yes
9719       file_list_spec='${wl}-f,'
9720
9721       if test "$GCC" = yes; then
9722         case $host_os in aix4.[012]|aix4.[012].*)
9723         # We only want to do this on AIX 4.2 and lower, the check
9724         # below for broken collect2 doesn't work under 4.3+
9725           collect2name=`${CC} -print-prog-name=collect2`
9726           if test -f "$collect2name" &&
9727            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9728           then
9729           # We have reworked collect2
9730           :
9731           else
9732           # We have old collect2
9733           hardcode_direct=unsupported
9734           # It fails to find uninstalled libraries when the uninstalled
9735           # path is not listed in the libpath.  Setting hardcode_minus_L
9736           # to unsupported forces relinking
9737           hardcode_minus_L=yes
9738           hardcode_libdir_flag_spec='-L$libdir'
9739           hardcode_libdir_separator=
9740           fi
9741           ;;
9742         esac
9743         shared_flag='-shared'
9744         if test "$aix_use_runtimelinking" = yes; then
9745           shared_flag="$shared_flag "'${wl}-G'
9746         fi
9747         link_all_deplibs=no
9748       else
9749         # not using gcc
9750         if test "$host_cpu" = ia64; then
9751         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9752         # chokes on -Wl,-G. The following line is correct:
9753           shared_flag='-G'
9754         else
9755           if test "$aix_use_runtimelinking" = yes; then
9756             shared_flag='${wl}-G'
9757           else
9758             shared_flag='${wl}-bM:SRE'
9759           fi
9760         fi
9761       fi
9762
9763       export_dynamic_flag_spec='${wl}-bexpall'
9764       # It seems that -bexpall does not export symbols beginning with
9765       # underscore (_), so it is better to generate a list of symbols to export.
9766       always_export_symbols=yes
9767       if test "$aix_use_runtimelinking" = yes; then
9768         # Warning - without using the other runtime loading flags (-brtl),
9769         # -berok will link without error, but may produce a broken library.
9770         allow_undefined_flag='-berok'
9771         # Determine the default libpath from the value encoded in an
9772         # empty executable.
9773         if test "${lt_cv_aix_libpath+set}" = set; then
9774   aix_libpath=$lt_cv_aix_libpath
9775 else
9776   if ${lt_cv_aix_libpath_+:} false; then :
9777   $as_echo_n "(cached) " >&6
9778 else
9779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9780 /* end confdefs.h.  */
9781
9782 int
9783 main ()
9784 {
9785
9786   ;
9787   return 0;
9788 }
9789 _ACEOF
9790 if ac_fn_c_try_link "$LINENO"; then :
9791
9792   lt_aix_libpath_sed='
9793       /Import File Strings/,/^$/ {
9794           /^0/ {
9795               s/^0  *\([^ ]*\) *$/\1/
9796               p
9797           }
9798       }'
9799   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9800   # Check for a 64-bit object if we didn't find anything.
9801   if test -z "$lt_cv_aix_libpath_"; then
9802     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9803   fi
9804 fi
9805 rm -f core conftest.err conftest.$ac_objext \
9806     conftest$ac_exeext conftest.$ac_ext
9807   if test -z "$lt_cv_aix_libpath_"; then
9808     lt_cv_aix_libpath_="/usr/lib:/lib"
9809   fi
9810
9811 fi
9812
9813   aix_libpath=$lt_cv_aix_libpath_
9814 fi
9815
9816         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9817         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"
9818       else
9819         if test "$host_cpu" = ia64; then
9820           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9821           allow_undefined_flag="-z nodefs"
9822           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"
9823         else
9824          # Determine the default libpath from the value encoded in an
9825          # empty executable.
9826          if test "${lt_cv_aix_libpath+set}" = set; then
9827   aix_libpath=$lt_cv_aix_libpath
9828 else
9829   if ${lt_cv_aix_libpath_+:} false; then :
9830   $as_echo_n "(cached) " >&6
9831 else
9832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9833 /* end confdefs.h.  */
9834
9835 int
9836 main ()
9837 {
9838
9839   ;
9840   return 0;
9841 }
9842 _ACEOF
9843 if ac_fn_c_try_link "$LINENO"; then :
9844
9845   lt_aix_libpath_sed='
9846       /Import File Strings/,/^$/ {
9847           /^0/ {
9848               s/^0  *\([^ ]*\) *$/\1/
9849               p
9850           }
9851       }'
9852   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9853   # Check for a 64-bit object if we didn't find anything.
9854   if test -z "$lt_cv_aix_libpath_"; then
9855     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9856   fi
9857 fi
9858 rm -f core conftest.err conftest.$ac_objext \
9859     conftest$ac_exeext conftest.$ac_ext
9860   if test -z "$lt_cv_aix_libpath_"; then
9861     lt_cv_aix_libpath_="/usr/lib:/lib"
9862   fi
9863
9864 fi
9865
9866   aix_libpath=$lt_cv_aix_libpath_
9867 fi
9868
9869          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9870           # Warning - without using the other run time loading flags,
9871           # -berok will link without error, but may produce a broken library.
9872           no_undefined_flag=' ${wl}-bernotok'
9873           allow_undefined_flag=' ${wl}-berok'
9874           if test "$with_gnu_ld" = yes; then
9875             # We only use this code for GNU lds that support --whole-archive.
9876             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9877           else
9878             # Exported symbols can be pulled into shared objects from archives
9879             whole_archive_flag_spec='$convenience'
9880           fi
9881           archive_cmds_need_lc=yes
9882           # This is similar to how AIX traditionally builds its shared libraries.
9883           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'
9884         fi
9885       fi
9886       ;;
9887
9888     amigaos*)
9889       case $host_cpu in
9890       powerpc)
9891             # see comment about AmigaOS4 .so support
9892             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9893             archive_expsym_cmds=''
9894         ;;
9895       m68k)
9896             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)'
9897             hardcode_libdir_flag_spec='-L$libdir'
9898             hardcode_minus_L=yes
9899         ;;
9900       esac
9901       ;;
9902
9903     bsdi[45]*)
9904       export_dynamic_flag_spec=-rdynamic
9905       ;;
9906
9907     cygwin* | mingw* | pw32* | cegcc*)
9908       # When not using gcc, we currently assume that we are using
9909       # Microsoft Visual C++.
9910       # hardcode_libdir_flag_spec is actually meaningless, as there is
9911       # no search path for DLLs.
9912       case $cc_basename in
9913       cl*)
9914         # Native MSVC
9915         hardcode_libdir_flag_spec=' '
9916         allow_undefined_flag=unsupported
9917         always_export_symbols=yes
9918         file_list_spec='@'
9919         # Tell ltmain to make .lib files, not .a files.
9920         libext=lib
9921         # Tell ltmain to make .dll files, not .so files.
9922         shrext_cmds=".dll"
9923         # FIXME: Setting linknames here is a bad hack.
9924         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9925         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9926             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9927           else
9928             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9929           fi~
9930           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9931           linknames='
9932         # The linker will not automatically build a static lib if we build a DLL.
9933         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9934         enable_shared_with_static_runtimes=yes
9935         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9936         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9937         # Don't use ranlib
9938         old_postinstall_cmds='chmod 644 $oldlib'
9939         postlink_cmds='lt_outputfile="@OUTPUT@"~
9940           lt_tool_outputfile="@TOOL_OUTPUT@"~
9941           case $lt_outputfile in
9942             *.exe|*.EXE) ;;
9943             *)
9944               lt_outputfile="$lt_outputfile.exe"
9945               lt_tool_outputfile="$lt_tool_outputfile.exe"
9946               ;;
9947           esac~
9948           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9949             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9950             $RM "$lt_outputfile.manifest";
9951           fi'
9952         ;;
9953       *)
9954         # Assume MSVC wrapper
9955         hardcode_libdir_flag_spec=' '
9956         allow_undefined_flag=unsupported
9957         # Tell ltmain to make .lib files, not .a files.
9958         libext=lib
9959         # Tell ltmain to make .dll files, not .so files.
9960         shrext_cmds=".dll"
9961         # FIXME: Setting linknames here is a bad hack.
9962         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9963         # The linker will automatically build a .lib file if we build a DLL.
9964         old_archive_from_new_cmds='true'
9965         # FIXME: Should let the user specify the lib program.
9966         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9967         enable_shared_with_static_runtimes=yes
9968         ;;
9969       esac
9970       ;;
9971
9972     darwin* | rhapsody*)
9973
9974
9975   archive_cmds_need_lc=no
9976   hardcode_direct=no
9977   hardcode_automatic=yes
9978   hardcode_shlibpath_var=unsupported
9979   if test "$lt_cv_ld_force_load" = "yes"; then
9980     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\"`'
9981
9982   else
9983     whole_archive_flag_spec=''
9984   fi
9985   link_all_deplibs=yes
9986   allow_undefined_flag="$_lt_dar_allow_undefined"
9987   case $cc_basename in
9988      ifort*) _lt_dar_can_shared=yes ;;
9989      *) _lt_dar_can_shared=$GCC ;;
9990   esac
9991   if test "$_lt_dar_can_shared" = "yes"; then
9992     output_verbose_link_cmd=func_echo_all
9993     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9994     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9995     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}"
9996     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}"
9997
9998   else
9999   ld_shlibs=no
10000   fi
10001
10002       ;;
10003
10004     dgux*)
10005       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10006       hardcode_libdir_flag_spec='-L$libdir'
10007       hardcode_shlibpath_var=no
10008       ;;
10009
10010     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10011     # support.  Future versions do this automatically, but an explicit c++rt0.o
10012     # does not break anything, and helps significantly (at the cost of a little
10013     # extra space).
10014     freebsd2.2*)
10015       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10016       hardcode_libdir_flag_spec='-R$libdir'
10017       hardcode_direct=yes
10018       hardcode_shlibpath_var=no
10019       ;;
10020
10021     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10022     freebsd2.*)
10023       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10024       hardcode_direct=yes
10025       hardcode_minus_L=yes
10026       hardcode_shlibpath_var=no
10027       ;;
10028
10029     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10030     freebsd* | dragonfly*)
10031       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10032       hardcode_libdir_flag_spec='-R$libdir'
10033       hardcode_direct=yes
10034       hardcode_shlibpath_var=no
10035       ;;
10036
10037     hpux9*)
10038       if test "$GCC" = yes; then
10039         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'
10040       else
10041         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'
10042       fi
10043       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10044       hardcode_libdir_separator=:
10045       hardcode_direct=yes
10046
10047       # hardcode_minus_L: Not really in the search PATH,
10048       # but as the default location of the library.
10049       hardcode_minus_L=yes
10050       export_dynamic_flag_spec='${wl}-E'
10051       ;;
10052
10053     hpux10*)
10054       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10055         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10056       else
10057         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10058       fi
10059       if test "$with_gnu_ld" = no; then
10060         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10061         hardcode_libdir_separator=:
10062         hardcode_direct=yes
10063         hardcode_direct_absolute=yes
10064         export_dynamic_flag_spec='${wl}-E'
10065         # hardcode_minus_L: Not really in the search PATH,
10066         # but as the default location of the library.
10067         hardcode_minus_L=yes
10068       fi
10069       ;;
10070
10071     hpux11*)
10072       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10073         case $host_cpu in
10074         hppa*64*)
10075           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10076           ;;
10077         ia64*)
10078           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10079           ;;
10080         *)
10081           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10082           ;;
10083         esac
10084       else
10085         case $host_cpu in
10086         hppa*64*)
10087           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10088           ;;
10089         ia64*)
10090           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10091           ;;
10092         *)
10093
10094           # Older versions of the 11.00 compiler do not understand -b yet
10095           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10096           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10097 $as_echo_n "checking if $CC understands -b... " >&6; }
10098 if ${lt_cv_prog_compiler__b+:} false; then :
10099   $as_echo_n "(cached) " >&6
10100 else
10101   lt_cv_prog_compiler__b=no
10102    save_LDFLAGS="$LDFLAGS"
10103    LDFLAGS="$LDFLAGS -b"
10104    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10105    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10106      # The linker can only warn and ignore the option if not recognized
10107      # So say no if there are warnings
10108      if test -s conftest.err; then
10109        # Append any errors to the config.log.
10110        cat conftest.err 1>&5
10111        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10112        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10113        if diff conftest.exp conftest.er2 >/dev/null; then
10114          lt_cv_prog_compiler__b=yes
10115        fi
10116      else
10117        lt_cv_prog_compiler__b=yes
10118      fi
10119    fi
10120    $RM -r conftest*
10121    LDFLAGS="$save_LDFLAGS"
10122
10123 fi
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10125 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10126
10127 if test x"$lt_cv_prog_compiler__b" = xyes; then
10128     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10129 else
10130     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10131 fi
10132
10133           ;;
10134         esac
10135       fi
10136       if test "$with_gnu_ld" = no; then
10137         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10138         hardcode_libdir_separator=:
10139
10140         case $host_cpu in
10141         hppa*64*|ia64*)
10142           hardcode_direct=no
10143           hardcode_shlibpath_var=no
10144           ;;
10145         *)
10146           hardcode_direct=yes
10147           hardcode_direct_absolute=yes
10148           export_dynamic_flag_spec='${wl}-E'
10149
10150           # hardcode_minus_L: Not really in the search PATH,
10151           # but as the default location of the library.
10152           hardcode_minus_L=yes
10153           ;;
10154         esac
10155       fi
10156       ;;
10157
10158     irix5* | irix6* | nonstopux*)
10159       if test "$GCC" = yes; then
10160         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'
10161         # Try to use the -exported_symbol ld option, if it does not
10162         # work, assume that -exports_file does not work either and
10163         # implicitly export all symbols.
10164         # This should be the same for all languages, so no per-tag cache variable.
10165         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10166 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10167 if ${lt_cv_irix_exported_symbol+:} false; then :
10168   $as_echo_n "(cached) " >&6
10169 else
10170   save_LDFLAGS="$LDFLAGS"
10171            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10172            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10173 /* end confdefs.h.  */
10174 int foo (void) { return 0; }
10175 _ACEOF
10176 if ac_fn_c_try_link "$LINENO"; then :
10177   lt_cv_irix_exported_symbol=yes
10178 else
10179   lt_cv_irix_exported_symbol=no
10180 fi
10181 rm -f core conftest.err conftest.$ac_objext \
10182     conftest$ac_exeext conftest.$ac_ext
10183            LDFLAGS="$save_LDFLAGS"
10184 fi
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10186 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10187         if test "$lt_cv_irix_exported_symbol" = yes; then
10188           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'
10189         fi
10190       else
10191         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'
10192         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'
10193       fi
10194       archive_cmds_need_lc='no'
10195       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10196       hardcode_libdir_separator=:
10197       inherit_rpath=yes
10198       link_all_deplibs=yes
10199       ;;
10200
10201     netbsd* | netbsdelf*-gnu)
10202       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10203         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10204       else
10205         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10206       fi
10207       hardcode_libdir_flag_spec='-R$libdir'
10208       hardcode_direct=yes
10209       hardcode_shlibpath_var=no
10210       ;;
10211
10212     newsos6)
10213       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10214       hardcode_direct=yes
10215       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10216       hardcode_libdir_separator=:
10217       hardcode_shlibpath_var=no
10218       ;;
10219
10220     *nto* | *qnx*)
10221       ;;
10222
10223     openbsd*)
10224       if test -f /usr/libexec/ld.so; then
10225         hardcode_direct=yes
10226         hardcode_shlibpath_var=no
10227         hardcode_direct_absolute=yes
10228         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10229           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10230           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10231           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10232           export_dynamic_flag_spec='${wl}-E'
10233         else
10234           case $host_os in
10235            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10236              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10237              hardcode_libdir_flag_spec='-R$libdir'
10238              ;;
10239            *)
10240              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10241              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10242              ;;
10243           esac
10244         fi
10245       else
10246         ld_shlibs=no
10247       fi
10248       ;;
10249
10250     os2*)
10251       hardcode_libdir_flag_spec='-L$libdir'
10252       hardcode_minus_L=yes
10253       allow_undefined_flag=unsupported
10254       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'
10255       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10256       ;;
10257
10258     osf3*)
10259       if test "$GCC" = yes; then
10260         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10261         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'
10262       else
10263         allow_undefined_flag=' -expect_unresolved \*'
10264         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'
10265       fi
10266       archive_cmds_need_lc='no'
10267       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10268       hardcode_libdir_separator=:
10269       ;;
10270
10271     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10272       if test "$GCC" = yes; then
10273         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10274         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'
10275         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10276       else
10277         allow_undefined_flag=' -expect_unresolved \*'
10278         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'
10279         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~
10280         $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'
10281
10282         # Both c and cxx compiler support -rpath directly
10283         hardcode_libdir_flag_spec='-rpath $libdir'
10284       fi
10285       archive_cmds_need_lc='no'
10286       hardcode_libdir_separator=:
10287       ;;
10288
10289     solaris*)
10290       no_undefined_flag=' -z defs'
10291       if test "$GCC" = yes; then
10292         wlarc='${wl}'
10293         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10294         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10295           $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'
10296       else
10297         case `$CC -V 2>&1` in
10298         *"Compilers 5.0"*)
10299           wlarc=''
10300           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10301           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10302           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10303           ;;
10304         *)
10305           wlarc='${wl}'
10306           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10307           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10308           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10309           ;;
10310         esac
10311       fi
10312       hardcode_libdir_flag_spec='-R$libdir'
10313       hardcode_shlibpath_var=no
10314       case $host_os in
10315       solaris2.[0-5] | solaris2.[0-5].*) ;;
10316       *)
10317         # The compiler driver will combine and reorder linker options,
10318         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10319         # but is careful enough not to reorder.
10320         # Supported since Solaris 2.6 (maybe 2.5.1?)
10321         if test "$GCC" = yes; then
10322           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10323         else
10324           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10325         fi
10326         ;;
10327       esac
10328       link_all_deplibs=yes
10329       ;;
10330
10331     sunos4*)
10332       if test "x$host_vendor" = xsequent; then
10333         # Use $CC to link under sequent, because it throws in some extra .o
10334         # files that make .init and .fini sections work.
10335         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10336       else
10337         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10338       fi
10339       hardcode_libdir_flag_spec='-L$libdir'
10340       hardcode_direct=yes
10341       hardcode_minus_L=yes
10342       hardcode_shlibpath_var=no
10343       ;;
10344
10345     sysv4)
10346       case $host_vendor in
10347         sni)
10348           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10349           hardcode_direct=yes # is this really true???
10350         ;;
10351         siemens)
10352           ## LD is ld it makes a PLAMLIB
10353           ## CC just makes a GrossModule.
10354           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10355           reload_cmds='$CC -r -o $output$reload_objs'
10356           hardcode_direct=no
10357         ;;
10358         motorola)
10359           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10360           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10361         ;;
10362       esac
10363       runpath_var='LD_RUN_PATH'
10364       hardcode_shlibpath_var=no
10365       ;;
10366
10367     sysv4.3*)
10368       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10369       hardcode_shlibpath_var=no
10370       export_dynamic_flag_spec='-Bexport'
10371       ;;
10372
10373     sysv4*MP*)
10374       if test -d /usr/nec; then
10375         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10376         hardcode_shlibpath_var=no
10377         runpath_var=LD_RUN_PATH
10378         hardcode_runpath_var=yes
10379         ld_shlibs=yes
10380       fi
10381       ;;
10382
10383     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10384       no_undefined_flag='${wl}-z,text'
10385       archive_cmds_need_lc=no
10386       hardcode_shlibpath_var=no
10387       runpath_var='LD_RUN_PATH'
10388
10389       if test "$GCC" = yes; then
10390         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10391         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10392       else
10393         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10394         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10395       fi
10396       ;;
10397
10398     sysv5* | sco3.2v5* | sco5v6*)
10399       # Note: We can NOT use -z defs as we might desire, because we do not
10400       # link with -lc, and that would cause any symbols used from libc to
10401       # always be unresolved, which means just about no library would
10402       # ever link correctly.  If we're not using GNU ld we use -z text
10403       # though, which does catch some bad symbols but isn't as heavy-handed
10404       # as -z defs.
10405       no_undefined_flag='${wl}-z,text'
10406       allow_undefined_flag='${wl}-z,nodefs'
10407       archive_cmds_need_lc=no
10408       hardcode_shlibpath_var=no
10409       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10410       hardcode_libdir_separator=':'
10411       link_all_deplibs=yes
10412       export_dynamic_flag_spec='${wl}-Bexport'
10413       runpath_var='LD_RUN_PATH'
10414
10415       if test "$GCC" = yes; then
10416         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10417         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10418       else
10419         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10420         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10421       fi
10422       ;;
10423
10424     uts4*)
10425       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10426       hardcode_libdir_flag_spec='-L$libdir'
10427       hardcode_shlibpath_var=no
10428       ;;
10429
10430     *)
10431       ld_shlibs=no
10432       ;;
10433     esac
10434
10435     if test x$host_vendor = xsni; then
10436       case $host in
10437       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10438         export_dynamic_flag_spec='${wl}-Blargedynsym'
10439         ;;
10440       esac
10441     fi
10442   fi
10443
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10445 $as_echo "$ld_shlibs" >&6; }
10446 test "$ld_shlibs" = no && can_build_shared=no
10447
10448 with_gnu_ld=$with_gnu_ld
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464 #
10465 # Do we need to explicitly link libc?
10466 #
10467 case "x$archive_cmds_need_lc" in
10468 x|xyes)
10469   # Assume -lc should be added
10470   archive_cmds_need_lc=yes
10471
10472   if test "$enable_shared" = yes && test "$GCC" = yes; then
10473     case $archive_cmds in
10474     *'~'*)
10475       # FIXME: we may have to deal with multi-command sequences.
10476       ;;
10477     '$CC '*)
10478       # Test whether the compiler implicitly links with -lc since on some
10479       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10480       # to ld, don't add -lc before -lgcc.
10481       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10482 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10483 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10484   $as_echo_n "(cached) " >&6
10485 else
10486   $RM conftest*
10487         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10488
10489         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10490   (eval $ac_compile) 2>&5
10491   ac_status=$?
10492   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10493   test $ac_status = 0; } 2>conftest.err; then
10494           soname=conftest
10495           lib=conftest
10496           libobjs=conftest.$ac_objext
10497           deplibs=
10498           wl=$lt_prog_compiler_wl
10499           pic_flag=$lt_prog_compiler_pic
10500           compiler_flags=-v
10501           linker_flags=-v
10502           verstring=
10503           output_objdir=.
10504           libname=conftest
10505           lt_save_allow_undefined_flag=$allow_undefined_flag
10506           allow_undefined_flag=
10507           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10508   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10509   ac_status=$?
10510   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10511   test $ac_status = 0; }
10512           then
10513             lt_cv_archive_cmds_need_lc=no
10514           else
10515             lt_cv_archive_cmds_need_lc=yes
10516           fi
10517           allow_undefined_flag=$lt_save_allow_undefined_flag
10518         else
10519           cat conftest.err 1>&5
10520         fi
10521         $RM conftest*
10522
10523 fi
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10525 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10526       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10527       ;;
10528     esac
10529   fi
10530   ;;
10531 esac
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10685 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10686
10687 if test "$GCC" = yes; then
10688   case $host_os in
10689     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10690     *) lt_awk_arg="/^libraries:/" ;;
10691   esac
10692   case $host_os in
10693     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10694     *) lt_sed_strip_eq="s,=/,/,g" ;;
10695   esac
10696   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10697   case $lt_search_path_spec in
10698   *\;*)
10699     # if the path contains ";" then we assume it to be the separator
10700     # otherwise default to the standard path separator (i.e. ":") - it is
10701     # assumed that no part of a normal pathname contains ";" but that should
10702     # okay in the real world where ";" in dirpaths is itself problematic.
10703     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10704     ;;
10705   *)
10706     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10707     ;;
10708   esac
10709   # Ok, now we have the path, separated by spaces, we can step through it
10710   # and add multilib dir if necessary.
10711   lt_tmp_lt_search_path_spec=
10712   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10713   for lt_sys_path in $lt_search_path_spec; do
10714     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10715       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10716     else
10717       test -d "$lt_sys_path" && \
10718         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10719     fi
10720   done
10721   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10722 BEGIN {RS=" "; FS="/|\n";} {
10723   lt_foo="";
10724   lt_count=0;
10725   for (lt_i = NF; lt_i > 0; lt_i--) {
10726     if ($lt_i != "" && $lt_i != ".") {
10727       if ($lt_i == "..") {
10728         lt_count++;
10729       } else {
10730         if (lt_count == 0) {
10731           lt_foo="/" $lt_i lt_foo;
10732         } else {
10733           lt_count--;
10734         }
10735       }
10736     }
10737   }
10738   if (lt_foo != "") { lt_freq[lt_foo]++; }
10739   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10740 }'`
10741   # AWK program above erroneously prepends '/' to C:/dos/paths
10742   # for these hosts.
10743   case $host_os in
10744     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10745       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10746   esac
10747   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10748 else
10749   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10750 fi
10751 library_names_spec=
10752 libname_spec='lib$name'
10753 soname_spec=
10754 shrext_cmds=".so"
10755 postinstall_cmds=
10756 postuninstall_cmds=
10757 finish_cmds=
10758 finish_eval=
10759 shlibpath_var=
10760 shlibpath_overrides_runpath=unknown
10761 version_type=none
10762 dynamic_linker="$host_os ld.so"
10763 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10764 need_lib_prefix=unknown
10765 hardcode_into_libs=no
10766
10767 # when you set need_version to no, make sure it does not cause -set_version
10768 # flags to be left without arguments
10769 need_version=unknown
10770
10771 case $host_os in
10772 aix3*)
10773   version_type=linux # correct to gnu/linux during the next big refactor
10774   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10775   shlibpath_var=LIBPATH
10776
10777   # AIX 3 has no versioning support, so we append a major version to the name.
10778   soname_spec='${libname}${release}${shared_ext}$major'
10779   ;;
10780
10781 aix[4-9]*)
10782   version_type=linux # correct to gnu/linux during the next big refactor
10783   need_lib_prefix=no
10784   need_version=no
10785   hardcode_into_libs=yes
10786   if test "$host_cpu" = ia64; then
10787     # AIX 5 supports IA64
10788     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10789     shlibpath_var=LD_LIBRARY_PATH
10790   else
10791     # With GCC up to 2.95.x, collect2 would create an import file
10792     # for dependence libraries.  The import file would start with
10793     # the line `#! .'.  This would cause the generated library to
10794     # depend on `.', always an invalid library.  This was fixed in
10795     # development snapshots of GCC prior to 3.0.
10796     case $host_os in
10797       aix4 | aix4.[01] | aix4.[01].*)
10798       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10799            echo ' yes '
10800            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10801         :
10802       else
10803         can_build_shared=no
10804       fi
10805       ;;
10806     esac
10807     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10808     # soname into executable. Probably we can add versioning support to
10809     # collect2, so additional links can be useful in future.
10810     if test "$aix_use_runtimelinking" = yes; then
10811       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10812       # instead of lib<name>.a to let people know that these are not
10813       # typical AIX shared libraries.
10814       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10815     else
10816       # We preserve .a as extension for shared libraries through AIX4.2
10817       # and later when we are not doing run time linking.
10818       library_names_spec='${libname}${release}.a $libname.a'
10819       soname_spec='${libname}${release}${shared_ext}$major'
10820     fi
10821     shlibpath_var=LIBPATH
10822   fi
10823   ;;
10824
10825 amigaos*)
10826   case $host_cpu in
10827   powerpc)
10828     # Since July 2007 AmigaOS4 officially supports .so libraries.
10829     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10830     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10831     ;;
10832   m68k)
10833     library_names_spec='$libname.ixlibrary $libname.a'
10834     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10835     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'
10836     ;;
10837   esac
10838   ;;
10839
10840 beos*)
10841   library_names_spec='${libname}${shared_ext}'
10842   dynamic_linker="$host_os ld.so"
10843   shlibpath_var=LIBRARY_PATH
10844   ;;
10845
10846 bsdi[45]*)
10847   version_type=linux # correct to gnu/linux during the next big refactor
10848   need_version=no
10849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10850   soname_spec='${libname}${release}${shared_ext}$major'
10851   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10852   shlibpath_var=LD_LIBRARY_PATH
10853   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10854   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10855   # the default ld.so.conf also contains /usr/contrib/lib and
10856   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10857   # libtool to hard-code these into programs
10858   ;;
10859
10860 cygwin* | mingw* | pw32* | cegcc*)
10861   version_type=windows
10862   shrext_cmds=".dll"
10863   need_version=no
10864   need_lib_prefix=no
10865
10866   case $GCC,$cc_basename in
10867   yes,*)
10868     # gcc
10869     library_names_spec='$libname.dll.a'
10870     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10871     postinstall_cmds='base_file=`basename \${file}`~
10872       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10873       dldir=$destdir/`dirname \$dlpath`~
10874       test -d \$dldir || mkdir -p \$dldir~
10875       $install_prog $dir/$dlname \$dldir/$dlname~
10876       chmod a+x \$dldir/$dlname~
10877       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10878         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10879       fi'
10880     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10881       dlpath=$dir/\$dldll~
10882        $RM \$dlpath'
10883     shlibpath_overrides_runpath=yes
10884
10885     case $host_os in
10886     cygwin*)
10887       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10888       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10889
10890       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10891       ;;
10892     mingw* | cegcc*)
10893       # MinGW DLLs use traditional 'lib' prefix
10894       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10895       ;;
10896     pw32*)
10897       # pw32 DLLs use 'pw' prefix rather than 'lib'
10898       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10899       ;;
10900     esac
10901     dynamic_linker='Win32 ld.exe'
10902     ;;
10903
10904   *,cl*)
10905     # Native MSVC
10906     libname_spec='$name'
10907     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10908     library_names_spec='${libname}.dll.lib'
10909
10910     case $build_os in
10911     mingw*)
10912       sys_lib_search_path_spec=
10913       lt_save_ifs=$IFS
10914       IFS=';'
10915       for lt_path in $LIB
10916       do
10917         IFS=$lt_save_ifs
10918         # Let DOS variable expansion print the short 8.3 style file name.
10919         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10920         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10921       done
10922       IFS=$lt_save_ifs
10923       # Convert to MSYS style.
10924       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10925       ;;
10926     cygwin*)
10927       # Convert to unix form, then to dos form, then back to unix form
10928       # but this time dos style (no spaces!) so that the unix form looks
10929       # like /cygdrive/c/PROGRA~1:/cygdr...
10930       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10931       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10932       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10933       ;;
10934     *)
10935       sys_lib_search_path_spec="$LIB"
10936       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10937         # It is most probably a Windows format PATH.
10938         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10939       else
10940         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10941       fi
10942       # FIXME: find the short name or the path components, as spaces are
10943       # common. (e.g. "Program Files" -> "PROGRA~1")
10944       ;;
10945     esac
10946
10947     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10948     postinstall_cmds='base_file=`basename \${file}`~
10949       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10950       dldir=$destdir/`dirname \$dlpath`~
10951       test -d \$dldir || mkdir -p \$dldir~
10952       $install_prog $dir/$dlname \$dldir/$dlname'
10953     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10954       dlpath=$dir/\$dldll~
10955        $RM \$dlpath'
10956     shlibpath_overrides_runpath=yes
10957     dynamic_linker='Win32 link.exe'
10958     ;;
10959
10960   *)
10961     # Assume MSVC wrapper
10962     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10963     dynamic_linker='Win32 ld.exe'
10964     ;;
10965   esac
10966   # FIXME: first we should search . and the directory the executable is in
10967   shlibpath_var=PATH
10968   ;;
10969
10970 darwin* | rhapsody*)
10971   dynamic_linker="$host_os dyld"
10972   version_type=darwin
10973   need_lib_prefix=no
10974   need_version=no
10975   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10976   soname_spec='${libname}${release}${major}$shared_ext'
10977   shlibpath_overrides_runpath=yes
10978   shlibpath_var=DYLD_LIBRARY_PATH
10979   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10980
10981   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10982   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10983   ;;
10984
10985 dgux*)
10986   version_type=linux # correct to gnu/linux during the next big refactor
10987   need_lib_prefix=no
10988   need_version=no
10989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10990   soname_spec='${libname}${release}${shared_ext}$major'
10991   shlibpath_var=LD_LIBRARY_PATH
10992   ;;
10993
10994 freebsd* | dragonfly*)
10995   # DragonFly does not have aout.  When/if they implement a new
10996   # versioning mechanism, adjust this.
10997   if test -x /usr/bin/objformat; then
10998     objformat=`/usr/bin/objformat`
10999   else
11000     case $host_os in
11001     freebsd[23].*) objformat=aout ;;
11002     *) objformat=elf ;;
11003     esac
11004   fi
11005   version_type=freebsd-$objformat
11006   case $version_type in
11007     freebsd-elf*)
11008       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11009       need_version=no
11010       need_lib_prefix=no
11011       ;;
11012     freebsd-*)
11013       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11014       need_version=yes
11015       ;;
11016   esac
11017   shlibpath_var=LD_LIBRARY_PATH
11018   case $host_os in
11019   freebsd2.*)
11020     shlibpath_overrides_runpath=yes
11021     ;;
11022   freebsd3.[01]* | freebsdelf3.[01]*)
11023     shlibpath_overrides_runpath=yes
11024     hardcode_into_libs=yes
11025     ;;
11026   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11027   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11028     shlibpath_overrides_runpath=no
11029     hardcode_into_libs=yes
11030     ;;
11031   *) # from 4.6 on, and DragonFly
11032     shlibpath_overrides_runpath=yes
11033     hardcode_into_libs=yes
11034     ;;
11035   esac
11036   ;;
11037
11038 gnu*)
11039   version_type=linux # correct to gnu/linux during the next big refactor
11040   need_lib_prefix=no
11041   need_version=no
11042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11043   soname_spec='${libname}${release}${shared_ext}$major'
11044   shlibpath_var=LD_LIBRARY_PATH
11045   shlibpath_overrides_runpath=no
11046   hardcode_into_libs=yes
11047   ;;
11048
11049 haiku*)
11050   version_type=linux # correct to gnu/linux during the next big refactor
11051   need_lib_prefix=no
11052   need_version=no
11053   dynamic_linker="$host_os runtime_loader"
11054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11055   soname_spec='${libname}${release}${shared_ext}$major'
11056   shlibpath_var=LIBRARY_PATH
11057   shlibpath_overrides_runpath=yes
11058   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11059   hardcode_into_libs=yes
11060   ;;
11061
11062 hpux9* | hpux10* | hpux11*)
11063   # Give a soname corresponding to the major version so that dld.sl refuses to
11064   # link against other versions.
11065   version_type=sunos
11066   need_lib_prefix=no
11067   need_version=no
11068   case $host_cpu in
11069   ia64*)
11070     shrext_cmds='.so'
11071     hardcode_into_libs=yes
11072     dynamic_linker="$host_os dld.so"
11073     shlibpath_var=LD_LIBRARY_PATH
11074     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11075     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11076     soname_spec='${libname}${release}${shared_ext}$major'
11077     if test "X$HPUX_IA64_MODE" = X32; then
11078       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11079     else
11080       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11081     fi
11082     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11083     ;;
11084   hppa*64*)
11085     shrext_cmds='.sl'
11086     hardcode_into_libs=yes
11087     dynamic_linker="$host_os dld.sl"
11088     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11089     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11090     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11091     soname_spec='${libname}${release}${shared_ext}$major'
11092     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11093     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11094     ;;
11095   *)
11096     shrext_cmds='.sl'
11097     dynamic_linker="$host_os dld.sl"
11098     shlibpath_var=SHLIB_PATH
11099     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11100     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11101     soname_spec='${libname}${release}${shared_ext}$major'
11102     ;;
11103   esac
11104   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11105   postinstall_cmds='chmod 555 $lib'
11106   # or fails outright, so override atomically:
11107   install_override_mode=555
11108   ;;
11109
11110 interix[3-9]*)
11111   version_type=linux # correct to gnu/linux during the next big refactor
11112   need_lib_prefix=no
11113   need_version=no
11114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11115   soname_spec='${libname}${release}${shared_ext}$major'
11116   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11117   shlibpath_var=LD_LIBRARY_PATH
11118   shlibpath_overrides_runpath=no
11119   hardcode_into_libs=yes
11120   ;;
11121
11122 irix5* | irix6* | nonstopux*)
11123   case $host_os in
11124     nonstopux*) version_type=nonstopux ;;
11125     *)
11126         if test "$lt_cv_prog_gnu_ld" = yes; then
11127                 version_type=linux # correct to gnu/linux during the next big refactor
11128         else
11129                 version_type=irix
11130         fi ;;
11131   esac
11132   need_lib_prefix=no
11133   need_version=no
11134   soname_spec='${libname}${release}${shared_ext}$major'
11135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11136   case $host_os in
11137   irix5* | nonstopux*)
11138     libsuff= shlibsuff=
11139     ;;
11140   *)
11141     case $LD in # libtool.m4 will add one of these switches to LD
11142     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11143       libsuff= shlibsuff= libmagic=32-bit;;
11144     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11145       libsuff=32 shlibsuff=N32 libmagic=N32;;
11146     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11147       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11148     *) libsuff= shlibsuff= libmagic=never-match;;
11149     esac
11150     ;;
11151   esac
11152   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11153   shlibpath_overrides_runpath=no
11154   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11155   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11156   hardcode_into_libs=yes
11157   ;;
11158
11159 # No shared lib support for Linux oldld, aout, or coff.
11160 linux*oldld* | linux*aout* | linux*coff*)
11161   dynamic_linker=no
11162   ;;
11163
11164 # This must be glibc/ELF.
11165 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11166   version_type=linux # correct to gnu/linux during the next big refactor
11167   need_lib_prefix=no
11168   need_version=no
11169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11170   soname_spec='${libname}${release}${shared_ext}$major'
11171   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11172   shlibpath_var=LD_LIBRARY_PATH
11173   shlibpath_overrides_runpath=no
11174
11175   # Some binutils ld are patched to set DT_RUNPATH
11176   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11177   $as_echo_n "(cached) " >&6
11178 else
11179   lt_cv_shlibpath_overrides_runpath=no
11180     save_LDFLAGS=$LDFLAGS
11181     save_libdir=$libdir
11182     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11183          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11184     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11185 /* end confdefs.h.  */
11186
11187 int
11188 main ()
11189 {
11190
11191   ;
11192   return 0;
11193 }
11194 _ACEOF
11195 if ac_fn_c_try_link "$LINENO"; then :
11196   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11197   lt_cv_shlibpath_overrides_runpath=yes
11198 fi
11199 fi
11200 rm -f core conftest.err conftest.$ac_objext \
11201     conftest$ac_exeext conftest.$ac_ext
11202     LDFLAGS=$save_LDFLAGS
11203     libdir=$save_libdir
11204
11205 fi
11206
11207   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11208
11209   # This implies no fast_install, which is unacceptable.
11210   # Some rework will be needed to allow for fast_install
11211   # before this can be enabled.
11212   hardcode_into_libs=yes
11213
11214   # Append ld.so.conf contents to the search path
11215   if test -f /etc/ld.so.conf; then
11216     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' ' '`
11217     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11218   fi
11219
11220   # We used to test for /lib/ld.so.1 and disable shared libraries on
11221   # powerpc, because MkLinux only supported shared libraries with the
11222   # GNU dynamic linker.  Since this was broken with cross compilers,
11223   # most powerpc-linux boxes support dynamic linking these days and
11224   # people can always --disable-shared, the test was removed, and we
11225   # assume the GNU/Linux dynamic linker is in use.
11226   dynamic_linker='GNU/Linux ld.so'
11227   ;;
11228
11229 netbsdelf*-gnu)
11230   version_type=linux
11231   need_lib_prefix=no
11232   need_version=no
11233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11234   soname_spec='${libname}${release}${shared_ext}$major'
11235   shlibpath_var=LD_LIBRARY_PATH
11236   shlibpath_overrides_runpath=no
11237   hardcode_into_libs=yes
11238   dynamic_linker='NetBSD ld.elf_so'
11239   ;;
11240
11241 netbsd*)
11242   version_type=sunos
11243   need_lib_prefix=no
11244   need_version=no
11245   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11246     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11247     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11248     dynamic_linker='NetBSD (a.out) ld.so'
11249   else
11250     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11251     soname_spec='${libname}${release}${shared_ext}$major'
11252     dynamic_linker='NetBSD ld.elf_so'
11253   fi
11254   shlibpath_var=LD_LIBRARY_PATH
11255   shlibpath_overrides_runpath=yes
11256   hardcode_into_libs=yes
11257   ;;
11258
11259 newsos6)
11260   version_type=linux # correct to gnu/linux during the next big refactor
11261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11262   shlibpath_var=LD_LIBRARY_PATH
11263   shlibpath_overrides_runpath=yes
11264   ;;
11265
11266 *nto* | *qnx*)
11267   version_type=qnx
11268   need_lib_prefix=no
11269   need_version=no
11270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11271   soname_spec='${libname}${release}${shared_ext}$major'
11272   shlibpath_var=LD_LIBRARY_PATH
11273   shlibpath_overrides_runpath=no
11274   hardcode_into_libs=yes
11275   dynamic_linker='ldqnx.so'
11276   ;;
11277
11278 openbsd*)
11279   version_type=sunos
11280   sys_lib_dlsearch_path_spec="/usr/lib"
11281   need_lib_prefix=no
11282   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11283   case $host_os in
11284     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11285     *)                          need_version=no  ;;
11286   esac
11287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11288   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11289   shlibpath_var=LD_LIBRARY_PATH
11290   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11291     case $host_os in
11292       openbsd2.[89] | openbsd2.[89].*)
11293         shlibpath_overrides_runpath=no
11294         ;;
11295       *)
11296         shlibpath_overrides_runpath=yes
11297         ;;
11298       esac
11299   else
11300     shlibpath_overrides_runpath=yes
11301   fi
11302   ;;
11303
11304 os2*)
11305   libname_spec='$name'
11306   shrext_cmds=".dll"
11307   need_lib_prefix=no
11308   library_names_spec='$libname${shared_ext} $libname.a'
11309   dynamic_linker='OS/2 ld.exe'
11310   shlibpath_var=LIBPATH
11311   ;;
11312
11313 osf3* | osf4* | osf5*)
11314   version_type=osf
11315   need_lib_prefix=no
11316   need_version=no
11317   soname_spec='${libname}${release}${shared_ext}$major'
11318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11319   shlibpath_var=LD_LIBRARY_PATH
11320   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11321   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11322   ;;
11323
11324 rdos*)
11325   dynamic_linker=no
11326   ;;
11327
11328 solaris*)
11329   version_type=linux # correct to gnu/linux during the next big refactor
11330   need_lib_prefix=no
11331   need_version=no
11332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11333   soname_spec='${libname}${release}${shared_ext}$major'
11334   shlibpath_var=LD_LIBRARY_PATH
11335   shlibpath_overrides_runpath=yes
11336   hardcode_into_libs=yes
11337   # ldd complains unless libraries are executable
11338   postinstall_cmds='chmod +x $lib'
11339   ;;
11340
11341 sunos4*)
11342   version_type=sunos
11343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11344   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11345   shlibpath_var=LD_LIBRARY_PATH
11346   shlibpath_overrides_runpath=yes
11347   if test "$with_gnu_ld" = yes; then
11348     need_lib_prefix=no
11349   fi
11350   need_version=yes
11351   ;;
11352
11353 sysv4 | sysv4.3*)
11354   version_type=linux # correct to gnu/linux during the next big refactor
11355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11356   soname_spec='${libname}${release}${shared_ext}$major'
11357   shlibpath_var=LD_LIBRARY_PATH
11358   case $host_vendor in
11359     sni)
11360       shlibpath_overrides_runpath=no
11361       need_lib_prefix=no
11362       runpath_var=LD_RUN_PATH
11363       ;;
11364     siemens)
11365       need_lib_prefix=no
11366       ;;
11367     motorola)
11368       need_lib_prefix=no
11369       need_version=no
11370       shlibpath_overrides_runpath=no
11371       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11372       ;;
11373   esac
11374   ;;
11375
11376 sysv4*MP*)
11377   if test -d /usr/nec ;then
11378     version_type=linux # correct to gnu/linux during the next big refactor
11379     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11380     soname_spec='$libname${shared_ext}.$major'
11381     shlibpath_var=LD_LIBRARY_PATH
11382   fi
11383   ;;
11384
11385 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11386   version_type=freebsd-elf
11387   need_lib_prefix=no
11388   need_version=no
11389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11390   soname_spec='${libname}${release}${shared_ext}$major'
11391   shlibpath_var=LD_LIBRARY_PATH
11392   shlibpath_overrides_runpath=yes
11393   hardcode_into_libs=yes
11394   if test "$with_gnu_ld" = yes; then
11395     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11396   else
11397     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11398     case $host_os in
11399       sco3.2v5*)
11400         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11401         ;;
11402     esac
11403   fi
11404   sys_lib_dlsearch_path_spec='/usr/lib'
11405   ;;
11406
11407 tpf*)
11408   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11409   version_type=linux # correct to gnu/linux during the next big refactor
11410   need_lib_prefix=no
11411   need_version=no
11412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11413   shlibpath_var=LD_LIBRARY_PATH
11414   shlibpath_overrides_runpath=no
11415   hardcode_into_libs=yes
11416   ;;
11417
11418 uts4*)
11419   version_type=linux # correct to gnu/linux during the next big refactor
11420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11421   soname_spec='${libname}${release}${shared_ext}$major'
11422   shlibpath_var=LD_LIBRARY_PATH
11423   ;;
11424
11425 *)
11426   dynamic_linker=no
11427   ;;
11428 esac
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11430 $as_echo "$dynamic_linker" >&6; }
11431 test "$dynamic_linker" = no && can_build_shared=no
11432
11433 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11434 if test "$GCC" = yes; then
11435   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11436 fi
11437
11438 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11439   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11440 fi
11441 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11442   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11443 fi
11444
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11537 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11538 hardcode_action=
11539 if test -n "$hardcode_libdir_flag_spec" ||
11540    test -n "$runpath_var" ||
11541    test "X$hardcode_automatic" = "Xyes" ; then
11542
11543   # We can hardcode non-existent directories.
11544   if test "$hardcode_direct" != no &&
11545      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11546      # have to relink, otherwise we might link with an installed library
11547      # when we should be linking with a yet-to-be-installed one
11548      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11549      test "$hardcode_minus_L" != no; then
11550     # Linking always hardcodes the temporary library directory.
11551     hardcode_action=relink
11552   else
11553     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11554     hardcode_action=immediate
11555   fi
11556 else
11557   # We cannot hardcode anything, or else we can only hardcode existing
11558   # directories.
11559   hardcode_action=unsupported
11560 fi
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11562 $as_echo "$hardcode_action" >&6; }
11563
11564 if test "$hardcode_action" = relink ||
11565    test "$inherit_rpath" = yes; then
11566   # Fast installation is not supported
11567   enable_fast_install=no
11568 elif test "$shlibpath_overrides_runpath" = yes ||
11569      test "$enable_shared" = no; then
11570   # Fast installation is not necessary
11571   enable_fast_install=needless
11572 fi
11573
11574
11575
11576
11577
11578
11579   if test "x$enable_dlopen" != xyes; then
11580   enable_dlopen=unknown
11581   enable_dlopen_self=unknown
11582   enable_dlopen_self_static=unknown
11583 else
11584   lt_cv_dlopen=no
11585   lt_cv_dlopen_libs=
11586
11587   case $host_os in
11588   beos*)
11589     lt_cv_dlopen="load_add_on"
11590     lt_cv_dlopen_libs=
11591     lt_cv_dlopen_self=yes
11592     ;;
11593
11594   mingw* | pw32* | cegcc*)
11595     lt_cv_dlopen="LoadLibrary"
11596     lt_cv_dlopen_libs=
11597     ;;
11598
11599   cygwin*)
11600     lt_cv_dlopen="dlopen"
11601     lt_cv_dlopen_libs=
11602     ;;
11603
11604   darwin*)
11605   # if libdl is installed we need to link against it
11606     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11607 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11608 if ${ac_cv_lib_dl_dlopen+:} false; then :
11609   $as_echo_n "(cached) " >&6
11610 else
11611   ac_check_lib_save_LIBS=$LIBS
11612 LIBS="-ldl  $LIBS"
11613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11614 /* end confdefs.h.  */
11615
11616 /* Override any GCC internal prototype to avoid an error.
11617    Use char because int might match the return type of a GCC
11618    builtin and then its argument prototype would still apply.  */
11619 #ifdef __cplusplus
11620 extern "C"
11621 #endif
11622 char dlopen ();
11623 int
11624 main ()
11625 {
11626 return dlopen ();
11627   ;
11628   return 0;
11629 }
11630 _ACEOF
11631 if ac_fn_c_try_link "$LINENO"; then :
11632   ac_cv_lib_dl_dlopen=yes
11633 else
11634   ac_cv_lib_dl_dlopen=no
11635 fi
11636 rm -f core conftest.err conftest.$ac_objext \
11637     conftest$ac_exeext conftest.$ac_ext
11638 LIBS=$ac_check_lib_save_LIBS
11639 fi
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11641 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11642 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11643   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11644 else
11645
11646     lt_cv_dlopen="dyld"
11647     lt_cv_dlopen_libs=
11648     lt_cv_dlopen_self=yes
11649
11650 fi
11651
11652     ;;
11653
11654   *)
11655     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11656 if test "x$ac_cv_func_shl_load" = xyes; then :
11657   lt_cv_dlopen="shl_load"
11658 else
11659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11660 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11661 if ${ac_cv_lib_dld_shl_load+:} false; then :
11662   $as_echo_n "(cached) " >&6
11663 else
11664   ac_check_lib_save_LIBS=$LIBS
11665 LIBS="-ldld  $LIBS"
11666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11667 /* end confdefs.h.  */
11668
11669 /* Override any GCC internal prototype to avoid an error.
11670    Use char because int might match the return type of a GCC
11671    builtin and then its argument prototype would still apply.  */
11672 #ifdef __cplusplus
11673 extern "C"
11674 #endif
11675 char shl_load ();
11676 int
11677 main ()
11678 {
11679 return shl_load ();
11680   ;
11681   return 0;
11682 }
11683 _ACEOF
11684 if ac_fn_c_try_link "$LINENO"; then :
11685   ac_cv_lib_dld_shl_load=yes
11686 else
11687   ac_cv_lib_dld_shl_load=no
11688 fi
11689 rm -f core conftest.err conftest.$ac_objext \
11690     conftest$ac_exeext conftest.$ac_ext
11691 LIBS=$ac_check_lib_save_LIBS
11692 fi
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11694 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11695 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11696   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11697 else
11698   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11699 if test "x$ac_cv_func_dlopen" = xyes; then :
11700   lt_cv_dlopen="dlopen"
11701 else
11702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11703 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11704 if ${ac_cv_lib_dl_dlopen+:} false; then :
11705   $as_echo_n "(cached) " >&6
11706 else
11707   ac_check_lib_save_LIBS=$LIBS
11708 LIBS="-ldl  $LIBS"
11709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11710 /* end confdefs.h.  */
11711
11712 /* Override any GCC internal prototype to avoid an error.
11713    Use char because int might match the return type of a GCC
11714    builtin and then its argument prototype would still apply.  */
11715 #ifdef __cplusplus
11716 extern "C"
11717 #endif
11718 char dlopen ();
11719 int
11720 main ()
11721 {
11722 return dlopen ();
11723   ;
11724   return 0;
11725 }
11726 _ACEOF
11727 if ac_fn_c_try_link "$LINENO"; then :
11728   ac_cv_lib_dl_dlopen=yes
11729 else
11730   ac_cv_lib_dl_dlopen=no
11731 fi
11732 rm -f core conftest.err conftest.$ac_objext \
11733     conftest$ac_exeext conftest.$ac_ext
11734 LIBS=$ac_check_lib_save_LIBS
11735 fi
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11737 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11738 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11739   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11740 else
11741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11742 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11743 if ${ac_cv_lib_svld_dlopen+:} false; then :
11744   $as_echo_n "(cached) " >&6
11745 else
11746   ac_check_lib_save_LIBS=$LIBS
11747 LIBS="-lsvld  $LIBS"
11748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11749 /* end confdefs.h.  */
11750
11751 /* Override any GCC internal prototype to avoid an error.
11752    Use char because int might match the return type of a GCC
11753    builtin and then its argument prototype would still apply.  */
11754 #ifdef __cplusplus
11755 extern "C"
11756 #endif
11757 char dlopen ();
11758 int
11759 main ()
11760 {
11761 return dlopen ();
11762   ;
11763   return 0;
11764 }
11765 _ACEOF
11766 if ac_fn_c_try_link "$LINENO"; then :
11767   ac_cv_lib_svld_dlopen=yes
11768 else
11769   ac_cv_lib_svld_dlopen=no
11770 fi
11771 rm -f core conftest.err conftest.$ac_objext \
11772     conftest$ac_exeext conftest.$ac_ext
11773 LIBS=$ac_check_lib_save_LIBS
11774 fi
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11776 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11777 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11778   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11779 else
11780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11781 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11782 if ${ac_cv_lib_dld_dld_link+:} false; then :
11783   $as_echo_n "(cached) " >&6
11784 else
11785   ac_check_lib_save_LIBS=$LIBS
11786 LIBS="-ldld  $LIBS"
11787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11788 /* end confdefs.h.  */
11789
11790 /* Override any GCC internal prototype to avoid an error.
11791    Use char because int might match the return type of a GCC
11792    builtin and then its argument prototype would still apply.  */
11793 #ifdef __cplusplus
11794 extern "C"
11795 #endif
11796 char dld_link ();
11797 int
11798 main ()
11799 {
11800 return dld_link ();
11801   ;
11802   return 0;
11803 }
11804 _ACEOF
11805 if ac_fn_c_try_link "$LINENO"; then :
11806   ac_cv_lib_dld_dld_link=yes
11807 else
11808   ac_cv_lib_dld_dld_link=no
11809 fi
11810 rm -f core conftest.err conftest.$ac_objext \
11811     conftest$ac_exeext conftest.$ac_ext
11812 LIBS=$ac_check_lib_save_LIBS
11813 fi
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11815 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11816 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11817   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11818 fi
11819
11820
11821 fi
11822
11823
11824 fi
11825
11826
11827 fi
11828
11829
11830 fi
11831
11832
11833 fi
11834
11835     ;;
11836   esac
11837
11838   if test "x$lt_cv_dlopen" != xno; then
11839     enable_dlopen=yes
11840   else
11841     enable_dlopen=no
11842   fi
11843
11844   case $lt_cv_dlopen in
11845   dlopen)
11846     save_CPPFLAGS="$CPPFLAGS"
11847     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11848
11849     save_LDFLAGS="$LDFLAGS"
11850     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11851
11852     save_LIBS="$LIBS"
11853     LIBS="$lt_cv_dlopen_libs $LIBS"
11854
11855     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11856 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11857 if ${lt_cv_dlopen_self+:} false; then :
11858   $as_echo_n "(cached) " >&6
11859 else
11860           if test "$cross_compiling" = yes; then :
11861   lt_cv_dlopen_self=cross
11862 else
11863   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11864   lt_status=$lt_dlunknown
11865   cat > conftest.$ac_ext <<_LT_EOF
11866 #line $LINENO "configure"
11867 #include "confdefs.h"
11868
11869 #if HAVE_DLFCN_H
11870 #include <dlfcn.h>
11871 #endif
11872
11873 #include <stdio.h>
11874
11875 #ifdef RTLD_GLOBAL
11876 #  define LT_DLGLOBAL           RTLD_GLOBAL
11877 #else
11878 #  ifdef DL_GLOBAL
11879 #    define LT_DLGLOBAL         DL_GLOBAL
11880 #  else
11881 #    define LT_DLGLOBAL         0
11882 #  endif
11883 #endif
11884
11885 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11886    find out it does not work in some platform. */
11887 #ifndef LT_DLLAZY_OR_NOW
11888 #  ifdef RTLD_LAZY
11889 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11890 #  else
11891 #    ifdef DL_LAZY
11892 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11893 #    else
11894 #      ifdef RTLD_NOW
11895 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11896 #      else
11897 #        ifdef DL_NOW
11898 #          define LT_DLLAZY_OR_NOW      DL_NOW
11899 #        else
11900 #          define LT_DLLAZY_OR_NOW      0
11901 #        endif
11902 #      endif
11903 #    endif
11904 #  endif
11905 #endif
11906
11907 /* When -fvisbility=hidden is used, assume the code has been annotated
11908    correspondingly for the symbols needed.  */
11909 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11910 int fnord () __attribute__((visibility("default")));
11911 #endif
11912
11913 int fnord () { return 42; }
11914 int main ()
11915 {
11916   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11917   int status = $lt_dlunknown;
11918
11919   if (self)
11920     {
11921       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11922       else
11923         {
11924           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11925           else puts (dlerror ());
11926         }
11927       /* dlclose (self); */
11928     }
11929   else
11930     puts (dlerror ());
11931
11932   return status;
11933 }
11934 _LT_EOF
11935   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11936   (eval $ac_link) 2>&5
11937   ac_status=$?
11938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11939   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11940     (./conftest; exit; ) >&5 2>/dev/null
11941     lt_status=$?
11942     case x$lt_status in
11943       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11944       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11945       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11946     esac
11947   else :
11948     # compilation failed
11949     lt_cv_dlopen_self=no
11950   fi
11951 fi
11952 rm -fr conftest*
11953
11954
11955 fi
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11957 $as_echo "$lt_cv_dlopen_self" >&6; }
11958
11959     if test "x$lt_cv_dlopen_self" = xyes; then
11960       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11961       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11962 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11963 if ${lt_cv_dlopen_self_static+:} false; then :
11964   $as_echo_n "(cached) " >&6
11965 else
11966           if test "$cross_compiling" = yes; then :
11967   lt_cv_dlopen_self_static=cross
11968 else
11969   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11970   lt_status=$lt_dlunknown
11971   cat > conftest.$ac_ext <<_LT_EOF
11972 #line $LINENO "configure"
11973 #include "confdefs.h"
11974
11975 #if HAVE_DLFCN_H
11976 #include <dlfcn.h>
11977 #endif
11978
11979 #include <stdio.h>
11980
11981 #ifdef RTLD_GLOBAL
11982 #  define LT_DLGLOBAL           RTLD_GLOBAL
11983 #else
11984 #  ifdef DL_GLOBAL
11985 #    define LT_DLGLOBAL         DL_GLOBAL
11986 #  else
11987 #    define LT_DLGLOBAL         0
11988 #  endif
11989 #endif
11990
11991 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11992    find out it does not work in some platform. */
11993 #ifndef LT_DLLAZY_OR_NOW
11994 #  ifdef RTLD_LAZY
11995 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11996 #  else
11997 #    ifdef DL_LAZY
11998 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11999 #    else
12000 #      ifdef RTLD_NOW
12001 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12002 #      else
12003 #        ifdef DL_NOW
12004 #          define LT_DLLAZY_OR_NOW      DL_NOW
12005 #        else
12006 #          define LT_DLLAZY_OR_NOW      0
12007 #        endif
12008 #      endif
12009 #    endif
12010 #  endif
12011 #endif
12012
12013 /* When -fvisbility=hidden is used, assume the code has been annotated
12014    correspondingly for the symbols needed.  */
12015 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12016 int fnord () __attribute__((visibility("default")));
12017 #endif
12018
12019 int fnord () { return 42; }
12020 int main ()
12021 {
12022   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12023   int status = $lt_dlunknown;
12024
12025   if (self)
12026     {
12027       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12028       else
12029         {
12030           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12031           else puts (dlerror ());
12032         }
12033       /* dlclose (self); */
12034     }
12035   else
12036     puts (dlerror ());
12037
12038   return status;
12039 }
12040 _LT_EOF
12041   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12042   (eval $ac_link) 2>&5
12043   ac_status=$?
12044   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12045   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12046     (./conftest; exit; ) >&5 2>/dev/null
12047     lt_status=$?
12048     case x$lt_status in
12049       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12050       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12051       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12052     esac
12053   else :
12054     # compilation failed
12055     lt_cv_dlopen_self_static=no
12056   fi
12057 fi
12058 rm -fr conftest*
12059
12060
12061 fi
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12063 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12064     fi
12065
12066     CPPFLAGS="$save_CPPFLAGS"
12067     LDFLAGS="$save_LDFLAGS"
12068     LIBS="$save_LIBS"
12069     ;;
12070   esac
12071
12072   case $lt_cv_dlopen_self in
12073   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12074   *) enable_dlopen_self=unknown ;;
12075   esac
12076
12077   case $lt_cv_dlopen_self_static in
12078   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12079   *) enable_dlopen_self_static=unknown ;;
12080   esac
12081 fi
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099 striplib=
12100 old_striplib=
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12102 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12103 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12104   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12105   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12107 $as_echo "yes" >&6; }
12108 else
12109 # FIXME - insert some real tests, host_os isn't really good enough
12110   case $host_os in
12111   darwin*)
12112     if test -n "$STRIP" ; then
12113       striplib="$STRIP -x"
12114       old_striplib="$STRIP -S"
12115       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12116 $as_echo "yes" >&6; }
12117     else
12118       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12119 $as_echo "no" >&6; }
12120     fi
12121     ;;
12122   *)
12123     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12124 $as_echo "no" >&6; }
12125     ;;
12126   esac
12127 fi
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140   # Report which library types will actually be built
12141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12142 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12144 $as_echo "$can_build_shared" >&6; }
12145
12146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12147 $as_echo_n "checking whether to build shared libraries... " >&6; }
12148   test "$can_build_shared" = "no" && enable_shared=no
12149
12150   # On AIX, shared libraries and static libraries use the same namespace, and
12151   # are all built from PIC.
12152   case $host_os in
12153   aix3*)
12154     test "$enable_shared" = yes && enable_static=no
12155     if test -n "$RANLIB"; then
12156       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12157       postinstall_cmds='$RANLIB $lib'
12158     fi
12159     ;;
12160
12161   aix[4-9]*)
12162     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12163       test "$enable_shared" = yes && enable_static=no
12164     fi
12165     ;;
12166   esac
12167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12168 $as_echo "$enable_shared" >&6; }
12169
12170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12171 $as_echo_n "checking whether to build static libraries... " >&6; }
12172   # Make sure either enable_shared or enable_static is yes.
12173   test "$enable_shared" = yes || enable_static=yes
12174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12175 $as_echo "$enable_static" >&6; }
12176
12177
12178
12179
12180 fi
12181 ac_ext=cpp
12182 ac_cpp='$CXXCPP $CPPFLAGS'
12183 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12184 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12185 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12186
12187 CC="$lt_save_CC"
12188
12189       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12190     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12191     (test "X$CXX" != "Xg++"))) ; then
12192   ac_ext=cpp
12193 ac_cpp='$CXXCPP $CPPFLAGS'
12194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12198 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12199 if test -z "$CXXCPP"; then
12200   if ${ac_cv_prog_CXXCPP+:} false; then :
12201   $as_echo_n "(cached) " >&6
12202 else
12203       # Double quotes because CXXCPP needs to be expanded
12204     for CXXCPP in "$CXX -E" "/lib/cpp"
12205     do
12206       ac_preproc_ok=false
12207 for ac_cxx_preproc_warn_flag in '' yes
12208 do
12209   # Use a header file that comes with gcc, so configuring glibc
12210   # with a fresh cross-compiler works.
12211   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12212   # <limits.h> exists even on freestanding compilers.
12213   # On the NeXT, cc -E runs the code through the compiler's parser,
12214   # not just through cpp. "Syntax error" is here to catch this case.
12215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12216 /* end confdefs.h.  */
12217 #ifdef __STDC__
12218 # include <limits.h>
12219 #else
12220 # include <assert.h>
12221 #endif
12222                      Syntax error
12223 _ACEOF
12224 if ac_fn_cxx_try_cpp "$LINENO"; then :
12225
12226 else
12227   # Broken: fails on valid input.
12228 continue
12229 fi
12230 rm -f conftest.err conftest.i conftest.$ac_ext
12231
12232   # OK, works on sane cases.  Now check whether nonexistent headers
12233   # can be detected and how.
12234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12235 /* end confdefs.h.  */
12236 #include <ac_nonexistent.h>
12237 _ACEOF
12238 if ac_fn_cxx_try_cpp "$LINENO"; then :
12239   # Broken: success on invalid input.
12240 continue
12241 else
12242   # Passes both tests.
12243 ac_preproc_ok=:
12244 break
12245 fi
12246 rm -f conftest.err conftest.i conftest.$ac_ext
12247
12248 done
12249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12250 rm -f conftest.i conftest.err conftest.$ac_ext
12251 if $ac_preproc_ok; then :
12252   break
12253 fi
12254
12255     done
12256     ac_cv_prog_CXXCPP=$CXXCPP
12257
12258 fi
12259   CXXCPP=$ac_cv_prog_CXXCPP
12260 else
12261   ac_cv_prog_CXXCPP=$CXXCPP
12262 fi
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12264 $as_echo "$CXXCPP" >&6; }
12265 ac_preproc_ok=false
12266 for ac_cxx_preproc_warn_flag in '' yes
12267 do
12268   # Use a header file that comes with gcc, so configuring glibc
12269   # with a fresh cross-compiler works.
12270   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12271   # <limits.h> exists even on freestanding compilers.
12272   # On the NeXT, cc -E runs the code through the compiler's parser,
12273   # not just through cpp. "Syntax error" is here to catch this case.
12274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12275 /* end confdefs.h.  */
12276 #ifdef __STDC__
12277 # include <limits.h>
12278 #else
12279 # include <assert.h>
12280 #endif
12281                      Syntax error
12282 _ACEOF
12283 if ac_fn_cxx_try_cpp "$LINENO"; then :
12284
12285 else
12286   # Broken: fails on valid input.
12287 continue
12288 fi
12289 rm -f conftest.err conftest.i conftest.$ac_ext
12290
12291   # OK, works on sane cases.  Now check whether nonexistent headers
12292   # can be detected and how.
12293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12294 /* end confdefs.h.  */
12295 #include <ac_nonexistent.h>
12296 _ACEOF
12297 if ac_fn_cxx_try_cpp "$LINENO"; then :
12298   # Broken: success on invalid input.
12299 continue
12300 else
12301   # Passes both tests.
12302 ac_preproc_ok=:
12303 break
12304 fi
12305 rm -f conftest.err conftest.i conftest.$ac_ext
12306
12307 done
12308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12309 rm -f conftest.i conftest.err conftest.$ac_ext
12310 if $ac_preproc_ok; then :
12311
12312 else
12313   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12315 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12316 See \`config.log' for more details" "$LINENO" 5; }
12317 fi
12318
12319 ac_ext=cpp
12320 ac_cpp='$CXXCPP $CPPFLAGS'
12321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12324
12325 else
12326   _lt_caught_CXX_error=yes
12327 fi
12328
12329 ac_ext=cpp
12330 ac_cpp='$CXXCPP $CPPFLAGS'
12331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12334
12335 archive_cmds_need_lc_CXX=no
12336 allow_undefined_flag_CXX=
12337 always_export_symbols_CXX=no
12338 archive_expsym_cmds_CXX=
12339 compiler_needs_object_CXX=no
12340 export_dynamic_flag_spec_CXX=
12341 hardcode_direct_CXX=no
12342 hardcode_direct_absolute_CXX=no
12343 hardcode_libdir_flag_spec_CXX=
12344 hardcode_libdir_separator_CXX=
12345 hardcode_minus_L_CXX=no
12346 hardcode_shlibpath_var_CXX=unsupported
12347 hardcode_automatic_CXX=no
12348 inherit_rpath_CXX=no
12349 module_cmds_CXX=
12350 module_expsym_cmds_CXX=
12351 link_all_deplibs_CXX=unknown
12352 old_archive_cmds_CXX=$old_archive_cmds
12353 reload_flag_CXX=$reload_flag
12354 reload_cmds_CXX=$reload_cmds
12355 no_undefined_flag_CXX=
12356 whole_archive_flag_spec_CXX=
12357 enable_shared_with_static_runtimes_CXX=no
12358
12359 # Source file extension for C++ test sources.
12360 ac_ext=cpp
12361
12362 # Object file extension for compiled C++ test sources.
12363 objext=o
12364 objext_CXX=$objext
12365
12366 # No sense in running all these tests if we already determined that
12367 # the CXX compiler isn't working.  Some variables (like enable_shared)
12368 # are currently assumed to apply to all compilers on this platform,
12369 # and will be corrupted by setting them based on a non-working compiler.
12370 if test "$_lt_caught_CXX_error" != yes; then
12371   # Code to be used in simple compile tests
12372   lt_simple_compile_test_code="int some_variable = 0;"
12373
12374   # Code to be used in simple link tests
12375   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12376
12377   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12378
12379
12380
12381
12382
12383
12384 # If no C compiler was specified, use CC.
12385 LTCC=${LTCC-"$CC"}
12386
12387 # If no C compiler flags were specified, use CFLAGS.
12388 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12389
12390 # Allow CC to be a program name with arguments.
12391 compiler=$CC
12392
12393
12394   # save warnings/boilerplate of simple test code
12395   ac_outfile=conftest.$ac_objext
12396 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12397 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12398 _lt_compiler_boilerplate=`cat conftest.err`
12399 $RM conftest*
12400
12401   ac_outfile=conftest.$ac_objext
12402 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12403 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12404 _lt_linker_boilerplate=`cat conftest.err`
12405 $RM -r conftest*
12406
12407
12408   # Allow CC to be a program name with arguments.
12409   lt_save_CC=$CC
12410   lt_save_CFLAGS=$CFLAGS
12411   lt_save_LD=$LD
12412   lt_save_GCC=$GCC
12413   GCC=$GXX
12414   lt_save_with_gnu_ld=$with_gnu_ld
12415   lt_save_path_LD=$lt_cv_path_LD
12416   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12417     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12418   else
12419     $as_unset lt_cv_prog_gnu_ld
12420   fi
12421   if test -n "${lt_cv_path_LDCXX+set}"; then
12422     lt_cv_path_LD=$lt_cv_path_LDCXX
12423   else
12424     $as_unset lt_cv_path_LD
12425   fi
12426   test -z "${LDCXX+set}" || LD=$LDCXX
12427   CC=${CXX-"c++"}
12428   CFLAGS=$CXXFLAGS
12429   compiler=$CC
12430   compiler_CXX=$CC
12431   for cc_temp in $compiler""; do
12432   case $cc_temp in
12433     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12434     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12435     \-*) ;;
12436     *) break;;
12437   esac
12438 done
12439 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12440
12441
12442   if test -n "$compiler"; then
12443     # We don't want -fno-exception when compiling C++ code, so set the
12444     # no_builtin_flag separately
12445     if test "$GXX" = yes; then
12446       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12447     else
12448       lt_prog_compiler_no_builtin_flag_CXX=
12449     fi
12450
12451     if test "$GXX" = yes; then
12452       # Set up default GNU C++ configuration
12453
12454
12455
12456 # Check whether --with-gnu-ld was given.
12457 if test "${with_gnu_ld+set}" = set; then :
12458   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12459 else
12460   with_gnu_ld=no
12461 fi
12462
12463 ac_prog=ld
12464 if test "$GCC" = yes; then
12465   # Check if gcc -print-prog-name=ld gives a path.
12466   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12467 $as_echo_n "checking for ld used by $CC... " >&6; }
12468   case $host in
12469   *-*-mingw*)
12470     # gcc leaves a trailing carriage return which upsets mingw
12471     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12472   *)
12473     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12474   esac
12475   case $ac_prog in
12476     # Accept absolute paths.
12477     [\\/]* | ?:[\\/]*)
12478       re_direlt='/[^/][^/]*/\.\./'
12479       # Canonicalize the pathname of ld
12480       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12481       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12482         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12483       done
12484       test -z "$LD" && LD="$ac_prog"
12485       ;;
12486   "")
12487     # If it fails, then pretend we aren't using GCC.
12488     ac_prog=ld
12489     ;;
12490   *)
12491     # If it is relative, then search for the first ld in PATH.
12492     with_gnu_ld=unknown
12493     ;;
12494   esac
12495 elif test "$with_gnu_ld" = yes; then
12496   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12497 $as_echo_n "checking for GNU ld... " >&6; }
12498 else
12499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12500 $as_echo_n "checking for non-GNU ld... " >&6; }
12501 fi
12502 if ${lt_cv_path_LD+:} false; then :
12503   $as_echo_n "(cached) " >&6
12504 else
12505   if test -z "$LD"; then
12506   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12507   for ac_dir in $PATH; do
12508     IFS="$lt_save_ifs"
12509     test -z "$ac_dir" && ac_dir=.
12510     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12511       lt_cv_path_LD="$ac_dir/$ac_prog"
12512       # Check to see if the program is GNU ld.  I'd rather use --version,
12513       # but apparently some variants of GNU ld only accept -v.
12514       # Break only if it was the GNU/non-GNU ld that we prefer.
12515       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12516       *GNU* | *'with BFD'*)
12517         test "$with_gnu_ld" != no && break
12518         ;;
12519       *)
12520         test "$with_gnu_ld" != yes && break
12521         ;;
12522       esac
12523     fi
12524   done
12525   IFS="$lt_save_ifs"
12526 else
12527   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12528 fi
12529 fi
12530
12531 LD="$lt_cv_path_LD"
12532 if test -n "$LD"; then
12533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12534 $as_echo "$LD" >&6; }
12535 else
12536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12537 $as_echo "no" >&6; }
12538 fi
12539 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12541 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12542 if ${lt_cv_prog_gnu_ld+:} false; then :
12543   $as_echo_n "(cached) " >&6
12544 else
12545   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12546 case `$LD -v 2>&1 </dev/null` in
12547 *GNU* | *'with BFD'*)
12548   lt_cv_prog_gnu_ld=yes
12549   ;;
12550 *)
12551   lt_cv_prog_gnu_ld=no
12552   ;;
12553 esac
12554 fi
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12556 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12557 with_gnu_ld=$lt_cv_prog_gnu_ld
12558
12559
12560
12561
12562
12563
12564
12565       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12566       # archiving commands below assume that GNU ld is being used.
12567       if test "$with_gnu_ld" = yes; then
12568         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12569         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'
12570
12571         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12572         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12573
12574         # If archive_cmds runs LD, not CC, wlarc should be empty
12575         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12576         #     investigate it a little bit more. (MM)
12577         wlarc='${wl}'
12578
12579         # ancient GNU ld didn't support --whole-archive et. al.
12580         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12581           $GREP 'no-whole-archive' > /dev/null; then
12582           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12583         else
12584           whole_archive_flag_spec_CXX=
12585         fi
12586       else
12587         with_gnu_ld=no
12588         wlarc=
12589
12590         # A generic and very simple default shared library creation
12591         # command for GNU C++ for the case where it uses the native
12592         # linker, instead of GNU ld.  If possible, this setting should
12593         # overridden to take advantage of the native linker features on
12594         # the platform it is being used on.
12595         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12596       fi
12597
12598       # Commands to make compiler produce verbose output that lists
12599       # what "hidden" libraries, object files and flags are used when
12600       # linking a shared library.
12601       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12602
12603     else
12604       GXX=no
12605       with_gnu_ld=no
12606       wlarc=
12607     fi
12608
12609     # PORTME: fill in a description of your system's C++ link characteristics
12610     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12611 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12612     ld_shlibs_CXX=yes
12613     case $host_os in
12614       aix3*)
12615         # FIXME: insert proper C++ library support
12616         ld_shlibs_CXX=no
12617         ;;
12618       aix[4-9]*)
12619         if test "$host_cpu" = ia64; then
12620           # On IA64, the linker does run time linking by default, so we don't
12621           # have to do anything special.
12622           aix_use_runtimelinking=no
12623           exp_sym_flag='-Bexport'
12624           no_entry_flag=""
12625         else
12626           aix_use_runtimelinking=no
12627
12628           # Test if we are trying to use run time linking or normal
12629           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12630           # need to do runtime linking.
12631           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12632             for ld_flag in $LDFLAGS; do
12633               case $ld_flag in
12634               *-brtl*)
12635                 aix_use_runtimelinking=yes
12636                 break
12637                 ;;
12638               esac
12639             done
12640             ;;
12641           esac
12642
12643           exp_sym_flag='-bexport'
12644           no_entry_flag='-bnoentry'
12645         fi
12646
12647         # When large executables or shared objects are built, AIX ld can
12648         # have problems creating the table of contents.  If linking a library
12649         # or program results in "error TOC overflow" add -mminimal-toc to
12650         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12651         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12652
12653         archive_cmds_CXX=''
12654         hardcode_direct_CXX=yes
12655         hardcode_direct_absolute_CXX=yes
12656         hardcode_libdir_separator_CXX=':'
12657         link_all_deplibs_CXX=yes
12658         file_list_spec_CXX='${wl}-f,'
12659
12660         if test "$GXX" = yes; then
12661           case $host_os in aix4.[012]|aix4.[012].*)
12662           # We only want to do this on AIX 4.2 and lower, the check
12663           # below for broken collect2 doesn't work under 4.3+
12664           collect2name=`${CC} -print-prog-name=collect2`
12665           if test -f "$collect2name" &&
12666              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12667           then
12668             # We have reworked collect2
12669             :
12670           else
12671             # We have old collect2
12672             hardcode_direct_CXX=unsupported
12673             # It fails to find uninstalled libraries when the uninstalled
12674             # path is not listed in the libpath.  Setting hardcode_minus_L
12675             # to unsupported forces relinking
12676             hardcode_minus_L_CXX=yes
12677             hardcode_libdir_flag_spec_CXX='-L$libdir'
12678             hardcode_libdir_separator_CXX=
12679           fi
12680           esac
12681           shared_flag='-shared'
12682           if test "$aix_use_runtimelinking" = yes; then
12683             shared_flag="$shared_flag "'${wl}-G'
12684           fi
12685         else
12686           # not using gcc
12687           if test "$host_cpu" = ia64; then
12688           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12689           # chokes on -Wl,-G. The following line is correct:
12690           shared_flag='-G'
12691           else
12692             if test "$aix_use_runtimelinking" = yes; then
12693               shared_flag='${wl}-G'
12694             else
12695               shared_flag='${wl}-bM:SRE'
12696             fi
12697           fi
12698         fi
12699
12700         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12701         # It seems that -bexpall does not export symbols beginning with
12702         # underscore (_), so it is better to generate a list of symbols to
12703         # export.
12704         always_export_symbols_CXX=yes
12705         if test "$aix_use_runtimelinking" = yes; then
12706           # Warning - without using the other runtime loading flags (-brtl),
12707           # -berok will link without error, but may produce a broken library.
12708           allow_undefined_flag_CXX='-berok'
12709           # Determine the default libpath from the value encoded in an empty
12710           # executable.
12711           if test "${lt_cv_aix_libpath+set}" = set; then
12712   aix_libpath=$lt_cv_aix_libpath
12713 else
12714   if ${lt_cv_aix_libpath__CXX+:} false; then :
12715   $as_echo_n "(cached) " >&6
12716 else
12717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12718 /* end confdefs.h.  */
12719
12720 int
12721 main ()
12722 {
12723
12724   ;
12725   return 0;
12726 }
12727 _ACEOF
12728 if ac_fn_cxx_try_link "$LINENO"; then :
12729
12730   lt_aix_libpath_sed='
12731       /Import File Strings/,/^$/ {
12732           /^0/ {
12733               s/^0  *\([^ ]*\) *$/\1/
12734               p
12735           }
12736       }'
12737   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12738   # Check for a 64-bit object if we didn't find anything.
12739   if test -z "$lt_cv_aix_libpath__CXX"; then
12740     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12741   fi
12742 fi
12743 rm -f core conftest.err conftest.$ac_objext \
12744     conftest$ac_exeext conftest.$ac_ext
12745   if test -z "$lt_cv_aix_libpath__CXX"; then
12746     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12747   fi
12748
12749 fi
12750
12751   aix_libpath=$lt_cv_aix_libpath__CXX
12752 fi
12753
12754           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12755
12756           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"
12757         else
12758           if test "$host_cpu" = ia64; then
12759             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12760             allow_undefined_flag_CXX="-z nodefs"
12761             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"
12762           else
12763             # Determine the default libpath from the value encoded in an
12764             # empty executable.
12765             if test "${lt_cv_aix_libpath+set}" = set; then
12766   aix_libpath=$lt_cv_aix_libpath
12767 else
12768   if ${lt_cv_aix_libpath__CXX+:} false; then :
12769   $as_echo_n "(cached) " >&6
12770 else
12771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12772 /* end confdefs.h.  */
12773
12774 int
12775 main ()
12776 {
12777
12778   ;
12779   return 0;
12780 }
12781 _ACEOF
12782 if ac_fn_cxx_try_link "$LINENO"; then :
12783
12784   lt_aix_libpath_sed='
12785       /Import File Strings/,/^$/ {
12786           /^0/ {
12787               s/^0  *\([^ ]*\) *$/\1/
12788               p
12789           }
12790       }'
12791   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12792   # Check for a 64-bit object if we didn't find anything.
12793   if test -z "$lt_cv_aix_libpath__CXX"; then
12794     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12795   fi
12796 fi
12797 rm -f core conftest.err conftest.$ac_objext \
12798     conftest$ac_exeext conftest.$ac_ext
12799   if test -z "$lt_cv_aix_libpath__CXX"; then
12800     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12801   fi
12802
12803 fi
12804
12805   aix_libpath=$lt_cv_aix_libpath__CXX
12806 fi
12807
12808             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12809             # Warning - without using the other run time loading flags,
12810             # -berok will link without error, but may produce a broken library.
12811             no_undefined_flag_CXX=' ${wl}-bernotok'
12812             allow_undefined_flag_CXX=' ${wl}-berok'
12813             if test "$with_gnu_ld" = yes; then
12814               # We only use this code for GNU lds that support --whole-archive.
12815               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12816             else
12817               # Exported symbols can be pulled into shared objects from archives
12818               whole_archive_flag_spec_CXX='$convenience'
12819             fi
12820             archive_cmds_need_lc_CXX=yes
12821             # This is similar to how AIX traditionally builds its shared
12822             # libraries.
12823             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'
12824           fi
12825         fi
12826         ;;
12827
12828       beos*)
12829         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12830           allow_undefined_flag_CXX=unsupported
12831           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12832           # support --undefined.  This deserves some investigation.  FIXME
12833           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12834         else
12835           ld_shlibs_CXX=no
12836         fi
12837         ;;
12838
12839       chorus*)
12840         case $cc_basename in
12841           *)
12842           # FIXME: insert proper C++ library support
12843           ld_shlibs_CXX=no
12844           ;;
12845         esac
12846         ;;
12847
12848       cygwin* | mingw* | pw32* | cegcc*)
12849         case $GXX,$cc_basename in
12850         ,cl* | no,cl*)
12851           # Native MSVC
12852           # hardcode_libdir_flag_spec is actually meaningless, as there is
12853           # no search path for DLLs.
12854           hardcode_libdir_flag_spec_CXX=' '
12855           allow_undefined_flag_CXX=unsupported
12856           always_export_symbols_CXX=yes
12857           file_list_spec_CXX='@'
12858           # Tell ltmain to make .lib files, not .a files.
12859           libext=lib
12860           # Tell ltmain to make .dll files, not .so files.
12861           shrext_cmds=".dll"
12862           # FIXME: Setting linknames here is a bad hack.
12863           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12864           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12865               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12866             else
12867               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12868             fi~
12869             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12870             linknames='
12871           # The linker will not automatically build a static lib if we build a DLL.
12872           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12873           enable_shared_with_static_runtimes_CXX=yes
12874           # Don't use ranlib
12875           old_postinstall_cmds_CXX='chmod 644 $oldlib'
12876           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12877             lt_tool_outputfile="@TOOL_OUTPUT@"~
12878             case $lt_outputfile in
12879               *.exe|*.EXE) ;;
12880               *)
12881                 lt_outputfile="$lt_outputfile.exe"
12882                 lt_tool_outputfile="$lt_tool_outputfile.exe"
12883                 ;;
12884             esac~
12885             func_to_tool_file "$lt_outputfile"~
12886             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12887               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12888               $RM "$lt_outputfile.manifest";
12889             fi'
12890           ;;
12891         *)
12892           # g++
12893           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12894           # as there is no search path for DLLs.
12895           hardcode_libdir_flag_spec_CXX='-L$libdir'
12896           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12897           allow_undefined_flag_CXX=unsupported
12898           always_export_symbols_CXX=no
12899           enable_shared_with_static_runtimes_CXX=yes
12900
12901           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12902             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'
12903             # If the export-symbols file already is a .def file (1st line
12904             # is EXPORTS), use it as is; otherwise, prepend...
12905             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12906               cp $export_symbols $output_objdir/$soname.def;
12907             else
12908               echo EXPORTS > $output_objdir/$soname.def;
12909               cat $export_symbols >> $output_objdir/$soname.def;
12910             fi~
12911             $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'
12912           else
12913             ld_shlibs_CXX=no
12914           fi
12915           ;;
12916         esac
12917         ;;
12918       darwin* | rhapsody*)
12919
12920
12921   archive_cmds_need_lc_CXX=no
12922   hardcode_direct_CXX=no
12923   hardcode_automatic_CXX=yes
12924   hardcode_shlibpath_var_CXX=unsupported
12925   if test "$lt_cv_ld_force_load" = "yes"; then
12926     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\"`'
12927
12928   else
12929     whole_archive_flag_spec_CXX=''
12930   fi
12931   link_all_deplibs_CXX=yes
12932   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12933   case $cc_basename in
12934      ifort*) _lt_dar_can_shared=yes ;;
12935      *) _lt_dar_can_shared=$GCC ;;
12936   esac
12937   if test "$_lt_dar_can_shared" = "yes"; then
12938     output_verbose_link_cmd=func_echo_all
12939     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}"
12940     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12941     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}"
12942     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}"
12943        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12944       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}"
12945       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}"
12946     fi
12947
12948   else
12949   ld_shlibs_CXX=no
12950   fi
12951
12952         ;;
12953
12954       dgux*)
12955         case $cc_basename in
12956           ec++*)
12957             # FIXME: insert proper C++ library support
12958             ld_shlibs_CXX=no
12959             ;;
12960           ghcx*)
12961             # Green Hills C++ Compiler
12962             # FIXME: insert proper C++ library support
12963             ld_shlibs_CXX=no
12964             ;;
12965           *)
12966             # FIXME: insert proper C++ library support
12967             ld_shlibs_CXX=no
12968             ;;
12969         esac
12970         ;;
12971
12972       freebsd2.*)
12973         # C++ shared libraries reported to be fairly broken before
12974         # switch to ELF
12975         ld_shlibs_CXX=no
12976         ;;
12977
12978       freebsd-elf*)
12979         archive_cmds_need_lc_CXX=no
12980         ;;
12981
12982       freebsd* | dragonfly*)
12983         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12984         # conventions
12985         ld_shlibs_CXX=yes
12986         ;;
12987
12988       gnu*)
12989         ;;
12990
12991       haiku*)
12992         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12993         link_all_deplibs_CXX=yes
12994         ;;
12995
12996       hpux9*)
12997         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12998         hardcode_libdir_separator_CXX=:
12999         export_dynamic_flag_spec_CXX='${wl}-E'
13000         hardcode_direct_CXX=yes
13001         hardcode_minus_L_CXX=yes # Not in the search PATH,
13002                                              # but as the default
13003                                              # location of the library.
13004
13005         case $cc_basename in
13006           CC*)
13007             # FIXME: insert proper C++ library support
13008             ld_shlibs_CXX=no
13009             ;;
13010           aCC*)
13011             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'
13012             # Commands to make compiler produce verbose output that lists
13013             # what "hidden" libraries, object files and flags are used when
13014             # linking a shared library.
13015             #
13016             # There doesn't appear to be a way to prevent this compiler from
13017             # explicitly linking system object files so we need to strip them
13018             # from the output so that they don't get included in the library
13019             # dependencies.
13020             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"'
13021             ;;
13022           *)
13023             if test "$GXX" = yes; then
13024               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'
13025             else
13026               # FIXME: insert proper C++ library support
13027               ld_shlibs_CXX=no
13028             fi
13029             ;;
13030         esac
13031         ;;
13032
13033       hpux10*|hpux11*)
13034         if test $with_gnu_ld = no; then
13035           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13036           hardcode_libdir_separator_CXX=:
13037
13038           case $host_cpu in
13039             hppa*64*|ia64*)
13040               ;;
13041             *)
13042               export_dynamic_flag_spec_CXX='${wl}-E'
13043               ;;
13044           esac
13045         fi
13046         case $host_cpu in
13047           hppa*64*|ia64*)
13048             hardcode_direct_CXX=no
13049             hardcode_shlibpath_var_CXX=no
13050             ;;
13051           *)
13052             hardcode_direct_CXX=yes
13053             hardcode_direct_absolute_CXX=yes
13054             hardcode_minus_L_CXX=yes # Not in the search PATH,
13055                                                  # but as the default
13056                                                  # location of the library.
13057             ;;
13058         esac
13059
13060         case $cc_basename in
13061           CC*)
13062             # FIXME: insert proper C++ library support
13063             ld_shlibs_CXX=no
13064             ;;
13065           aCC*)
13066             case $host_cpu in
13067               hppa*64*)
13068                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13069                 ;;
13070               ia64*)
13071                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13072                 ;;
13073               *)
13074                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13075                 ;;
13076             esac
13077             # Commands to make compiler produce verbose output that lists
13078             # what "hidden" libraries, object files and flags are used when
13079             # linking a shared library.
13080             #
13081             # There doesn't appear to be a way to prevent this compiler from
13082             # explicitly linking system object files so we need to strip them
13083             # from the output so that they don't get included in the library
13084             # dependencies.
13085             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"'
13086             ;;
13087           *)
13088             if test "$GXX" = yes; then
13089               if test $with_gnu_ld = no; then
13090                 case $host_cpu in
13091                   hppa*64*)
13092                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13093                     ;;
13094                   ia64*)
13095                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13096                     ;;
13097                   *)
13098                     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'
13099                     ;;
13100                 esac
13101               fi
13102             else
13103               # FIXME: insert proper C++ library support
13104               ld_shlibs_CXX=no
13105             fi
13106             ;;
13107         esac
13108         ;;
13109
13110       interix[3-9]*)
13111         hardcode_direct_CXX=no
13112         hardcode_shlibpath_var_CXX=no
13113         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13114         export_dynamic_flag_spec_CXX='${wl}-E'
13115         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13116         # Instead, shared libraries are loaded at an image base (0x10000000 by
13117         # default) and relocated if they conflict, which is a slow very memory
13118         # consuming and fragmenting process.  To avoid this, we pick a random,
13119         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13120         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13121         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'
13122         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'
13123         ;;
13124       irix5* | irix6*)
13125         case $cc_basename in
13126           CC*)
13127             # SGI C++
13128             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'
13129
13130             # Archives containing C++ object files must be created using
13131             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13132             # necessary to make sure instantiated templates are included
13133             # in the archive.
13134             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13135             ;;
13136           *)
13137             if test "$GXX" = yes; then
13138               if test "$with_gnu_ld" = no; then
13139                 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'
13140               else
13141                 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'
13142               fi
13143             fi
13144             link_all_deplibs_CXX=yes
13145             ;;
13146         esac
13147         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13148         hardcode_libdir_separator_CXX=:
13149         inherit_rpath_CXX=yes
13150         ;;
13151
13152       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13153         case $cc_basename in
13154           KCC*)
13155             # Kuck and Associates, Inc. (KAI) C++ Compiler
13156
13157             # KCC will only create a shared library if the output file
13158             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13159             # to its proper name (with version) after linking.
13160             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'
13161             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'
13162             # Commands to make compiler produce verbose output that lists
13163             # what "hidden" libraries, object files and flags are used when
13164             # linking a shared library.
13165             #
13166             # There doesn't appear to be a way to prevent this compiler from
13167             # explicitly linking system object files so we need to strip them
13168             # from the output so that they don't get included in the library
13169             # dependencies.
13170             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"'
13171
13172             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13173             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13174
13175             # Archives containing C++ object files must be created using
13176             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13177             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13178             ;;
13179           icpc* | ecpc* )
13180             # Intel C++
13181             with_gnu_ld=yes
13182             # version 8.0 and above of icpc choke on multiply defined symbols
13183             # if we add $predep_objects and $postdep_objects, however 7.1 and
13184             # earlier do not add the objects themselves.
13185             case `$CC -V 2>&1` in
13186               *"Version 7."*)
13187                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13188                 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'
13189                 ;;
13190               *)  # Version 8.0 or newer
13191                 tmp_idyn=
13192                 case $host_cpu in
13193                   ia64*) tmp_idyn=' -i_dynamic';;
13194                 esac
13195                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13196                 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'
13197                 ;;
13198             esac
13199             archive_cmds_need_lc_CXX=no
13200             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13201             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13202             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13203             ;;
13204           pgCC* | pgcpp*)
13205             # Portland Group C++ compiler
13206             case `$CC -V` in
13207             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13208               prelink_cmds_CXX='tpldir=Template.dir~
13209                 rm -rf $tpldir~
13210                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13211                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13212               old_archive_cmds_CXX='tpldir=Template.dir~
13213                 rm -rf $tpldir~
13214                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13215                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13216                 $RANLIB $oldlib'
13217               archive_cmds_CXX='tpldir=Template.dir~
13218                 rm -rf $tpldir~
13219                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13220                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13221               archive_expsym_cmds_CXX='tpldir=Template.dir~
13222                 rm -rf $tpldir~
13223                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13224                 $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'
13225               ;;
13226             *) # Version 6 and above use weak symbols
13227               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13228               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'
13229               ;;
13230             esac
13231
13232             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13233             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13234             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'
13235             ;;
13236           cxx*)
13237             # Compaq C++
13238             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13239             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'
13240
13241             runpath_var=LD_RUN_PATH
13242             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13243             hardcode_libdir_separator_CXX=:
13244
13245             # Commands to make compiler produce verbose output that lists
13246             # what "hidden" libraries, object files and flags are used when
13247             # linking a shared library.
13248             #
13249             # There doesn't appear to be a way to prevent this compiler from
13250             # explicitly linking system object files so we need to strip them
13251             # from the output so that they don't get included in the library
13252             # dependencies.
13253             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'
13254             ;;
13255           xl* | mpixl* | bgxl*)
13256             # IBM XL 8.0 on PPC, with GNU ld
13257             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13258             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13259             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13260             if test "x$supports_anon_versioning" = xyes; then
13261               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13262                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13263                 echo "local: *; };" >> $output_objdir/$libname.ver~
13264                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13265             fi
13266             ;;
13267           *)
13268             case `$CC -V 2>&1 | sed 5q` in
13269             *Sun\ C*)
13270               # Sun C++ 5.9
13271               no_undefined_flag_CXX=' -zdefs'
13272               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13273               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'
13274               hardcode_libdir_flag_spec_CXX='-R$libdir'
13275               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'
13276               compiler_needs_object_CXX=yes
13277
13278               # Not sure whether something based on
13279               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13280               # would be better.
13281               output_verbose_link_cmd='func_echo_all'
13282
13283               # Archives containing C++ object files must be created using
13284               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13285               # necessary to make sure instantiated templates are included
13286               # in the archive.
13287               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13288               ;;
13289             esac
13290             ;;
13291         esac
13292         ;;
13293
13294       lynxos*)
13295         # FIXME: insert proper C++ library support
13296         ld_shlibs_CXX=no
13297         ;;
13298
13299       m88k*)
13300         # FIXME: insert proper C++ library support
13301         ld_shlibs_CXX=no
13302         ;;
13303
13304       mvs*)
13305         case $cc_basename in
13306           cxx*)
13307             # FIXME: insert proper C++ library support
13308             ld_shlibs_CXX=no
13309             ;;
13310           *)
13311             # FIXME: insert proper C++ library support
13312             ld_shlibs_CXX=no
13313             ;;
13314         esac
13315         ;;
13316
13317       netbsd*)
13318         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13319           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13320           wlarc=
13321           hardcode_libdir_flag_spec_CXX='-R$libdir'
13322           hardcode_direct_CXX=yes
13323           hardcode_shlibpath_var_CXX=no
13324         fi
13325         # Workaround some broken pre-1.5 toolchains
13326         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13327         ;;
13328
13329       *nto* | *qnx*)
13330         ld_shlibs_CXX=yes
13331         ;;
13332
13333       openbsd2*)
13334         # C++ shared libraries are fairly broken
13335         ld_shlibs_CXX=no
13336         ;;
13337
13338       openbsd*)
13339         if test -f /usr/libexec/ld.so; then
13340           hardcode_direct_CXX=yes
13341           hardcode_shlibpath_var_CXX=no
13342           hardcode_direct_absolute_CXX=yes
13343           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13344           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13345           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13346             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13347             export_dynamic_flag_spec_CXX='${wl}-E'
13348             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13349           fi
13350           output_verbose_link_cmd=func_echo_all
13351         else
13352           ld_shlibs_CXX=no
13353         fi
13354         ;;
13355
13356       osf3* | osf4* | osf5*)
13357         case $cc_basename in
13358           KCC*)
13359             # Kuck and Associates, Inc. (KAI) C++ Compiler
13360
13361             # KCC will only create a shared library if the output file
13362             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13363             # to its proper name (with version) after linking.
13364             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'
13365
13366             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13367             hardcode_libdir_separator_CXX=:
13368
13369             # Archives containing C++ object files must be created using
13370             # the KAI C++ compiler.
13371             case $host in
13372               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13373               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13374             esac
13375             ;;
13376           RCC*)
13377             # Rational C++ 2.4.1
13378             # FIXME: insert proper C++ library support
13379             ld_shlibs_CXX=no
13380             ;;
13381           cxx*)
13382             case $host in
13383               osf3*)
13384                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13385                 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'
13386                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13387                 ;;
13388               *)
13389                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13390                 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'
13391                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13392                   echo "-hidden">> $lib.exp~
13393                   $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~
13394                   $RM $lib.exp'
13395                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13396                 ;;
13397             esac
13398
13399             hardcode_libdir_separator_CXX=:
13400
13401             # Commands to make compiler produce verbose output that lists
13402             # what "hidden" libraries, object files and flags are used when
13403             # linking a shared library.
13404             #
13405             # There doesn't appear to be a way to prevent this compiler from
13406             # explicitly linking system object files so we need to strip them
13407             # from the output so that they don't get included in the library
13408             # dependencies.
13409             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"'
13410             ;;
13411           *)
13412             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13413               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13414               case $host in
13415                 osf3*)
13416                   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'
13417                   ;;
13418                 *)
13419                   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'
13420                   ;;
13421               esac
13422
13423               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13424               hardcode_libdir_separator_CXX=:
13425
13426               # Commands to make compiler produce verbose output that lists
13427               # what "hidden" libraries, object files and flags are used when
13428               # linking a shared library.
13429               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13430
13431             else
13432               # FIXME: insert proper C++ library support
13433               ld_shlibs_CXX=no
13434             fi
13435             ;;
13436         esac
13437         ;;
13438
13439       psos*)
13440         # FIXME: insert proper C++ library support
13441         ld_shlibs_CXX=no
13442         ;;
13443
13444       sunos4*)
13445         case $cc_basename in
13446           CC*)
13447             # Sun C++ 4.x
13448             # FIXME: insert proper C++ library support
13449             ld_shlibs_CXX=no
13450             ;;
13451           lcc*)
13452             # Lucid
13453             # FIXME: insert proper C++ library support
13454             ld_shlibs_CXX=no
13455             ;;
13456           *)
13457             # FIXME: insert proper C++ library support
13458             ld_shlibs_CXX=no
13459             ;;
13460         esac
13461         ;;
13462
13463       solaris*)
13464         case $cc_basename in
13465           CC* | sunCC*)
13466             # Sun C++ 4.2, 5.x and Centerline C++
13467             archive_cmds_need_lc_CXX=yes
13468             no_undefined_flag_CXX=' -zdefs'
13469             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13470             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13471               $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'
13472
13473             hardcode_libdir_flag_spec_CXX='-R$libdir'
13474             hardcode_shlibpath_var_CXX=no
13475             case $host_os in
13476               solaris2.[0-5] | solaris2.[0-5].*) ;;
13477               *)
13478                 # The compiler driver will combine and reorder linker options,
13479                 # but understands `-z linker_flag'.
13480                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13481                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13482                 ;;
13483             esac
13484             link_all_deplibs_CXX=yes
13485
13486             output_verbose_link_cmd='func_echo_all'
13487
13488             # Archives containing C++ object files must be created using
13489             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13490             # necessary to make sure instantiated templates are included
13491             # in the archive.
13492             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13493             ;;
13494           gcx*)
13495             # Green Hills C++ Compiler
13496             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13497
13498             # The C++ compiler must be used to create the archive.
13499             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13500             ;;
13501           *)
13502             # GNU C++ compiler with Solaris linker
13503             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13504               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13505               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13506                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13507                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13508                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13509
13510                 # Commands to make compiler produce verbose output that lists
13511                 # what "hidden" libraries, object files and flags are used when
13512                 # linking a shared library.
13513                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13514               else
13515                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13516                 # platform.
13517                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13518                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13519                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13520
13521                 # Commands to make compiler produce verbose output that lists
13522                 # what "hidden" libraries, object files and flags are used when
13523                 # linking a shared library.
13524                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13525               fi
13526
13527               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13528               case $host_os in
13529                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13530                 *)
13531                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13532                   ;;
13533               esac
13534             fi
13535             ;;
13536         esac
13537         ;;
13538
13539     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13540       no_undefined_flag_CXX='${wl}-z,text'
13541       archive_cmds_need_lc_CXX=no
13542       hardcode_shlibpath_var_CXX=no
13543       runpath_var='LD_RUN_PATH'
13544
13545       case $cc_basename in
13546         CC*)
13547           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13548           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13549           ;;
13550         *)
13551           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13552           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13553           ;;
13554       esac
13555       ;;
13556
13557       sysv5* | sco3.2v5* | sco5v6*)
13558         # Note: We can NOT use -z defs as we might desire, because we do not
13559         # link with -lc, and that would cause any symbols used from libc to
13560         # always be unresolved, which means just about no library would
13561         # ever link correctly.  If we're not using GNU ld we use -z text
13562         # though, which does catch some bad symbols but isn't as heavy-handed
13563         # as -z defs.
13564         no_undefined_flag_CXX='${wl}-z,text'
13565         allow_undefined_flag_CXX='${wl}-z,nodefs'
13566         archive_cmds_need_lc_CXX=no
13567         hardcode_shlibpath_var_CXX=no
13568         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13569         hardcode_libdir_separator_CXX=':'
13570         link_all_deplibs_CXX=yes
13571         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13572         runpath_var='LD_RUN_PATH'
13573
13574         case $cc_basename in
13575           CC*)
13576             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13577             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13578             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13579               '"$old_archive_cmds_CXX"
13580             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13581               '"$reload_cmds_CXX"
13582             ;;
13583           *)
13584             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13585             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13586             ;;
13587         esac
13588       ;;
13589
13590       tandem*)
13591         case $cc_basename in
13592           NCC*)
13593             # NonStop-UX NCC 3.20
13594             # FIXME: insert proper C++ library support
13595             ld_shlibs_CXX=no
13596             ;;
13597           *)
13598             # FIXME: insert proper C++ library support
13599             ld_shlibs_CXX=no
13600             ;;
13601         esac
13602         ;;
13603
13604       vxworks*)
13605         # FIXME: insert proper C++ library support
13606         ld_shlibs_CXX=no
13607         ;;
13608
13609       *)
13610         # FIXME: insert proper C++ library support
13611         ld_shlibs_CXX=no
13612         ;;
13613     esac
13614
13615     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13616 $as_echo "$ld_shlibs_CXX" >&6; }
13617     test "$ld_shlibs_CXX" = no && can_build_shared=no
13618
13619     GCC_CXX="$GXX"
13620     LD_CXX="$LD"
13621
13622     ## CAVEAT EMPTOR:
13623     ## There is no encapsulation within the following macros, do not change
13624     ## the running order or otherwise move them around unless you know exactly
13625     ## what you are doing...
13626     # Dependencies to place before and after the object being linked:
13627 predep_objects_CXX=
13628 postdep_objects_CXX=
13629 predeps_CXX=
13630 postdeps_CXX=
13631 compiler_lib_search_path_CXX=
13632
13633 cat > conftest.$ac_ext <<_LT_EOF
13634 class Foo
13635 {
13636 public:
13637   Foo (void) { a = 0; }
13638 private:
13639   int a;
13640 };
13641 _LT_EOF
13642
13643
13644 _lt_libdeps_save_CFLAGS=$CFLAGS
13645 case "$CC $CFLAGS " in #(
13646 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13647 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13648 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13649 esac
13650
13651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13652   (eval $ac_compile) 2>&5
13653   ac_status=$?
13654   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13655   test $ac_status = 0; }; then
13656   # Parse the compiler output and extract the necessary
13657   # objects, libraries and library flags.
13658
13659   # Sentinel used to keep track of whether or not we are before
13660   # the conftest object file.
13661   pre_test_object_deps_done=no
13662
13663   for p in `eval "$output_verbose_link_cmd"`; do
13664     case ${prev}${p} in
13665
13666     -L* | -R* | -l*)
13667        # Some compilers place space between "-{L,R}" and the path.
13668        # Remove the space.
13669        if test $p = "-L" ||
13670           test $p = "-R"; then
13671          prev=$p
13672          continue
13673        fi
13674
13675        # Expand the sysroot to ease extracting the directories later.
13676        if test -z "$prev"; then
13677          case $p in
13678          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13679          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13680          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13681          esac
13682        fi
13683        case $p in
13684        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13685        esac
13686        if test "$pre_test_object_deps_done" = no; then
13687          case ${prev} in
13688          -L | -R)
13689            # Internal compiler library paths should come after those
13690            # provided the user.  The postdeps already come after the
13691            # user supplied libs so there is no need to process them.
13692            if test -z "$compiler_lib_search_path_CXX"; then
13693              compiler_lib_search_path_CXX="${prev}${p}"
13694            else
13695              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13696            fi
13697            ;;
13698          # The "-l" case would never come before the object being
13699          # linked, so don't bother handling this case.
13700          esac
13701        else
13702          if test -z "$postdeps_CXX"; then
13703            postdeps_CXX="${prev}${p}"
13704          else
13705            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13706          fi
13707        fi
13708        prev=
13709        ;;
13710
13711     *.lto.$objext) ;; # Ignore GCC LTO objects
13712     *.$objext)
13713        # This assumes that the test object file only shows up
13714        # once in the compiler output.
13715        if test "$p" = "conftest.$objext"; then
13716          pre_test_object_deps_done=yes
13717          continue
13718        fi
13719
13720        if test "$pre_test_object_deps_done" = no; then
13721          if test -z "$predep_objects_CXX"; then
13722            predep_objects_CXX="$p"
13723          else
13724            predep_objects_CXX="$predep_objects_CXX $p"
13725          fi
13726        else
13727          if test -z "$postdep_objects_CXX"; then
13728            postdep_objects_CXX="$p"
13729          else
13730            postdep_objects_CXX="$postdep_objects_CXX $p"
13731          fi
13732        fi
13733        ;;
13734
13735     *) ;; # Ignore the rest.
13736
13737     esac
13738   done
13739
13740   # Clean up.
13741   rm -f a.out a.exe
13742 else
13743   echo "libtool.m4: error: problem compiling CXX test program"
13744 fi
13745
13746 $RM -f confest.$objext
13747 CFLAGS=$_lt_libdeps_save_CFLAGS
13748
13749 # PORTME: override above test on systems where it is broken
13750 case $host_os in
13751 interix[3-9]*)
13752   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13753   # hack all around it, let's just trust "g++" to DTRT.
13754   predep_objects_CXX=
13755   postdep_objects_CXX=
13756   postdeps_CXX=
13757   ;;
13758
13759 linux*)
13760   case `$CC -V 2>&1 | sed 5q` in
13761   *Sun\ C*)
13762     # Sun C++ 5.9
13763
13764     # The more standards-conforming stlport4 library is
13765     # incompatible with the Cstd library. Avoid specifying
13766     # it if it's in CXXFLAGS. Ignore libCrun as
13767     # -library=stlport4 depends on it.
13768     case " $CXX $CXXFLAGS " in
13769     *" -library=stlport4 "*)
13770       solaris_use_stlport4=yes
13771       ;;
13772     esac
13773
13774     if test "$solaris_use_stlport4" != yes; then
13775       postdeps_CXX='-library=Cstd -library=Crun'
13776     fi
13777     ;;
13778   esac
13779   ;;
13780
13781 solaris*)
13782   case $cc_basename in
13783   CC* | sunCC*)
13784     # The more standards-conforming stlport4 library is
13785     # incompatible with the Cstd library. Avoid specifying
13786     # it if it's in CXXFLAGS. Ignore libCrun as
13787     # -library=stlport4 depends on it.
13788     case " $CXX $CXXFLAGS " in
13789     *" -library=stlport4 "*)
13790       solaris_use_stlport4=yes
13791       ;;
13792     esac
13793
13794     # Adding this requires a known-good setup of shared libraries for
13795     # Sun compiler versions before 5.6, else PIC objects from an old
13796     # archive will be linked into the output, leading to subtle bugs.
13797     if test "$solaris_use_stlport4" != yes; then
13798       postdeps_CXX='-library=Cstd -library=Crun'
13799     fi
13800     ;;
13801   esac
13802   ;;
13803 esac
13804
13805
13806 case " $postdeps_CXX " in
13807 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13808 esac
13809  compiler_lib_search_dirs_CXX=
13810 if test -n "${compiler_lib_search_path_CXX}"; then
13811  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13812 fi
13813
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     lt_prog_compiler_wl_CXX=
13845 lt_prog_compiler_pic_CXX=
13846 lt_prog_compiler_static_CXX=
13847
13848
13849   # C++ specific cases for pic, static, wl, etc.
13850   if test "$GXX" = yes; then
13851     lt_prog_compiler_wl_CXX='-Wl,'
13852     lt_prog_compiler_static_CXX='-static'
13853
13854     case $host_os in
13855     aix*)
13856       # All AIX code is PIC.
13857       if test "$host_cpu" = ia64; then
13858         # AIX 5 now supports IA64 processor
13859         lt_prog_compiler_static_CXX='-Bstatic'
13860       fi
13861       ;;
13862
13863     amigaos*)
13864       case $host_cpu in
13865       powerpc)
13866             # see comment about AmigaOS4 .so support
13867             lt_prog_compiler_pic_CXX='-fPIC'
13868         ;;
13869       m68k)
13870             # FIXME: we need at least 68020 code to build shared libraries, but
13871             # adding the `-m68020' flag to GCC prevents building anything better,
13872             # like `-m68040'.
13873             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13874         ;;
13875       esac
13876       ;;
13877
13878     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13879       # PIC is the default for these OSes.
13880       ;;
13881     mingw* | cygwin* | os2* | pw32* | cegcc*)
13882       # This hack is so that the source file can tell whether it is being
13883       # built for inclusion in a dll (and should export symbols for example).
13884       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13885       # (--disable-auto-import) libraries
13886       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13887       ;;
13888     darwin* | rhapsody*)
13889       # PIC is the default on this platform
13890       # Common symbols not allowed in MH_DYLIB files
13891       lt_prog_compiler_pic_CXX='-fno-common'
13892       ;;
13893     *djgpp*)
13894       # DJGPP does not support shared libraries at all
13895       lt_prog_compiler_pic_CXX=
13896       ;;
13897     haiku*)
13898       # PIC is the default for Haiku.
13899       # The "-static" flag exists, but is broken.
13900       lt_prog_compiler_static_CXX=
13901       ;;
13902     interix[3-9]*)
13903       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13904       # Instead, we relocate shared libraries at runtime.
13905       ;;
13906     sysv4*MP*)
13907       if test -d /usr/nec; then
13908         lt_prog_compiler_pic_CXX=-Kconform_pic
13909       fi
13910       ;;
13911     hpux*)
13912       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13913       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13914       # sets the default TLS model and affects inlining.
13915       case $host_cpu in
13916       hppa*64*)
13917         ;;
13918       *)
13919         lt_prog_compiler_pic_CXX='-fPIC'
13920         ;;
13921       esac
13922       ;;
13923     *qnx* | *nto*)
13924       # QNX uses GNU C++, but need to define -shared option too, otherwise
13925       # it will coredump.
13926       lt_prog_compiler_pic_CXX='-fPIC -shared'
13927       ;;
13928     *)
13929       lt_prog_compiler_pic_CXX='-fPIC'
13930       ;;
13931     esac
13932   else
13933     case $host_os in
13934       aix[4-9]*)
13935         # All AIX code is PIC.
13936         if test "$host_cpu" = ia64; then
13937           # AIX 5 now supports IA64 processor
13938           lt_prog_compiler_static_CXX='-Bstatic'
13939         else
13940           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13941         fi
13942         ;;
13943       chorus*)
13944         case $cc_basename in
13945         cxch68*)
13946           # Green Hills C++ Compiler
13947           # _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"
13948           ;;
13949         esac
13950         ;;
13951       mingw* | cygwin* | os2* | pw32* | cegcc*)
13952         # This hack is so that the source file can tell whether it is being
13953         # built for inclusion in a dll (and should export symbols for example).
13954         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13955         ;;
13956       dgux*)
13957         case $cc_basename in
13958           ec++*)
13959             lt_prog_compiler_pic_CXX='-KPIC'
13960             ;;
13961           ghcx*)
13962             # Green Hills C++ Compiler
13963             lt_prog_compiler_pic_CXX='-pic'
13964             ;;
13965           *)
13966             ;;
13967         esac
13968         ;;
13969       freebsd* | dragonfly*)
13970         # FreeBSD uses GNU C++
13971         ;;
13972       hpux9* | hpux10* | hpux11*)
13973         case $cc_basename in
13974           CC*)
13975             lt_prog_compiler_wl_CXX='-Wl,'
13976             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13977             if test "$host_cpu" != ia64; then
13978               lt_prog_compiler_pic_CXX='+Z'
13979             fi
13980             ;;
13981           aCC*)
13982             lt_prog_compiler_wl_CXX='-Wl,'
13983             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13984             case $host_cpu in
13985             hppa*64*|ia64*)
13986               # +Z the default
13987               ;;
13988             *)
13989               lt_prog_compiler_pic_CXX='+Z'
13990               ;;
13991             esac
13992             ;;
13993           *)
13994             ;;
13995         esac
13996         ;;
13997       interix*)
13998         # This is c89, which is MS Visual C++ (no shared libs)
13999         # Anyone wants to do a port?
14000         ;;
14001       irix5* | irix6* | nonstopux*)
14002         case $cc_basename in
14003           CC*)
14004             lt_prog_compiler_wl_CXX='-Wl,'
14005             lt_prog_compiler_static_CXX='-non_shared'
14006             # CC pic flag -KPIC is the default.
14007             ;;
14008           *)
14009             ;;
14010         esac
14011         ;;
14012       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14013         case $cc_basename in
14014           KCC*)
14015             # KAI C++ Compiler
14016             lt_prog_compiler_wl_CXX='--backend -Wl,'
14017             lt_prog_compiler_pic_CXX='-fPIC'
14018             ;;
14019           ecpc* )
14020             # old Intel C++ for x86_64 which still supported -KPIC.
14021             lt_prog_compiler_wl_CXX='-Wl,'
14022             lt_prog_compiler_pic_CXX='-KPIC'
14023             lt_prog_compiler_static_CXX='-static'
14024             ;;
14025           icpc* )
14026             # Intel C++, used to be incompatible with GCC.
14027             # ICC 10 doesn't accept -KPIC any more.
14028             lt_prog_compiler_wl_CXX='-Wl,'
14029             lt_prog_compiler_pic_CXX='-fPIC'
14030             lt_prog_compiler_static_CXX='-static'
14031             ;;
14032           pgCC* | pgcpp*)
14033             # Portland Group C++ compiler
14034             lt_prog_compiler_wl_CXX='-Wl,'
14035             lt_prog_compiler_pic_CXX='-fpic'
14036             lt_prog_compiler_static_CXX='-Bstatic'
14037             ;;
14038           cxx*)
14039             # Compaq C++
14040             # Make sure the PIC flag is empty.  It appears that all Alpha
14041             # Linux and Compaq Tru64 Unix objects are PIC.
14042             lt_prog_compiler_pic_CXX=
14043             lt_prog_compiler_static_CXX='-non_shared'
14044             ;;
14045           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14046             # IBM XL 8.0, 9.0 on PPC and BlueGene
14047             lt_prog_compiler_wl_CXX='-Wl,'
14048             lt_prog_compiler_pic_CXX='-qpic'
14049             lt_prog_compiler_static_CXX='-qstaticlink'
14050             ;;
14051           *)
14052             case `$CC -V 2>&1 | sed 5q` in
14053             *Sun\ C*)
14054               # Sun C++ 5.9
14055               lt_prog_compiler_pic_CXX='-KPIC'
14056               lt_prog_compiler_static_CXX='-Bstatic'
14057               lt_prog_compiler_wl_CXX='-Qoption ld '
14058               ;;
14059             esac
14060             ;;
14061         esac
14062         ;;
14063       lynxos*)
14064         ;;
14065       m88k*)
14066         ;;
14067       mvs*)
14068         case $cc_basename in
14069           cxx*)
14070             lt_prog_compiler_pic_CXX='-W c,exportall'
14071             ;;
14072           *)
14073             ;;
14074         esac
14075         ;;
14076       netbsd* | netbsdelf*-gnu)
14077         ;;
14078       *qnx* | *nto*)
14079         # QNX uses GNU C++, but need to define -shared option too, otherwise
14080         # it will coredump.
14081         lt_prog_compiler_pic_CXX='-fPIC -shared'
14082         ;;
14083       osf3* | osf4* | osf5*)
14084         case $cc_basename in
14085           KCC*)
14086             lt_prog_compiler_wl_CXX='--backend -Wl,'
14087             ;;
14088           RCC*)
14089             # Rational C++ 2.4.1
14090             lt_prog_compiler_pic_CXX='-pic'
14091             ;;
14092           cxx*)
14093             # Digital/Compaq C++
14094             lt_prog_compiler_wl_CXX='-Wl,'
14095             # Make sure the PIC flag is empty.  It appears that all Alpha
14096             # Linux and Compaq Tru64 Unix objects are PIC.
14097             lt_prog_compiler_pic_CXX=
14098             lt_prog_compiler_static_CXX='-non_shared'
14099             ;;
14100           *)
14101             ;;
14102         esac
14103         ;;
14104       psos*)
14105         ;;
14106       solaris*)
14107         case $cc_basename in
14108           CC* | sunCC*)
14109             # Sun C++ 4.2, 5.x and Centerline C++
14110             lt_prog_compiler_pic_CXX='-KPIC'
14111             lt_prog_compiler_static_CXX='-Bstatic'
14112             lt_prog_compiler_wl_CXX='-Qoption ld '
14113             ;;
14114           gcx*)
14115             # Green Hills C++ Compiler
14116             lt_prog_compiler_pic_CXX='-PIC'
14117             ;;
14118           *)
14119             ;;
14120         esac
14121         ;;
14122       sunos4*)
14123         case $cc_basename in
14124           CC*)
14125             # Sun C++ 4.x
14126             lt_prog_compiler_pic_CXX='-pic'
14127             lt_prog_compiler_static_CXX='-Bstatic'
14128             ;;
14129           lcc*)
14130             # Lucid
14131             lt_prog_compiler_pic_CXX='-pic'
14132             ;;
14133           *)
14134             ;;
14135         esac
14136         ;;
14137       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14138         case $cc_basename in
14139           CC*)
14140             lt_prog_compiler_wl_CXX='-Wl,'
14141             lt_prog_compiler_pic_CXX='-KPIC'
14142             lt_prog_compiler_static_CXX='-Bstatic'
14143             ;;
14144         esac
14145         ;;
14146       tandem*)
14147         case $cc_basename in
14148           NCC*)
14149             # NonStop-UX NCC 3.20
14150             lt_prog_compiler_pic_CXX='-KPIC'
14151             ;;
14152           *)
14153             ;;
14154         esac
14155         ;;
14156       vxworks*)
14157         ;;
14158       *)
14159         lt_prog_compiler_can_build_shared_CXX=no
14160         ;;
14161     esac
14162   fi
14163
14164 case $host_os in
14165   # For platforms which do not support PIC, -DPIC is meaningless:
14166   *djgpp*)
14167     lt_prog_compiler_pic_CXX=
14168     ;;
14169   *)
14170     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14171     ;;
14172 esac
14173
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14175 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14176 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14177   $as_echo_n "(cached) " >&6
14178 else
14179   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14180 fi
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14182 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14183 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14184
14185 #
14186 # Check to make sure the PIC flag actually works.
14187 #
14188 if test -n "$lt_prog_compiler_pic_CXX"; then
14189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14190 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14191 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14192   $as_echo_n "(cached) " >&6
14193 else
14194   lt_cv_prog_compiler_pic_works_CXX=no
14195    ac_outfile=conftest.$ac_objext
14196    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14197    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14198    # Insert the option either (1) after the last *FLAGS variable, or
14199    # (2) before a word containing "conftest.", or (3) at the end.
14200    # Note that $ac_compile itself does not contain backslashes and begins
14201    # with a dollar sign (not a hyphen), so the echo should work correctly.
14202    # The option is referenced via a variable to avoid confusing sed.
14203    lt_compile=`echo "$ac_compile" | $SED \
14204    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14205    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14206    -e 's:$: $lt_compiler_flag:'`
14207    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14208    (eval "$lt_compile" 2>conftest.err)
14209    ac_status=$?
14210    cat conftest.err >&5
14211    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212    if (exit $ac_status) && test -s "$ac_outfile"; then
14213      # The compiler can only warn and ignore the option if not recognized
14214      # So say no if there are warnings other than the usual output.
14215      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14216      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14217      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14218        lt_cv_prog_compiler_pic_works_CXX=yes
14219      fi
14220    fi
14221    $RM conftest*
14222
14223 fi
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14225 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14226
14227 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14228     case $lt_prog_compiler_pic_CXX in
14229      "" | " "*) ;;
14230      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14231      esac
14232 else
14233     lt_prog_compiler_pic_CXX=
14234      lt_prog_compiler_can_build_shared_CXX=no
14235 fi
14236
14237 fi
14238
14239
14240
14241
14242
14243 #
14244 # Check to make sure the static flag actually works.
14245 #
14246 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14248 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14249 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14250   $as_echo_n "(cached) " >&6
14251 else
14252   lt_cv_prog_compiler_static_works_CXX=no
14253    save_LDFLAGS="$LDFLAGS"
14254    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14255    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14256    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14257      # The linker can only warn and ignore the option if not recognized
14258      # So say no if there are warnings
14259      if test -s conftest.err; then
14260        # Append any errors to the config.log.
14261        cat conftest.err 1>&5
14262        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14263        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14264        if diff conftest.exp conftest.er2 >/dev/null; then
14265          lt_cv_prog_compiler_static_works_CXX=yes
14266        fi
14267      else
14268        lt_cv_prog_compiler_static_works_CXX=yes
14269      fi
14270    fi
14271    $RM -r conftest*
14272    LDFLAGS="$save_LDFLAGS"
14273
14274 fi
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14276 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14277
14278 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14279     :
14280 else
14281     lt_prog_compiler_static_CXX=
14282 fi
14283
14284
14285
14286
14287     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14288 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14289 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14290   $as_echo_n "(cached) " >&6
14291 else
14292   lt_cv_prog_compiler_c_o_CXX=no
14293    $RM -r conftest 2>/dev/null
14294    mkdir conftest
14295    cd conftest
14296    mkdir out
14297    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14298
14299    lt_compiler_flag="-o out/conftest2.$ac_objext"
14300    # Insert the option either (1) after the last *FLAGS variable, or
14301    # (2) before a word containing "conftest.", or (3) at the end.
14302    # Note that $ac_compile itself does not contain backslashes and begins
14303    # with a dollar sign (not a hyphen), so the echo should work correctly.
14304    lt_compile=`echo "$ac_compile" | $SED \
14305    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14306    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14307    -e 's:$: $lt_compiler_flag:'`
14308    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14309    (eval "$lt_compile" 2>out/conftest.err)
14310    ac_status=$?
14311    cat out/conftest.err >&5
14312    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14314    then
14315      # The compiler can only warn and ignore the option if not recognized
14316      # So say no if there are warnings
14317      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14318      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14319      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14320        lt_cv_prog_compiler_c_o_CXX=yes
14321      fi
14322    fi
14323    chmod u+w . 2>&5
14324    $RM conftest*
14325    # SGI C++ compiler will create directory out/ii_files/ for
14326    # template instantiation
14327    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14328    $RM out/* && rmdir out
14329    cd ..
14330    $RM -r conftest
14331    $RM conftest*
14332
14333 fi
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14335 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14336
14337
14338
14339     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14340 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14341 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14342   $as_echo_n "(cached) " >&6
14343 else
14344   lt_cv_prog_compiler_c_o_CXX=no
14345    $RM -r conftest 2>/dev/null
14346    mkdir conftest
14347    cd conftest
14348    mkdir out
14349    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14350
14351    lt_compiler_flag="-o out/conftest2.$ac_objext"
14352    # Insert the option either (1) after the last *FLAGS variable, or
14353    # (2) before a word containing "conftest.", or (3) at the end.
14354    # Note that $ac_compile itself does not contain backslashes and begins
14355    # with a dollar sign (not a hyphen), so the echo should work correctly.
14356    lt_compile=`echo "$ac_compile" | $SED \
14357    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14358    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14359    -e 's:$: $lt_compiler_flag:'`
14360    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14361    (eval "$lt_compile" 2>out/conftest.err)
14362    ac_status=$?
14363    cat out/conftest.err >&5
14364    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14366    then
14367      # The compiler can only warn and ignore the option if not recognized
14368      # So say no if there are warnings
14369      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14370      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14371      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14372        lt_cv_prog_compiler_c_o_CXX=yes
14373      fi
14374    fi
14375    chmod u+w . 2>&5
14376    $RM conftest*
14377    # SGI C++ compiler will create directory out/ii_files/ for
14378    # template instantiation
14379    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14380    $RM out/* && rmdir out
14381    cd ..
14382    $RM -r conftest
14383    $RM conftest*
14384
14385 fi
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14387 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14388
14389
14390
14391
14392 hard_links="nottested"
14393 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14394   # do not overwrite the value of need_locks provided by the user
14395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14396 $as_echo_n "checking if we can lock with hard links... " >&6; }
14397   hard_links=yes
14398   $RM conftest*
14399   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14400   touch conftest.a
14401   ln conftest.a conftest.b 2>&5 || hard_links=no
14402   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14404 $as_echo "$hard_links" >&6; }
14405   if test "$hard_links" = no; then
14406     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14407 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14408     need_locks=warn
14409   fi
14410 else
14411   need_locks=no
14412 fi
14413
14414
14415
14416     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14417 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14418
14419   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14420   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14421   case $host_os in
14422   aix[4-9]*)
14423     # If we're using GNU nm, then we don't want the "-C" option.
14424     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14425     # Also, AIX nm treats weak defined symbols like other global defined
14426     # symbols, whereas GNU nm marks them as "W".
14427     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14428       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'
14429     else
14430       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'
14431     fi
14432     ;;
14433   pw32*)
14434     export_symbols_cmds_CXX="$ltdll_cmds"
14435     ;;
14436   cygwin* | mingw* | cegcc*)
14437     case $cc_basename in
14438     cl*)
14439       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14440       ;;
14441     *)
14442       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'
14443       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14444       ;;
14445     esac
14446     ;;
14447   linux* | k*bsd*-gnu | gnu*)
14448     link_all_deplibs_CXX=no
14449     ;;
14450   *)
14451     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14452     ;;
14453   esac
14454
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14456 $as_echo "$ld_shlibs_CXX" >&6; }
14457 test "$ld_shlibs_CXX" = no && can_build_shared=no
14458
14459 with_gnu_ld_CXX=$with_gnu_ld
14460
14461
14462
14463
14464
14465
14466 #
14467 # Do we need to explicitly link libc?
14468 #
14469 case "x$archive_cmds_need_lc_CXX" in
14470 x|xyes)
14471   # Assume -lc should be added
14472   archive_cmds_need_lc_CXX=yes
14473
14474   if test "$enable_shared" = yes && test "$GCC" = yes; then
14475     case $archive_cmds_CXX in
14476     *'~'*)
14477       # FIXME: we may have to deal with multi-command sequences.
14478       ;;
14479     '$CC '*)
14480       # Test whether the compiler implicitly links with -lc since on some
14481       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14482       # to ld, don't add -lc before -lgcc.
14483       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14484 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14485 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14486   $as_echo_n "(cached) " >&6
14487 else
14488   $RM conftest*
14489         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14490
14491         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14492   (eval $ac_compile) 2>&5
14493   ac_status=$?
14494   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14495   test $ac_status = 0; } 2>conftest.err; then
14496           soname=conftest
14497           lib=conftest
14498           libobjs=conftest.$ac_objext
14499           deplibs=
14500           wl=$lt_prog_compiler_wl_CXX
14501           pic_flag=$lt_prog_compiler_pic_CXX
14502           compiler_flags=-v
14503           linker_flags=-v
14504           verstring=
14505           output_objdir=.
14506           libname=conftest
14507           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14508           allow_undefined_flag_CXX=
14509           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14510   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14511   ac_status=$?
14512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14513   test $ac_status = 0; }
14514           then
14515             lt_cv_archive_cmds_need_lc_CXX=no
14516           else
14517             lt_cv_archive_cmds_need_lc_CXX=yes
14518           fi
14519           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14520         else
14521           cat conftest.err 1>&5
14522         fi
14523         $RM conftest*
14524
14525 fi
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14527 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14528       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14529       ;;
14530     esac
14531   fi
14532   ;;
14533 esac
14534
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14597 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14598
14599 library_names_spec=
14600 libname_spec='lib$name'
14601 soname_spec=
14602 shrext_cmds=".so"
14603 postinstall_cmds=
14604 postuninstall_cmds=
14605 finish_cmds=
14606 finish_eval=
14607 shlibpath_var=
14608 shlibpath_overrides_runpath=unknown
14609 version_type=none
14610 dynamic_linker="$host_os ld.so"
14611 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14612 need_lib_prefix=unknown
14613 hardcode_into_libs=no
14614
14615 # when you set need_version to no, make sure it does not cause -set_version
14616 # flags to be left without arguments
14617 need_version=unknown
14618
14619 case $host_os in
14620 aix3*)
14621   version_type=linux # correct to gnu/linux during the next big refactor
14622   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14623   shlibpath_var=LIBPATH
14624
14625   # AIX 3 has no versioning support, so we append a major version to the name.
14626   soname_spec='${libname}${release}${shared_ext}$major'
14627   ;;
14628
14629 aix[4-9]*)
14630   version_type=linux # correct to gnu/linux during the next big refactor
14631   need_lib_prefix=no
14632   need_version=no
14633   hardcode_into_libs=yes
14634   if test "$host_cpu" = ia64; then
14635     # AIX 5 supports IA64
14636     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14637     shlibpath_var=LD_LIBRARY_PATH
14638   else
14639     # With GCC up to 2.95.x, collect2 would create an import file
14640     # for dependence libraries.  The import file would start with
14641     # the line `#! .'.  This would cause the generated library to
14642     # depend on `.', always an invalid library.  This was fixed in
14643     # development snapshots of GCC prior to 3.0.
14644     case $host_os in
14645       aix4 | aix4.[01] | aix4.[01].*)
14646       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14647            echo ' yes '
14648            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14649         :
14650       else
14651         can_build_shared=no
14652       fi
14653       ;;
14654     esac
14655     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14656     # soname into executable. Probably we can add versioning support to
14657     # collect2, so additional links can be useful in future.
14658     if test "$aix_use_runtimelinking" = yes; then
14659       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14660       # instead of lib<name>.a to let people know that these are not
14661       # typical AIX shared libraries.
14662       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14663     else
14664       # We preserve .a as extension for shared libraries through AIX4.2
14665       # and later when we are not doing run time linking.
14666       library_names_spec='${libname}${release}.a $libname.a'
14667       soname_spec='${libname}${release}${shared_ext}$major'
14668     fi
14669     shlibpath_var=LIBPATH
14670   fi
14671   ;;
14672
14673 amigaos*)
14674   case $host_cpu in
14675   powerpc)
14676     # Since July 2007 AmigaOS4 officially supports .so libraries.
14677     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14678     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14679     ;;
14680   m68k)
14681     library_names_spec='$libname.ixlibrary $libname.a'
14682     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14683     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'
14684     ;;
14685   esac
14686   ;;
14687
14688 beos*)
14689   library_names_spec='${libname}${shared_ext}'
14690   dynamic_linker="$host_os ld.so"
14691   shlibpath_var=LIBRARY_PATH
14692   ;;
14693
14694 bsdi[45]*)
14695   version_type=linux # correct to gnu/linux during the next big refactor
14696   need_version=no
14697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14698   soname_spec='${libname}${release}${shared_ext}$major'
14699   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14700   shlibpath_var=LD_LIBRARY_PATH
14701   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14702   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14703   # the default ld.so.conf also contains /usr/contrib/lib and
14704   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14705   # libtool to hard-code these into programs
14706   ;;
14707
14708 cygwin* | mingw* | pw32* | cegcc*)
14709   version_type=windows
14710   shrext_cmds=".dll"
14711   need_version=no
14712   need_lib_prefix=no
14713
14714   case $GCC,$cc_basename in
14715   yes,*)
14716     # gcc
14717     library_names_spec='$libname.dll.a'
14718     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14719     postinstall_cmds='base_file=`basename \${file}`~
14720       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14721       dldir=$destdir/`dirname \$dlpath`~
14722       test -d \$dldir || mkdir -p \$dldir~
14723       $install_prog $dir/$dlname \$dldir/$dlname~
14724       chmod a+x \$dldir/$dlname~
14725       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14726         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14727       fi'
14728     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14729       dlpath=$dir/\$dldll~
14730        $RM \$dlpath'
14731     shlibpath_overrides_runpath=yes
14732
14733     case $host_os in
14734     cygwin*)
14735       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14736       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14737
14738       ;;
14739     mingw* | cegcc*)
14740       # MinGW DLLs use traditional 'lib' prefix
14741       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14742       ;;
14743     pw32*)
14744       # pw32 DLLs use 'pw' prefix rather than 'lib'
14745       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14746       ;;
14747     esac
14748     dynamic_linker='Win32 ld.exe'
14749     ;;
14750
14751   *,cl*)
14752     # Native MSVC
14753     libname_spec='$name'
14754     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14755     library_names_spec='${libname}.dll.lib'
14756
14757     case $build_os in
14758     mingw*)
14759       sys_lib_search_path_spec=
14760       lt_save_ifs=$IFS
14761       IFS=';'
14762       for lt_path in $LIB
14763       do
14764         IFS=$lt_save_ifs
14765         # Let DOS variable expansion print the short 8.3 style file name.
14766         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14767         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14768       done
14769       IFS=$lt_save_ifs
14770       # Convert to MSYS style.
14771       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14772       ;;
14773     cygwin*)
14774       # Convert to unix form, then to dos form, then back to unix form
14775       # but this time dos style (no spaces!) so that the unix form looks
14776       # like /cygdrive/c/PROGRA~1:/cygdr...
14777       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14778       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14779       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14780       ;;
14781     *)
14782       sys_lib_search_path_spec="$LIB"
14783       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14784         # It is most probably a Windows format PATH.
14785         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14786       else
14787         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14788       fi
14789       # FIXME: find the short name or the path components, as spaces are
14790       # common. (e.g. "Program Files" -> "PROGRA~1")
14791       ;;
14792     esac
14793
14794     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14795     postinstall_cmds='base_file=`basename \${file}`~
14796       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14797       dldir=$destdir/`dirname \$dlpath`~
14798       test -d \$dldir || mkdir -p \$dldir~
14799       $install_prog $dir/$dlname \$dldir/$dlname'
14800     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14801       dlpath=$dir/\$dldll~
14802        $RM \$dlpath'
14803     shlibpath_overrides_runpath=yes
14804     dynamic_linker='Win32 link.exe'
14805     ;;
14806
14807   *)
14808     # Assume MSVC wrapper
14809     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14810     dynamic_linker='Win32 ld.exe'
14811     ;;
14812   esac
14813   # FIXME: first we should search . and the directory the executable is in
14814   shlibpath_var=PATH
14815   ;;
14816
14817 darwin* | rhapsody*)
14818   dynamic_linker="$host_os dyld"
14819   version_type=darwin
14820   need_lib_prefix=no
14821   need_version=no
14822   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14823   soname_spec='${libname}${release}${major}$shared_ext'
14824   shlibpath_overrides_runpath=yes
14825   shlibpath_var=DYLD_LIBRARY_PATH
14826   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14827
14828   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14829   ;;
14830
14831 dgux*)
14832   version_type=linux # correct to gnu/linux during the next big refactor
14833   need_lib_prefix=no
14834   need_version=no
14835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14836   soname_spec='${libname}${release}${shared_ext}$major'
14837   shlibpath_var=LD_LIBRARY_PATH
14838   ;;
14839
14840 freebsd* | dragonfly*)
14841   # DragonFly does not have aout.  When/if they implement a new
14842   # versioning mechanism, adjust this.
14843   if test -x /usr/bin/objformat; then
14844     objformat=`/usr/bin/objformat`
14845   else
14846     case $host_os in
14847     freebsd[23].*) objformat=aout ;;
14848     *) objformat=elf ;;
14849     esac
14850   fi
14851   version_type=freebsd-$objformat
14852   case $version_type in
14853     freebsd-elf*)
14854       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14855       need_version=no
14856       need_lib_prefix=no
14857       ;;
14858     freebsd-*)
14859       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14860       need_version=yes
14861       ;;
14862   esac
14863   shlibpath_var=LD_LIBRARY_PATH
14864   case $host_os in
14865   freebsd2.*)
14866     shlibpath_overrides_runpath=yes
14867     ;;
14868   freebsd3.[01]* | freebsdelf3.[01]*)
14869     shlibpath_overrides_runpath=yes
14870     hardcode_into_libs=yes
14871     ;;
14872   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14873   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14874     shlibpath_overrides_runpath=no
14875     hardcode_into_libs=yes
14876     ;;
14877   *) # from 4.6 on, and DragonFly
14878     shlibpath_overrides_runpath=yes
14879     hardcode_into_libs=yes
14880     ;;
14881   esac
14882   ;;
14883
14884 gnu*)
14885   version_type=linux # correct to gnu/linux during the next big refactor
14886   need_lib_prefix=no
14887   need_version=no
14888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14889   soname_spec='${libname}${release}${shared_ext}$major'
14890   shlibpath_var=LD_LIBRARY_PATH
14891   shlibpath_overrides_runpath=no
14892   hardcode_into_libs=yes
14893   ;;
14894
14895 haiku*)
14896   version_type=linux # correct to gnu/linux during the next big refactor
14897   need_lib_prefix=no
14898   need_version=no
14899   dynamic_linker="$host_os runtime_loader"
14900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14901   soname_spec='${libname}${release}${shared_ext}$major'
14902   shlibpath_var=LIBRARY_PATH
14903   shlibpath_overrides_runpath=yes
14904   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14905   hardcode_into_libs=yes
14906   ;;
14907
14908 hpux9* | hpux10* | hpux11*)
14909   # Give a soname corresponding to the major version so that dld.sl refuses to
14910   # link against other versions.
14911   version_type=sunos
14912   need_lib_prefix=no
14913   need_version=no
14914   case $host_cpu in
14915   ia64*)
14916     shrext_cmds='.so'
14917     hardcode_into_libs=yes
14918     dynamic_linker="$host_os dld.so"
14919     shlibpath_var=LD_LIBRARY_PATH
14920     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14921     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14922     soname_spec='${libname}${release}${shared_ext}$major'
14923     if test "X$HPUX_IA64_MODE" = X32; then
14924       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14925     else
14926       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14927     fi
14928     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14929     ;;
14930   hppa*64*)
14931     shrext_cmds='.sl'
14932     hardcode_into_libs=yes
14933     dynamic_linker="$host_os dld.sl"
14934     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14935     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14936     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937     soname_spec='${libname}${release}${shared_ext}$major'
14938     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14939     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14940     ;;
14941   *)
14942     shrext_cmds='.sl'
14943     dynamic_linker="$host_os dld.sl"
14944     shlibpath_var=SHLIB_PATH
14945     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14946     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14947     soname_spec='${libname}${release}${shared_ext}$major'
14948     ;;
14949   esac
14950   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14951   postinstall_cmds='chmod 555 $lib'
14952   # or fails outright, so override atomically:
14953   install_override_mode=555
14954   ;;
14955
14956 interix[3-9]*)
14957   version_type=linux # correct to gnu/linux during the next big refactor
14958   need_lib_prefix=no
14959   need_version=no
14960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14961   soname_spec='${libname}${release}${shared_ext}$major'
14962   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14963   shlibpath_var=LD_LIBRARY_PATH
14964   shlibpath_overrides_runpath=no
14965   hardcode_into_libs=yes
14966   ;;
14967
14968 irix5* | irix6* | nonstopux*)
14969   case $host_os in
14970     nonstopux*) version_type=nonstopux ;;
14971     *)
14972         if test "$lt_cv_prog_gnu_ld" = yes; then
14973                 version_type=linux # correct to gnu/linux during the next big refactor
14974         else
14975                 version_type=irix
14976         fi ;;
14977   esac
14978   need_lib_prefix=no
14979   need_version=no
14980   soname_spec='${libname}${release}${shared_ext}$major'
14981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14982   case $host_os in
14983   irix5* | nonstopux*)
14984     libsuff= shlibsuff=
14985     ;;
14986   *)
14987     case $LD in # libtool.m4 will add one of these switches to LD
14988     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14989       libsuff= shlibsuff= libmagic=32-bit;;
14990     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14991       libsuff=32 shlibsuff=N32 libmagic=N32;;
14992     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14993       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14994     *) libsuff= shlibsuff= libmagic=never-match;;
14995     esac
14996     ;;
14997   esac
14998   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14999   shlibpath_overrides_runpath=no
15000   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15001   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15002   hardcode_into_libs=yes
15003   ;;
15004
15005 # No shared lib support for Linux oldld, aout, or coff.
15006 linux*oldld* | linux*aout* | linux*coff*)
15007   dynamic_linker=no
15008   ;;
15009
15010 # This must be glibc/ELF.
15011 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15012   version_type=linux # correct to gnu/linux during the next big refactor
15013   need_lib_prefix=no
15014   need_version=no
15015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15016   soname_spec='${libname}${release}${shared_ext}$major'
15017   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15018   shlibpath_var=LD_LIBRARY_PATH
15019   shlibpath_overrides_runpath=no
15020
15021   # Some binutils ld are patched to set DT_RUNPATH
15022   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15023   $as_echo_n "(cached) " >&6
15024 else
15025   lt_cv_shlibpath_overrides_runpath=no
15026     save_LDFLAGS=$LDFLAGS
15027     save_libdir=$libdir
15028     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15029          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15030     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15031 /* end confdefs.h.  */
15032
15033 int
15034 main ()
15035 {
15036
15037   ;
15038   return 0;
15039 }
15040 _ACEOF
15041 if ac_fn_cxx_try_link "$LINENO"; then :
15042   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15043   lt_cv_shlibpath_overrides_runpath=yes
15044 fi
15045 fi
15046 rm -f core conftest.err conftest.$ac_objext \
15047     conftest$ac_exeext conftest.$ac_ext
15048     LDFLAGS=$save_LDFLAGS
15049     libdir=$save_libdir
15050
15051 fi
15052
15053   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15054
15055   # This implies no fast_install, which is unacceptable.
15056   # Some rework will be needed to allow for fast_install
15057   # before this can be enabled.
15058   hardcode_into_libs=yes
15059
15060   # Append ld.so.conf contents to the search path
15061   if test -f /etc/ld.so.conf; then
15062     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' ' '`
15063     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15064   fi
15065
15066   # We used to test for /lib/ld.so.1 and disable shared libraries on
15067   # powerpc, because MkLinux only supported shared libraries with the
15068   # GNU dynamic linker.  Since this was broken with cross compilers,
15069   # most powerpc-linux boxes support dynamic linking these days and
15070   # people can always --disable-shared, the test was removed, and we
15071   # assume the GNU/Linux dynamic linker is in use.
15072   dynamic_linker='GNU/Linux ld.so'
15073   ;;
15074
15075 netbsdelf*-gnu)
15076   version_type=linux
15077   need_lib_prefix=no
15078   need_version=no
15079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15080   soname_spec='${libname}${release}${shared_ext}$major'
15081   shlibpath_var=LD_LIBRARY_PATH
15082   shlibpath_overrides_runpath=no
15083   hardcode_into_libs=yes
15084   dynamic_linker='NetBSD ld.elf_so'
15085   ;;
15086
15087 netbsd*)
15088   version_type=sunos
15089   need_lib_prefix=no
15090   need_version=no
15091   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15092     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15093     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15094     dynamic_linker='NetBSD (a.out) ld.so'
15095   else
15096     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15097     soname_spec='${libname}${release}${shared_ext}$major'
15098     dynamic_linker='NetBSD ld.elf_so'
15099   fi
15100   shlibpath_var=LD_LIBRARY_PATH
15101   shlibpath_overrides_runpath=yes
15102   hardcode_into_libs=yes
15103   ;;
15104
15105 newsos6)
15106   version_type=linux # correct to gnu/linux during the next big refactor
15107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15108   shlibpath_var=LD_LIBRARY_PATH
15109   shlibpath_overrides_runpath=yes
15110   ;;
15111
15112 *nto* | *qnx*)
15113   version_type=qnx
15114   need_lib_prefix=no
15115   need_version=no
15116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15117   soname_spec='${libname}${release}${shared_ext}$major'
15118   shlibpath_var=LD_LIBRARY_PATH
15119   shlibpath_overrides_runpath=no
15120   hardcode_into_libs=yes
15121   dynamic_linker='ldqnx.so'
15122   ;;
15123
15124 openbsd*)
15125   version_type=sunos
15126   sys_lib_dlsearch_path_spec="/usr/lib"
15127   need_lib_prefix=no
15128   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15129   case $host_os in
15130     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15131     *)                          need_version=no  ;;
15132   esac
15133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15134   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15135   shlibpath_var=LD_LIBRARY_PATH
15136   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15137     case $host_os in
15138       openbsd2.[89] | openbsd2.[89].*)
15139         shlibpath_overrides_runpath=no
15140         ;;
15141       *)
15142         shlibpath_overrides_runpath=yes
15143         ;;
15144       esac
15145   else
15146     shlibpath_overrides_runpath=yes
15147   fi
15148   ;;
15149
15150 os2*)
15151   libname_spec='$name'
15152   shrext_cmds=".dll"
15153   need_lib_prefix=no
15154   library_names_spec='$libname${shared_ext} $libname.a'
15155   dynamic_linker='OS/2 ld.exe'
15156   shlibpath_var=LIBPATH
15157   ;;
15158
15159 osf3* | osf4* | osf5*)
15160   version_type=osf
15161   need_lib_prefix=no
15162   need_version=no
15163   soname_spec='${libname}${release}${shared_ext}$major'
15164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15165   shlibpath_var=LD_LIBRARY_PATH
15166   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15167   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15168   ;;
15169
15170 rdos*)
15171   dynamic_linker=no
15172   ;;
15173
15174 solaris*)
15175   version_type=linux # correct to gnu/linux during the next big refactor
15176   need_lib_prefix=no
15177   need_version=no
15178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15179   soname_spec='${libname}${release}${shared_ext}$major'
15180   shlibpath_var=LD_LIBRARY_PATH
15181   shlibpath_overrides_runpath=yes
15182   hardcode_into_libs=yes
15183   # ldd complains unless libraries are executable
15184   postinstall_cmds='chmod +x $lib'
15185   ;;
15186
15187 sunos4*)
15188   version_type=sunos
15189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15190   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15191   shlibpath_var=LD_LIBRARY_PATH
15192   shlibpath_overrides_runpath=yes
15193   if test "$with_gnu_ld" = yes; then
15194     need_lib_prefix=no
15195   fi
15196   need_version=yes
15197   ;;
15198
15199 sysv4 | sysv4.3*)
15200   version_type=linux # correct to gnu/linux during the next big refactor
15201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15202   soname_spec='${libname}${release}${shared_ext}$major'
15203   shlibpath_var=LD_LIBRARY_PATH
15204   case $host_vendor in
15205     sni)
15206       shlibpath_overrides_runpath=no
15207       need_lib_prefix=no
15208       runpath_var=LD_RUN_PATH
15209       ;;
15210     siemens)
15211       need_lib_prefix=no
15212       ;;
15213     motorola)
15214       need_lib_prefix=no
15215       need_version=no
15216       shlibpath_overrides_runpath=no
15217       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15218       ;;
15219   esac
15220   ;;
15221
15222 sysv4*MP*)
15223   if test -d /usr/nec ;then
15224     version_type=linux # correct to gnu/linux during the next big refactor
15225     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15226     soname_spec='$libname${shared_ext}.$major'
15227     shlibpath_var=LD_LIBRARY_PATH
15228   fi
15229   ;;
15230
15231 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15232   version_type=freebsd-elf
15233   need_lib_prefix=no
15234   need_version=no
15235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15236   soname_spec='${libname}${release}${shared_ext}$major'
15237   shlibpath_var=LD_LIBRARY_PATH
15238   shlibpath_overrides_runpath=yes
15239   hardcode_into_libs=yes
15240   if test "$with_gnu_ld" = yes; then
15241     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15242   else
15243     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15244     case $host_os in
15245       sco3.2v5*)
15246         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15247         ;;
15248     esac
15249   fi
15250   sys_lib_dlsearch_path_spec='/usr/lib'
15251   ;;
15252
15253 tpf*)
15254   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15255   version_type=linux # correct to gnu/linux during the next big refactor
15256   need_lib_prefix=no
15257   need_version=no
15258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15259   shlibpath_var=LD_LIBRARY_PATH
15260   shlibpath_overrides_runpath=no
15261   hardcode_into_libs=yes
15262   ;;
15263
15264 uts4*)
15265   version_type=linux # correct to gnu/linux during the next big refactor
15266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15267   soname_spec='${libname}${release}${shared_ext}$major'
15268   shlibpath_var=LD_LIBRARY_PATH
15269   ;;
15270
15271 *)
15272   dynamic_linker=no
15273   ;;
15274 esac
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15276 $as_echo "$dynamic_linker" >&6; }
15277 test "$dynamic_linker" = no && can_build_shared=no
15278
15279 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15280 if test "$GCC" = yes; then
15281   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15282 fi
15283
15284 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15285   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15286 fi
15287 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15288   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15289 fi
15290
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15329 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15330 hardcode_action_CXX=
15331 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15332    test -n "$runpath_var_CXX" ||
15333    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15334
15335   # We can hardcode non-existent directories.
15336   if test "$hardcode_direct_CXX" != no &&
15337      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15338      # have to relink, otherwise we might link with an installed library
15339      # when we should be linking with a yet-to-be-installed one
15340      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15341      test "$hardcode_minus_L_CXX" != no; then
15342     # Linking always hardcodes the temporary library directory.
15343     hardcode_action_CXX=relink
15344   else
15345     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15346     hardcode_action_CXX=immediate
15347   fi
15348 else
15349   # We cannot hardcode anything, or else we can only hardcode existing
15350   # directories.
15351   hardcode_action_CXX=unsupported
15352 fi
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15354 $as_echo "$hardcode_action_CXX" >&6; }
15355
15356 if test "$hardcode_action_CXX" = relink ||
15357    test "$inherit_rpath_CXX" = yes; then
15358   # Fast installation is not supported
15359   enable_fast_install=no
15360 elif test "$shlibpath_overrides_runpath" = yes ||
15361      test "$enable_shared" = no; then
15362   # Fast installation is not necessary
15363   enable_fast_install=needless
15364 fi
15365
15366
15367
15368
15369
15370
15371
15372   fi # test -n "$compiler"
15373
15374   CC=$lt_save_CC
15375   CFLAGS=$lt_save_CFLAGS
15376   LDCXX=$LD
15377   LD=$lt_save_LD
15378   GCC=$lt_save_GCC
15379   with_gnu_ld=$lt_save_with_gnu_ld
15380   lt_cv_path_LDCXX=$lt_cv_path_LD
15381   lt_cv_path_LD=$lt_save_path_LD
15382   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15383   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15384 fi # test "$_lt_caught_CXX_error" != yes
15385
15386 ac_ext=cpp
15387 ac_cpp='$CXXCPP $CPPFLAGS'
15388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406         ac_config_commands="$ac_config_commands libtool"
15407
15408
15409
15410
15411 # Only expand once:
15412
15413
15414
15415
15416 # Check whether some low-level functions/files are available
15417
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15419 $as_echo_n "checking for ANSI C header files... " >&6; }
15420 if ${ac_cv_header_stdc+:} false; then :
15421   $as_echo_n "(cached) " >&6
15422 else
15423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15424 /* end confdefs.h.  */
15425 #include <stdlib.h>
15426 #include <stdarg.h>
15427 #include <string.h>
15428 #include <float.h>
15429
15430 int
15431 main ()
15432 {
15433
15434   ;
15435   return 0;
15436 }
15437 _ACEOF
15438 if ac_fn_cxx_try_compile "$LINENO"; then :
15439   ac_cv_header_stdc=yes
15440 else
15441   ac_cv_header_stdc=no
15442 fi
15443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15444
15445 if test $ac_cv_header_stdc = yes; then
15446   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15448 /* end confdefs.h.  */
15449 #include <string.h>
15450
15451 _ACEOF
15452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15453   $EGREP "memchr" >/dev/null 2>&1; then :
15454
15455 else
15456   ac_cv_header_stdc=no
15457 fi
15458 rm -f conftest*
15459
15460 fi
15461
15462 if test $ac_cv_header_stdc = yes; then
15463   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15465 /* end confdefs.h.  */
15466 #include <stdlib.h>
15467
15468 _ACEOF
15469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15470   $EGREP "free" >/dev/null 2>&1; then :
15471
15472 else
15473   ac_cv_header_stdc=no
15474 fi
15475 rm -f conftest*
15476
15477 fi
15478
15479 if test $ac_cv_header_stdc = yes; then
15480   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15481   if test "$cross_compiling" = yes; then :
15482   :
15483 else
15484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15485 /* end confdefs.h.  */
15486 #include <ctype.h>
15487 #include <stdlib.h>
15488 #if ((' ' & 0x0FF) == 0x020)
15489 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15490 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15491 #else
15492 # define ISLOWER(c) \
15493                    (('a' <= (c) && (c) <= 'i') \
15494                      || ('j' <= (c) && (c) <= 'r') \
15495                      || ('s' <= (c) && (c) <= 'z'))
15496 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15497 #endif
15498
15499 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15500 int
15501 main ()
15502 {
15503   int i;
15504   for (i = 0; i < 256; i++)
15505     if (XOR (islower (i), ISLOWER (i))
15506         || toupper (i) != TOUPPER (i))
15507       return 2;
15508   return 0;
15509 }
15510 _ACEOF
15511 if ac_fn_cxx_try_run "$LINENO"; then :
15512
15513 else
15514   ac_cv_header_stdc=no
15515 fi
15516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15517   conftest.$ac_objext conftest.beam conftest.$ac_ext
15518 fi
15519
15520 fi
15521 fi
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15523 $as_echo "$ac_cv_header_stdc" >&6; }
15524 if test $ac_cv_header_stdc = yes; then
15525
15526 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15527
15528 fi
15529
15530
15531 # These are tested for by AC_HEADER_STDC, but I check again to set the var
15532 ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
15533 if test "x$ac_cv_header_stdint_h" = xyes; then :
15534   ac_cv_have_stdint_h=1
15535 else
15536   ac_cv_have_stdint_h=0
15537 fi
15538
15539
15540 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
15541 if test "x$ac_cv_header_sys_types_h" = xyes; then :
15542   ac_cv_have_systypes_h=1
15543 else
15544   ac_cv_have_systypes_h=0
15545 fi
15546
15547
15548 ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
15549 if test "x$ac_cv_header_inttypes_h" = xyes; then :
15550   ac_cv_have_inttypes_h=1
15551 else
15552   ac_cv_have_inttypes_h=0
15553 fi
15554
15555
15556 for ac_header in unistd.h
15557 do :
15558   ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15559 if test "x$ac_cv_header_unistd_h" = xyes; then :
15560   cat >>confdefs.h <<_ACEOF
15561 #define HAVE_UNISTD_H 1
15562 _ACEOF
15563  ac_cv_have_unistd_h=1
15564 else
15565   ac_cv_have_unistd_h=0
15566 fi
15567
15568 done
15569
15570 for ac_header in syscall.h
15571 do :
15572   ac_fn_cxx_check_header_mongrel "$LINENO" "syscall.h" "ac_cv_header_syscall_h" "$ac_includes_default"
15573 if test "x$ac_cv_header_syscall_h" = xyes; then :
15574   cat >>confdefs.h <<_ACEOF
15575 #define HAVE_SYSCALL_H 1
15576 _ACEOF
15577
15578 fi
15579
15580 done
15581
15582 for ac_header in sys/syscall.h
15583 do :
15584   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
15585 if test "x$ac_cv_header_sys_syscall_h" = xyes; then :
15586   cat >>confdefs.h <<_ACEOF
15587 #define HAVE_SYS_SYSCALL_H 1
15588 _ACEOF
15589
15590 fi
15591
15592 done
15593
15594 # For backtrace with glibc.
15595 for ac_header in execinfo.h
15596 do :
15597   ac_fn_cxx_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
15598 if test "x$ac_cv_header_execinfo_h" = xyes; then :
15599   cat >>confdefs.h <<_ACEOF
15600 #define HAVE_EXECINFO_H 1
15601 _ACEOF
15602
15603 fi
15604
15605 done
15606
15607 # For backtrace with libunwind.
15608 for ac_header in libunwind.h
15609 do :
15610   ac_fn_cxx_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
15611 if test "x$ac_cv_header_libunwind_h" = xyes; then :
15612   cat >>confdefs.h <<_ACEOF
15613 #define HAVE_LIBUNWIND_H 1
15614 _ACEOF
15615  ac_cv_have_libunwind_h=1
15616 else
15617   ac_cv_have_libunwind_h=0
15618 fi
15619
15620 done
15621
15622 for ac_header in ucontext.h
15623 do :
15624   ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
15625 if test "x$ac_cv_header_ucontext_h" = xyes; then :
15626   cat >>confdefs.h <<_ACEOF
15627 #define HAVE_UCONTEXT_H 1
15628 _ACEOF
15629
15630 fi
15631
15632 done
15633
15634 for ac_header in sys/utsname.h
15635 do :
15636   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
15637 if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
15638   cat >>confdefs.h <<_ACEOF
15639 #define HAVE_SYS_UTSNAME_H 1
15640 _ACEOF
15641
15642 fi
15643
15644 done
15645
15646 for ac_header in pwd.h
15647 do :
15648   ac_fn_cxx_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
15649 if test "x$ac_cv_header_pwd_h" = xyes; then :
15650   cat >>confdefs.h <<_ACEOF
15651 #define HAVE_PWD_H 1
15652 _ACEOF
15653
15654 fi
15655
15656 done
15657
15658 for ac_header in syslog.h
15659 do :
15660   ac_fn_cxx_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
15661 if test "x$ac_cv_header_syslog_h" = xyes; then :
15662   cat >>confdefs.h <<_ACEOF
15663 #define HAVE_SYSLOG_H 1
15664 _ACEOF
15665
15666 fi
15667
15668 done
15669
15670 for ac_header in sys/time.h
15671 do :
15672   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
15673 if test "x$ac_cv_header_sys_time_h" = xyes; then :
15674   cat >>confdefs.h <<_ACEOF
15675 #define HAVE_SYS_TIME_H 1
15676 _ACEOF
15677
15678 fi
15679
15680 done
15681
15682 for ac_header in glob.h
15683 do :
15684   ac_fn_cxx_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
15685 if test "x$ac_cv_header_glob_h" = xyes; then :
15686   cat >>confdefs.h <<_ACEOF
15687 #define HAVE_GLOB_H 1
15688 _ACEOF
15689
15690 fi
15691
15692 done
15693
15694 # For backtrace with gcc.
15695 for ac_header in unwind.h
15696 do :
15697   ac_fn_cxx_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
15698 if test "x$ac_cv_header_unwind_h" = xyes; then :
15699   cat >>confdefs.h <<_ACEOF
15700 #define HAVE_UNWIND_H 1
15701 _ACEOF
15702
15703 fi
15704
15705 done
15706
15707
15708 # The cast to long int works around a bug in the HP C Compiler
15709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15711 # This bug is HP SR number 8606223364.
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15713 $as_echo_n "checking size of void *... " >&6; }
15714 if ${ac_cv_sizeof_void_p+:} false; then :
15715   $as_echo_n "(cached) " >&6
15716 else
15717   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
15718
15719 else
15720   if test "$ac_cv_type_void_p" = yes; then
15721      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15723 as_fn_error 77 "cannot compute sizeof (void *)
15724 See \`config.log' for more details" "$LINENO" 5; }
15725    else
15726      ac_cv_sizeof_void_p=0
15727    fi
15728 fi
15729
15730 fi
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15732 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15733
15734
15735
15736 cat >>confdefs.h <<_ACEOF
15737 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15738 _ACEOF
15739
15740
15741
15742 # These are the types I need.  We look for them in either stdint.h,
15743 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
15744 ac_fn_cxx_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
15745 if test "x$ac_cv_type_uint16_t" = xyes; then :
15746   ac_cv_have_uint16_t=1
15747 else
15748   ac_cv_have_uint16_t=0
15749 fi
15750
15751 ac_fn_cxx_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
15752 if test "x$ac_cv_type_u_int16_t" = xyes; then :
15753   ac_cv_have_u_int16_t=1
15754 else
15755   ac_cv_have_u_int16_t=0
15756 fi
15757
15758 ac_fn_cxx_check_type "$LINENO" "__uint16" "ac_cv_type___uint16" "$ac_includes_default"
15759 if test "x$ac_cv_type___uint16" = xyes; then :
15760   ac_cv_have___uint16=1
15761 else
15762   ac_cv_have___uint16=0
15763 fi
15764
15765
15766 ac_fn_cxx_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack"
15767 if test "x$ac_cv_func_sigaltstack" = xyes; then :
15768
15769 $as_echo "#define HAVE_SIGALTSTACK 1" >>confdefs.h
15770
15771 fi
15772
15773 ac_fn_cxx_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
15774 if test "x$ac_cv_func_dladdr" = xyes; then :
15775
15776 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
15777
15778 fi
15779
15780 ac_fn_cxx_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
15781 if test "x$ac_cv_func_fcntl" = xyes; then :
15782
15783 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
15784
15785 fi
15786
15787
15788
15789   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
15790 $as_echo_n "checking for __attribute__... " >&6; }
15791   if ${ac_cv___attribute__+:} false; then :
15792   $as_echo_n "(cached) " >&6
15793 else
15794
15795     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15796 /* end confdefs.h.  */
15797 #include <stdlib.h>
15798        static void foo(void) __attribute__ ((unused));
15799        void foo(void) { exit(1); }
15800 int
15801 main ()
15802 {
15803
15804   ;
15805   return 0;
15806 }
15807 _ACEOF
15808 if ac_fn_cxx_try_compile "$LINENO"; then :
15809   ac_cv___attribute__=yes
15810 else
15811   ac_cv___attribute__=no
15812
15813 fi
15814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15815 fi
15816
15817   if test "$ac_cv___attribute__" = "yes"; then
15818
15819 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
15820
15821   fi
15822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
15823 $as_echo "$ac_cv___attribute__" >&6; }
15824
15825 # We only care about these two attributes.
15826 if test x"$ac_cv___attribute__" = x"yes"; then
15827   ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
15828   ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
15829 else
15830   ac_cv___attribute___noreturn=
15831   ac_cv___attribute___printf_4_5=
15832 fi
15833
15834
15835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
15836 $as_echo_n "checking for __builtin_expect... " >&6; }
15837   if ${ac_cv___builtin_expect+:} false; then :
15838   $as_echo_n "(cached) " >&6
15839 else
15840
15841     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842 /* end confdefs.h.  */
15843 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
15844 int
15845 main ()
15846 {
15847
15848   ;
15849   return 0;
15850 }
15851 _ACEOF
15852 if ac_fn_cxx_try_compile "$LINENO"; then :
15853   ac_cv___builtin_expect=yes
15854 else
15855   ac_cv___builtin_expect=no
15856
15857 fi
15858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15859 fi
15860
15861   if test "$ac_cv___builtin_expect" = "yes"; then
15862
15863 $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
15864
15865   fi
15866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___builtin_expect" >&5
15867 $as_echo "$ac_cv___builtin_expect" >&6; }
15868
15869 if test x"$ac_cv___builtin_expect" = x"yes"; then
15870   ac_cv_have___builtin_expect=1
15871 else
15872   ac_cv_have___builtin_expect=0
15873 fi
15874
15875
15876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_val_compare_and_swap" >&5
15877 $as_echo_n "checking for __sync_val_compare_and_swap... " >&6; }
15878   if ${ac_cv___sync_val_compare_and_swap+:} false; then :
15879   $as_echo_n "(cached) " >&6
15880 else
15881
15882     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15883 /* end confdefs.h.  */
15884
15885 int
15886 main ()
15887 {
15888 int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0;
15889   ;
15890   return 0;
15891 }
15892 _ACEOF
15893 if ac_fn_cxx_try_link "$LINENO"; then :
15894   ac_cv___sync_val_compare_and_swap=yes
15895 else
15896   ac_cv___sync_val_compare_and_swap=no
15897
15898 fi
15899 rm -f core conftest.err conftest.$ac_objext \
15900     conftest$ac_exeext conftest.$ac_ext
15901 fi
15902
15903   if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then
15904
15905 $as_echo "#define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1" >>confdefs.h
15906
15907   fi
15908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___sync_val_compare_and_swap" >&5
15909 $as_echo "$ac_cv___sync_val_compare_and_swap" >&6; }
15910
15911
15912 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
15913 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
15914 # Check whether --enable-frame_pointers was given.
15915 if test "${enable_frame_pointers+set}" = set; then :
15916   enableval=$enable_frame_pointers;
15917 else
15918   enable_frame_pointers=no
15919 fi
15920
15921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15922 /* end confdefs.h.  */
15923
15924 int
15925 main ()
15926 {
15927 return __x86_64__ == 1 ? 0 : 1
15928   ;
15929   return 0;
15930 }
15931 _ACEOF
15932 if ac_fn_cxx_try_compile "$LINENO"; then :
15933   is_x86_64=yes
15934 else
15935   is_x86_64=no
15936 fi
15937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15938  if test "$enable_frame_pointers" = yes; then
15939   ENABLE_FRAME_POINTERS_TRUE=
15940   ENABLE_FRAME_POINTERS_FALSE='#'
15941 else
15942   ENABLE_FRAME_POINTERS_TRUE='#'
15943   ENABLE_FRAME_POINTERS_FALSE=
15944 fi
15945
15946  if test "$is_x86_64" = yes; then
15947   X86_64_TRUE=
15948   X86_64_FALSE='#'
15949 else
15950   X86_64_TRUE='#'
15951   X86_64_FALSE=
15952 fi
15953
15954
15955 # Check whether --enable-rtti was given.
15956 if test "${enable_rtti+set}" = set; then :
15957   enableval=$enable_rtti;
15958 fi
15959
15960  if test x"$enable_rtti" = x"no"; then
15961   DISABLE_RTTI_TRUE=
15962   DISABLE_RTTI_FALSE='#'
15963 else
15964   DISABLE_RTTI_TRUE='#'
15965   DISABLE_RTTI_FALSE=
15966 fi
15967
15968 if test x"$enable_rtti" = x"no"; then
15969
15970 $as_echo "#define DISABLE_RTTI 1" >>confdefs.h
15971
15972 fi
15973
15974 # Some of the code in this directory depends on pthreads
15975
15976
15977
15978 ac_ext=c
15979 ac_cpp='$CPP $CPPFLAGS'
15980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15983
15984 acx_pthread_ok=no
15985
15986 # We used to check for pthread.h first, but this fails if pthread.h
15987 # requires special compiler flags (e.g. on True64 or Sequent).
15988 # It gets checked for in the link test anyway.
15989
15990 # First of all, check if the user has set any of the PTHREAD_LIBS,
15991 # etcetera environment variables, and if threads linking works using
15992 # them:
15993 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15994         save_CFLAGS="$CFLAGS"
15995         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15996         save_LIBS="$LIBS"
15997         LIBS="$PTHREAD_LIBS $LIBS"
15998         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15999 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16000         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16001 /* end confdefs.h.  */
16002
16003 /* Override any GCC internal prototype to avoid an error.
16004    Use char because int might match the return type of a GCC
16005    builtin and then its argument prototype would still apply.  */
16006 #ifdef __cplusplus
16007 extern "C"
16008 #endif
16009 char pthread_join ();
16010 int
16011 main ()
16012 {
16013 return pthread_join ();
16014   ;
16015   return 0;
16016 }
16017 _ACEOF
16018 if ac_fn_c_try_link "$LINENO"; then :
16019   acx_pthread_ok=yes
16020 fi
16021 rm -f core conftest.err conftest.$ac_objext \
16022     conftest$ac_exeext conftest.$ac_ext
16023         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16024 $as_echo "$acx_pthread_ok" >&6; }
16025         if test x"$acx_pthread_ok" = xno; then
16026                 PTHREAD_LIBS=""
16027                 PTHREAD_CFLAGS=""
16028         fi
16029         LIBS="$save_LIBS"
16030         CFLAGS="$save_CFLAGS"
16031 fi
16032
16033 # We must check for the threads library under a number of different
16034 # names; the ordering is very important because some systems
16035 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16036 # libraries is broken (non-POSIX).
16037
16038 # Create a list of thread flags to try.  Items starting with a "-" are
16039 # C compiler flags, and other items are library names, except for "none"
16040 # which indicates that we try without any flags at all, and "pthread-config"
16041 # which is a program returning the flags for the Pth emulation library.
16042
16043 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16044
16045 # The ordering *is* (sometimes) important.  Some notes on the
16046 # individual items follow:
16047
16048 # pthreads: AIX (must check this before -lpthread)
16049 # none: in case threads are in libc; should be tried before -Kthread and
16050 #       other compiler flags to prevent continual compiler warnings
16051 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16052 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16053 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16054 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16055 # -pthreads: Solaris/gcc
16056 # -mthreads: Mingw32/gcc, Lynx/gcc
16057 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16058 #      doesn't hurt to check since this sometimes defines pthreads too;
16059 #      also defines -D_REENTRANT)
16060 #      ... -mt is also the pthreads flag for HP/aCC
16061 # pthread: Linux, etcetera
16062 # --thread-safe: KAI C++
16063 # pthread-config: use pthread-config program (for GNU Pth library)
16064
16065 case "${host_cpu}-${host_os}" in
16066         *solaris*)
16067
16068         # On Solaris (at least, for some versions), libc contains stubbed
16069         # (non-functional) versions of the pthreads routines, so link-based
16070         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
16071         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
16072         # a function called by this macro, so we could check for that, but
16073         # who knows whether they'll stub that too in a future libc.)  So,
16074         # we'll just look for -pthreads and -lpthread first:
16075
16076         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
16077         ;;
16078 esac
16079
16080 if test x"$acx_pthread_ok" = xno; then
16081 for flag in $acx_pthread_flags; do
16082
16083         case $flag in
16084                 none)
16085                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16086 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16087                 ;;
16088
16089                 -*)
16090                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16091 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16092                 PTHREAD_CFLAGS="$flag"
16093                 ;;
16094
16095                 pthread-config)
16096                 # Extract the first word of "pthread-config", so it can be a program name with args.
16097 set dummy pthread-config; ac_word=$2
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16099 $as_echo_n "checking for $ac_word... " >&6; }
16100 if ${ac_cv_prog_acx_pthread_config+:} false; then :
16101   $as_echo_n "(cached) " >&6
16102 else
16103   if test -n "$acx_pthread_config"; then
16104   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16105 else
16106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16107 for as_dir in $PATH
16108 do
16109   IFS=$as_save_IFS
16110   test -z "$as_dir" && as_dir=.
16111     for ac_exec_ext in '' $ac_executable_extensions; do
16112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16113     ac_cv_prog_acx_pthread_config="yes"
16114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16115     break 2
16116   fi
16117 done
16118   done
16119 IFS=$as_save_IFS
16120
16121   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16122 fi
16123 fi
16124 acx_pthread_config=$ac_cv_prog_acx_pthread_config
16125 if test -n "$acx_pthread_config"; then
16126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
16127 $as_echo "$acx_pthread_config" >&6; }
16128 else
16129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16130 $as_echo "no" >&6; }
16131 fi
16132
16133
16134                 if test x"$acx_pthread_config" = xno; then continue; fi
16135                 PTHREAD_CFLAGS="`pthread-config --cflags`"
16136                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16137                 ;;
16138
16139                 *)
16140                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16141 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16142                 PTHREAD_LIBS="-l$flag"
16143                 ;;
16144         esac
16145
16146         save_LIBS="$LIBS"
16147         save_CFLAGS="$CFLAGS"
16148         LIBS="$PTHREAD_LIBS $LIBS"
16149         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16150
16151         # Check for various functions.  We must include pthread.h,
16152         # since some functions may be macros.  (On the Sequent, we
16153         # need a special flag -Kthread to make this header compile.)
16154         # We check for pthread_join because it is in -lpthread on IRIX
16155         # while pthread_create is in libc.  We check for pthread_attr_init
16156         # due to DEC craziness with -lpthreads.  We check for
16157         # pthread_cleanup_push because it is one of the few pthread
16158         # functions on Solaris that doesn't have a non-functional libc stub.
16159         # We try pthread_create on general principles.
16160         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16161 /* end confdefs.h.  */
16162 #include <pthread.h>
16163 int
16164 main ()
16165 {
16166 pthread_t th; pthread_join(th, 0);
16167                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
16168                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16169   ;
16170   return 0;
16171 }
16172 _ACEOF
16173 if ac_fn_c_try_link "$LINENO"; then :
16174   acx_pthread_ok=yes
16175 fi
16176 rm -f core conftest.err conftest.$ac_objext \
16177     conftest$ac_exeext conftest.$ac_ext
16178
16179         LIBS="$save_LIBS"
16180         CFLAGS="$save_CFLAGS"
16181
16182         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16183 $as_echo "$acx_pthread_ok" >&6; }
16184         if test "x$acx_pthread_ok" = xyes; then
16185                 break;
16186         fi
16187
16188         PTHREAD_LIBS=""
16189         PTHREAD_CFLAGS=""
16190 done
16191 fi
16192
16193 # Various other checks:
16194 if test "x$acx_pthread_ok" = xyes; then
16195         save_LIBS="$LIBS"
16196         LIBS="$PTHREAD_LIBS $LIBS"
16197         save_CFLAGS="$CFLAGS"
16198         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16199
16200         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16201         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16202 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16203         attr_name=unknown
16204         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16205             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16206 /* end confdefs.h.  */
16207 #include <pthread.h>
16208 int
16209 main ()
16210 {
16211 int attr=$attr; return attr;
16212   ;
16213   return 0;
16214 }
16215 _ACEOF
16216 if ac_fn_c_try_link "$LINENO"; then :
16217   attr_name=$attr; break
16218 fi
16219 rm -f core conftest.err conftest.$ac_objext \
16220     conftest$ac_exeext conftest.$ac_ext
16221         done
16222         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16223 $as_echo "$attr_name" >&6; }
16224         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16225
16226 cat >>confdefs.h <<_ACEOF
16227 #define PTHREAD_CREATE_JOINABLE $attr_name
16228 _ACEOF
16229
16230         fi
16231
16232         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16233 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16234         flag=no
16235         case "${host_cpu}-${host_os}" in
16236             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16237             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16238         esac
16239         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
16240 $as_echo "${flag}" >&6; }
16241         if test "x$flag" != xno; then
16242             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16243         fi
16244
16245         LIBS="$save_LIBS"
16246         CFLAGS="$save_CFLAGS"
16247         # More AIX lossage: must compile with xlc_r or cc_r
16248         if test x"$GCC" != xyes; then
16249           for ac_prog in xlc_r cc_r
16250 do
16251   # Extract the first word of "$ac_prog", so it can be a program name with args.
16252 set dummy $ac_prog; ac_word=$2
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16254 $as_echo_n "checking for $ac_word... " >&6; }
16255 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16256   $as_echo_n "(cached) " >&6
16257 else
16258   if test -n "$PTHREAD_CC"; then
16259   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16260 else
16261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16262 for as_dir in $PATH
16263 do
16264   IFS=$as_save_IFS
16265   test -z "$as_dir" && as_dir=.
16266     for ac_exec_ext in '' $ac_executable_extensions; do
16267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16268     ac_cv_prog_PTHREAD_CC="$ac_prog"
16269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16270     break 2
16271   fi
16272 done
16273   done
16274 IFS=$as_save_IFS
16275
16276 fi
16277 fi
16278 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16279 if test -n "$PTHREAD_CC"; then
16280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16281 $as_echo "$PTHREAD_CC" >&6; }
16282 else
16283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16284 $as_echo "no" >&6; }
16285 fi
16286
16287
16288   test -n "$PTHREAD_CC" && break
16289 done
16290 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
16291
16292         else
16293           PTHREAD_CC=$CC
16294         fi
16295
16296         # The next part tries to detect GCC inconsistency with -shared on some
16297         # architectures and systems. The problem is that in certain
16298         # configurations, when -shared is specified, GCC "forgets" to
16299         # internally use various flags which are still necessary.
16300
16301         #
16302         # Prepare the flags
16303         #
16304         save_CFLAGS="$CFLAGS"
16305         save_LIBS="$LIBS"
16306         save_CC="$CC"
16307
16308         # Try with the flags determined by the earlier checks.
16309         #
16310         # -Wl,-z,defs forces link-time symbol resolution, so that the
16311         # linking checks with -shared actually have any value
16312         #
16313         # FIXME: -fPIC is required for -shared on many architectures,
16314         # so we specify it here, but the right way would probably be to
16315         # properly detect whether it is actually required.
16316         CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
16317         LIBS="$PTHREAD_LIBS $LIBS"
16318         CC="$PTHREAD_CC"
16319
16320         # In order not to create several levels of indentation, we test
16321         # the value of "$done" until we find the cure or run out of ideas.
16322         done="no"
16323
16324         # First, make sure the CFLAGS we added are actually accepted by our
16325         # compiler.  If not (and OS X's ld, for instance, does not accept -z),
16326         # then we can't do this test.
16327         if test x"$done" = xno; then
16328            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
16329 $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
16330            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16331 /* end confdefs.h.  */
16332
16333 int
16334 main ()
16335 {
16336
16337   ;
16338   return 0;
16339 }
16340 _ACEOF
16341 if ac_fn_c_try_link "$LINENO"; then :
16342
16343 else
16344   done=yes
16345 fi
16346 rm -f core conftest.err conftest.$ac_objext \
16347     conftest$ac_exeext conftest.$ac_ext
16348
16349            if test "x$done" = xyes ; then
16350               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16351 $as_echo "no" >&6; }
16352            else
16353               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16354 $as_echo "yes" >&6; }
16355            fi
16356         fi
16357
16358         if test x"$done" = xno; then
16359            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
16360 $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
16361            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16362 /* end confdefs.h.  */
16363 #include <pthread.h>
16364 int
16365 main ()
16366 {
16367 pthread_t th; pthread_join(th, 0);
16368               pthread_attr_init(0); pthread_cleanup_push(0, 0);
16369               pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16370   ;
16371   return 0;
16372 }
16373 _ACEOF
16374 if ac_fn_c_try_link "$LINENO"; then :
16375   done=yes
16376 fi
16377 rm -f core conftest.err conftest.$ac_objext \
16378     conftest$ac_exeext conftest.$ac_ext
16379
16380            if test "x$done" = xyes; then
16381               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16382 $as_echo "yes" >&6; }
16383            else
16384               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16385 $as_echo "no" >&6; }
16386            fi
16387         fi
16388
16389         #
16390         # Linux gcc on some architectures such as mips/mipsel forgets
16391         # about -lpthread
16392         #
16393         if test x"$done" = xno; then
16394            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
16395 $as_echo_n "checking whether -lpthread fixes that... " >&6; }
16396            LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
16397            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16398 /* end confdefs.h.  */
16399 #include <pthread.h>
16400 int
16401 main ()
16402 {
16403 pthread_t th; pthread_join(th, 0);
16404               pthread_attr_init(0); pthread_cleanup_push(0, 0);
16405               pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16406   ;
16407   return 0;
16408 }
16409 _ACEOF
16410 if ac_fn_c_try_link "$LINENO"; then :
16411   done=yes
16412 fi
16413 rm -f core conftest.err conftest.$ac_objext \
16414     conftest$ac_exeext conftest.$ac_ext
16415
16416            if test "x$done" = xyes; then
16417               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16418 $as_echo "yes" >&6; }
16419               PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
16420            else
16421               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16422 $as_echo "no" >&6; }
16423            fi
16424         fi
16425         #
16426         # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
16427         #
16428         if test x"$done" = xno; then
16429            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
16430 $as_echo_n "checking whether -lc_r fixes that... " >&6; }
16431            LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
16432            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16433 /* end confdefs.h.  */
16434 #include <pthread.h>
16435 int
16436 main ()
16437 {
16438 pthread_t th; pthread_join(th, 0);
16439                 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16440                 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16441   ;
16442   return 0;
16443 }
16444 _ACEOF
16445 if ac_fn_c_try_link "$LINENO"; then :
16446   done=yes
16447 fi
16448 rm -f core conftest.err conftest.$ac_objext \
16449     conftest$ac_exeext conftest.$ac_ext
16450
16451            if test "x$done" = xyes; then
16452               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16453 $as_echo "yes" >&6; }
16454               PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
16455            else
16456               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16457 $as_echo "no" >&6; }
16458            fi
16459         fi
16460         if test x"$done" = xno; then
16461            # OK, we have run out of ideas
16462            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
16463 $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
16464
16465            # so it's not safe to assume that we may use pthreads
16466            acx_pthread_ok=no
16467         fi
16468
16469         CFLAGS="$save_CFLAGS"
16470         LIBS="$save_LIBS"
16471         CC="$save_CC"
16472 else
16473         PTHREAD_CC="$CC"
16474 fi
16475
16476
16477
16478
16479
16480 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16481 if test x"$acx_pthread_ok" = xyes; then
16482
16483 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16484
16485         :
16486 else
16487         acx_pthread_ok=no
16488
16489 fi
16490 ac_ext=cpp
16491 ac_cpp='$CXXCPP $CPPFLAGS'
16492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16495
16496
16497 if test x"$acx_pthread_ok" = x"yes"; then
16498   # To make libglog depend on libpthread on Linux, we need to add
16499   # -lpthread in addition to -pthread.
16500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
16501 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
16502 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
16503   $as_echo_n "(cached) " >&6
16504 else
16505   ac_check_lib_save_LIBS=$LIBS
16506 LIBS="-lpthread  $LIBS"
16507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16508 /* end confdefs.h.  */
16509
16510 /* Override any GCC internal prototype to avoid an error.
16511    Use char because int might match the return type of a GCC
16512    builtin and then its argument prototype would still apply.  */
16513 #ifdef __cplusplus
16514 extern "C"
16515 #endif
16516 char pthread_self ();
16517 int
16518 main ()
16519 {
16520 return pthread_self ();
16521   ;
16522   return 0;
16523 }
16524 _ACEOF
16525 if ac_fn_cxx_try_link "$LINENO"; then :
16526   ac_cv_lib_pthread_pthread_self=yes
16527 else
16528   ac_cv_lib_pthread_pthread_self=no
16529 fi
16530 rm -f core conftest.err conftest.$ac_objext \
16531     conftest$ac_exeext conftest.$ac_ext
16532 LIBS=$ac_check_lib_save_LIBS
16533 fi
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
16535 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
16536 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
16537   cat >>confdefs.h <<_ACEOF
16538 #define HAVE_LIBPTHREAD 1
16539 _ACEOF
16540
16541   LIBS="-lpthread $LIBS"
16542
16543 fi
16544
16545 fi
16546
16547 # Check if there is google-gflags library installed.
16548 SAVE_CFLAGS="$CFLAGS"
16549 SAVE_LIBS="$LIBS"
16550
16551 # Check whether --with-gflags was given.
16552 if test "${with_gflags+set}" = set; then :
16553   withval=$with_gflags; GFLAGS_CFLAGS="-I${with_gflags}/include"
16554   GFLAGS_LIBS="-L${with_gflags}/lib -lgflags"
16555   CFLAGS="$CFLAGS $GFLAGS_CFLAGS"
16556   LIBS="$LIBS $GFLAGS_LIBS"
16557
16558 fi
16559
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgflags" >&5
16561 $as_echo_n "checking for main in -lgflags... " >&6; }
16562 if ${ac_cv_lib_gflags_main+:} false; then :
16563   $as_echo_n "(cached) " >&6
16564 else
16565   ac_check_lib_save_LIBS=$LIBS
16566 LIBS="-lgflags  $LIBS"
16567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16568 /* end confdefs.h.  */
16569
16570
16571 int
16572 main ()
16573 {
16574 return main ();
16575   ;
16576   return 0;
16577 }
16578 _ACEOF
16579 if ac_fn_cxx_try_link "$LINENO"; then :
16580   ac_cv_lib_gflags_main=yes
16581 else
16582   ac_cv_lib_gflags_main=no
16583 fi
16584 rm -f core conftest.err conftest.$ac_objext \
16585     conftest$ac_exeext conftest.$ac_ext
16586 LIBS=$ac_check_lib_save_LIBS
16587 fi
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gflags_main" >&5
16589 $as_echo "$ac_cv_lib_gflags_main" >&6; }
16590 if test "x$ac_cv_lib_gflags_main" = xyes; then :
16591   ac_cv_have_libgflags=1
16592 else
16593   ac_cv_have_libgflags=0
16594 fi
16595
16596 if test x"$ac_cv_have_libgflags" = x"1"; then
16597
16598 $as_echo "#define HAVE_LIB_GFLAGS 1" >>confdefs.h
16599
16600   if test x"$GFLAGS_LIBS" = x""; then
16601     GFLAGS_LIBS="-lgflags"
16602   fi
16603 else
16604   GFLAGS_CFLAGS=
16605   GFLAGS_LIBS=
16606 fi
16607 CFLAGS="$SAVE_CFLAGS"
16608 LIBS="$SAVE_LIBS"
16609
16610 # TODO(hamaji): Use official m4 macros provided by testing libraries
16611 #               once the m4 macro of Google Mocking becomes ready.
16612 # Check if there is Google Test library installed.
16613 # Extract the first word of "gtest-config", so it can be a program name with args.
16614 set dummy gtest-config; ac_word=$2
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16616 $as_echo_n "checking for $ac_word... " >&6; }
16617 if ${ac_cv_prog_GTEST_CONFIG+:} false; then :
16618   $as_echo_n "(cached) " >&6
16619 else
16620   if test -n "$GTEST_CONFIG"; then
16621   ac_cv_prog_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test.
16622 else
16623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16624 for as_dir in $PATH
16625 do
16626   IFS=$as_save_IFS
16627   test -z "$as_dir" && as_dir=.
16628     for ac_exec_ext in '' $ac_executable_extensions; do
16629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16630     ac_cv_prog_GTEST_CONFIG=""yes""
16631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16632     break 2
16633   fi
16634 done
16635   done
16636 IFS=$as_save_IFS
16637
16638 fi
16639 fi
16640 GTEST_CONFIG=$ac_cv_prog_GTEST_CONFIG
16641 if test -n "$GTEST_CONFIG"; then
16642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
16643 $as_echo "$GTEST_CONFIG" >&6; }
16644 else
16645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16646 $as_echo "no" >&6; }
16647 fi
16648
16649
16650 if test x"$GTEST_CONFIG" = "xyes"; then
16651   GTEST_CFLAGS=`gtest-config --cppflags --cxxflags`
16652   GTEST_LIBS=`gtest-config --ldflags --libs`
16653
16654 $as_echo "#define HAVE_LIB_GTEST 1" >>confdefs.h
16655
16656
16657   # Check if there is Google Mocking library installed.
16658   # Extract the first word of "gmock-config", so it can be a program name with args.
16659 set dummy gmock-config; ac_word=$2
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16661 $as_echo_n "checking for $ac_word... " >&6; }
16662 if ${ac_cv_prog_GMOCK_CONFIG+:} false; then :
16663   $as_echo_n "(cached) " >&6
16664 else
16665   if test -n "$GMOCK_CONFIG"; then
16666   ac_cv_prog_GMOCK_CONFIG="$GMOCK_CONFIG" # Let the user override the test.
16667 else
16668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16669 for as_dir in $PATH
16670 do
16671   IFS=$as_save_IFS
16672   test -z "$as_dir" && as_dir=.
16673     for ac_exec_ext in '' $ac_executable_extensions; do
16674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16675     ac_cv_prog_GMOCK_CONFIG=""yes""
16676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16677     break 2
16678   fi
16679 done
16680   done
16681 IFS=$as_save_IFS
16682
16683 fi
16684 fi
16685 GMOCK_CONFIG=$ac_cv_prog_GMOCK_CONFIG
16686 if test -n "$GMOCK_CONFIG"; then
16687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMOCK_CONFIG" >&5
16688 $as_echo "$GMOCK_CONFIG" >&6; }
16689 else
16690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16691 $as_echo "no" >&6; }
16692 fi
16693
16694
16695   if test x"$GMOCK_CONFIG" = "xyes"; then
16696     GMOCK_CFLAGS=`gmock-config --cppflags --cxxflags`
16697     GMOCK_LIBS=`gmock-config --ldflags --libs`
16698
16699 $as_echo "#define HAVE_LIB_GMOCK 1" >>confdefs.h
16700
16701   else
16702     # We don't run test cases which use Google Mocking framework.
16703     GMOCK_CFLAGS=
16704     GMOCK_LIBS=
16705   fi
16706 else
16707   # We'll use src/googletest.h for our unittests.
16708   GTEST_CFLAGS=
16709   GTEST_LIBS=
16710 fi
16711  if test x"$GMOCK_CONFIG" = "xyes"; then
16712   HAVE_GMOCK_TRUE=
16713   HAVE_GMOCK_FALSE='#'
16714 else
16715   HAVE_GMOCK_TRUE='#'
16716   HAVE_GMOCK_FALSE=
16717 fi
16718
16719
16720 # We want to link in libunwind if it exists
16721 UNWIND_LIBS=
16722 # Unfortunately, we need to check the header file in addition to the
16723 # lib file to check if libunwind is available since libunwind-0.98
16724 # doesn't install all necessary header files.
16725 if test x"$ac_cv_have_libunwind_h" = x"1"; then
16726  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5
16727 $as_echo_n "checking for backtrace in -lunwind... " >&6; }
16728 if ${ac_cv_lib_unwind_backtrace+:} false; then :
16729   $as_echo_n "(cached) " >&6
16730 else
16731   ac_check_lib_save_LIBS=$LIBS
16732 LIBS="-lunwind  $LIBS"
16733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16734 /* end confdefs.h.  */
16735
16736 /* Override any GCC internal prototype to avoid an error.
16737    Use char because int might match the return type of a GCC
16738    builtin and then its argument prototype would still apply.  */
16739 #ifdef __cplusplus
16740 extern "C"
16741 #endif
16742 char backtrace ();
16743 int
16744 main ()
16745 {
16746 return backtrace ();
16747   ;
16748   return 0;
16749 }
16750 _ACEOF
16751 if ac_fn_cxx_try_link "$LINENO"; then :
16752   ac_cv_lib_unwind_backtrace=yes
16753 else
16754   ac_cv_lib_unwind_backtrace=no
16755 fi
16756 rm -f core conftest.err conftest.$ac_objext \
16757     conftest$ac_exeext conftest.$ac_ext
16758 LIBS=$ac_check_lib_save_LIBS
16759 fi
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5
16761 $as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
16762 if test "x$ac_cv_lib_unwind_backtrace" = xyes; then :
16763   UNWIND_LIBS=-lunwind
16764 fi
16765
16766 fi
16767
16768 if test x"$UNWIND_LIBS" != x""; then
16769
16770 $as_echo "#define HAVE_LIB_UNWIND 1" >>confdefs.h
16771
16772 fi
16773
16774 # We'd like to use read/write locks in several places in the code.
16775 # See if our pthreads support extends to that.  Note: for linux, it
16776 # does as long as you define _XOPEN_SOURCE appropriately.
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for pthread_rwlock_* functions" >&5
16778 $as_echo_n "checking support for pthread_rwlock_* functions... " >&6; }
16779 if ${ac_cv_rwlock+:} false; then :
16780   $as_echo_n "(cached) " >&6
16781 else
16782
16783  ac_ext=c
16784 ac_cpp='$CPP $CPPFLAGS'
16785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16788
16789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16790 /* end confdefs.h.  */
16791 #define _XOPEN_SOURCE 500
16792                  #include <pthread.h>
16793 int
16794 main ()
16795 {
16796 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
16797                  pthread_rwlock_rdlock(&l);
16798                  return 0;
16799   ;
16800   return 0;
16801 }
16802 _ACEOF
16803 if ac_fn_c_try_compile "$LINENO"; then :
16804   ac_cv_rwlock=yes
16805 else
16806   ac_cv_rwlock=no
16807 fi
16808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16809  ac_ext=cpp
16810 ac_cpp='$CXXCPP $CPPFLAGS'
16811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16814
16815
16816 fi
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rwlock" >&5
16818 $as_echo "$ac_cv_rwlock" >&6; }
16819 if test "$ac_cv_rwlock" = yes; then
16820
16821 $as_echo "#define HAVE_RWLOCK 1" >>confdefs.h
16822
16823 fi
16824
16825
16826 # Find out what namespace 'normal' STL code lives in, and also what namespace
16827 # the user wants our classes to be defined in
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
16829 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
16830 if ${ac_cv_cxx_namespaces+:} false; then :
16831   $as_echo_n "(cached) " >&6
16832 else
16833
16834                   ac_ext=cpp
16835 ac_cpp='$CXXCPP $CPPFLAGS'
16836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16839
16840                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16841 /* end confdefs.h.  */
16842 namespace Outer {
16843                                     namespace Inner { int i = 0; }}
16844 int
16845 main ()
16846 {
16847 using namespace Outer::Inner; return i;
16848   ;
16849   return 0;
16850 }
16851 _ACEOF
16852 if ac_fn_cxx_try_compile "$LINENO"; then :
16853   ac_cv_cxx_namespaces=yes
16854 else
16855   ac_cv_cxx_namespaces=no
16856 fi
16857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16858                   ac_ext=cpp
16859 ac_cpp='$CXXCPP $CPPFLAGS'
16860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16863
16864 fi
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
16866 $as_echo "$ac_cv_cxx_namespaces" >&6; }
16867   if test "$ac_cv_cxx_namespaces" = yes; then
16868
16869 $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
16870
16871   fi
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what namespace STL code is in" >&5
16873 $as_echo_n "checking what namespace STL code is in... " >&6; }
16874 if ${ac_cv_cxx_stl_namespace+:} false; then :
16875   $as_echo_n "(cached) " >&6
16876 else
16877
16878
16879       ac_ext=cpp
16880 ac_cpp='$CXXCPP $CPPFLAGS'
16881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16884
16885       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16886 /* end confdefs.h.  */
16887 #include <vector>
16888 int
16889 main ()
16890 {
16891 vector<int> t; return 0;
16892   ;
16893   return 0;
16894 }
16895 _ACEOF
16896 if ac_fn_cxx_try_compile "$LINENO"; then :
16897   ac_cv_cxx_stl_namespace=none
16898 fi
16899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16900       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16901 /* end confdefs.h.  */
16902 #include <vector>
16903 int
16904 main ()
16905 {
16906 std::vector<int> t; return 0;
16907   ;
16908   return 0;
16909 }
16910 _ACEOF
16911 if ac_fn_cxx_try_compile "$LINENO"; then :
16912   ac_cv_cxx_stl_namespace=std
16913 fi
16914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16915       ac_ext=cpp
16916 ac_cpp='$CXXCPP $CPPFLAGS'
16917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16920
16921 fi
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_stl_namespace" >&5
16923 $as_echo "$ac_cv_cxx_stl_namespace" >&6; }
16924    if test "$ac_cv_cxx_stl_namespace" = none; then
16925
16926 $as_echo "#define STL_NAMESPACE /**/" >>confdefs.h
16927
16928    fi
16929    if test "$ac_cv_cxx_stl_namespace" = std; then
16930
16931 $as_echo "#define STL_NAMESPACE std" >>confdefs.h
16932
16933    fi
16934
16935 google_namespace_default=google
16936    # Check whether --enable-namespace was given.
16937 if test "${enable_namespace+set}" = set; then :
16938   enableval=$enable_namespace; case "$enableval" in
16939                     yes) google_namespace="$google_namespace_default" ;;
16940                      no) google_namespace="" ;;
16941                       *) google_namespace="$enableval" ;;
16942                   esac
16943 else
16944   google_namespace="$google_namespace_default"
16945 fi
16946
16947    if test -n "$google_namespace"; then
16948      ac_google_namespace="$google_namespace"
16949      ac_google_start_namespace="namespace $google_namespace {"
16950      ac_google_end_namespace="}"
16951    else
16952      ac_google_namespace=""
16953      ac_google_start_namespace=""
16954      ac_google_end_namespace=""
16955    fi
16956
16957 cat >>confdefs.h <<_ACEOF
16958 #define GOOGLE_NAMESPACE $ac_google_namespace
16959 _ACEOF
16960
16961
16962 cat >>confdefs.h <<_ACEOF
16963 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
16964 _ACEOF
16965
16966
16967 cat >>confdefs.h <<_ACEOF
16968 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
16969 _ACEOF
16970
16971
16972
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports using ::operator<<" >&5
16974 $as_echo_n "checking whether compiler supports using ::operator<<... " >&6; }
16975 if ${ac_cv_cxx_using_operator+:} false; then :
16976   $as_echo_n "(cached) " >&6
16977 else
16978
16979        ac_ext=cpp
16980 ac_cpp='$CXXCPP $CPPFLAGS'
16981 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16982 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16983 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16984
16985        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16986 /* end confdefs.h.  */
16987 #include <iostream>
16988                        std::ostream& operator<<(std::ostream&, struct s);
16989 int
16990 main ()
16991 {
16992 using ::operator<<; return 0;
16993   ;
16994   return 0;
16995 }
16996 _ACEOF
16997 if ac_fn_cxx_try_compile "$LINENO"; then :
16998   ac_cv_cxx_using_operator=1
16999 else
17000   ac_cv_cxx_using_operator=0
17001 fi
17002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17003       ac_ext=cpp
17004 ac_cpp='$CXXCPP $CPPFLAGS'
17005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17008
17009 fi
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_using_operator" >&5
17011 $as_echo "$ac_cv_cxx_using_operator" >&6; }
17012   if test "$ac_cv_cxx_using_operator" = 1; then
17013
17014 $as_echo "#define HAVE_USING_OPERATOR 1" >>confdefs.h
17015
17016   fi
17017
17018 for ac_header in ucontext.h
17019 do :
17020   ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
17021 if test "x$ac_cv_header_ucontext_h" = xyes; then :
17022   cat >>confdefs.h <<_ACEOF
17023 #define HAVE_UCONTEXT_H 1
17024 _ACEOF
17025
17026 fi
17027
17028 done
17029
17030    for ac_header in sys/ucontext.h
17031 do :
17032   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "$ac_includes_default"
17033 if test "x$ac_cv_header_sys_ucontext_h" = xyes; then :
17034   cat >>confdefs.h <<_ACEOF
17035 #define HAVE_SYS_UCONTEXT_H 1
17036 _ACEOF
17037
17038 fi
17039
17040 done
17041        # ucontext on OS X 10.6 (at least)
17042    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to access the program counter from a struct ucontext" >&5
17043 $as_echo_n "checking how to access the program counter from a struct ucontext... " >&6; }
17044    pc_fields="           uc_mcontext.gregs[REG_PC]"  # Solaris x86 (32 + 64 bit)
17045    pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
17046    pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
17047    pc_fields="$pc_fields uc_mcontext.sc_ip"            # Linux (ia64)
17048    pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
17049    pc_fields="$pc_fields uc_mcontext.gregs[R15]"     # Linux (arm old [untested])
17050    pc_fields="$pc_fields uc_mcontext.arm_pc"           # Linux (arm new [untested])
17051    pc_fields="$pc_fields uc_mcontext.mc_eip"           # FreeBSD (i386)
17052    pc_fields="$pc_fields uc_mcontext.mc_rip"           # FreeBSD (x86_64 [untested])
17053    pc_fields="$pc_fields uc_mcontext.__gregs[_REG_EIP]"  # NetBSD (i386)
17054    pc_fields="$pc_fields uc_mcontext.__gregs[_REG_RIP]"  # NetBSD (x86_64)
17055    pc_fields="$pc_fields uc_mcontext->ss.eip"          # OS X (i386, <=10.4)
17056    pc_fields="$pc_fields uc_mcontext->__ss.__eip"      # OS X (i386, >=10.5)
17057    pc_fields="$pc_fields uc_mcontext->ss.rip"          # OS X (x86_64)
17058    pc_fields="$pc_fields uc_mcontext->__ss.__rip"      # OS X (>=10.5 [untested])
17059    pc_fields="$pc_fields uc_mcontext->ss.srr0"         # OS X (ppc, ppc64 [untested])
17060    pc_fields="$pc_fields uc_mcontext->__ss.__srr0"     # OS X (>=10.5 [untested])
17061    pc_field_found=false
17062    for pc_field in $pc_fields; do
17063      if ! $pc_field_found; then
17064        if test "x$ac_cv_header_sys_ucontext_h" = xyes; then
17065          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17066 /* end confdefs.h.  */
17067 #define _GNU_SOURCE 1
17068                          #include <sys/ucontext.h>
17069 int
17070 main ()
17071 {
17072 ucontext_t u; return u.$pc_field == 0;
17073   ;
17074   return 0;
17075 }
17076 _ACEOF
17077 if ac_fn_cxx_try_compile "$LINENO"; then :
17078
17079 cat >>confdefs.h <<_ACEOF
17080 #define PC_FROM_UCONTEXT $pc_field
17081 _ACEOF
17082
17083                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
17084 $as_echo "$pc_field" >&6; }
17085                         pc_field_found=true
17086 fi
17087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17088        else
17089          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17090 /* end confdefs.h.  */
17091 #define _GNU_SOURCE 1
17092                          #include <ucontext.h>
17093 int
17094 main ()
17095 {
17096 ucontext_t u; return u.$pc_field == 0;
17097   ;
17098   return 0;
17099 }
17100 _ACEOF
17101 if ac_fn_cxx_try_compile "$LINENO"; then :
17102
17103 cat >>confdefs.h <<_ACEOF
17104 #define PC_FROM_UCONTEXT $pc_field
17105 _ACEOF
17106
17107                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
17108 $as_echo "$pc_field" >&6; }
17109                         pc_field_found=true
17110 fi
17111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17112        fi
17113      fi
17114    done
17115    if ! $pc_field_found; then
17116      pc_fields="           sc_eip"  # OpenBSD (i386)
17117      pc_fields="$pc_fields sc_rip"  # OpenBSD (x86_64)
17118      for pc_field in $pc_fields; do
17119        if ! $pc_field_found; then
17120          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17121 /* end confdefs.h.  */
17122 #include <signal.h>
17123 int
17124 main ()
17125 {
17126 ucontext_t u; return u.$pc_field == 0;
17127   ;
17128   return 0;
17129 }
17130 _ACEOF
17131 if ac_fn_cxx_try_compile "$LINENO"; then :
17132
17133 cat >>confdefs.h <<_ACEOF
17134 #define PC_FROM_UCONTEXT $pc_field
17135 _ACEOF
17136
17137                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
17138 $as_echo "$pc_field" >&6; }
17139                         pc_field_found=true
17140 fi
17141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17142        fi
17143      done
17144    fi
17145    if ! $pc_field_found; then
17146      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the PC.  Will not output failed addresses..." >&5
17147 $as_echo "$as_me: WARNING: Could not find the PC.  Will not output failed addresses..." >&2;}
17148    fi
17149
17150
17151 cat >>confdefs.h <<_ACEOF
17152 #define TEST_SRC_DIR "$srcdir"
17153 _ACEOF
17154
17155
17156 # These are what's needed by logging.h.in and raw_logging.h.in
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179 # Write generated configuration file
17180 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"
17181
17182 ac_config_files="$ac_config_files libglog.pc"
17183
17184 cat >confcache <<\_ACEOF
17185 # This file is a shell script that caches the results of configure
17186 # tests run on this system so they can be shared between configure
17187 # scripts and configure runs, see configure's option --config-cache.
17188 # It is not useful on other systems.  If it contains results you don't
17189 # want to keep, you may remove or edit it.
17190 #
17191 # config.status only pays attention to the cache file if you give it
17192 # the --recheck option to rerun configure.
17193 #
17194 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17195 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17196 # following values.
17197
17198 _ACEOF
17199
17200 # The following way of writing the cache mishandles newlines in values,
17201 # but we know of no workaround that is simple, portable, and efficient.
17202 # So, we kill variables containing newlines.
17203 # Ultrix sh set writes to stderr and can't be redirected directly,
17204 # and sets the high bit in the cache file unless we assign to the vars.
17205 (
17206   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17207     eval ac_val=\$$ac_var
17208     case $ac_val in #(
17209     *${as_nl}*)
17210       case $ac_var in #(
17211       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17212 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17213       esac
17214       case $ac_var in #(
17215       _ | IFS | as_nl) ;; #(
17216       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17217       *) { eval $ac_var=; unset $ac_var;} ;;
17218       esac ;;
17219     esac
17220   done
17221
17222   (set) 2>&1 |
17223     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17224     *${as_nl}ac_space=\ *)
17225       # `set' does not quote correctly, so add quotes: double-quote
17226       # substitution turns \\\\ into \\, and sed turns \\ into \.
17227       sed -n \
17228         "s/'/'\\\\''/g;
17229           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17230       ;; #(
17231     *)
17232       # `set' quotes correctly as required by POSIX, so do not add quotes.
17233       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17234       ;;
17235     esac |
17236     sort
17237 ) |
17238   sed '
17239      /^ac_cv_env_/b end
17240      t clear
17241      :clear
17242      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17243      t end
17244      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17245      :end' >>confcache
17246 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17247   if test -w "$cache_file"; then
17248     if test "x$cache_file" != "x/dev/null"; then
17249       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17250 $as_echo "$as_me: updating cache $cache_file" >&6;}
17251       if test ! -f "$cache_file" || test -h "$cache_file"; then
17252         cat confcache >"$cache_file"
17253       else
17254         case $cache_file in #(
17255         */* | ?:*)
17256           mv -f confcache "$cache_file"$$ &&
17257           mv -f "$cache_file"$$ "$cache_file" ;; #(
17258         *)
17259           mv -f confcache "$cache_file" ;;
17260         esac
17261       fi
17262     fi
17263   else
17264     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17265 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17266   fi
17267 fi
17268 rm -f confcache
17269
17270 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17271 # Let make expand exec_prefix.
17272 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17273
17274 DEFS=-DHAVE_CONFIG_H
17275
17276 ac_libobjs=
17277 ac_ltlibobjs=
17278 U=
17279 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17280   # 1. Remove the extension, and $U if already installed.
17281   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17282   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17283   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17284   #    will be set to the directory where LIBOBJS objects are built.
17285   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17286   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17287 done
17288 LIBOBJS=$ac_libobjs
17289
17290 LTLIBOBJS=$ac_ltlibobjs
17291
17292
17293  if test -n "$EXEEXT"; then
17294   am__EXEEXT_TRUE=
17295   am__EXEEXT_FALSE='#'
17296 else
17297   am__EXEEXT_TRUE='#'
17298   am__EXEEXT_FALSE=
17299 fi
17300
17301 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17302   as_fn_error $? "conditional \"AMDEP\" was never defined.
17303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17304 fi
17305 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17306   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17308 fi
17309 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17310   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17312 fi
17313 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
17314   as_fn_error $? "conditional \"GCC\" was never defined.
17315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17316 fi
17317 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
17318   as_fn_error $? "conditional \"ENABLE_FRAME_POINTERS\" was never defined.
17319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17320 fi
17321 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
17322   as_fn_error $? "conditional \"X86_64\" was never defined.
17323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17324 fi
17325 if test -z "${DISABLE_RTTI_TRUE}" && test -z "${DISABLE_RTTI_FALSE}"; then
17326   as_fn_error $? "conditional \"DISABLE_RTTI\" was never defined.
17327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17328 fi
17329 if test -z "${HAVE_GMOCK_TRUE}" && test -z "${HAVE_GMOCK_FALSE}"; then
17330   as_fn_error $? "conditional \"HAVE_GMOCK\" was never defined.
17331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17332 fi
17333
17334 : "${CONFIG_STATUS=./config.status}"
17335 ac_write_fail=0
17336 ac_clean_files_save=$ac_clean_files
17337 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17339 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17340 as_write_fail=0
17341 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17342 #! $SHELL
17343 # Generated by $as_me.
17344 # Run this file to recreate the current configuration.
17345 # Compiler output produced by configure, useful for debugging
17346 # configure, is in config.log if it exists.
17347
17348 debug=false
17349 ac_cs_recheck=false
17350 ac_cs_silent=false
17351
17352 SHELL=\${CONFIG_SHELL-$SHELL}
17353 export SHELL
17354 _ASEOF
17355 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17356 ## -------------------- ##
17357 ## M4sh Initialization. ##
17358 ## -------------------- ##
17359
17360 # Be more Bourne compatible
17361 DUALCASE=1; export DUALCASE # for MKS sh
17362 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17363   emulate sh
17364   NULLCMD=:
17365   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17366   # is contrary to our usage.  Disable this feature.
17367   alias -g '${1+"$@"}'='"$@"'
17368   setopt NO_GLOB_SUBST
17369 else
17370   case `(set -o) 2>/dev/null` in #(
17371   *posix*) :
17372     set -o posix ;; #(
17373   *) :
17374      ;;
17375 esac
17376 fi
17377
17378
17379 as_nl='
17380 '
17381 export as_nl
17382 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17383 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17384 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17385 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17386 # Prefer a ksh shell builtin over an external printf program on Solaris,
17387 # but without wasting forks for bash or zsh.
17388 if test -z "$BASH_VERSION$ZSH_VERSION" \
17389     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17390   as_echo='print -r --'
17391   as_echo_n='print -rn --'
17392 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17393   as_echo='printf %s\n'
17394   as_echo_n='printf %s'
17395 else
17396   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17397     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17398     as_echo_n='/usr/ucb/echo -n'
17399   else
17400     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17401     as_echo_n_body='eval
17402       arg=$1;
17403       case $arg in #(
17404       *"$as_nl"*)
17405         expr "X$arg" : "X\\(.*\\)$as_nl";
17406         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17407       esac;
17408       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17409     '
17410     export as_echo_n_body
17411     as_echo_n='sh -c $as_echo_n_body as_echo'
17412   fi
17413   export as_echo_body
17414   as_echo='sh -c $as_echo_body as_echo'
17415 fi
17416
17417 # The user is always right.
17418 if test "${PATH_SEPARATOR+set}" != set; then
17419   PATH_SEPARATOR=:
17420   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17421     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17422       PATH_SEPARATOR=';'
17423   }
17424 fi
17425
17426
17427 # IFS
17428 # We need space, tab and new line, in precisely that order.  Quoting is
17429 # there to prevent editors from complaining about space-tab.
17430 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17431 # splitting by setting IFS to empty value.)
17432 IFS=" ""        $as_nl"
17433
17434 # Find who we are.  Look in the path if we contain no directory separator.
17435 as_myself=
17436 case $0 in #((
17437   *[\\/]* ) as_myself=$0 ;;
17438   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17439 for as_dir in $PATH
17440 do
17441   IFS=$as_save_IFS
17442   test -z "$as_dir" && as_dir=.
17443     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17444   done
17445 IFS=$as_save_IFS
17446
17447      ;;
17448 esac
17449 # We did not find ourselves, most probably we were run as `sh COMMAND'
17450 # in which case we are not to be found in the path.
17451 if test "x$as_myself" = x; then
17452   as_myself=$0
17453 fi
17454 if test ! -f "$as_myself"; then
17455   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17456   exit 1
17457 fi
17458
17459 # Unset variables that we do not need and which cause bugs (e.g. in
17460 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17461 # suppresses any "Segmentation fault" message there.  '((' could
17462 # trigger a bug in pdksh 5.2.14.
17463 for as_var in BASH_ENV ENV MAIL MAILPATH
17464 do eval test x\${$as_var+set} = xset \
17465   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17466 done
17467 PS1='$ '
17468 PS2='> '
17469 PS4='+ '
17470
17471 # NLS nuisances.
17472 LC_ALL=C
17473 export LC_ALL
17474 LANGUAGE=C
17475 export LANGUAGE
17476
17477 # CDPATH.
17478 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17479
17480
17481 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17482 # ----------------------------------------
17483 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17484 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17485 # script with STATUS, using 1 if that was 0.
17486 as_fn_error ()
17487 {
17488   as_status=$1; test $as_status -eq 0 && as_status=1
17489   if test "$4"; then
17490     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17491     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17492   fi
17493   $as_echo "$as_me: error: $2" >&2
17494   as_fn_exit $as_status
17495 } # as_fn_error
17496
17497
17498 # as_fn_set_status STATUS
17499 # -----------------------
17500 # Set $? to STATUS, without forking.
17501 as_fn_set_status ()
17502 {
17503   return $1
17504 } # as_fn_set_status
17505
17506 # as_fn_exit STATUS
17507 # -----------------
17508 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17509 as_fn_exit ()
17510 {
17511   set +e
17512   as_fn_set_status $1
17513   exit $1
17514 } # as_fn_exit
17515
17516 # as_fn_unset VAR
17517 # ---------------
17518 # Portably unset VAR.
17519 as_fn_unset ()
17520 {
17521   { eval $1=; unset $1;}
17522 }
17523 as_unset=as_fn_unset
17524 # as_fn_append VAR VALUE
17525 # ----------------------
17526 # Append the text in VALUE to the end of the definition contained in VAR. Take
17527 # advantage of any shell optimizations that allow amortized linear growth over
17528 # repeated appends, instead of the typical quadratic growth present in naive
17529 # implementations.
17530 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17531   eval 'as_fn_append ()
17532   {
17533     eval $1+=\$2
17534   }'
17535 else
17536   as_fn_append ()
17537   {
17538     eval $1=\$$1\$2
17539   }
17540 fi # as_fn_append
17541
17542 # as_fn_arith ARG...
17543 # ------------------
17544 # Perform arithmetic evaluation on the ARGs, and store the result in the
17545 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17546 # must be portable across $(()) and expr.
17547 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17548   eval 'as_fn_arith ()
17549   {
17550     as_val=$(( $* ))
17551   }'
17552 else
17553   as_fn_arith ()
17554   {
17555     as_val=`expr "$@" || test $? -eq 1`
17556   }
17557 fi # as_fn_arith
17558
17559
17560 if expr a : '\(a\)' >/dev/null 2>&1 &&
17561    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17562   as_expr=expr
17563 else
17564   as_expr=false
17565 fi
17566
17567 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17568   as_basename=basename
17569 else
17570   as_basename=false
17571 fi
17572
17573 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17574   as_dirname=dirname
17575 else
17576   as_dirname=false
17577 fi
17578
17579 as_me=`$as_basename -- "$0" ||
17580 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17581          X"$0" : 'X\(//\)$' \| \
17582          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17583 $as_echo X/"$0" |
17584     sed '/^.*\/\([^/][^/]*\)\/*$/{
17585             s//\1/
17586             q
17587           }
17588           /^X\/\(\/\/\)$/{
17589             s//\1/
17590             q
17591           }
17592           /^X\/\(\/\).*/{
17593             s//\1/
17594             q
17595           }
17596           s/.*/./; q'`
17597
17598 # Avoid depending upon Character Ranges.
17599 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17600 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17601 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17602 as_cr_digits='0123456789'
17603 as_cr_alnum=$as_cr_Letters$as_cr_digits
17604
17605 ECHO_C= ECHO_N= ECHO_T=
17606 case `echo -n x` in #(((((
17607 -n*)
17608   case `echo 'xy\c'` in
17609   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17610   xy)  ECHO_C='\c';;
17611   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17612        ECHO_T=' ';;
17613   esac;;
17614 *)
17615   ECHO_N='-n';;
17616 esac
17617
17618 rm -f conf$$ conf$$.exe conf$$.file
17619 if test -d conf$$.dir; then
17620   rm -f conf$$.dir/conf$$.file
17621 else
17622   rm -f conf$$.dir
17623   mkdir conf$$.dir 2>/dev/null
17624 fi
17625 if (echo >conf$$.file) 2>/dev/null; then
17626   if ln -s conf$$.file conf$$ 2>/dev/null; then
17627     as_ln_s='ln -s'
17628     # ... but there are two gotchas:
17629     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17630     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17631     # In both cases, we have to default to `cp -p'.
17632     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17633       as_ln_s='cp -p'
17634   elif ln conf$$.file conf$$ 2>/dev/null; then
17635     as_ln_s=ln
17636   else
17637     as_ln_s='cp -p'
17638   fi
17639 else
17640   as_ln_s='cp -p'
17641 fi
17642 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17643 rmdir conf$$.dir 2>/dev/null
17644
17645
17646 # as_fn_mkdir_p
17647 # -------------
17648 # Create "$as_dir" as a directory, including parents if necessary.
17649 as_fn_mkdir_p ()
17650 {
17651
17652   case $as_dir in #(
17653   -*) as_dir=./$as_dir;;
17654   esac
17655   test -d "$as_dir" || eval $as_mkdir_p || {
17656     as_dirs=
17657     while :; do
17658       case $as_dir in #(
17659       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17660       *) as_qdir=$as_dir;;
17661       esac
17662       as_dirs="'$as_qdir' $as_dirs"
17663       as_dir=`$as_dirname -- "$as_dir" ||
17664 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17665          X"$as_dir" : 'X\(//\)[^/]' \| \
17666          X"$as_dir" : 'X\(//\)$' \| \
17667          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17668 $as_echo X"$as_dir" |
17669     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17670             s//\1/
17671             q
17672           }
17673           /^X\(\/\/\)[^/].*/{
17674             s//\1/
17675             q
17676           }
17677           /^X\(\/\/\)$/{
17678             s//\1/
17679             q
17680           }
17681           /^X\(\/\).*/{
17682             s//\1/
17683             q
17684           }
17685           s/.*/./; q'`
17686       test -d "$as_dir" && break
17687     done
17688     test -z "$as_dirs" || eval "mkdir $as_dirs"
17689   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17690
17691
17692 } # as_fn_mkdir_p
17693 if mkdir -p . 2>/dev/null; then
17694   as_mkdir_p='mkdir -p "$as_dir"'
17695 else
17696   test -d ./-p && rmdir ./-p
17697   as_mkdir_p=false
17698 fi
17699
17700 if test -x / >/dev/null 2>&1; then
17701   as_test_x='test -x'
17702 else
17703   if ls -dL / >/dev/null 2>&1; then
17704     as_ls_L_option=L
17705   else
17706     as_ls_L_option=
17707   fi
17708   as_test_x='
17709     eval sh -c '\''
17710       if test -d "$1"; then
17711         test -d "$1/.";
17712       else
17713         case $1 in #(
17714         -*)set "./$1";;
17715         esac;
17716         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17717         ???[sx]*):;;*)false;;esac;fi
17718     '\'' sh
17719   '
17720 fi
17721 as_executable_p=$as_test_x
17722
17723 # Sed expression to map a string onto a valid CPP name.
17724 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17725
17726 # Sed expression to map a string onto a valid variable name.
17727 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17728
17729
17730 exec 6>&1
17731 ## ----------------------------------- ##
17732 ## Main body of $CONFIG_STATUS script. ##
17733 ## ----------------------------------- ##
17734 _ASEOF
17735 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17736
17737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17738 # Save the log message, to keep $0 and so on meaningful, and to
17739 # report actual input values of CONFIG_FILES etc. instead of their
17740 # values after options handling.
17741 ac_log="
17742 This file was extended by glog $as_me 0.3.2, which was
17743 generated by GNU Autoconf 2.68.  Invocation command line was
17744
17745   CONFIG_FILES    = $CONFIG_FILES
17746   CONFIG_HEADERS  = $CONFIG_HEADERS
17747   CONFIG_LINKS    = $CONFIG_LINKS
17748   CONFIG_COMMANDS = $CONFIG_COMMANDS
17749   $ $0 $@
17750
17751 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17752 "
17753
17754 _ACEOF
17755
17756 case $ac_config_files in *"
17757 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17758 esac
17759
17760 case $ac_config_headers in *"
17761 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17762 esac
17763
17764
17765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17766 # Files that config.status was made for.
17767 config_files="$ac_config_files"
17768 config_headers="$ac_config_headers"
17769 config_commands="$ac_config_commands"
17770
17771 _ACEOF
17772
17773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17774 ac_cs_usage="\
17775 \`$as_me' instantiates files and other configuration actions
17776 from templates according to the current configuration.  Unless the files
17777 and actions are specified as TAGs, all are instantiated by default.
17778
17779 Usage: $0 [OPTION]... [TAG]...
17780
17781   -h, --help       print this help, then exit
17782   -V, --version    print version number and configuration settings, then exit
17783       --config     print configuration, then exit
17784   -q, --quiet, --silent
17785                    do not print progress messages
17786   -d, --debug      don't remove temporary files
17787       --recheck    update $as_me by reconfiguring in the same conditions
17788       --file=FILE[:TEMPLATE]
17789                    instantiate the configuration file FILE
17790       --header=FILE[:TEMPLATE]
17791                    instantiate the configuration header FILE
17792
17793 Configuration files:
17794 $config_files
17795
17796 Configuration headers:
17797 $config_headers
17798
17799 Configuration commands:
17800 $config_commands
17801
17802 Report bugs to <opensource@google.com>."
17803
17804 _ACEOF
17805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17806 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17807 ac_cs_version="\\
17808 glog config.status 0.3.2
17809 configured by $0, generated by GNU Autoconf 2.68,
17810   with options \\"\$ac_cs_config\\"
17811
17812 Copyright (C) 2010 Free Software Foundation, Inc.
17813 This config.status script is free software; the Free Software Foundation
17814 gives unlimited permission to copy, distribute and modify it."
17815
17816 ac_pwd='$ac_pwd'
17817 srcdir='$srcdir'
17818 INSTALL='$INSTALL'
17819 MKDIR_P='$MKDIR_P'
17820 AWK='$AWK'
17821 test -n "\$AWK" || AWK=awk
17822 _ACEOF
17823
17824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17825 # The default lists apply if the user does not specify any file.
17826 ac_need_defaults=:
17827 while test $# != 0
17828 do
17829   case $1 in
17830   --*=?*)
17831     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17832     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17833     ac_shift=:
17834     ;;
17835   --*=)
17836     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17837     ac_optarg=
17838     ac_shift=:
17839     ;;
17840   *)
17841     ac_option=$1
17842     ac_optarg=$2
17843     ac_shift=shift
17844     ;;
17845   esac
17846
17847   case $ac_option in
17848   # Handling of the options.
17849   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17850     ac_cs_recheck=: ;;
17851   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17852     $as_echo "$ac_cs_version"; exit ;;
17853   --config | --confi | --conf | --con | --co | --c )
17854     $as_echo "$ac_cs_config"; exit ;;
17855   --debug | --debu | --deb | --de | --d | -d )
17856     debug=: ;;
17857   --file | --fil | --fi | --f )
17858     $ac_shift
17859     case $ac_optarg in
17860     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17861     '') as_fn_error $? "missing file argument" ;;
17862     esac
17863     as_fn_append CONFIG_FILES " '$ac_optarg'"
17864     ac_need_defaults=false;;
17865   --header | --heade | --head | --hea )
17866     $ac_shift
17867     case $ac_optarg in
17868     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17869     esac
17870     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17871     ac_need_defaults=false;;
17872   --he | --h)
17873     # Conflict between --help and --header
17874     as_fn_error $? "ambiguous option: \`$1'
17875 Try \`$0 --help' for more information.";;
17876   --help | --hel | -h )
17877     $as_echo "$ac_cs_usage"; exit ;;
17878   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17879   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17880     ac_cs_silent=: ;;
17881
17882   # This is an error.
17883   -*) as_fn_error $? "unrecognized option: \`$1'
17884 Try \`$0 --help' for more information." ;;
17885
17886   *) as_fn_append ac_config_targets " $1"
17887      ac_need_defaults=false ;;
17888
17889   esac
17890   shift
17891 done
17892
17893 ac_configure_extra_args=
17894
17895 if $ac_cs_silent; then
17896   exec 6>/dev/null
17897   ac_configure_extra_args="$ac_configure_extra_args --silent"
17898 fi
17899
17900 _ACEOF
17901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17902 if \$ac_cs_recheck; then
17903   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17904   shift
17905   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17906   CONFIG_SHELL='$SHELL'
17907   export CONFIG_SHELL
17908   exec "\$@"
17909 fi
17910
17911 _ACEOF
17912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17913 exec 5>>config.log
17914 {
17915   echo
17916   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17917 ## Running $as_me. ##
17918 _ASBOX
17919   $as_echo "$ac_log"
17920 } >&5
17921
17922 _ACEOF
17923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17924 #
17925 # INIT-COMMANDS
17926 #
17927 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17928
17929
17930 # The HP-UX ksh and POSIX shell print the target directory to stdout
17931 # if CDPATH is set.
17932 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17933
17934 sed_quote_subst='$sed_quote_subst'
17935 double_quote_subst='$double_quote_subst'
17936 delay_variable_subst='$delay_variable_subst'
17937 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17938 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17939 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17940 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17941 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17942 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17943 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17944 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17945 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17946 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17947 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17948 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17949 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17950 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17951 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17952 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17953 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17954 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17955 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17956 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17957 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17958 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17959 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17960 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17961 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17962 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17963 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17964 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17965 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17966 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17967 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17968 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17969 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17970 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17971 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17972 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17973 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17974 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17975 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17976 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17977 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17978 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17979 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17980 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17981 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17982 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17983 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17984 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17985 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17986 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17987 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17988 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17989 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17990 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17991 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17992 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17993 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"`'
17994 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17995 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17996 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17997 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17998 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17999 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18000 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18001 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18002 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18003 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18004 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18005 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18006 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18007 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18008 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18009 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18010 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18011 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18012 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18013 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18014 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18015 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18016 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18017 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18018 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18019 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18020 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18021 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18022 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18023 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18024 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18025 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18026 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18027 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18028 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18029 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18030 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18031 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18032 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18033 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18034 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18035 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18036 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18037 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18038 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18039 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18040 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18041 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18042 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18043 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18044 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18045 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18046 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18047 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18048 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18049 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18050 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18051 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18052 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18053 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18054 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18055 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18056 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18057 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18058 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18059 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18060 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18061 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18062 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18063 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18064 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18065 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18066 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18067 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18068 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18069 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18070 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18071 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18072 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18073 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18074 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18075 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18076 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18077 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18078 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18079 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18080 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18081 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18082 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18083 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18084 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18085 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18086 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18087 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18088 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18089 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18090 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18091 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18092 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18093 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18094 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18095 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18096 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18097 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18098 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18099 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18100 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18101 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18102 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18103 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18104 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18105 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18106 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18107 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18108 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18109 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18110 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18111 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18112 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18113 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18114 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18115 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18116 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18117 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18118 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18119 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18120 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18121
18122 LTCC='$LTCC'
18123 LTCFLAGS='$LTCFLAGS'
18124 compiler='$compiler_DEFAULT'
18125
18126 # A function that is used when there is no print builtin or printf.
18127 func_fallback_echo ()
18128 {
18129   eval 'cat <<_LTECHO_EOF
18130 \$1
18131 _LTECHO_EOF'
18132 }
18133
18134 # Quote evaled strings.
18135 for var in SHELL \
18136 ECHO \
18137 PATH_SEPARATOR \
18138 SED \
18139 GREP \
18140 EGREP \
18141 FGREP \
18142 LD \
18143 NM \
18144 LN_S \
18145 lt_SP2NL \
18146 lt_NL2SP \
18147 reload_flag \
18148 OBJDUMP \
18149 deplibs_check_method \
18150 file_magic_cmd \
18151 file_magic_glob \
18152 want_nocaseglob \
18153 DLLTOOL \
18154 sharedlib_from_linklib_cmd \
18155 AR \
18156 AR_FLAGS \
18157 archiver_list_spec \
18158 STRIP \
18159 RANLIB \
18160 CC \
18161 CFLAGS \
18162 compiler \
18163 lt_cv_sys_global_symbol_pipe \
18164 lt_cv_sys_global_symbol_to_cdecl \
18165 lt_cv_sys_global_symbol_to_c_name_address \
18166 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18167 nm_file_list_spec \
18168 lt_prog_compiler_no_builtin_flag \
18169 lt_prog_compiler_pic \
18170 lt_prog_compiler_wl \
18171 lt_prog_compiler_static \
18172 lt_cv_prog_compiler_c_o \
18173 need_locks \
18174 MANIFEST_TOOL \
18175 DSYMUTIL \
18176 NMEDIT \
18177 LIPO \
18178 OTOOL \
18179 OTOOL64 \
18180 shrext_cmds \
18181 export_dynamic_flag_spec \
18182 whole_archive_flag_spec \
18183 compiler_needs_object \
18184 with_gnu_ld \
18185 allow_undefined_flag \
18186 no_undefined_flag \
18187 hardcode_libdir_flag_spec \
18188 hardcode_libdir_separator \
18189 exclude_expsyms \
18190 include_expsyms \
18191 file_list_spec \
18192 variables_saved_for_relink \
18193 libname_spec \
18194 library_names_spec \
18195 soname_spec \
18196 install_override_mode \
18197 finish_eval \
18198 old_striplib \
18199 striplib \
18200 compiler_lib_search_dirs \
18201 predep_objects \
18202 postdep_objects \
18203 predeps \
18204 postdeps \
18205 compiler_lib_search_path \
18206 LD_CXX \
18207 reload_flag_CXX \
18208 compiler_CXX \
18209 lt_prog_compiler_no_builtin_flag_CXX \
18210 lt_prog_compiler_pic_CXX \
18211 lt_prog_compiler_wl_CXX \
18212 lt_prog_compiler_static_CXX \
18213 lt_cv_prog_compiler_c_o_CXX \
18214 export_dynamic_flag_spec_CXX \
18215 whole_archive_flag_spec_CXX \
18216 compiler_needs_object_CXX \
18217 with_gnu_ld_CXX \
18218 allow_undefined_flag_CXX \
18219 no_undefined_flag_CXX \
18220 hardcode_libdir_flag_spec_CXX \
18221 hardcode_libdir_separator_CXX \
18222 exclude_expsyms_CXX \
18223 include_expsyms_CXX \
18224 file_list_spec_CXX \
18225 compiler_lib_search_dirs_CXX \
18226 predep_objects_CXX \
18227 postdep_objects_CXX \
18228 predeps_CXX \
18229 postdeps_CXX \
18230 compiler_lib_search_path_CXX; do
18231     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18232     *[\\\\\\\`\\"\\\$]*)
18233       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18234       ;;
18235     *)
18236       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18237       ;;
18238     esac
18239 done
18240
18241 # Double-quote double-evaled strings.
18242 for var in reload_cmds \
18243 old_postinstall_cmds \
18244 old_postuninstall_cmds \
18245 old_archive_cmds \
18246 extract_expsyms_cmds \
18247 old_archive_from_new_cmds \
18248 old_archive_from_expsyms_cmds \
18249 archive_cmds \
18250 archive_expsym_cmds \
18251 module_cmds \
18252 module_expsym_cmds \
18253 export_symbols_cmds \
18254 prelink_cmds \
18255 postlink_cmds \
18256 postinstall_cmds \
18257 postuninstall_cmds \
18258 finish_cmds \
18259 sys_lib_search_path_spec \
18260 sys_lib_dlsearch_path_spec \
18261 reload_cmds_CXX \
18262 old_archive_cmds_CXX \
18263 old_archive_from_new_cmds_CXX \
18264 old_archive_from_expsyms_cmds_CXX \
18265 archive_cmds_CXX \
18266 archive_expsym_cmds_CXX \
18267 module_cmds_CXX \
18268 module_expsym_cmds_CXX \
18269 export_symbols_cmds_CXX \
18270 prelink_cmds_CXX \
18271 postlink_cmds_CXX; do
18272     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18273     *[\\\\\\\`\\"\\\$]*)
18274       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18275       ;;
18276     *)
18277       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18278       ;;
18279     esac
18280 done
18281
18282 ac_aux_dir='$ac_aux_dir'
18283 xsi_shell='$xsi_shell'
18284 lt_shell_append='$lt_shell_append'
18285
18286 # See if we are running on zsh, and set the options which allow our
18287 # commands through without removal of \ escapes INIT.
18288 if test -n "\${ZSH_VERSION+set}" ; then
18289    setopt NO_GLOB_SUBST
18290 fi
18291
18292
18293     PACKAGE='$PACKAGE'
18294     VERSION='$VERSION'
18295     TIMESTAMP='$TIMESTAMP'
18296     RM='$RM'
18297     ofile='$ofile'
18298
18299
18300
18301
18302
18303
18304 _ACEOF
18305
18306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18307
18308 # Handling of arguments.
18309 for ac_config_target in $ac_config_targets
18310 do
18311   case $ac_config_target in
18312     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
18313     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18314     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18315     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18316     "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
18317     "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
18318     "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
18319     "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
18320     "libglog.pc") CONFIG_FILES="$CONFIG_FILES libglog.pc" ;;
18321
18322   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18323   esac
18324 done
18325
18326
18327 # If the user did not use the arguments to specify the items to instantiate,
18328 # then the envvar interface is used.  Set only those that are not.
18329 # We use the long form for the default assignment because of an extremely
18330 # bizarre bug on SunOS 4.1.3.
18331 if $ac_need_defaults; then
18332   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18333   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18334   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18335 fi
18336
18337 # Have a temporary directory for convenience.  Make it in the build tree
18338 # simply because there is no reason against having it here, and in addition,
18339 # creating and moving files from /tmp can sometimes cause problems.
18340 # Hook for its removal unless debugging.
18341 # Note that there is a small window in which the directory will not be cleaned:
18342 # after its creation but before its name has been assigned to `$tmp'.
18343 $debug ||
18344 {
18345   tmp= ac_tmp=
18346   trap 'exit_status=$?
18347   : "${ac_tmp:=$tmp}"
18348   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18349 ' 0
18350   trap 'as_fn_exit 1' 1 2 13 15
18351 }
18352 # Create a (secure) tmp directory for tmp files.
18353
18354 {
18355   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18356   test -d "$tmp"
18357 }  ||
18358 {
18359   tmp=./conf$$-$RANDOM
18360   (umask 077 && mkdir "$tmp")
18361 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18362 ac_tmp=$tmp
18363
18364 # Set up the scripts for CONFIG_FILES section.
18365 # No need to generate them if there are no CONFIG_FILES.
18366 # This happens for instance with `./config.status config.h'.
18367 if test -n "$CONFIG_FILES"; then
18368
18369
18370 ac_cr=`echo X | tr X '\015'`
18371 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18372 # But we know of no other shell where ac_cr would be empty at this
18373 # point, so we can use a bashism as a fallback.
18374 if test "x$ac_cr" = x; then
18375   eval ac_cr=\$\'\\r\'
18376 fi
18377 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18378 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18379   ac_cs_awk_cr='\\r'
18380 else
18381   ac_cs_awk_cr=$ac_cr
18382 fi
18383
18384 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18385 _ACEOF
18386
18387
18388 {
18389   echo "cat >conf$$subs.awk <<_ACEOF" &&
18390   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18391   echo "_ACEOF"
18392 } >conf$$subs.sh ||
18393   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18394 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18395 ac_delim='%!_!# '
18396 for ac_last_try in false false false false false :; do
18397   . ./conf$$subs.sh ||
18398     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18399
18400   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18401   if test $ac_delim_n = $ac_delim_num; then
18402     break
18403   elif $ac_last_try; then
18404     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18405   else
18406     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18407   fi
18408 done
18409 rm -f conf$$subs.sh
18410
18411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18412 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18413 _ACEOF
18414 sed -n '
18415 h
18416 s/^/S["/; s/!.*/"]=/
18417 p
18418 g
18419 s/^[^!]*!//
18420 :repl
18421 t repl
18422 s/'"$ac_delim"'$//
18423 t delim
18424 :nl
18425 h
18426 s/\(.\{148\}\)..*/\1/
18427 t more1
18428 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18429 p
18430 n
18431 b repl
18432 :more1
18433 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18434 p
18435 g
18436 s/.\{148\}//
18437 t nl
18438 :delim
18439 h
18440 s/\(.\{148\}\)..*/\1/
18441 t more2
18442 s/["\\]/\\&/g; s/^/"/; s/$/"/
18443 p
18444 b
18445 :more2
18446 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18447 p
18448 g
18449 s/.\{148\}//
18450 t delim
18451 ' <conf$$subs.awk | sed '
18452 /^[^""]/{
18453   N
18454   s/\n//
18455 }
18456 ' >>$CONFIG_STATUS || ac_write_fail=1
18457 rm -f conf$$subs.awk
18458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18459 _ACAWK
18460 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18461   for (key in S) S_is_set[key] = 1
18462   FS = "\a"
18463
18464 }
18465 {
18466   line = $ 0
18467   nfields = split(line, field, "@")
18468   substed = 0
18469   len = length(field[1])
18470   for (i = 2; i < nfields; i++) {
18471     key = field[i]
18472     keylen = length(key)
18473     if (S_is_set[key]) {
18474       value = S[key]
18475       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18476       len += length(value) + length(field[++i])
18477       substed = 1
18478     } else
18479       len += 1 + keylen
18480   }
18481
18482   print line
18483 }
18484
18485 _ACAWK
18486 _ACEOF
18487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18488 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18489   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18490 else
18491   cat
18492 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18493   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18494 _ACEOF
18495
18496 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18497 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18498 # trailing colons and then remove the whole line if VPATH becomes empty
18499 # (actually we leave an empty line to preserve line numbers).
18500 if test "x$srcdir" = x.; then
18501   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18502 h
18503 s///
18504 s/^/:/
18505 s/[      ]*$/:/
18506 s/:\$(srcdir):/:/g
18507 s/:\${srcdir}:/:/g
18508 s/:@srcdir@:/:/g
18509 s/^:*//
18510 s/:*$//
18511 x
18512 s/\(=[   ]*\).*/\1/
18513 G
18514 s/\n//
18515 s/^[^=]*=[       ]*$//
18516 }'
18517 fi
18518
18519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18520 fi # test -n "$CONFIG_FILES"
18521
18522 # Set up the scripts for CONFIG_HEADERS section.
18523 # No need to generate them if there are no CONFIG_HEADERS.
18524 # This happens for instance with `./config.status Makefile'.
18525 if test -n "$CONFIG_HEADERS"; then
18526 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18527 BEGIN {
18528 _ACEOF
18529
18530 # Transform confdefs.h into an awk script `defines.awk', embedded as
18531 # here-document in config.status, that substitutes the proper values into
18532 # config.h.in to produce config.h.
18533
18534 # Create a delimiter string that does not exist in confdefs.h, to ease
18535 # handling of long lines.
18536 ac_delim='%!_!# '
18537 for ac_last_try in false false :; do
18538   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18539   if test -z "$ac_tt"; then
18540     break
18541   elif $ac_last_try; then
18542     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18543   else
18544     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18545   fi
18546 done
18547
18548 # For the awk script, D is an array of macro values keyed by name,
18549 # likewise P contains macro parameters if any.  Preserve backslash
18550 # newline sequences.
18551
18552 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18553 sed -n '
18554 s/.\{148\}/&'"$ac_delim"'/g
18555 t rset
18556 :rset
18557 s/^[     ]*#[    ]*define[       ][      ]*/ /
18558 t def
18559 d
18560 :def
18561 s/\\$//
18562 t bsnl
18563 s/["\\]/\\&/g
18564 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18565 D["\1"]=" \3"/p
18566 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18567 d
18568 :bsnl
18569 s/["\\]/\\&/g
18570 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18571 D["\1"]=" \3\\\\\\n"\\/p
18572 t cont
18573 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18574 t cont
18575 d
18576 :cont
18577 n
18578 s/.\{148\}/&'"$ac_delim"'/g
18579 t clear
18580 :clear
18581 s/\\$//
18582 t bsnlc
18583 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18584 d
18585 :bsnlc
18586 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18587 b cont
18588 ' <confdefs.h | sed '
18589 s/'"$ac_delim"'/"\\\
18590 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18591
18592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18593   for (key in D) D_is_set[key] = 1
18594   FS = "\a"
18595 }
18596 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18597   line = \$ 0
18598   split(line, arg, " ")
18599   if (arg[1] == "#") {
18600     defundef = arg[2]
18601     mac1 = arg[3]
18602   } else {
18603     defundef = substr(arg[1], 2)
18604     mac1 = arg[2]
18605   }
18606   split(mac1, mac2, "(") #)
18607   macro = mac2[1]
18608   prefix = substr(line, 1, index(line, defundef) - 1)
18609   if (D_is_set[macro]) {
18610     # Preserve the white space surrounding the "#".
18611     print prefix "define", macro P[macro] D[macro]
18612     next
18613   } else {
18614     # Replace #undef with comments.  This is necessary, for example,
18615     # in the case of _POSIX_SOURCE, which is predefined and required
18616     # on some systems where configure will not decide to define it.
18617     if (defundef == "undef") {
18618       print "/*", prefix defundef, macro, "*/"
18619       next
18620     }
18621   }
18622 }
18623 { print }
18624 _ACAWK
18625 _ACEOF
18626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18627   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18628 fi # test -n "$CONFIG_HEADERS"
18629
18630
18631 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18632 shift
18633 for ac_tag
18634 do
18635   case $ac_tag in
18636   :[FHLC]) ac_mode=$ac_tag; continue;;
18637   esac
18638   case $ac_mode$ac_tag in
18639   :[FHL]*:*);;
18640   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18641   :[FH]-) ac_tag=-:-;;
18642   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18643   esac
18644   ac_save_IFS=$IFS
18645   IFS=:
18646   set x $ac_tag
18647   IFS=$ac_save_IFS
18648   shift
18649   ac_file=$1
18650   shift
18651
18652   case $ac_mode in
18653   :L) ac_source=$1;;
18654   :[FH])
18655     ac_file_inputs=
18656     for ac_f
18657     do
18658       case $ac_f in
18659       -) ac_f="$ac_tmp/stdin";;
18660       *) # Look for the file first in the build tree, then in the source tree
18661          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18662          # because $ac_f cannot contain `:'.
18663          test -f "$ac_f" ||
18664            case $ac_f in
18665            [\\/$]*) false;;
18666            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18667            esac ||
18668            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18669       esac
18670       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18671       as_fn_append ac_file_inputs " '$ac_f'"
18672     done
18673
18674     # Let's still pretend it is `configure' which instantiates (i.e., don't
18675     # use $as_me), people would be surprised to read:
18676     #    /* config.h.  Generated by config.status.  */
18677     configure_input='Generated from '`
18678           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18679         `' by configure.'
18680     if test x"$ac_file" != x-; then
18681       configure_input="$ac_file.  $configure_input"
18682       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18683 $as_echo "$as_me: creating $ac_file" >&6;}
18684     fi
18685     # Neutralize special characters interpreted by sed in replacement strings.
18686     case $configure_input in #(
18687     *\&* | *\|* | *\\* )
18688        ac_sed_conf_input=`$as_echo "$configure_input" |
18689        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18690     *) ac_sed_conf_input=$configure_input;;
18691     esac
18692
18693     case $ac_tag in
18694     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18695       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18696     esac
18697     ;;
18698   esac
18699
18700   ac_dir=`$as_dirname -- "$ac_file" ||
18701 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18702          X"$ac_file" : 'X\(//\)[^/]' \| \
18703          X"$ac_file" : 'X\(//\)$' \| \
18704          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18705 $as_echo X"$ac_file" |
18706     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18707             s//\1/
18708             q
18709           }
18710           /^X\(\/\/\)[^/].*/{
18711             s//\1/
18712             q
18713           }
18714           /^X\(\/\/\)$/{
18715             s//\1/
18716             q
18717           }
18718           /^X\(\/\).*/{
18719             s//\1/
18720             q
18721           }
18722           s/.*/./; q'`
18723   as_dir="$ac_dir"; as_fn_mkdir_p
18724   ac_builddir=.
18725
18726 case "$ac_dir" in
18727 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18728 *)
18729   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18730   # A ".." for each directory in $ac_dir_suffix.
18731   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18732   case $ac_top_builddir_sub in
18733   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18734   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18735   esac ;;
18736 esac
18737 ac_abs_top_builddir=$ac_pwd
18738 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18739 # for backward compatibility:
18740 ac_top_builddir=$ac_top_build_prefix
18741
18742 case $srcdir in
18743   .)  # We are building in place.
18744     ac_srcdir=.
18745     ac_top_srcdir=$ac_top_builddir_sub
18746     ac_abs_top_srcdir=$ac_pwd ;;
18747   [\\/]* | ?:[\\/]* )  # Absolute name.
18748     ac_srcdir=$srcdir$ac_dir_suffix;
18749     ac_top_srcdir=$srcdir
18750     ac_abs_top_srcdir=$srcdir ;;
18751   *) # Relative name.
18752     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18753     ac_top_srcdir=$ac_top_build_prefix$srcdir
18754     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18755 esac
18756 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18757
18758
18759   case $ac_mode in
18760   :F)
18761   #
18762   # CONFIG_FILE
18763   #
18764
18765   case $INSTALL in
18766   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18767   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18768   esac
18769   ac_MKDIR_P=$MKDIR_P
18770   case $MKDIR_P in
18771   [\\/$]* | ?:[\\/]* ) ;;
18772   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18773   esac
18774 _ACEOF
18775
18776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18777 # If the template does not know about datarootdir, expand it.
18778 # FIXME: This hack should be removed a few years after 2.60.
18779 ac_datarootdir_hack=; ac_datarootdir_seen=
18780 ac_sed_dataroot='
18781 /datarootdir/ {
18782   p
18783   q
18784 }
18785 /@datadir@/p
18786 /@docdir@/p
18787 /@infodir@/p
18788 /@localedir@/p
18789 /@mandir@/p'
18790 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18791 *datarootdir*) ac_datarootdir_seen=yes;;
18792 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18793   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18794 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18795 _ACEOF
18796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18797   ac_datarootdir_hack='
18798   s&@datadir@&$datadir&g
18799   s&@docdir@&$docdir&g
18800   s&@infodir@&$infodir&g
18801   s&@localedir@&$localedir&g
18802   s&@mandir@&$mandir&g
18803   s&\\\${datarootdir}&$datarootdir&g' ;;
18804 esac
18805 _ACEOF
18806
18807 # Neutralize VPATH when `$srcdir' = `.'.
18808 # Shell code in configure.ac might set extrasub.
18809 # FIXME: do we really want to maintain this feature?
18810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18811 ac_sed_extra="$ac_vpsub
18812 $extrasub
18813 _ACEOF
18814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18815 :t
18816 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18817 s|@configure_input@|$ac_sed_conf_input|;t t
18818 s&@top_builddir@&$ac_top_builddir_sub&;t t
18819 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18820 s&@srcdir@&$ac_srcdir&;t t
18821 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18822 s&@top_srcdir@&$ac_top_srcdir&;t t
18823 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18824 s&@builddir@&$ac_builddir&;t t
18825 s&@abs_builddir@&$ac_abs_builddir&;t t
18826 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18827 s&@INSTALL@&$ac_INSTALL&;t t
18828 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18829 $ac_datarootdir_hack
18830 "
18831 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18832   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18833
18834 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18835   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18836   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18837       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18838   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18839 which seems to be undefined.  Please make sure it is defined" >&5
18840 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18841 which seems to be undefined.  Please make sure it is defined" >&2;}
18842
18843   rm -f "$ac_tmp/stdin"
18844   case $ac_file in
18845   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18846   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18847   esac \
18848   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18849  ;;
18850   :H)
18851   #
18852   # CONFIG_HEADER
18853   #
18854   if test x"$ac_file" != x-; then
18855     {
18856       $as_echo "/* $configure_input  */" \
18857       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18858     } >"$ac_tmp/config.h" \
18859       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18860     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18861       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18862 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18863     else
18864       rm -f "$ac_file"
18865       mv "$ac_tmp/config.h" "$ac_file" \
18866         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18867     fi
18868   else
18869     $as_echo "/* $configure_input  */" \
18870       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18871       || as_fn_error $? "could not create -" "$LINENO" 5
18872   fi
18873 # Compute "$ac_file"'s index in $config_headers.
18874 _am_arg="$ac_file"
18875 _am_stamp_count=1
18876 for _am_header in $config_headers :; do
18877   case $_am_header in
18878     $_am_arg | $_am_arg:* )
18879       break ;;
18880     * )
18881       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18882   esac
18883 done
18884 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18885 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18886          X"$_am_arg" : 'X\(//\)[^/]' \| \
18887          X"$_am_arg" : 'X\(//\)$' \| \
18888          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18889 $as_echo X"$_am_arg" |
18890     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18891             s//\1/
18892             q
18893           }
18894           /^X\(\/\/\)[^/].*/{
18895             s//\1/
18896             q
18897           }
18898           /^X\(\/\/\)$/{
18899             s//\1/
18900             q
18901           }
18902           /^X\(\/\).*/{
18903             s//\1/
18904             q
18905           }
18906           s/.*/./; q'`/stamp-h$_am_stamp_count
18907  ;;
18908
18909   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18910 $as_echo "$as_me: executing $ac_file commands" >&6;}
18911  ;;
18912   esac
18913
18914
18915   case $ac_file$ac_mode in
18916     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18917   # Autoconf 2.62 quotes --file arguments for eval, but not when files
18918   # are listed without --file.  Let's play safe and only enable the eval
18919   # if we detect the quoting.
18920   case $CONFIG_FILES in
18921   *\'*) eval set x "$CONFIG_FILES" ;;
18922   *)   set x $CONFIG_FILES ;;
18923   esac
18924   shift
18925   for mf
18926   do
18927     # Strip MF so we end up with the name of the file.
18928     mf=`echo "$mf" | sed -e 's/:.*$//'`
18929     # Check whether this is an Automake generated Makefile or not.
18930     # We used to match only the files named `Makefile.in', but
18931     # some people rename them; so instead we look at the file content.
18932     # Grep'ing the first line is not enough: some people post-process
18933     # each Makefile.in and add a new line on top of each file to say so.
18934     # Grep'ing the whole file is not good either: AIX grep has a line
18935     # limit of 2048, but all sed's we know have understand at least 4000.
18936     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18937       dirpart=`$as_dirname -- "$mf" ||
18938 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18939          X"$mf" : 'X\(//\)[^/]' \| \
18940          X"$mf" : 'X\(//\)$' \| \
18941          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18942 $as_echo X"$mf" |
18943     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18944             s//\1/
18945             q
18946           }
18947           /^X\(\/\/\)[^/].*/{
18948             s//\1/
18949             q
18950           }
18951           /^X\(\/\/\)$/{
18952             s//\1/
18953             q
18954           }
18955           /^X\(\/\).*/{
18956             s//\1/
18957             q
18958           }
18959           s/.*/./; q'`
18960     else
18961       continue
18962     fi
18963     # Extract the definition of DEPDIR, am__include, and am__quote
18964     # from the Makefile without running `make'.
18965     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18966     test -z "$DEPDIR" && continue
18967     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18968     test -z "am__include" && continue
18969     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18970     # When using ansi2knr, U may be empty or an underscore; expand it
18971     U=`sed -n 's/^U = //p' < "$mf"`
18972     # Find all dependency output files, they are included files with
18973     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18974     # simplest approach to changing $(DEPDIR) to its actual value in the
18975     # expansion.
18976     for file in `sed -n "
18977       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18978          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18979       # Make sure the directory exists.
18980       test -f "$dirpart/$file" && continue
18981       fdir=`$as_dirname -- "$file" ||
18982 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18983          X"$file" : 'X\(//\)[^/]' \| \
18984          X"$file" : 'X\(//\)$' \| \
18985          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18986 $as_echo X"$file" |
18987     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18988             s//\1/
18989             q
18990           }
18991           /^X\(\/\/\)[^/].*/{
18992             s//\1/
18993             q
18994           }
18995           /^X\(\/\/\)$/{
18996             s//\1/
18997             q
18998           }
18999           /^X\(\/\).*/{
19000             s//\1/
19001             q
19002           }
19003           s/.*/./; q'`
19004       as_dir=$dirpart/$fdir; as_fn_mkdir_p
19005       # echo "creating $dirpart/$file"
19006       echo '# dummy' > "$dirpart/$file"
19007     done
19008   done
19009 }
19010  ;;
19011     "libtool":C)
19012
19013     # See if we are running on zsh, and set the options which allow our
19014     # commands through without removal of \ escapes.
19015     if test -n "${ZSH_VERSION+set}" ; then
19016       setopt NO_GLOB_SUBST
19017     fi
19018
19019     cfgfile="${ofile}T"
19020     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19021     $RM "$cfgfile"
19022
19023     cat <<_LT_EOF >> "$cfgfile"
19024 #! $SHELL
19025
19026 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19027 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19028 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19029 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19030 #
19031 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19032 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19033 #                 Foundation, Inc.
19034 #   Written by Gordon Matzigkeit, 1996
19035 #
19036 #   This file is part of GNU Libtool.
19037 #
19038 # GNU Libtool is free software; you can redistribute it and/or
19039 # modify it under the terms of the GNU General Public License as
19040 # published by the Free Software Foundation; either version 2 of
19041 # the License, or (at your option) any later version.
19042 #
19043 # As a special exception to the GNU General Public License,
19044 # if you distribute this file as part of a program or library that
19045 # is built using GNU Libtool, you may include this file under the
19046 # same distribution terms that you use for the rest of that program.
19047 #
19048 # GNU Libtool is distributed in the hope that it will be useful,
19049 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19050 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19051 # GNU General Public License for more details.
19052 #
19053 # You should have received a copy of the GNU General Public License
19054 # along with GNU Libtool; see the file COPYING.  If not, a copy
19055 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19056 # obtained by writing to the Free Software Foundation, Inc.,
19057 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19058
19059
19060 # The names of the tagged configurations supported by this script.
19061 available_tags="CXX "
19062
19063 # ### BEGIN LIBTOOL CONFIG
19064
19065 # Which release of libtool.m4 was used?
19066 macro_version=$macro_version
19067 macro_revision=$macro_revision
19068
19069 # Whether or not to build shared libraries.
19070 build_libtool_libs=$enable_shared
19071
19072 # Whether or not to build static libraries.
19073 build_old_libs=$enable_static
19074
19075 # What type of objects to build.
19076 pic_mode=$pic_mode
19077
19078 # Whether or not to optimize for fast installation.
19079 fast_install=$enable_fast_install
19080
19081 # Shell to use when invoking shell scripts.
19082 SHELL=$lt_SHELL
19083
19084 # An echo program that protects backslashes.
19085 ECHO=$lt_ECHO
19086
19087 # The PATH separator for the build system.
19088 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19089
19090 # The host system.
19091 host_alias=$host_alias
19092 host=$host
19093 host_os=$host_os
19094
19095 # The build system.
19096 build_alias=$build_alias
19097 build=$build
19098 build_os=$build_os
19099
19100 # A sed program that does not truncate output.
19101 SED=$lt_SED
19102
19103 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19104 Xsed="\$SED -e 1s/^X//"
19105
19106 # A grep program that handles long lines.
19107 GREP=$lt_GREP
19108
19109 # An ERE matcher.
19110 EGREP=$lt_EGREP
19111
19112 # A literal string matcher.
19113 FGREP=$lt_FGREP
19114
19115 # A BSD- or MS-compatible name lister.
19116 NM=$lt_NM
19117
19118 # Whether we need soft or hard links.
19119 LN_S=$lt_LN_S
19120
19121 # What is the maximum length of a command?
19122 max_cmd_len=$max_cmd_len
19123
19124 # Object file suffix (normally "o").
19125 objext=$ac_objext
19126
19127 # Executable file suffix (normally "").
19128 exeext=$exeext
19129
19130 # whether the shell understands "unset".
19131 lt_unset=$lt_unset
19132
19133 # turn spaces into newlines.
19134 SP2NL=$lt_lt_SP2NL
19135
19136 # turn newlines into spaces.
19137 NL2SP=$lt_lt_NL2SP
19138
19139 # convert \$build file names to \$host format.
19140 to_host_file_cmd=$lt_cv_to_host_file_cmd
19141
19142 # convert \$build files to toolchain format.
19143 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19144
19145 # An object symbol dumper.
19146 OBJDUMP=$lt_OBJDUMP
19147
19148 # Method to check whether dependent libraries are shared objects.
19149 deplibs_check_method=$lt_deplibs_check_method
19150
19151 # Command to use when deplibs_check_method = "file_magic".
19152 file_magic_cmd=$lt_file_magic_cmd
19153
19154 # How to find potential files when deplibs_check_method = "file_magic".
19155 file_magic_glob=$lt_file_magic_glob
19156
19157 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19158 want_nocaseglob=$lt_want_nocaseglob
19159
19160 # DLL creation program.
19161 DLLTOOL=$lt_DLLTOOL
19162
19163 # Command to associate shared and link libraries.
19164 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19165
19166 # The archiver.
19167 AR=$lt_AR
19168
19169 # Flags to create an archive.
19170 AR_FLAGS=$lt_AR_FLAGS
19171
19172 # How to feed a file listing to the archiver.
19173 archiver_list_spec=$lt_archiver_list_spec
19174
19175 # A symbol stripping program.
19176 STRIP=$lt_STRIP
19177
19178 # Commands used to install an old-style archive.
19179 RANLIB=$lt_RANLIB
19180 old_postinstall_cmds=$lt_old_postinstall_cmds
19181 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19182
19183 # Whether to use a lock for old archive extraction.
19184 lock_old_archive_extraction=$lock_old_archive_extraction
19185
19186 # A C compiler.
19187 LTCC=$lt_CC
19188
19189 # LTCC compiler flags.
19190 LTCFLAGS=$lt_CFLAGS
19191
19192 # Take the output of nm and produce a listing of raw symbols and C names.
19193 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19194
19195 # Transform the output of nm in a proper C declaration.
19196 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19197
19198 # Transform the output of nm in a C name address pair.
19199 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19200
19201 # Transform the output of nm in a C name address pair when lib prefix is needed.
19202 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19203
19204 # Specify filename containing input files for \$NM.
19205 nm_file_list_spec=$lt_nm_file_list_spec
19206
19207 # The root where to search for dependent libraries,and in which our libraries should be installed.
19208 lt_sysroot=$lt_sysroot
19209
19210 # The name of the directory that contains temporary libtool files.
19211 objdir=$objdir
19212
19213 # Used to examine libraries when file_magic_cmd begins with "file".
19214 MAGIC_CMD=$MAGIC_CMD
19215
19216 # Must we lock files when doing compilation?
19217 need_locks=$lt_need_locks
19218
19219 # Manifest tool.
19220 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19221
19222 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19223 DSYMUTIL=$lt_DSYMUTIL
19224
19225 # Tool to change global to local symbols on Mac OS X.
19226 NMEDIT=$lt_NMEDIT
19227
19228 # Tool to manipulate fat objects and archives on Mac OS X.
19229 LIPO=$lt_LIPO
19230
19231 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19232 OTOOL=$lt_OTOOL
19233
19234 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19235 OTOOL64=$lt_OTOOL64
19236
19237 # Old archive suffix (normally "a").
19238 libext=$libext
19239
19240 # Shared library suffix (normally ".so").
19241 shrext_cmds=$lt_shrext_cmds
19242
19243 # The commands to extract the exported symbol list from a shared archive.
19244 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19245
19246 # Variables whose values should be saved in libtool wrapper scripts and
19247 # restored at link time.
19248 variables_saved_for_relink=$lt_variables_saved_for_relink
19249
19250 # Do we need the "lib" prefix for modules?
19251 need_lib_prefix=$need_lib_prefix
19252
19253 # Do we need a version for libraries?
19254 need_version=$need_version
19255
19256 # Library versioning type.
19257 version_type=$version_type
19258
19259 # Shared library runtime path variable.
19260 runpath_var=$runpath_var
19261
19262 # Shared library path variable.
19263 shlibpath_var=$shlibpath_var
19264
19265 # Is shlibpath searched before the hard-coded library search path?
19266 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19267
19268 # Format of library name prefix.
19269 libname_spec=$lt_libname_spec
19270
19271 # List of archive names.  First name is the real one, the rest are links.
19272 # The last name is the one that the linker finds with -lNAME
19273 library_names_spec=$lt_library_names_spec
19274
19275 # The coded name of the library, if different from the real name.
19276 soname_spec=$lt_soname_spec
19277
19278 # Permission mode override for installation of shared libraries.
19279 install_override_mode=$lt_install_override_mode
19280
19281 # Command to use after installation of a shared archive.
19282 postinstall_cmds=$lt_postinstall_cmds
19283
19284 # Command to use after uninstallation of a shared archive.
19285 postuninstall_cmds=$lt_postuninstall_cmds
19286
19287 # Commands used to finish a libtool library installation in a directory.
19288 finish_cmds=$lt_finish_cmds
19289
19290 # As "finish_cmds", except a single script fragment to be evaled but
19291 # not shown.
19292 finish_eval=$lt_finish_eval
19293
19294 # Whether we should hardcode library paths into libraries.
19295 hardcode_into_libs=$hardcode_into_libs
19296
19297 # Compile-time system search path for libraries.
19298 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19299
19300 # Run-time system search path for libraries.
19301 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19302
19303 # Whether dlopen is supported.
19304 dlopen_support=$enable_dlopen
19305
19306 # Whether dlopen of programs is supported.
19307 dlopen_self=$enable_dlopen_self
19308
19309 # Whether dlopen of statically linked programs is supported.
19310 dlopen_self_static=$enable_dlopen_self_static
19311
19312 # Commands to strip libraries.
19313 old_striplib=$lt_old_striplib
19314 striplib=$lt_striplib
19315
19316
19317 # The linker used to build libraries.
19318 LD=$lt_LD
19319
19320 # How to create reloadable object files.
19321 reload_flag=$lt_reload_flag
19322 reload_cmds=$lt_reload_cmds
19323
19324 # Commands used to build an old-style archive.
19325 old_archive_cmds=$lt_old_archive_cmds
19326
19327 # A language specific compiler.
19328 CC=$lt_compiler
19329
19330 # Is the compiler the GNU compiler?
19331 with_gcc=$GCC
19332
19333 # Compiler flag to turn off builtin functions.
19334 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19335
19336 # Additional compiler flags for building library objects.
19337 pic_flag=$lt_lt_prog_compiler_pic
19338
19339 # How to pass a linker flag through the compiler.
19340 wl=$lt_lt_prog_compiler_wl
19341
19342 # Compiler flag to prevent dynamic linking.
19343 link_static_flag=$lt_lt_prog_compiler_static
19344
19345 # Does compiler simultaneously support -c and -o options?
19346 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19347
19348 # Whether or not to add -lc for building shared libraries.
19349 build_libtool_need_lc=$archive_cmds_need_lc
19350
19351 # Whether or not to disallow shared libs when runtime libs are static.
19352 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19353
19354 # Compiler flag to allow reflexive dlopens.
19355 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19356
19357 # Compiler flag to generate shared objects directly from archives.
19358 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19359
19360 # Whether the compiler copes with passing no objects directly.
19361 compiler_needs_object=$lt_compiler_needs_object
19362
19363 # Create an old-style archive from a shared archive.
19364 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19365
19366 # Create a temporary old-style archive to link instead of a shared archive.
19367 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19368
19369 # Commands used to build a shared archive.
19370 archive_cmds=$lt_archive_cmds
19371 archive_expsym_cmds=$lt_archive_expsym_cmds
19372
19373 # Commands used to build a loadable module if different from building
19374 # a shared archive.
19375 module_cmds=$lt_module_cmds
19376 module_expsym_cmds=$lt_module_expsym_cmds
19377
19378 # Whether we are building with GNU ld or not.
19379 with_gnu_ld=$lt_with_gnu_ld
19380
19381 # Flag that allows shared libraries with undefined symbols to be built.
19382 allow_undefined_flag=$lt_allow_undefined_flag
19383
19384 # Flag that enforces no undefined symbols.
19385 no_undefined_flag=$lt_no_undefined_flag
19386
19387 # Flag to hardcode \$libdir into a binary during linking.
19388 # This must work even if \$libdir does not exist
19389 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19390
19391 # Whether we need a single "-rpath" flag with a separated argument.
19392 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19393
19394 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19395 # DIR into the resulting binary.
19396 hardcode_direct=$hardcode_direct
19397
19398 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19399 # DIR into the resulting binary and the resulting library dependency is
19400 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19401 # library is relocated.
19402 hardcode_direct_absolute=$hardcode_direct_absolute
19403
19404 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19405 # into the resulting binary.
19406 hardcode_minus_L=$hardcode_minus_L
19407
19408 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19409 # into the resulting binary.
19410 hardcode_shlibpath_var=$hardcode_shlibpath_var
19411
19412 # Set to "yes" if building a shared library automatically hardcodes DIR
19413 # into the library and all subsequent libraries and executables linked
19414 # against it.
19415 hardcode_automatic=$hardcode_automatic
19416
19417 # Set to yes if linker adds runtime paths of dependent libraries
19418 # to runtime path list.
19419 inherit_rpath=$inherit_rpath
19420
19421 # Whether libtool must link a program against all its dependency libraries.
19422 link_all_deplibs=$link_all_deplibs
19423
19424 # Set to "yes" if exported symbols are required.
19425 always_export_symbols=$always_export_symbols
19426
19427 # The commands to list exported symbols.
19428 export_symbols_cmds=$lt_export_symbols_cmds
19429
19430 # Symbols that should not be listed in the preloaded symbols.
19431 exclude_expsyms=$lt_exclude_expsyms
19432
19433 # Symbols that must always be exported.
19434 include_expsyms=$lt_include_expsyms
19435
19436 # Commands necessary for linking programs (against libraries) with templates.
19437 prelink_cmds=$lt_prelink_cmds
19438
19439 # Commands necessary for finishing linking programs.
19440 postlink_cmds=$lt_postlink_cmds
19441
19442 # Specify filename containing input files.
19443 file_list_spec=$lt_file_list_spec
19444
19445 # How to hardcode a shared library path into an executable.
19446 hardcode_action=$hardcode_action
19447
19448 # The directories searched by this compiler when creating a shared library.
19449 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19450
19451 # Dependencies to place before and after the objects being linked to
19452 # create a shared library.
19453 predep_objects=$lt_predep_objects
19454 postdep_objects=$lt_postdep_objects
19455 predeps=$lt_predeps
19456 postdeps=$lt_postdeps
19457
19458 # The library search path used internally by the compiler when linking
19459 # a shared library.
19460 compiler_lib_search_path=$lt_compiler_lib_search_path
19461
19462 # ### END LIBTOOL CONFIG
19463
19464 _LT_EOF
19465
19466   case $host_os in
19467   aix3*)
19468     cat <<\_LT_EOF >> "$cfgfile"
19469 # AIX sometimes has problems with the GCC collect2 program.  For some
19470 # reason, if we set the COLLECT_NAMES environment variable, the problems
19471 # vanish in a puff of smoke.
19472 if test "X${COLLECT_NAMES+set}" != Xset; then
19473   COLLECT_NAMES=
19474   export COLLECT_NAMES
19475 fi
19476 _LT_EOF
19477     ;;
19478   esac
19479
19480
19481 ltmain="$ac_aux_dir/ltmain.sh"
19482
19483
19484   # We use sed instead of cat because bash on DJGPP gets confused if
19485   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19486   # text mode, it properly converts lines to CR/LF.  This bash problem
19487   # is reportedly fixed, but why not run on old versions too?
19488   sed '$q' "$ltmain" >> "$cfgfile" \
19489      || (rm -f "$cfgfile"; exit 1)
19490
19491   if test x"$xsi_shell" = xyes; then
19492   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19493 func_dirname ()\
19494 {\
19495 \    case ${1} in\
19496 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19497 \      *  ) func_dirname_result="${3}" ;;\
19498 \    esac\
19499 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19500   && mv -f "$cfgfile.tmp" "$cfgfile" \
19501     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19502 test 0 -eq $? || _lt_function_replace_fail=:
19503
19504
19505   sed -e '/^func_basename ()$/,/^} # func_basename /c\
19506 func_basename ()\
19507 {\
19508 \    func_basename_result="${1##*/}"\
19509 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19510   && mv -f "$cfgfile.tmp" "$cfgfile" \
19511     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19512 test 0 -eq $? || _lt_function_replace_fail=:
19513
19514
19515   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19516 func_dirname_and_basename ()\
19517 {\
19518 \    case ${1} in\
19519 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19520 \      *  ) func_dirname_result="${3}" ;;\
19521 \    esac\
19522 \    func_basename_result="${1##*/}"\
19523 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19524   && mv -f "$cfgfile.tmp" "$cfgfile" \
19525     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19526 test 0 -eq $? || _lt_function_replace_fail=:
19527
19528
19529   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19530 func_stripname ()\
19531 {\
19532 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19533 \    # positional parameters, so assign one to ordinary parameter first.\
19534 \    func_stripname_result=${3}\
19535 \    func_stripname_result=${func_stripname_result#"${1}"}\
19536 \    func_stripname_result=${func_stripname_result%"${2}"}\
19537 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19538   && mv -f "$cfgfile.tmp" "$cfgfile" \
19539     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19540 test 0 -eq $? || _lt_function_replace_fail=:
19541
19542
19543   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19544 func_split_long_opt ()\
19545 {\
19546 \    func_split_long_opt_name=${1%%=*}\
19547 \    func_split_long_opt_arg=${1#*=}\
19548 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19549   && mv -f "$cfgfile.tmp" "$cfgfile" \
19550     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19551 test 0 -eq $? || _lt_function_replace_fail=:
19552
19553
19554   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19555 func_split_short_opt ()\
19556 {\
19557 \    func_split_short_opt_arg=${1#??}\
19558 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19559 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19560   && mv -f "$cfgfile.tmp" "$cfgfile" \
19561     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19562 test 0 -eq $? || _lt_function_replace_fail=:
19563
19564
19565   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19566 func_lo2o ()\
19567 {\
19568 \    case ${1} in\
19569 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19570 \      *)    func_lo2o_result=${1} ;;\
19571 \    esac\
19572 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19573   && mv -f "$cfgfile.tmp" "$cfgfile" \
19574     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19575 test 0 -eq $? || _lt_function_replace_fail=:
19576
19577
19578   sed -e '/^func_xform ()$/,/^} # func_xform /c\
19579 func_xform ()\
19580 {\
19581     func_xform_result=${1%.*}.lo\
19582 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19583   && mv -f "$cfgfile.tmp" "$cfgfile" \
19584     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19585 test 0 -eq $? || _lt_function_replace_fail=:
19586
19587
19588   sed -e '/^func_arith ()$/,/^} # func_arith /c\
19589 func_arith ()\
19590 {\
19591     func_arith_result=$(( $* ))\
19592 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19593   && mv -f "$cfgfile.tmp" "$cfgfile" \
19594     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19595 test 0 -eq $? || _lt_function_replace_fail=:
19596
19597
19598   sed -e '/^func_len ()$/,/^} # func_len /c\
19599 func_len ()\
19600 {\
19601     func_len_result=${#1}\
19602 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19603   && mv -f "$cfgfile.tmp" "$cfgfile" \
19604     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19605 test 0 -eq $? || _lt_function_replace_fail=:
19606
19607 fi
19608
19609 if test x"$lt_shell_append" = xyes; then
19610   sed -e '/^func_append ()$/,/^} # func_append /c\
19611 func_append ()\
19612 {\
19613     eval "${1}+=\\${2}"\
19614 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19615   && mv -f "$cfgfile.tmp" "$cfgfile" \
19616     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19617 test 0 -eq $? || _lt_function_replace_fail=:
19618
19619
19620   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19621 func_append_quoted ()\
19622 {\
19623 \    func_quote_for_eval "${2}"\
19624 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19625 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19626   && mv -f "$cfgfile.tmp" "$cfgfile" \
19627     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19628 test 0 -eq $? || _lt_function_replace_fail=:
19629
19630
19631   # Save a `func_append' function call where possible by direct use of '+='
19632   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19633     && mv -f "$cfgfile.tmp" "$cfgfile" \
19634       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19635   test 0 -eq $? || _lt_function_replace_fail=:
19636 else
19637   # Save a `func_append' function call even when '+=' is not available
19638   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19639     && mv -f "$cfgfile.tmp" "$cfgfile" \
19640       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19641   test 0 -eq $? || _lt_function_replace_fail=:
19642 fi
19643
19644 if test x"$_lt_function_replace_fail" = x":"; then
19645   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19646 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19647 fi
19648
19649
19650    mv -f "$cfgfile" "$ofile" ||
19651     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19652   chmod +x "$ofile"
19653
19654
19655     cat <<_LT_EOF >> "$ofile"
19656
19657 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19658
19659 # The linker used to build libraries.
19660 LD=$lt_LD_CXX
19661
19662 # How to create reloadable object files.
19663 reload_flag=$lt_reload_flag_CXX
19664 reload_cmds=$lt_reload_cmds_CXX
19665
19666 # Commands used to build an old-style archive.
19667 old_archive_cmds=$lt_old_archive_cmds_CXX
19668
19669 # A language specific compiler.
19670 CC=$lt_compiler_CXX
19671
19672 # Is the compiler the GNU compiler?
19673 with_gcc=$GCC_CXX
19674
19675 # Compiler flag to turn off builtin functions.
19676 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19677
19678 # Additional compiler flags for building library objects.
19679 pic_flag=$lt_lt_prog_compiler_pic_CXX
19680
19681 # How to pass a linker flag through the compiler.
19682 wl=$lt_lt_prog_compiler_wl_CXX
19683
19684 # Compiler flag to prevent dynamic linking.
19685 link_static_flag=$lt_lt_prog_compiler_static_CXX
19686
19687 # Does compiler simultaneously support -c and -o options?
19688 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19689
19690 # Whether or not to add -lc for building shared libraries.
19691 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19692
19693 # Whether or not to disallow shared libs when runtime libs are static.
19694 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19695
19696 # Compiler flag to allow reflexive dlopens.
19697 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19698
19699 # Compiler flag to generate shared objects directly from archives.
19700 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19701
19702 # Whether the compiler copes with passing no objects directly.
19703 compiler_needs_object=$lt_compiler_needs_object_CXX
19704
19705 # Create an old-style archive from a shared archive.
19706 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19707
19708 # Create a temporary old-style archive to link instead of a shared archive.
19709 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19710
19711 # Commands used to build a shared archive.
19712 archive_cmds=$lt_archive_cmds_CXX
19713 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19714
19715 # Commands used to build a loadable module if different from building
19716 # a shared archive.
19717 module_cmds=$lt_module_cmds_CXX
19718 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19719
19720 # Whether we are building with GNU ld or not.
19721 with_gnu_ld=$lt_with_gnu_ld_CXX
19722
19723 # Flag that allows shared libraries with undefined symbols to be built.
19724 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19725
19726 # Flag that enforces no undefined symbols.
19727 no_undefined_flag=$lt_no_undefined_flag_CXX
19728
19729 # Flag to hardcode \$libdir into a binary during linking.
19730 # This must work even if \$libdir does not exist
19731 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19732
19733 # Whether we need a single "-rpath" flag with a separated argument.
19734 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19735
19736 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19737 # DIR into the resulting binary.
19738 hardcode_direct=$hardcode_direct_CXX
19739
19740 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19741 # DIR into the resulting binary and the resulting library dependency is
19742 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19743 # library is relocated.
19744 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19745
19746 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19747 # into the resulting binary.
19748 hardcode_minus_L=$hardcode_minus_L_CXX
19749
19750 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19751 # into the resulting binary.
19752 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19753
19754 # Set to "yes" if building a shared library automatically hardcodes DIR
19755 # into the library and all subsequent libraries and executables linked
19756 # against it.
19757 hardcode_automatic=$hardcode_automatic_CXX
19758
19759 # Set to yes if linker adds runtime paths of dependent libraries
19760 # to runtime path list.
19761 inherit_rpath=$inherit_rpath_CXX
19762
19763 # Whether libtool must link a program against all its dependency libraries.
19764 link_all_deplibs=$link_all_deplibs_CXX
19765
19766 # Set to "yes" if exported symbols are required.
19767 always_export_symbols=$always_export_symbols_CXX
19768
19769 # The commands to list exported symbols.
19770 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19771
19772 # Symbols that should not be listed in the preloaded symbols.
19773 exclude_expsyms=$lt_exclude_expsyms_CXX
19774
19775 # Symbols that must always be exported.
19776 include_expsyms=$lt_include_expsyms_CXX
19777
19778 # Commands necessary for linking programs (against libraries) with templates.
19779 prelink_cmds=$lt_prelink_cmds_CXX
19780
19781 # Commands necessary for finishing linking programs.
19782 postlink_cmds=$lt_postlink_cmds_CXX
19783
19784 # Specify filename containing input files.
19785 file_list_spec=$lt_file_list_spec_CXX
19786
19787 # How to hardcode a shared library path into an executable.
19788 hardcode_action=$hardcode_action_CXX
19789
19790 # The directories searched by this compiler when creating a shared library.
19791 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19792
19793 # Dependencies to place before and after the objects being linked to
19794 # create a shared library.
19795 predep_objects=$lt_predep_objects_CXX
19796 postdep_objects=$lt_postdep_objects_CXX
19797 predeps=$lt_predeps_CXX
19798 postdeps=$lt_postdeps_CXX
19799
19800 # The library search path used internally by the compiler when linking
19801 # a shared library.
19802 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19803
19804 # ### END LIBTOOL TAG CONFIG: CXX
19805 _LT_EOF
19806
19807  ;;
19808
19809   esac
19810 done # for ac_tag
19811
19812
19813 as_fn_exit 0
19814 _ACEOF
19815 ac_clean_files=$ac_clean_files_save
19816
19817 test $ac_write_fail = 0 ||
19818   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19819
19820
19821 # configure is writing to config.log, and then calls config.status.
19822 # config.status does its own redirection, appending to config.log.
19823 # Unfortunately, on DOS this fails, as config.log is still kept open
19824 # by configure, so config.status won't be able to write to it; its
19825 # output is simply discarded.  So we exec the FD to /dev/null,
19826 # effectively closing config.log, so it can be properly (re)opened and
19827 # appended to by config.status.  When coming back to configure, we
19828 # need to make the FD available again.
19829 if test "$no_create" != yes; then
19830   ac_cs_success=:
19831   ac_config_status_args=
19832   test "$silent" = yes &&
19833     ac_config_status_args="$ac_config_status_args --quiet"
19834   exec 5>/dev/null
19835   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19836   exec 5>>config.log
19837   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19838   # would make configure fail if this is the last instruction.
19839   $ac_cs_success || as_fn_exit 1
19840 fi
19841 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19842   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19843 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19844 fi
19845