glog: release 0.3.5
[platform/upstream/glog.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for glog 0.3.5.
4 #
5 # Report bugs to <opensource@google.com>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: opensource@google.com about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='glog'
592 PACKAGE_TARNAME='glog'
593 PACKAGE_VERSION='0.3.5'
594 PACKAGE_STRING='glog 0.3.5'
595 PACKAGE_BUGREPORT='opensource@google.com'
596 PACKAGE_URL=''
597
598 ac_unique_file="README"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 GMOCK_LIBS
640 GTEST_LIBS
641 GFLAGS_LIBS
642 MINGW_CFLAGS
643 GMOCK_CFLAGS
644 GTEST_CFLAGS
645 GFLAGS_CFLAGS
646 ac_cv_have_libgflags
647 ac_cv_have___uint16
648 ac_cv_have_u_int16_t
649 ac_cv_have_uint16_t
650 ac_cv_have_unistd_h
651 ac_cv_have_inttypes_h
652 ac_cv_have_systypes_h
653 ac_cv_have_stdint_h
654 ac_cv_have___builtin_expect
655 ac_cv___attribute___printf_4_5
656 ac_cv___attribute___noinline
657 ac_cv___attribute___noreturn
658 ac_cv_cxx_using_operator
659 ac_google_namespace
660 ac_google_end_namespace
661 ac_google_start_namespace
662 UNWIND_LIBS
663 HAVE_GMOCK_FALSE
664 HAVE_GMOCK_TRUE
665 GMOCK_CONFIG
666 GTEST_CONFIG
667 PTHREAD_CFLAGS
668 PTHREAD_LIBS
669 PTHREAD_CC
670 acx_pthread_config
671 DISABLE_RTTI_FALSE
672 DISABLE_RTTI_TRUE
673 X86_64_FALSE
674 X86_64_TRUE
675 ENABLE_FRAME_POINTERS_FALSE
676 ENABLE_FRAME_POINTERS_TRUE
677 LIBTOOL_DEPS
678 CXXCPP
679 OTOOL64
680 OTOOL
681 LIPO
682 NMEDIT
683 DSYMUTIL
684 MANIFEST_TOOL
685 RANLIB
686 ac_ct_AR
687 AR
688 DLLTOOL
689 OBJDUMP
690 LN_S
691 NM
692 ac_ct_DUMPBIN
693 DUMPBIN
694 LD
695 FGREP
696 EGREP
697 GREP
698 SED
699 host_os
700 host_vendor
701 host_cpu
702 host
703 build_os
704 build_vendor
705 build_cpu
706 build
707 LIBTOOL
708 GCC_FALSE
709 GCC_TRUE
710 am__fastdepCXX_FALSE
711 am__fastdepCXX_TRUE
712 CXXDEPMODE
713 ac_ct_CXX
714 CXXFLAGS
715 CXX
716 CPP
717 am__fastdepCC_FALSE
718 am__fastdepCC_TRUE
719 CCDEPMODE
720 am__nodep
721 AMDEPBACKSLASH
722 AMDEP_FALSE
723 AMDEP_TRUE
724 am__quote
725 am__include
726 DEPDIR
727 OBJEXT
728 EXEEXT
729 ac_ct_CC
730 CPPFLAGS
731 LDFLAGS
732 CFLAGS
733 CC
734 AM_BACKSLASH
735 AM_DEFAULT_VERBOSITY
736 AM_DEFAULT_V
737 AM_V
738 am__untar
739 am__tar
740 AMTAR
741 am__leading_dot
742 SET_MAKE
743 AWK
744 mkdir_p
745 MKDIR_P
746 INSTALL_STRIP_PROGRAM
747 STRIP
748 install_sh
749 MAKEINFO
750 AUTOHEADER
751 AUTOMAKE
752 AUTOCONF
753 ACLOCAL
754 VERSION
755 PACKAGE
756 CYGPATH_W
757 am__isrc
758 INSTALL_DATA
759 INSTALL_SCRIPT
760 INSTALL_PROGRAM
761 target_alias
762 host_alias
763 build_alias
764 LIBS
765 ECHO_T
766 ECHO_N
767 ECHO_C
768 DEFS
769 mandir
770 localedir
771 libdir
772 psdir
773 pdfdir
774 dvidir
775 htmldir
776 infodir
777 docdir
778 oldincludedir
779 includedir
780 localstatedir
781 sharedstatedir
782 sysconfdir
783 datadir
784 datarootdir
785 libexecdir
786 sbindir
787 bindir
788 program_transform_name
789 prefix
790 exec_prefix
791 PACKAGE_URL
792 PACKAGE_BUGREPORT
793 PACKAGE_STRING
794 PACKAGE_VERSION
795 PACKAGE_TARNAME
796 PACKAGE_NAME
797 PATH_SEPARATOR
798 SHELL'
799 ac_subst_files=''
800 ac_user_opts='
801 enable_option_checking
802 enable_silent_rules
803 enable_dependency_tracking
804 enable_shared
805 enable_static
806 with_pic
807 enable_fast_install
808 with_gnu_ld
809 with_sysroot
810 enable_libtool_lock
811 enable_frame_pointers
812 enable_rtti
813 with_gflags
814 enable_namespace
815 '
816       ac_precious_vars='build_alias
817 host_alias
818 target_alias
819 CC
820 CFLAGS
821 LDFLAGS
822 LIBS
823 CPPFLAGS
824 CPP
825 CXX
826 CXXFLAGS
827 CCC
828 CXXCPP'
829
830
831 # Initialize some variables set by options.
832 ac_init_help=
833 ac_init_version=false
834 ac_unrecognized_opts=
835 ac_unrecognized_sep=
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
838 cache_file=/dev/null
839 exec_prefix=NONE
840 no_create=
841 no_recursion=
842 prefix=NONE
843 program_prefix=NONE
844 program_suffix=NONE
845 program_transform_name=s,x,x,
846 silent=
847 site=
848 srcdir=
849 verbose=
850 x_includes=NONE
851 x_libraries=NONE
852
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870 infodir='${datarootdir}/info'
871 htmldir='${docdir}'
872 dvidir='${docdir}'
873 pdfdir='${docdir}'
874 psdir='${docdir}'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
878
879 ac_prev=
880 ac_dashdash=
881 for ac_option
882 do
883   # If the previous option needs an argument, assign it.
884   if test -n "$ac_prev"; then
885     eval $ac_prev=\$ac_option
886     ac_prev=
887     continue
888   fi
889
890   case $ac_option in
891   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892   *=)   ac_optarg= ;;
893   *)    ac_optarg=yes ;;
894   esac
895
896   # Accept the important Cygnus configure options, so we can diagnose typos.
897
898   case $ac_dashdash$ac_option in
899   --)
900     ac_dashdash=yes ;;
901
902   -bindir | --bindir | --bindi | --bind | --bin | --bi)
903     ac_prev=bindir ;;
904   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905     bindir=$ac_optarg ;;
906
907   -build | --build | --buil | --bui | --bu)
908     ac_prev=build_alias ;;
909   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910     build_alias=$ac_optarg ;;
911
912   -cache-file | --cache-file | --cache-fil | --cache-fi \
913   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914     ac_prev=cache_file ;;
915   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917     cache_file=$ac_optarg ;;
918
919   --config-cache | -C)
920     cache_file=config.cache ;;
921
922   -datadir | --datadir | --datadi | --datad)
923     ac_prev=datadir ;;
924   -datadir=* | --datadir=* | --datadi=* | --datad=*)
925     datadir=$ac_optarg ;;
926
927   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928   | --dataroo | --dataro | --datar)
929     ac_prev=datarootdir ;;
930   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932     datarootdir=$ac_optarg ;;
933
934   -disable-* | --disable-*)
935     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936     # Reject names that are not valid shell variable names.
937     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938       as_fn_error $? "invalid feature name: $ac_useropt"
939     ac_useropt_orig=$ac_useropt
940     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941     case $ac_user_opts in
942       *"
943 "enable_$ac_useropt"
944 "*) ;;
945       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946          ac_unrecognized_sep=', ';;
947     esac
948     eval enable_$ac_useropt=no ;;
949
950   -docdir | --docdir | --docdi | --doc | --do)
951     ac_prev=docdir ;;
952   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953     docdir=$ac_optarg ;;
954
955   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956     ac_prev=dvidir ;;
957   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958     dvidir=$ac_optarg ;;
959
960   -enable-* | --enable-*)
961     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962     # Reject names that are not valid shell variable names.
963     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964       as_fn_error $? "invalid feature name: $ac_useropt"
965     ac_useropt_orig=$ac_useropt
966     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967     case $ac_user_opts in
968       *"
969 "enable_$ac_useropt"
970 "*) ;;
971       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972          ac_unrecognized_sep=', ';;
973     esac
974     eval enable_$ac_useropt=\$ac_optarg ;;
975
976   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978   | --exec | --exe | --ex)
979     ac_prev=exec_prefix ;;
980   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982   | --exec=* | --exe=* | --ex=*)
983     exec_prefix=$ac_optarg ;;
984
985   -gas | --gas | --ga | --g)
986     # Obsolete; use --with-gas.
987     with_gas=yes ;;
988
989   -help | --help | --hel | --he | -h)
990     ac_init_help=long ;;
991   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992     ac_init_help=recursive ;;
993   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994     ac_init_help=short ;;
995
996   -host | --host | --hos | --ho)
997     ac_prev=host_alias ;;
998   -host=* | --host=* | --hos=* | --ho=*)
999     host_alias=$ac_optarg ;;
1000
1001   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002     ac_prev=htmldir ;;
1003   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004   | --ht=*)
1005     htmldir=$ac_optarg ;;
1006
1007   -includedir | --includedir | --includedi | --included | --include \
1008   | --includ | --inclu | --incl | --inc)
1009     ac_prev=includedir ;;
1010   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011   | --includ=* | --inclu=* | --incl=* | --inc=*)
1012     includedir=$ac_optarg ;;
1013
1014   -infodir | --infodir | --infodi | --infod | --info | --inf)
1015     ac_prev=infodir ;;
1016   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017     infodir=$ac_optarg ;;
1018
1019   -libdir | --libdir | --libdi | --libd)
1020     ac_prev=libdir ;;
1021   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022     libdir=$ac_optarg ;;
1023
1024   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025   | --libexe | --libex | --libe)
1026     ac_prev=libexecdir ;;
1027   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028   | --libexe=* | --libex=* | --libe=*)
1029     libexecdir=$ac_optarg ;;
1030
1031   -localedir | --localedir | --localedi | --localed | --locale)
1032     ac_prev=localedir ;;
1033   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034     localedir=$ac_optarg ;;
1035
1036   -localstatedir | --localstatedir | --localstatedi | --localstated \
1037   | --localstate | --localstat | --localsta | --localst | --locals)
1038     ac_prev=localstatedir ;;
1039   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041     localstatedir=$ac_optarg ;;
1042
1043   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044     ac_prev=mandir ;;
1045   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046     mandir=$ac_optarg ;;
1047
1048   -nfp | --nfp | --nf)
1049     # Obsolete; use --without-fp.
1050     with_fp=no ;;
1051
1052   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053   | --no-cr | --no-c | -n)
1054     no_create=yes ;;
1055
1056   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058     no_recursion=yes ;;
1059
1060   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062   | --oldin | --oldi | --old | --ol | --o)
1063     ac_prev=oldincludedir ;;
1064   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067     oldincludedir=$ac_optarg ;;
1068
1069   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070     ac_prev=prefix ;;
1071   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072     prefix=$ac_optarg ;;
1073
1074   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075   | --program-pre | --program-pr | --program-p)
1076     ac_prev=program_prefix ;;
1077   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079     program_prefix=$ac_optarg ;;
1080
1081   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082   | --program-suf | --program-su | --program-s)
1083     ac_prev=program_suffix ;;
1084   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086     program_suffix=$ac_optarg ;;
1087
1088   -program-transform-name | --program-transform-name \
1089   | --program-transform-nam | --program-transform-na \
1090   | --program-transform-n | --program-transform- \
1091   | --program-transform | --program-transfor \
1092   | --program-transfo | --program-transf \
1093   | --program-trans | --program-tran \
1094   | --progr-tra | --program-tr | --program-t)
1095     ac_prev=program_transform_name ;;
1096   -program-transform-name=* | --program-transform-name=* \
1097   | --program-transform-nam=* | --program-transform-na=* \
1098   | --program-transform-n=* | --program-transform-=* \
1099   | --program-transform=* | --program-transfor=* \
1100   | --program-transfo=* | --program-transf=* \
1101   | --program-trans=* | --program-tran=* \
1102   | --progr-tra=* | --program-tr=* | --program-t=*)
1103     program_transform_name=$ac_optarg ;;
1104
1105   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106     ac_prev=pdfdir ;;
1107   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108     pdfdir=$ac_optarg ;;
1109
1110   -psdir | --psdir | --psdi | --psd | --ps)
1111     ac_prev=psdir ;;
1112   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113     psdir=$ac_optarg ;;
1114
1115   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116   | -silent | --silent | --silen | --sile | --sil)
1117     silent=yes ;;
1118
1119   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120     ac_prev=sbindir ;;
1121   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122   | --sbi=* | --sb=*)
1123     sbindir=$ac_optarg ;;
1124
1125   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127   | --sharedst | --shareds | --shared | --share | --shar \
1128   | --sha | --sh)
1129     ac_prev=sharedstatedir ;;
1130   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133   | --sha=* | --sh=*)
1134     sharedstatedir=$ac_optarg ;;
1135
1136   -site | --site | --sit)
1137     ac_prev=site ;;
1138   -site=* | --site=* | --sit=*)
1139     site=$ac_optarg ;;
1140
1141   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142     ac_prev=srcdir ;;
1143   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144     srcdir=$ac_optarg ;;
1145
1146   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147   | --syscon | --sysco | --sysc | --sys | --sy)
1148     ac_prev=sysconfdir ;;
1149   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151     sysconfdir=$ac_optarg ;;
1152
1153   -target | --target | --targe | --targ | --tar | --ta | --t)
1154     ac_prev=target_alias ;;
1155   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156     target_alias=$ac_optarg ;;
1157
1158   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159     verbose=yes ;;
1160
1161   -version | --version | --versio | --versi | --vers | -V)
1162     ac_init_version=: ;;
1163
1164   -with-* | --with-*)
1165     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166     # Reject names that are not valid shell variable names.
1167     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168       as_fn_error $? "invalid package name: $ac_useropt"
1169     ac_useropt_orig=$ac_useropt
1170     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171     case $ac_user_opts in
1172       *"
1173 "with_$ac_useropt"
1174 "*) ;;
1175       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176          ac_unrecognized_sep=', ';;
1177     esac
1178     eval with_$ac_useropt=\$ac_optarg ;;
1179
1180   -without-* | --without-*)
1181     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182     # Reject names that are not valid shell variable names.
1183     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184       as_fn_error $? "invalid package name: $ac_useropt"
1185     ac_useropt_orig=$ac_useropt
1186     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187     case $ac_user_opts in
1188       *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192          ac_unrecognized_sep=', ';;
1193     esac
1194     eval with_$ac_useropt=no ;;
1195
1196   --x)
1197     # Obsolete; use --with-x.
1198     with_x=yes ;;
1199
1200   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201   | --x-incl | --x-inc | --x-in | --x-i)
1202     ac_prev=x_includes ;;
1203   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205     x_includes=$ac_optarg ;;
1206
1207   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209     ac_prev=x_libraries ;;
1210   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212     x_libraries=$ac_optarg ;;
1213
1214   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1215 Try \`$0 --help' for more information"
1216     ;;
1217
1218   *=*)
1219     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220     # Reject names that are not valid shell variable names.
1221     case $ac_envvar in #(
1222       '' | [0-9]* | *[!_$as_cr_alnum]* )
1223       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1224     esac
1225     eval $ac_envvar=\$ac_optarg
1226     export $ac_envvar ;;
1227
1228   *)
1229     # FIXME: should be removed in autoconf 3.0.
1230     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1234     ;;
1235
1236   esac
1237 done
1238
1239 if test -n "$ac_prev"; then
1240   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241   as_fn_error $? "missing argument to $ac_option"
1242 fi
1243
1244 if test -n "$ac_unrecognized_opts"; then
1245   case $enable_option_checking in
1246     no) ;;
1247     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1248     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1249   esac
1250 fi
1251
1252 # Check all directory arguments for consistency.
1253 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254                 datadir sysconfdir sharedstatedir localstatedir includedir \
1255                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256                 libdir localedir mandir
1257 do
1258   eval ac_val=\$$ac_var
1259   # Remove trailing slashes.
1260   case $ac_val in
1261     */ )
1262       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263       eval $ac_var=\$ac_val;;
1264   esac
1265   # Be sure to have absolute directory names.
1266   case $ac_val in
1267     [\\/$]* | ?:[\\/]* )  continue;;
1268     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269   esac
1270   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1271 done
1272
1273 # There might be people who depend on the old broken behavior: `$host'
1274 # used to hold the argument of --host etc.
1275 # FIXME: To remove some day.
1276 build=$build_alias
1277 host=$host_alias
1278 target=$target_alias
1279
1280 # FIXME: To remove some day.
1281 if test "x$host_alias" != x; then
1282   if test "x$build_alias" = x; then
1283     cross_compiling=maybe
1284   elif test "x$build_alias" != "x$host_alias"; then
1285     cross_compiling=yes
1286   fi
1287 fi
1288
1289 ac_tool_prefix=
1290 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291
1292 test "$silent" = yes && exec 6>/dev/null
1293
1294
1295 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296 ac_ls_di=`ls -di .` &&
1297 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298   as_fn_error $? "working directory cannot be determined"
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300   as_fn_error $? "pwd does not report name of working directory"
1301
1302
1303 # Find the source files, if location was not specified.
1304 if test -z "$srcdir"; then
1305   ac_srcdir_defaulted=yes
1306   # Try the directory containing this script, then the parent directory.
1307   ac_confdir=`$as_dirname -- "$as_myself" ||
1308 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309          X"$as_myself" : 'X\(//\)[^/]' \| \
1310          X"$as_myself" : 'X\(//\)$' \| \
1311          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312 $as_echo X"$as_myself" |
1313     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314             s//\1/
1315             q
1316           }
1317           /^X\(\/\/\)[^/].*/{
1318             s//\1/
1319             q
1320           }
1321           /^X\(\/\/\)$/{
1322             s//\1/
1323             q
1324           }
1325           /^X\(\/\).*/{
1326             s//\1/
1327             q
1328           }
1329           s/.*/./; q'`
1330   srcdir=$ac_confdir
1331   if test ! -r "$srcdir/$ac_unique_file"; then
1332     srcdir=..
1333   fi
1334 else
1335   ac_srcdir_defaulted=no
1336 fi
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1340 fi
1341 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342 ac_abs_confdir=`(
1343         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1344         pwd)`
1345 # When building in place, set srcdir=.
1346 if test "$ac_abs_confdir" = "$ac_pwd"; then
1347   srcdir=.
1348 fi
1349 # Remove unnecessary trailing slashes from srcdir.
1350 # Double slashes in file names in object file debugging info
1351 # mess up M-x gdb in Emacs.
1352 case $srcdir in
1353 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354 esac
1355 for ac_var in $ac_precious_vars; do
1356   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357   eval ac_env_${ac_var}_value=\$${ac_var}
1358   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1360 done
1361
1362 #
1363 # Report the --help message.
1364 #
1365 if test "$ac_init_help" = "long"; then
1366   # Omit some internal or obsolete options to make the list less imposing.
1367   # This message is too long to be a string in the A/UX 3.1 sh.
1368   cat <<_ACEOF
1369 \`configure' configures glog 0.3.5 to adapt to many kinds of systems.
1370
1371 Usage: $0 [OPTION]... [VAR=VALUE]...
1372
1373 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374 VAR=VALUE.  See below for descriptions of some of the useful variables.
1375
1376 Defaults for the options are specified in brackets.
1377
1378 Configuration:
1379   -h, --help              display this help and exit
1380       --help=short        display options specific to this package
1381       --help=recursive    display the short help of all the included packages
1382   -V, --version           display version information and exit
1383   -q, --quiet, --silent   do not print \`checking ...' messages
1384       --cache-file=FILE   cache test results in FILE [disabled]
1385   -C, --config-cache      alias for \`--cache-file=config.cache'
1386   -n, --no-create         do not create output files
1387       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1388
1389 Installation directories:
1390   --prefix=PREFIX         install architecture-independent files in PREFIX
1391                           [$ac_default_prefix]
1392   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1393                           [PREFIX]
1394
1395 By default, \`make install' will install all the files in
1396 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1397 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398 for instance \`--prefix=\$HOME'.
1399
1400 For better control, use the options below.
1401
1402 Fine tuning of the installation directories:
1403   --bindir=DIR            user executables [EPREFIX/bin]
1404   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1405   --libexecdir=DIR        program executables [EPREFIX/libexec]
1406   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1407   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1408   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1409   --libdir=DIR            object code libraries [EPREFIX/lib]
1410   --includedir=DIR        C header files [PREFIX/include]
1411   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1412   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1413   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1414   --infodir=DIR           info documentation [DATAROOTDIR/info]
1415   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1416   --mandir=DIR            man documentation [DATAROOTDIR/man]
1417   --docdir=DIR            documentation root [DATAROOTDIR/doc/glog]
1418   --htmldir=DIR           html documentation [DOCDIR]
1419   --dvidir=DIR            dvi documentation [DOCDIR]
1420   --pdfdir=DIR            pdf documentation [DOCDIR]
1421   --psdir=DIR             ps documentation [DOCDIR]
1422 _ACEOF
1423
1424   cat <<\_ACEOF
1425
1426 Program names:
1427   --program-prefix=PREFIX            prepend PREFIX to installed program names
1428   --program-suffix=SUFFIX            append SUFFIX to installed program names
1429   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1430
1431 System types:
1432   --build=BUILD     configure for building on BUILD [guessed]
1433   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1434 _ACEOF
1435 fi
1436
1437 if test -n "$ac_init_help"; then
1438   case $ac_init_help in
1439      short | recursive ) echo "Configuration of glog 0.3.5:";;
1440    esac
1441   cat <<\_ACEOF
1442
1443 Optional Features:
1444   --disable-option-checking  ignore unrecognized --enable/--with options
1445   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1446   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1447   --enable-silent-rules   less verbose build output (undo: "make V=1")
1448   --disable-silent-rules  verbose build output (undo: "make V=0")
1449   --enable-dependency-tracking
1450                           do not reject slow dependency extractors
1451   --disable-dependency-tracking
1452                           speeds up one-time build
1453   --enable-shared[=PKGS]  build shared libraries [default=yes]
1454   --enable-static[=PKGS]  build static libraries [default=yes]
1455   --enable-fast-install[=PKGS]
1456                           optimize for fast installation [default=yes]
1457   --disable-libtool-lock  avoid locking (might break parallel builds)
1458   --enable-frame-pointers On x86_64 systems, compile with
1459                           -fno-omit-frame-pointer (see INSTALL)
1460   --disable-rtti          Disable RTTI in glog
1461   --enable-namespace=FOO to define these Google
1462                              classes in the FOO namespace. --disable-namespace
1463                              to define them in the global namespace. Default
1464                              is to define them in namespace google.
1465
1466 Optional Packages:
1467   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1468   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1469   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1470                           both]
1471   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1472   --with-sysroot=DIR Search for dependent libraries within DIR
1473                         (or the compiler's sysroot if not specified).
1474                           --with-gflags=GFLAGS_DIR
1475
1476 Some influential environment variables:
1477   CC          C compiler command
1478   CFLAGS      C compiler flags
1479   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1480               nonstandard directory <lib dir>
1481   LIBS        libraries to pass to the linker, e.g. -l<library>
1482   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1483               you have headers in a nonstandard directory <include dir>
1484   CPP         C preprocessor
1485   CXX         C++ compiler command
1486   CXXFLAGS    C++ compiler flags
1487   CXXCPP      C++ preprocessor
1488
1489 Use these variables to override the choices made by `configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1491
1492 Report bugs to <opensource@google.com>.
1493 _ACEOF
1494 ac_status=$?
1495 fi
1496
1497 if test "$ac_init_help" = "recursive"; then
1498   # If there are subdirs, report their specific --help.
1499   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500     test -d "$ac_dir" ||
1501       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1502       continue
1503     ac_builddir=.
1504
1505 case "$ac_dir" in
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *)
1508   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1509   # A ".." for each directory in $ac_dir_suffix.
1510   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511   case $ac_top_builddir_sub in
1512   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514   esac ;;
1515 esac
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1520
1521 case $srcdir in
1522   .)  # We are building in place.
1523     ac_srcdir=.
1524     ac_top_srcdir=$ac_top_builddir_sub
1525     ac_abs_top_srcdir=$ac_pwd ;;
1526   [\\/]* | ?:[\\/]* )  # Absolute name.
1527     ac_srcdir=$srcdir$ac_dir_suffix;
1528     ac_top_srcdir=$srcdir
1529     ac_abs_top_srcdir=$srcdir ;;
1530   *) # Relative name.
1531     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532     ac_top_srcdir=$ac_top_build_prefix$srcdir
1533     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534 esac
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536
1537     cd "$ac_dir" || { ac_status=$?; continue; }
1538     # Check for guested configure.
1539     if test -f "$ac_srcdir/configure.gnu"; then
1540       echo &&
1541       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542     elif test -f "$ac_srcdir/configure"; then
1543       echo &&
1544       $SHELL "$ac_srcdir/configure" --help=recursive
1545     else
1546       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547     fi || ac_status=$?
1548     cd "$ac_pwd" || { ac_status=$?; break; }
1549   done
1550 fi
1551
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1554   cat <<\_ACEOF
1555 glog configure 0.3.5
1556 generated by GNU Autoconf 2.69
1557
1558 Copyright (C) 2012 Free Software Foundation, Inc.
1559 This configure script is free software; the Free Software Foundation
1560 gives unlimited permission to copy, distribute and modify it.
1561 _ACEOF
1562   exit
1563 fi
1564
1565 ## ------------------------ ##
1566 ## Autoconf initialization. ##
1567 ## ------------------------ ##
1568
1569 # ac_fn_c_try_compile LINENO
1570 # --------------------------
1571 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_c_try_compile ()
1573 {
1574   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575   rm -f conftest.$ac_objext
1576   if { { ac_try="$ac_compile"
1577 case "(($ac_try" in
1578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579   *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583   (eval "$ac_compile") 2>conftest.err
1584   ac_status=$?
1585   if test -s conftest.err; then
1586     grep -v '^ *+' conftest.err >conftest.er1
1587     cat conftest.er1 >&5
1588     mv -f conftest.er1 conftest.err
1589   fi
1590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591   test $ac_status = 0; } && {
1592          test -z "$ac_c_werror_flag" ||
1593          test ! -s conftest.err
1594        } && test -s conftest.$ac_objext; then :
1595   ac_retval=0
1596 else
1597   $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1599
1600         ac_retval=1
1601 fi
1602   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603   as_fn_set_status $ac_retval
1604
1605 } # ac_fn_c_try_compile
1606
1607 # ac_fn_c_try_cpp LINENO
1608 # ----------------------
1609 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_cpp ()
1611 {
1612   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613   if { { ac_try="$ac_cpp conftest.$ac_ext"
1614 case "(($ac_try" in
1615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616   *) ac_try_echo=$ac_try;;
1617 esac
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1621   ac_status=$?
1622   if test -s conftest.err; then
1623     grep -v '^ *+' conftest.err >conftest.er1
1624     cat conftest.er1 >&5
1625     mv -f conftest.er1 conftest.err
1626   fi
1627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628   test $ac_status = 0; } > conftest.i && {
1629          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1630          test ! -s conftest.err
1631        }; then :
1632   ac_retval=0
1633 else
1634   $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1636
1637     ac_retval=1
1638 fi
1639   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640   as_fn_set_status $ac_retval
1641
1642 } # ac_fn_c_try_cpp
1643
1644 # ac_fn_cxx_try_compile LINENO
1645 # ----------------------------
1646 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1647 ac_fn_cxx_try_compile ()
1648 {
1649   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650   rm -f conftest.$ac_objext
1651   if { { ac_try="$ac_compile"
1652 case "(($ac_try" in
1653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654   *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658   (eval "$ac_compile") 2>conftest.err
1659   ac_status=$?
1660   if test -s conftest.err; then
1661     grep -v '^ *+' conftest.err >conftest.er1
1662     cat conftest.er1 >&5
1663     mv -f conftest.er1 conftest.err
1664   fi
1665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666   test $ac_status = 0; } && {
1667          test -z "$ac_cxx_werror_flag" ||
1668          test ! -s conftest.err
1669        } && test -s conftest.$ac_objext; then :
1670   ac_retval=0
1671 else
1672   $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1674
1675         ac_retval=1
1676 fi
1677   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678   as_fn_set_status $ac_retval
1679
1680 } # ac_fn_cxx_try_compile
1681
1682 # ac_fn_c_try_link LINENO
1683 # -----------------------
1684 # Try to link conftest.$ac_ext, and return whether this succeeded.
1685 ac_fn_c_try_link ()
1686 {
1687   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688   rm -f conftest.$ac_objext conftest$ac_exeext
1689   if { { ac_try="$ac_link"
1690 case "(($ac_try" in
1691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692   *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696   (eval "$ac_link") 2>conftest.err
1697   ac_status=$?
1698   if test -s conftest.err; then
1699     grep -v '^ *+' conftest.err >conftest.er1
1700     cat conftest.er1 >&5
1701     mv -f conftest.er1 conftest.err
1702   fi
1703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704   test $ac_status = 0; } && {
1705          test -z "$ac_c_werror_flag" ||
1706          test ! -s conftest.err
1707        } && test -s conftest$ac_exeext && {
1708          test "$cross_compiling" = yes ||
1709          test -x conftest$ac_exeext
1710        }; then :
1711   ac_retval=0
1712 else
1713   $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1715
1716         ac_retval=1
1717 fi
1718   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1719   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1720   # interfere with the next link command; also delete a directory that is
1721   # left behind by Apple's compiler.  We do this before executing the actions.
1722   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724   as_fn_set_status $ac_retval
1725
1726 } # ac_fn_c_try_link
1727
1728 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1729 # -------------------------------------------------------
1730 # Tests whether HEADER exists and can be compiled using the include files in
1731 # INCLUDES, setting the cache variable VAR accordingly.
1732 ac_fn_c_check_header_compile ()
1733 {
1734   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736 $as_echo_n "checking for $2... " >&6; }
1737 if eval \${$3+:} false; then :
1738   $as_echo_n "(cached) " >&6
1739 else
1740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h.  */
1742 $4
1743 #include <$2>
1744 _ACEOF
1745 if ac_fn_c_try_compile "$LINENO"; then :
1746   eval "$3=yes"
1747 else
1748   eval "$3=no"
1749 fi
1750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1751 fi
1752 eval ac_res=\$$3
1753                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754 $as_echo "$ac_res" >&6; }
1755   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756
1757 } # ac_fn_c_check_header_compile
1758
1759 # ac_fn_c_try_run LINENO
1760 # ----------------------
1761 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1762 # that executables *can* be run.
1763 ac_fn_c_try_run ()
1764 {
1765   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766   if { { ac_try="$ac_link"
1767 case "(($ac_try" in
1768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769   *) ac_try_echo=$ac_try;;
1770 esac
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773   (eval "$ac_link") 2>&5
1774   ac_status=$?
1775   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1777   { { case "(($ac_try" in
1778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779   *) ac_try_echo=$ac_try;;
1780 esac
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783   (eval "$ac_try") 2>&5
1784   ac_status=$?
1785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786   test $ac_status = 0; }; }; then :
1787   ac_retval=0
1788 else
1789   $as_echo "$as_me: program exited with status $ac_status" >&5
1790        $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1792
1793        ac_retval=$ac_status
1794 fi
1795   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1796   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797   as_fn_set_status $ac_retval
1798
1799 } # ac_fn_c_try_run
1800
1801 # ac_fn_c_check_func LINENO FUNC VAR
1802 # ----------------------------------
1803 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1804 ac_fn_c_check_func ()
1805 {
1806   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval \${$3+:} false; then :
1810   $as_echo_n "(cached) " >&6
1811 else
1812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h.  */
1814 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1815    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1816 #define $2 innocuous_$2
1817
1818 /* System header to define __stub macros and hopefully few prototypes,
1819     which can conflict with char $2 (); below.
1820     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1821     <limits.h> exists even on freestanding compilers.  */
1822
1823 #ifdef __STDC__
1824 # include <limits.h>
1825 #else
1826 # include <assert.h>
1827 #endif
1828
1829 #undef $2
1830
1831 /* Override any GCC internal prototype to avoid an error.
1832    Use char because int might match the return type of a GCC
1833    builtin and then its argument prototype would still apply.  */
1834 #ifdef __cplusplus
1835 extern "C"
1836 #endif
1837 char $2 ();
1838 /* The GNU C library defines this for functions which it implements
1839     to always fail with ENOSYS.  Some functions are actually named
1840     something starting with __ and the normal name is an alias.  */
1841 #if defined __stub_$2 || defined __stub___$2
1842 choke me
1843 #endif
1844
1845 int
1846 main ()
1847 {
1848 return $2 ();
1849   ;
1850   return 0;
1851 }
1852 _ACEOF
1853 if ac_fn_c_try_link "$LINENO"; then :
1854   eval "$3=yes"
1855 else
1856   eval "$3=no"
1857 fi
1858 rm -f core conftest.err conftest.$ac_objext \
1859     conftest$ac_exeext conftest.$ac_ext
1860 fi
1861 eval ac_res=\$$3
1862                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863 $as_echo "$ac_res" >&6; }
1864   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865
1866 } # ac_fn_c_check_func
1867
1868 # ac_fn_cxx_try_cpp LINENO
1869 # ------------------------
1870 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1871 ac_fn_cxx_try_cpp ()
1872 {
1873   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874   if { { ac_try="$ac_cpp conftest.$ac_ext"
1875 case "(($ac_try" in
1876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877   *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1882   ac_status=$?
1883   if test -s conftest.err; then
1884     grep -v '^ *+' conftest.err >conftest.er1
1885     cat conftest.er1 >&5
1886     mv -f conftest.er1 conftest.err
1887   fi
1888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889   test $ac_status = 0; } > conftest.i && {
1890          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1891          test ! -s conftest.err
1892        }; then :
1893   ac_retval=0
1894 else
1895   $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1897
1898     ac_retval=1
1899 fi
1900   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901   as_fn_set_status $ac_retval
1902
1903 } # ac_fn_cxx_try_cpp
1904
1905 # ac_fn_cxx_try_link LINENO
1906 # -------------------------
1907 # Try to link conftest.$ac_ext, and return whether this succeeded.
1908 ac_fn_cxx_try_link ()
1909 {
1910   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911   rm -f conftest.$ac_objext conftest$ac_exeext
1912   if { { ac_try="$ac_link"
1913 case "(($ac_try" in
1914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915   *) ac_try_echo=$ac_try;;
1916 esac
1917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918 $as_echo "$ac_try_echo"; } >&5
1919   (eval "$ac_link") 2>conftest.err
1920   ac_status=$?
1921   if test -s conftest.err; then
1922     grep -v '^ *+' conftest.err >conftest.er1
1923     cat conftest.er1 >&5
1924     mv -f conftest.er1 conftest.err
1925   fi
1926   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927   test $ac_status = 0; } && {
1928          test -z "$ac_cxx_werror_flag" ||
1929          test ! -s conftest.err
1930        } && test -s conftest$ac_exeext && {
1931          test "$cross_compiling" = yes ||
1932          test -x conftest$ac_exeext
1933        }; then :
1934   ac_retval=0
1935 else
1936   $as_echo "$as_me: failed program was:" >&5
1937 sed 's/^/| /' conftest.$ac_ext >&5
1938
1939         ac_retval=1
1940 fi
1941   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1942   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1943   # interfere with the next link command; also delete a directory that is
1944   # left behind by Apple's compiler.  We do this before executing the actions.
1945   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1946   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947   as_fn_set_status $ac_retval
1948
1949 } # ac_fn_cxx_try_link
1950
1951 # ac_fn_cxx_try_run LINENO
1952 # ------------------------
1953 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1954 # that executables *can* be run.
1955 ac_fn_cxx_try_run ()
1956 {
1957   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958   if { { ac_try="$ac_link"
1959 case "(($ac_try" in
1960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961   *) ac_try_echo=$ac_try;;
1962 esac
1963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964 $as_echo "$ac_try_echo"; } >&5
1965   (eval "$ac_link") 2>&5
1966   ac_status=$?
1967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1968   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1969   { { case "(($ac_try" in
1970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971   *) ac_try_echo=$ac_try;;
1972 esac
1973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974 $as_echo "$ac_try_echo"; } >&5
1975   (eval "$ac_try") 2>&5
1976   ac_status=$?
1977   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978   test $ac_status = 0; }; }; then :
1979   ac_retval=0
1980 else
1981   $as_echo "$as_me: program exited with status $ac_status" >&5
1982        $as_echo "$as_me: failed program was:" >&5
1983 sed 's/^/| /' conftest.$ac_ext >&5
1984
1985        ac_retval=$ac_status
1986 fi
1987   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1988   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989   as_fn_set_status $ac_retval
1990
1991 } # ac_fn_cxx_try_run
1992
1993 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1994 # ---------------------------------------------------------
1995 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1996 # the include files in INCLUDES and setting the cache variable VAR
1997 # accordingly.
1998 ac_fn_cxx_check_header_mongrel ()
1999 {
2000   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001   if eval \${$3+:} false; then :
2002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if eval \${$3+:} false; then :
2005   $as_echo_n "(cached) " >&6
2006 fi
2007 eval ac_res=\$$3
2008                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2010 else
2011   # Is the header compilable?
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2013 $as_echo_n "checking $2 usability... " >&6; }
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h.  */
2016 $4
2017 #include <$2>
2018 _ACEOF
2019 if ac_fn_cxx_try_compile "$LINENO"; then :
2020   ac_header_compiler=yes
2021 else
2022   ac_header_compiler=no
2023 fi
2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2026 $as_echo "$ac_header_compiler" >&6; }
2027
2028 # Is the header present?
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2030 $as_echo_n "checking $2 presence... " >&6; }
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h.  */
2033 #include <$2>
2034 _ACEOF
2035 if ac_fn_cxx_try_cpp "$LINENO"; then :
2036   ac_header_preproc=yes
2037 else
2038   ac_header_preproc=no
2039 fi
2040 rm -f conftest.err conftest.i conftest.$ac_ext
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2042 $as_echo "$ac_header_preproc" >&6; }
2043
2044 # So?  What about this header?
2045 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2046   yes:no: )
2047     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2048 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2049     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2050 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2051     ;;
2052   no:yes:* )
2053     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2054 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2055     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2056 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2057     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2058 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2059     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2060 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2061     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2062 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2063 ( $as_echo "## ------------------------------------ ##
2064 ## Report this to opensource@google.com ##
2065 ## ------------------------------------ ##"
2066      ) | sed "s/^/$as_me: WARNING:     /" >&2
2067     ;;
2068 esac
2069   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2070 $as_echo_n "checking for $2... " >&6; }
2071 if eval \${$3+:} false; then :
2072   $as_echo_n "(cached) " >&6
2073 else
2074   eval "$3=\$ac_header_compiler"
2075 fi
2076 eval ac_res=\$$3
2077                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2079 fi
2080   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2081
2082 } # ac_fn_cxx_check_header_mongrel
2083
2084 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2085 # ----------------------------------------------
2086 # Tries to find the compile-time value of EXPR in a program that includes
2087 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2088 # computed
2089 ac_fn_cxx_compute_int ()
2090 {
2091   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092   if test "$cross_compiling" = yes; then
2093     # Depending upon the size, compute the lo and hi bounds.
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h.  */
2096 $4
2097 int
2098 main ()
2099 {
2100 static int test_array [1 - 2 * !(($2) >= 0)];
2101 test_array [0] = 0;
2102 return test_array [0];
2103
2104   ;
2105   return 0;
2106 }
2107 _ACEOF
2108 if ac_fn_cxx_try_compile "$LINENO"; then :
2109   ac_lo=0 ac_mid=0
2110   while :; do
2111     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h.  */
2113 $4
2114 int
2115 main ()
2116 {
2117 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2118 test_array [0] = 0;
2119 return test_array [0];
2120
2121   ;
2122   return 0;
2123 }
2124 _ACEOF
2125 if ac_fn_cxx_try_compile "$LINENO"; then :
2126   ac_hi=$ac_mid; break
2127 else
2128   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2129                         if test $ac_lo -le $ac_mid; then
2130                           ac_lo= ac_hi=
2131                           break
2132                         fi
2133                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2134 fi
2135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136   done
2137 else
2138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h.  */
2140 $4
2141 int
2142 main ()
2143 {
2144 static int test_array [1 - 2 * !(($2) < 0)];
2145 test_array [0] = 0;
2146 return test_array [0];
2147
2148   ;
2149   return 0;
2150 }
2151 _ACEOF
2152 if ac_fn_cxx_try_compile "$LINENO"; then :
2153   ac_hi=-1 ac_mid=-1
2154   while :; do
2155     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h.  */
2157 $4
2158 int
2159 main ()
2160 {
2161 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2162 test_array [0] = 0;
2163 return test_array [0];
2164
2165   ;
2166   return 0;
2167 }
2168 _ACEOF
2169 if ac_fn_cxx_try_compile "$LINENO"; then :
2170   ac_lo=$ac_mid; break
2171 else
2172   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2173                         if test $ac_mid -le $ac_hi; then
2174                           ac_lo= ac_hi=
2175                           break
2176                         fi
2177                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2178 fi
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180   done
2181 else
2182   ac_lo= ac_hi=
2183 fi
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185 fi
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 # Binary search between lo and hi bounds.
2188 while test "x$ac_lo" != "x$ac_hi"; do
2189   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h.  */
2192 $4
2193 int
2194 main ()
2195 {
2196 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2197 test_array [0] = 0;
2198 return test_array [0];
2199
2200   ;
2201   return 0;
2202 }
2203 _ACEOF
2204 if ac_fn_cxx_try_compile "$LINENO"; then :
2205   ac_hi=$ac_mid
2206 else
2207   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2208 fi
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 done
2211 case $ac_lo in #((
2212 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2213 '') ac_retval=1 ;;
2214 esac
2215   else
2216     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217 /* end confdefs.h.  */
2218 $4
2219 static long int longval () { return $2; }
2220 static unsigned long int ulongval () { return $2; }
2221 #include <stdio.h>
2222 #include <stdlib.h>
2223 int
2224 main ()
2225 {
2226
2227   FILE *f = fopen ("conftest.val", "w");
2228   if (! f)
2229     return 1;
2230   if (($2) < 0)
2231     {
2232       long int i = longval ();
2233       if (i != ($2))
2234         return 1;
2235       fprintf (f, "%ld", i);
2236     }
2237   else
2238     {
2239       unsigned long int i = ulongval ();
2240       if (i != ($2))
2241         return 1;
2242       fprintf (f, "%lu", i);
2243     }
2244   /* Do not output a trailing newline, as this causes \r\n confusion
2245      on some platforms.  */
2246   return ferror (f) || fclose (f) != 0;
2247
2248   ;
2249   return 0;
2250 }
2251 _ACEOF
2252 if ac_fn_cxx_try_run "$LINENO"; then :
2253   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2254 else
2255   ac_retval=1
2256 fi
2257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2258   conftest.$ac_objext conftest.beam conftest.$ac_ext
2259 rm -f conftest.val
2260
2261   fi
2262   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2263   as_fn_set_status $ac_retval
2264
2265 } # ac_fn_cxx_compute_int
2266
2267 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2268 # ---------------------------------------------
2269 # Tests whether TYPE exists after having included INCLUDES, setting cache
2270 # variable VAR accordingly.
2271 ac_fn_cxx_check_type ()
2272 {
2273   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2275 $as_echo_n "checking for $2... " >&6; }
2276 if eval \${$3+:} false; then :
2277   $as_echo_n "(cached) " >&6
2278 else
2279   eval "$3=no"
2280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h.  */
2282 $4
2283 int
2284 main ()
2285 {
2286 if (sizeof ($2))
2287          return 0;
2288   ;
2289   return 0;
2290 }
2291 _ACEOF
2292 if ac_fn_cxx_try_compile "$LINENO"; then :
2293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h.  */
2295 $4
2296 int
2297 main ()
2298 {
2299 if (sizeof (($2)))
2300             return 0;
2301   ;
2302   return 0;
2303 }
2304 _ACEOF
2305 if ac_fn_cxx_try_compile "$LINENO"; then :
2306
2307 else
2308   eval "$3=yes"
2309 fi
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 fi
2312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313 fi
2314 eval ac_res=\$$3
2315                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2316 $as_echo "$ac_res" >&6; }
2317   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2318
2319 } # ac_fn_cxx_check_type
2320
2321 # ac_fn_cxx_check_func LINENO FUNC VAR
2322 # ------------------------------------
2323 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2324 ac_fn_cxx_check_func ()
2325 {
2326   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2328 $as_echo_n "checking for $2... " >&6; }
2329 if eval \${$3+:} false; then :
2330   $as_echo_n "(cached) " >&6
2331 else
2332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h.  */
2334 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2335    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2336 #define $2 innocuous_$2
2337
2338 /* System header to define __stub macros and hopefully few prototypes,
2339     which can conflict with char $2 (); below.
2340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2341     <limits.h> exists even on freestanding compilers.  */
2342
2343 #ifdef __STDC__
2344 # include <limits.h>
2345 #else
2346 # include <assert.h>
2347 #endif
2348
2349 #undef $2
2350
2351 /* Override any GCC internal prototype to avoid an error.
2352    Use char because int might match the return type of a GCC
2353    builtin and then its argument prototype would still apply.  */
2354 #ifdef __cplusplus
2355 extern "C"
2356 #endif
2357 char $2 ();
2358 /* The GNU C library defines this for functions which it implements
2359     to always fail with ENOSYS.  Some functions are actually named
2360     something starting with __ and the normal name is an alias.  */
2361 #if defined __stub_$2 || defined __stub___$2
2362 choke me
2363 #endif
2364
2365 int
2366 main ()
2367 {
2368 return $2 ();
2369   ;
2370   return 0;
2371 }
2372 _ACEOF
2373 if ac_fn_cxx_try_link "$LINENO"; then :
2374   eval "$3=yes"
2375 else
2376   eval "$3=no"
2377 fi
2378 rm -f core conftest.err conftest.$ac_objext \
2379     conftest$ac_exeext conftest.$ac_ext
2380 fi
2381 eval ac_res=\$$3
2382                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2383 $as_echo "$ac_res" >&6; }
2384   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2385
2386 } # ac_fn_cxx_check_func
2387 cat >config.log <<_ACEOF
2388 This file contains any messages produced by compilers while
2389 running configure, to aid debugging if configure makes a mistake.
2390
2391 It was created by glog $as_me 0.3.5, which was
2392 generated by GNU Autoconf 2.69.  Invocation command line was
2393
2394   $ $0 $@
2395
2396 _ACEOF
2397 exec 5>>config.log
2398 {
2399 cat <<_ASUNAME
2400 ## --------- ##
2401 ## Platform. ##
2402 ## --------- ##
2403
2404 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2405 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2406 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2407 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2408 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2409
2410 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2411 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2412
2413 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2414 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2415 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2416 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2417 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2418 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2419 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2420
2421 _ASUNAME
2422
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 for as_dir in $PATH
2425 do
2426   IFS=$as_save_IFS
2427   test -z "$as_dir" && as_dir=.
2428     $as_echo "PATH: $as_dir"
2429   done
2430 IFS=$as_save_IFS
2431
2432 } >&5
2433
2434 cat >&5 <<_ACEOF
2435
2436
2437 ## ----------- ##
2438 ## Core tests. ##
2439 ## ----------- ##
2440
2441 _ACEOF
2442
2443
2444 # Keep a trace of the command line.
2445 # Strip out --no-create and --no-recursion so they do not pile up.
2446 # Strip out --silent because we don't want to record it for future runs.
2447 # Also quote any args containing shell meta-characters.
2448 # Make two passes to allow for proper duplicate-argument suppression.
2449 ac_configure_args=
2450 ac_configure_args0=
2451 ac_configure_args1=
2452 ac_must_keep_next=false
2453 for ac_pass in 1 2
2454 do
2455   for ac_arg
2456   do
2457     case $ac_arg in
2458     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2459     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2460     | -silent | --silent | --silen | --sile | --sil)
2461       continue ;;
2462     *\'*)
2463       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2464     esac
2465     case $ac_pass in
2466     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2467     2)
2468       as_fn_append ac_configure_args1 " '$ac_arg'"
2469       if test $ac_must_keep_next = true; then
2470         ac_must_keep_next=false # Got value, back to normal.
2471       else
2472         case $ac_arg in
2473           *=* | --config-cache | -C | -disable-* | --disable-* \
2474           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2475           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2476           | -with-* | --with-* | -without-* | --without-* | --x)
2477             case "$ac_configure_args0 " in
2478               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2479             esac
2480             ;;
2481           -* ) ac_must_keep_next=true ;;
2482         esac
2483       fi
2484       as_fn_append ac_configure_args " '$ac_arg'"
2485       ;;
2486     esac
2487   done
2488 done
2489 { ac_configure_args0=; unset ac_configure_args0;}
2490 { ac_configure_args1=; unset ac_configure_args1;}
2491
2492 # When interrupted or exit'd, cleanup temporary files, and complete
2493 # config.log.  We remove comments because anyway the quotes in there
2494 # would cause problems or look ugly.
2495 # WARNING: Use '\'' to represent an apostrophe within the trap.
2496 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2497 trap 'exit_status=$?
2498   # Save into config.log some information that might help in debugging.
2499   {
2500     echo
2501
2502     $as_echo "## ---------------- ##
2503 ## Cache variables. ##
2504 ## ---------------- ##"
2505     echo
2506     # The following way of writing the cache mishandles newlines in values,
2507 (
2508   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2509     eval ac_val=\$$ac_var
2510     case $ac_val in #(
2511     *${as_nl}*)
2512       case $ac_var in #(
2513       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2514 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2515       esac
2516       case $ac_var in #(
2517       _ | IFS | as_nl) ;; #(
2518       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2519       *) { eval $ac_var=; unset $ac_var;} ;;
2520       esac ;;
2521     esac
2522   done
2523   (set) 2>&1 |
2524     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2525     *${as_nl}ac_space=\ *)
2526       sed -n \
2527         "s/'\''/'\''\\\\'\'''\''/g;
2528           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2529       ;; #(
2530     *)
2531       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2532       ;;
2533     esac |
2534     sort
2535 )
2536     echo
2537
2538     $as_echo "## ----------------- ##
2539 ## Output variables. ##
2540 ## ----------------- ##"
2541     echo
2542     for ac_var in $ac_subst_vars
2543     do
2544       eval ac_val=\$$ac_var
2545       case $ac_val in
2546       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2547       esac
2548       $as_echo "$ac_var='\''$ac_val'\''"
2549     done | sort
2550     echo
2551
2552     if test -n "$ac_subst_files"; then
2553       $as_echo "## ------------------- ##
2554 ## File substitutions. ##
2555 ## ------------------- ##"
2556       echo
2557       for ac_var in $ac_subst_files
2558       do
2559         eval ac_val=\$$ac_var
2560         case $ac_val in
2561         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2562         esac
2563         $as_echo "$ac_var='\''$ac_val'\''"
2564       done | sort
2565       echo
2566     fi
2567
2568     if test -s confdefs.h; then
2569       $as_echo "## ----------- ##
2570 ## confdefs.h. ##
2571 ## ----------- ##"
2572       echo
2573       cat confdefs.h
2574       echo
2575     fi
2576     test "$ac_signal" != 0 &&
2577       $as_echo "$as_me: caught signal $ac_signal"
2578     $as_echo "$as_me: exit $exit_status"
2579   } >&5
2580   rm -f core *.core core.conftest.* &&
2581     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2582     exit $exit_status
2583 ' 0
2584 for ac_signal in 1 2 13 15; do
2585   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2586 done
2587 ac_signal=0
2588
2589 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2590 rm -f -r conftest* confdefs.h
2591
2592 $as_echo "/* confdefs.h */" > confdefs.h
2593
2594 # Predefined preprocessor variables.
2595
2596 cat >>confdefs.h <<_ACEOF
2597 #define PACKAGE_NAME "$PACKAGE_NAME"
2598 _ACEOF
2599
2600 cat >>confdefs.h <<_ACEOF
2601 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2602 _ACEOF
2603
2604 cat >>confdefs.h <<_ACEOF
2605 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2606 _ACEOF
2607
2608 cat >>confdefs.h <<_ACEOF
2609 #define PACKAGE_STRING "$PACKAGE_STRING"
2610 _ACEOF
2611
2612 cat >>confdefs.h <<_ACEOF
2613 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2614 _ACEOF
2615
2616 cat >>confdefs.h <<_ACEOF
2617 #define PACKAGE_URL "$PACKAGE_URL"
2618 _ACEOF
2619
2620
2621 # Let the site file select an alternate cache file if it wants to.
2622 # Prefer an explicitly selected file to automatically selected ones.
2623 ac_site_file1=NONE
2624 ac_site_file2=NONE
2625 if test -n "$CONFIG_SITE"; then
2626   # We do not want a PATH search for config.site.
2627   case $CONFIG_SITE in #((
2628     -*)  ac_site_file1=./$CONFIG_SITE;;
2629     */*) ac_site_file1=$CONFIG_SITE;;
2630     *)   ac_site_file1=./$CONFIG_SITE;;
2631   esac
2632 elif test "x$prefix" != xNONE; then
2633   ac_site_file1=$prefix/share/config.site
2634   ac_site_file2=$prefix/etc/config.site
2635 else
2636   ac_site_file1=$ac_default_prefix/share/config.site
2637   ac_site_file2=$ac_default_prefix/etc/config.site
2638 fi
2639 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2640 do
2641   test "x$ac_site_file" = xNONE && continue
2642   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2643     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2644 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2645     sed 's/^/| /' "$ac_site_file" >&5
2646     . "$ac_site_file" \
2647       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2649 as_fn_error $? "failed to load site script $ac_site_file
2650 See \`config.log' for more details" "$LINENO" 5; }
2651   fi
2652 done
2653
2654 if test -r "$cache_file"; then
2655   # Some versions of bash will fail to source /dev/null (special files
2656   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2657   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2658     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2659 $as_echo "$as_me: loading cache $cache_file" >&6;}
2660     case $cache_file in
2661       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2662       *)                      . "./$cache_file";;
2663     esac
2664   fi
2665 else
2666   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2667 $as_echo "$as_me: creating cache $cache_file" >&6;}
2668   >$cache_file
2669 fi
2670
2671 # Check that the precious variables saved in the cache have kept the same
2672 # value.
2673 ac_cache_corrupted=false
2674 for ac_var in $ac_precious_vars; do
2675   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2676   eval ac_new_set=\$ac_env_${ac_var}_set
2677   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2678   eval ac_new_val=\$ac_env_${ac_var}_value
2679   case $ac_old_set,$ac_new_set in
2680     set,)
2681       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2682 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2683       ac_cache_corrupted=: ;;
2684     ,set)
2685       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2686 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2687       ac_cache_corrupted=: ;;
2688     ,);;
2689     *)
2690       if test "x$ac_old_val" != "x$ac_new_val"; then
2691         # differences in whitespace do not lead to failure.
2692         ac_old_val_w=`echo x $ac_old_val`
2693         ac_new_val_w=`echo x $ac_new_val`
2694         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2695           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2696 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2697           ac_cache_corrupted=:
2698         else
2699           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2700 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2701           eval $ac_var=\$ac_old_val
2702         fi
2703         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2704 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2705         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2706 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2707       fi;;
2708   esac
2709   # Pass precious variables to config.status.
2710   if test "$ac_new_set" = set; then
2711     case $ac_new_val in
2712     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2713     *) ac_arg=$ac_var=$ac_new_val ;;
2714     esac
2715     case " $ac_configure_args " in
2716       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2717       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2718     esac
2719   fi
2720 done
2721 if $ac_cache_corrupted; then
2722   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2724   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2725 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2726   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2727 fi
2728 ## -------------------- ##
2729 ## Main body of script. ##
2730 ## -------------------- ##
2731
2732 ac_ext=c
2733 ac_cpp='$CPP $CPPFLAGS'
2734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2737
2738
2739 # The argument here is just something that should be in the current directory
2740 # (for sanity checking)
2741
2742
2743 am__api_version='1.14'
2744
2745 ac_aux_dir=
2746 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2747   if test -f "$ac_dir/install-sh"; then
2748     ac_aux_dir=$ac_dir
2749     ac_install_sh="$ac_aux_dir/install-sh -c"
2750     break
2751   elif test -f "$ac_dir/install.sh"; then
2752     ac_aux_dir=$ac_dir
2753     ac_install_sh="$ac_aux_dir/install.sh -c"
2754     break
2755   elif test -f "$ac_dir/shtool"; then
2756     ac_aux_dir=$ac_dir
2757     ac_install_sh="$ac_aux_dir/shtool install -c"
2758     break
2759   fi
2760 done
2761 if test -z "$ac_aux_dir"; then
2762   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2763 fi
2764
2765 # These three variables are undocumented and unsupported,
2766 # and are intended to be withdrawn in a future Autoconf release.
2767 # They can cause serious problems if a builder's source tree is in a directory
2768 # whose full name contains unusual characters.
2769 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2770 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2771 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2772
2773
2774 # Find a good install program.  We prefer a C program (faster),
2775 # so one script is as good as another.  But avoid the broken or
2776 # incompatible versions:
2777 # SysV /etc/install, /usr/sbin/install
2778 # SunOS /usr/etc/install
2779 # IRIX /sbin/install
2780 # AIX /bin/install
2781 # AmigaOS /C/install, which installs bootblocks on floppy discs
2782 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2783 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2784 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2785 # OS/2's system install, which has a completely different semantic
2786 # ./install, which can be erroneously created by make from ./install.sh.
2787 # Reject install programs that cannot install multiple files.
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2789 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2790 if test -z "$INSTALL"; then
2791 if ${ac_cv_path_install+:} false; then :
2792   $as_echo_n "(cached) " >&6
2793 else
2794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2796 do
2797   IFS=$as_save_IFS
2798   test -z "$as_dir" && as_dir=.
2799     # Account for people who put trailing slashes in PATH elements.
2800 case $as_dir/ in #((
2801   ./ | .// | /[cC]/* | \
2802   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2803   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2804   /usr/ucb/* ) ;;
2805   *)
2806     # OSF1 and SCO ODT 3.0 have their own names for install.
2807     # Don't use installbsd from OSF since it installs stuff as root
2808     # by default.
2809     for ac_prog in ginstall scoinst install; do
2810       for ac_exec_ext in '' $ac_executable_extensions; do
2811         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2812           if test $ac_prog = install &&
2813             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2814             # AIX install.  It has an incompatible calling convention.
2815             :
2816           elif test $ac_prog = install &&
2817             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2818             # program-specific install script used by HP pwplus--don't use.
2819             :
2820           else
2821             rm -rf conftest.one conftest.two conftest.dir
2822             echo one > conftest.one
2823             echo two > conftest.two
2824             mkdir conftest.dir
2825             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2826               test -s conftest.one && test -s conftest.two &&
2827               test -s conftest.dir/conftest.one &&
2828               test -s conftest.dir/conftest.two
2829             then
2830               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2831               break 3
2832             fi
2833           fi
2834         fi
2835       done
2836     done
2837     ;;
2838 esac
2839
2840   done
2841 IFS=$as_save_IFS
2842
2843 rm -rf conftest.one conftest.two conftest.dir
2844
2845 fi
2846   if test "${ac_cv_path_install+set}" = set; then
2847     INSTALL=$ac_cv_path_install
2848   else
2849     # As a last resort, use the slow shell script.  Don't cache a
2850     # value for INSTALL within a source directory, because that will
2851     # break other packages using the cache if that directory is
2852     # removed, or if the value is a relative name.
2853     INSTALL=$ac_install_sh
2854   fi
2855 fi
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2857 $as_echo "$INSTALL" >&6; }
2858
2859 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2860 # It thinks the first close brace ends the variable substitution.
2861 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2862
2863 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2864
2865 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2866
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2868 $as_echo_n "checking whether build environment is sane... " >&6; }
2869 # Reject unsafe characters in $srcdir or the absolute working directory
2870 # name.  Accept space and tab only in the latter.
2871 am_lf='
2872 '
2873 case `pwd` in
2874   *[\\\"\#\$\&\'\`$am_lf]*)
2875     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2876 esac
2877 case $srcdir in
2878   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2879     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2880 esac
2881
2882 # Do 'set' in a subshell so we don't clobber the current shell's
2883 # arguments.  Must try -L first in case configure is actually a
2884 # symlink; some systems play weird games with the mod time of symlinks
2885 # (eg FreeBSD returns the mod time of the symlink's containing
2886 # directory).
2887 if (
2888    am_has_slept=no
2889    for am_try in 1 2; do
2890      echo "timestamp, slept: $am_has_slept" > conftest.file
2891      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2892      if test "$*" = "X"; then
2893         # -L didn't work.
2894         set X `ls -t "$srcdir/configure" conftest.file`
2895      fi
2896      if test "$*" != "X $srcdir/configure conftest.file" \
2897         && test "$*" != "X conftest.file $srcdir/configure"; then
2898
2899         # If neither matched, then we have a broken ls.  This can happen
2900         # if, for instance, CONFIG_SHELL is bash and it inherits a
2901         # broken ls alias from the environment.  This has actually
2902         # happened.  Such a system could not be considered "sane".
2903         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2904   alias in your environment" "$LINENO" 5
2905      fi
2906      if test "$2" = conftest.file || test $am_try -eq 2; then
2907        break
2908      fi
2909      # Just in case.
2910      sleep 1
2911      am_has_slept=yes
2912    done
2913    test "$2" = conftest.file
2914    )
2915 then
2916    # Ok.
2917    :
2918 else
2919    as_fn_error $? "newly created file is older than distributed files!
2920 Check your system clock" "$LINENO" 5
2921 fi
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2923 $as_echo "yes" >&6; }
2924 # If we didn't sleep, we still need to ensure time stamps of config.status and
2925 # generated files are strictly newer.
2926 am_sleep_pid=
2927 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2928   ( sleep 1 ) &
2929   am_sleep_pid=$!
2930 fi
2931
2932 rm -f conftest.file
2933
2934 test "$program_prefix" != NONE &&
2935   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2936 # Use a double $ so make ignores it.
2937 test "$program_suffix" != NONE &&
2938   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2939 # Double any \ or $.
2940 # By default was `s,x,x', remove it if useless.
2941 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2942 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2943
2944 # expand $ac_aux_dir to an absolute path
2945 am_aux_dir=`cd $ac_aux_dir && pwd`
2946
2947 if test x"${MISSING+set}" != xset; then
2948   case $am_aux_dir in
2949   *\ * | *\     *)
2950     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2951   *)
2952     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2953   esac
2954 fi
2955 # Use eval to expand $SHELL
2956 if eval "$MISSING --is-lightweight"; then
2957   am_missing_run="$MISSING "
2958 else
2959   am_missing_run=
2960   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2961 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2962 fi
2963
2964 if test x"${install_sh}" != xset; then
2965   case $am_aux_dir in
2966   *\ * | *\     *)
2967     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2968   *)
2969     install_sh="\${SHELL} $am_aux_dir/install-sh"
2970   esac
2971 fi
2972
2973 # Installed binaries are usually stripped using 'strip' when the user
2974 # run "make install-strip".  However 'strip' might not be the right
2975 # tool to use in cross-compilation environments, therefore Automake
2976 # will honor the 'STRIP' environment variable to overrule this program.
2977 if test "$cross_compiling" != no; then
2978   if test -n "$ac_tool_prefix"; then
2979   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2980 set dummy ${ac_tool_prefix}strip; ac_word=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if ${ac_cv_prog_STRIP+:} false; then :
2984   $as_echo_n "(cached) " >&6
2985 else
2986   if test -n "$STRIP"; then
2987   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2991 do
2992   IFS=$as_save_IFS
2993   test -z "$as_dir" && as_dir=.
2994     for ac_exec_ext in '' $ac_executable_extensions; do
2995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998     break 2
2999   fi
3000 done
3001   done
3002 IFS=$as_save_IFS
3003
3004 fi
3005 fi
3006 STRIP=$ac_cv_prog_STRIP
3007 if test -n "$STRIP"; then
3008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3009 $as_echo "$STRIP" >&6; }
3010 else
3011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3013 fi
3014
3015
3016 fi
3017 if test -z "$ac_cv_prog_STRIP"; then
3018   ac_ct_STRIP=$STRIP
3019   # Extract the first word of "strip", so it can be a program name with args.
3020 set dummy strip; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3024   $as_echo_n "(cached) " >&6
3025 else
3026   if test -n "$ac_ct_STRIP"; then
3027   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3031 do
3032   IFS=$as_save_IFS
3033   test -z "$as_dir" && as_dir=.
3034     for ac_exec_ext in '' $ac_executable_extensions; do
3035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3036     ac_cv_prog_ac_ct_STRIP="strip"
3037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038     break 2
3039   fi
3040 done
3041   done
3042 IFS=$as_save_IFS
3043
3044 fi
3045 fi
3046 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3047 if test -n "$ac_ct_STRIP"; then
3048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3049 $as_echo "$ac_ct_STRIP" >&6; }
3050 else
3051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053 fi
3054
3055   if test "x$ac_ct_STRIP" = x; then
3056     STRIP=":"
3057   else
3058     case $cross_compiling:$ac_tool_warned in
3059 yes:)
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3062 ac_tool_warned=yes ;;
3063 esac
3064     STRIP=$ac_ct_STRIP
3065   fi
3066 else
3067   STRIP="$ac_cv_prog_STRIP"
3068 fi
3069
3070 fi
3071 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3072
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3074 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3075 if test -z "$MKDIR_P"; then
3076   if ${ac_cv_path_mkdir+:} false; then :
3077   $as_echo_n "(cached) " >&6
3078 else
3079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3081 do
3082   IFS=$as_save_IFS
3083   test -z "$as_dir" && as_dir=.
3084     for ac_prog in mkdir gmkdir; do
3085          for ac_exec_ext in '' $ac_executable_extensions; do
3086            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3087            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3088              'mkdir (GNU coreutils) '* | \
3089              'mkdir (coreutils) '* | \
3090              'mkdir (fileutils) '4.1*)
3091                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3092                break 3;;
3093            esac
3094          done
3095        done
3096   done
3097 IFS=$as_save_IFS
3098
3099 fi
3100
3101   test -d ./--version && rmdir ./--version
3102   if test "${ac_cv_path_mkdir+set}" = set; then
3103     MKDIR_P="$ac_cv_path_mkdir -p"
3104   else
3105     # As a last resort, use the slow shell script.  Don't cache a
3106     # value for MKDIR_P within a source directory, because that will
3107     # break other packages using the cache if that directory is
3108     # removed, or if the value is a relative name.
3109     MKDIR_P="$ac_install_sh -d"
3110   fi
3111 fi
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3113 $as_echo "$MKDIR_P" >&6; }
3114
3115 for ac_prog in gawk mawk nawk awk
3116 do
3117   # Extract the first word of "$ac_prog", so it can be a program name with args.
3118 set dummy $ac_prog; ac_word=$2
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120 $as_echo_n "checking for $ac_word... " >&6; }
3121 if ${ac_cv_prog_AWK+:} false; then :
3122   $as_echo_n "(cached) " >&6
3123 else
3124   if test -n "$AWK"; then
3125   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3126 else
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3129 do
3130   IFS=$as_save_IFS
3131   test -z "$as_dir" && as_dir=.
3132     for ac_exec_ext in '' $ac_executable_extensions; do
3133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134     ac_cv_prog_AWK="$ac_prog"
3135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136     break 2
3137   fi
3138 done
3139   done
3140 IFS=$as_save_IFS
3141
3142 fi
3143 fi
3144 AWK=$ac_cv_prog_AWK
3145 if test -n "$AWK"; then
3146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3147 $as_echo "$AWK" >&6; }
3148 else
3149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3151 fi
3152
3153
3154   test -n "$AWK" && break
3155 done
3156
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3158 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3159 set x ${MAKE-make}
3160 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3161 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3162   $as_echo_n "(cached) " >&6
3163 else
3164   cat >conftest.make <<\_ACEOF
3165 SHELL = /bin/sh
3166 all:
3167         @echo '@@@%%%=$(MAKE)=@@@%%%'
3168 _ACEOF
3169 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3170 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3171   *@@@%%%=?*=@@@%%%*)
3172     eval ac_cv_prog_make_${ac_make}_set=yes;;
3173   *)
3174     eval ac_cv_prog_make_${ac_make}_set=no;;
3175 esac
3176 rm -f conftest.make
3177 fi
3178 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3180 $as_echo "yes" >&6; }
3181   SET_MAKE=
3182 else
3183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3185   SET_MAKE="MAKE=${MAKE-make}"
3186 fi
3187
3188 rm -rf .tst 2>/dev/null
3189 mkdir .tst 2>/dev/null
3190 if test -d .tst; then
3191   am__leading_dot=.
3192 else
3193   am__leading_dot=_
3194 fi
3195 rmdir .tst 2>/dev/null
3196
3197 # Check whether --enable-silent-rules was given.
3198 if test "${enable_silent_rules+set}" = set; then :
3199   enableval=$enable_silent_rules;
3200 fi
3201
3202 case $enable_silent_rules in # (((
3203   yes) AM_DEFAULT_VERBOSITY=0;;
3204    no) AM_DEFAULT_VERBOSITY=1;;
3205     *) AM_DEFAULT_VERBOSITY=1;;
3206 esac
3207 am_make=${MAKE-make}
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3209 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3210 if ${am_cv_make_support_nested_variables+:} false; then :
3211   $as_echo_n "(cached) " >&6
3212 else
3213   if $as_echo 'TRUE=$(BAR$(V))
3214 BAR0=false
3215 BAR1=true
3216 V=1
3217 am__doit:
3218         @$(TRUE)
3219 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3220   am_cv_make_support_nested_variables=yes
3221 else
3222   am_cv_make_support_nested_variables=no
3223 fi
3224 fi
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3226 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3227 if test $am_cv_make_support_nested_variables = yes; then
3228     AM_V='$(V)'
3229   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3230 else
3231   AM_V=$AM_DEFAULT_VERBOSITY
3232   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3233 fi
3234 AM_BACKSLASH='\'
3235
3236 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3237   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3238   # is not polluted with repeated "-I."
3239   am__isrc=' -I$(srcdir)'
3240   # test to see if srcdir already configured
3241   if test -f $srcdir/config.status; then
3242     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3243   fi
3244 fi
3245
3246 # test whether we have cygpath
3247 if test -z "$CYGPATH_W"; then
3248   if (cygpath --version) >/dev/null 2>/dev/null; then
3249     CYGPATH_W='cygpath -w'
3250   else
3251     CYGPATH_W=echo
3252   fi
3253 fi
3254
3255
3256 # Define the identity of the package.
3257  PACKAGE='glog'
3258  VERSION='0.3.5'
3259
3260
3261 cat >>confdefs.h <<_ACEOF
3262 #define PACKAGE "$PACKAGE"
3263 _ACEOF
3264
3265
3266 cat >>confdefs.h <<_ACEOF
3267 #define VERSION "$VERSION"
3268 _ACEOF
3269
3270 # Some tools Automake needs.
3271
3272 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3273
3274
3275 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3276
3277
3278 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3279
3280
3281 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3282
3283
3284 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3285
3286 # For better backward compatibility.  To be removed once Automake 1.9.x
3287 # dies out for good.  For more background, see:
3288 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3289 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3290 mkdir_p='$(MKDIR_P)'
3291
3292 # We need awk for the "check" target.  The system "awk" is bad on
3293 # some platforms.
3294 # Always define AMTAR for backward compatibility.  Yes, it's still used
3295 # in the wild :-(  We should find a proper way to deprecate it ...
3296 AMTAR='$${TAR-tar}'
3297
3298
3299 # We'll loop over all known methods to create a tar archive until one works.
3300 _am_tools='gnutar  pax cpio none'
3301
3302 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3303
3304
3305
3306
3307
3308
3309 # POSIX will say in a future version that running "rm -f" with no argument
3310 # is OK; and we want to be able to make that assumption in our Makefile
3311 # recipes.  So use an aggressive probe to check that the usage we want is
3312 # actually supported "in the wild" to an acceptable degree.
3313 # See automake bug#10828.
3314 # To make any issue more visible, cause the running configure to be aborted
3315 # by default if the 'rm' program in use doesn't match our expectations; the
3316 # user can still override this though.
3317 if rm -f && rm -fr && rm -rf; then : OK; else
3318   cat >&2 <<'END'
3319 Oops!
3320
3321 Your 'rm' program seems unable to run without file operands specified
3322 on the command line, even when the '-f' option is present.  This is contrary
3323 to the behaviour of most rm programs out there, and not conforming with
3324 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3325
3326 Please tell bug-automake@gnu.org about your system, including the value
3327 of your $PATH and any error possibly output before this message.  This
3328 can help us improve future automake versions.
3329
3330 END
3331   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3332     echo 'Configuration will proceed anyway, since you have set the' >&2
3333     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3334     echo >&2
3335   else
3336     cat >&2 <<'END'
3337 Aborting the configuration process, to ensure you take notice of the issue.
3338
3339 You can download and install GNU coreutils to get an 'rm' implementation
3340 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3341
3342 If you want to complete the configuration process using your problematic
3343 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3344 to "yes", and re-run configure.
3345
3346 END
3347     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3348   fi
3349 fi
3350 ac_config_headers="$ac_config_headers src/config.h"
3351
3352
3353 ac_ext=cpp
3354 ac_cpp='$CXXCPP $CPPFLAGS'
3355 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3358
3359
3360 # Checks for programs.
3361 ac_ext=c
3362 ac_cpp='$CPP $CPPFLAGS'
3363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3366 if test -n "$ac_tool_prefix"; then
3367   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3368 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if ${ac_cv_prog_CC+:} false; then :
3372   $as_echo_n "(cached) " >&6
3373 else
3374   if test -n "$CC"; then
3375   ac_cv_prog_CC="$CC" # Let the user override the test.
3376 else
3377 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3384     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386     break 2
3387   fi
3388 done
3389   done
3390 IFS=$as_save_IFS
3391
3392 fi
3393 fi
3394 CC=$ac_cv_prog_CC
3395 if test -n "$CC"; then
3396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3397 $as_echo "$CC" >&6; }
3398 else
3399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 $as_echo "no" >&6; }
3401 fi
3402
3403
3404 fi
3405 if test -z "$ac_cv_prog_CC"; then
3406   ac_ct_CC=$CC
3407   # Extract the first word of "gcc", so it can be a program name with args.
3408 set dummy gcc; ac_word=$2
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3410 $as_echo_n "checking for $ac_word... " >&6; }
3411 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3412   $as_echo_n "(cached) " >&6
3413 else
3414   if test -n "$ac_ct_CC"; then
3415   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3416 else
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 for as_dir in $PATH
3419 do
3420   IFS=$as_save_IFS
3421   test -z "$as_dir" && as_dir=.
3422     for ac_exec_ext in '' $ac_executable_extensions; do
3423   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3424     ac_cv_prog_ac_ct_CC="gcc"
3425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3426     break 2
3427   fi
3428 done
3429   done
3430 IFS=$as_save_IFS
3431
3432 fi
3433 fi
3434 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3435 if test -n "$ac_ct_CC"; then
3436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3437 $as_echo "$ac_ct_CC" >&6; }
3438 else
3439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440 $as_echo "no" >&6; }
3441 fi
3442
3443   if test "x$ac_ct_CC" = x; then
3444     CC=""
3445   else
3446     case $cross_compiling:$ac_tool_warned in
3447 yes:)
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3450 ac_tool_warned=yes ;;
3451 esac
3452     CC=$ac_ct_CC
3453   fi
3454 else
3455   CC="$ac_cv_prog_CC"
3456 fi
3457
3458 if test -z "$CC"; then
3459           if test -n "$ac_tool_prefix"; then
3460     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3461 set dummy ${ac_tool_prefix}cc; ac_word=$2
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 $as_echo_n "checking for $ac_word... " >&6; }
3464 if ${ac_cv_prog_CC+:} false; then :
3465   $as_echo_n "(cached) " >&6
3466 else
3467   if test -n "$CC"; then
3468   ac_cv_prog_CC="$CC" # Let the user override the test.
3469 else
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH
3472 do
3473   IFS=$as_save_IFS
3474   test -z "$as_dir" && as_dir=.
3475     for ac_exec_ext in '' $ac_executable_extensions; do
3476   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477     ac_cv_prog_CC="${ac_tool_prefix}cc"
3478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3479     break 2
3480   fi
3481 done
3482   done
3483 IFS=$as_save_IFS
3484
3485 fi
3486 fi
3487 CC=$ac_cv_prog_CC
3488 if test -n "$CC"; then
3489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3490 $as_echo "$CC" >&6; }
3491 else
3492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3493 $as_echo "no" >&6; }
3494 fi
3495
3496
3497   fi
3498 fi
3499 if test -z "$CC"; then
3500   # Extract the first word of "cc", so it can be a program name with args.
3501 set dummy cc; ac_word=$2
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3503 $as_echo_n "checking for $ac_word... " >&6; }
3504 if ${ac_cv_prog_CC+:} false; then :
3505   $as_echo_n "(cached) " >&6
3506 else
3507   if test -n "$CC"; then
3508   ac_cv_prog_CC="$CC" # Let the user override the test.
3509 else
3510   ac_prog_rejected=no
3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 for as_dir in $PATH
3513 do
3514   IFS=$as_save_IFS
3515   test -z "$as_dir" && as_dir=.
3516     for ac_exec_ext in '' $ac_executable_extensions; do
3517   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3518     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3519        ac_prog_rejected=yes
3520        continue
3521      fi
3522     ac_cv_prog_CC="cc"
3523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3524     break 2
3525   fi
3526 done
3527   done
3528 IFS=$as_save_IFS
3529
3530 if test $ac_prog_rejected = yes; then
3531   # We found a bogon in the path, so make sure we never use it.
3532   set dummy $ac_cv_prog_CC
3533   shift
3534   if test $# != 0; then
3535     # We chose a different compiler from the bogus one.
3536     # However, it has the same basename, so the bogon will be chosen
3537     # first if we set CC to just the basename; use the full file name.
3538     shift
3539     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3540   fi
3541 fi
3542 fi
3543 fi
3544 CC=$ac_cv_prog_CC
3545 if test -n "$CC"; then
3546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3547 $as_echo "$CC" >&6; }
3548 else
3549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3550 $as_echo "no" >&6; }
3551 fi
3552
3553
3554 fi
3555 if test -z "$CC"; then
3556   if test -n "$ac_tool_prefix"; then
3557   for ac_prog in cl.exe
3558   do
3559     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3560 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3562 $as_echo_n "checking for $ac_word... " >&6; }
3563 if ${ac_cv_prog_CC+:} false; then :
3564   $as_echo_n "(cached) " >&6
3565 else
3566   if test -n "$CC"; then
3567   ac_cv_prog_CC="$CC" # Let the user override the test.
3568 else
3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570 for as_dir in $PATH
3571 do
3572   IFS=$as_save_IFS
3573   test -z "$as_dir" && as_dir=.
3574     for ac_exec_ext in '' $ac_executable_extensions; do
3575   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3576     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3578     break 2
3579   fi
3580 done
3581   done
3582 IFS=$as_save_IFS
3583
3584 fi
3585 fi
3586 CC=$ac_cv_prog_CC
3587 if test -n "$CC"; then
3588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3589 $as_echo "$CC" >&6; }
3590 else
3591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3592 $as_echo "no" >&6; }
3593 fi
3594
3595
3596     test -n "$CC" && break
3597   done
3598 fi
3599 if test -z "$CC"; then
3600   ac_ct_CC=$CC
3601   for ac_prog in cl.exe
3602 do
3603   # Extract the first word of "$ac_prog", so it can be a program name with args.
3604 set dummy $ac_prog; ac_word=$2
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3606 $as_echo_n "checking for $ac_word... " >&6; }
3607 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3608   $as_echo_n "(cached) " >&6
3609 else
3610   if test -n "$ac_ct_CC"; then
3611   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3612 else
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 for as_dir in $PATH
3615 do
3616   IFS=$as_save_IFS
3617   test -z "$as_dir" && as_dir=.
3618     for ac_exec_ext in '' $ac_executable_extensions; do
3619   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3620     ac_cv_prog_ac_ct_CC="$ac_prog"
3621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3622     break 2
3623   fi
3624 done
3625   done
3626 IFS=$as_save_IFS
3627
3628 fi
3629 fi
3630 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3631 if test -n "$ac_ct_CC"; then
3632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3633 $as_echo "$ac_ct_CC" >&6; }
3634 else
3635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636 $as_echo "no" >&6; }
3637 fi
3638
3639
3640   test -n "$ac_ct_CC" && break
3641 done
3642
3643   if test "x$ac_ct_CC" = x; then
3644     CC=""
3645   else
3646     case $cross_compiling:$ac_tool_warned in
3647 yes:)
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3650 ac_tool_warned=yes ;;
3651 esac
3652     CC=$ac_ct_CC
3653   fi
3654 fi
3655
3656 fi
3657
3658
3659 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3661 as_fn_error $? "no acceptable C compiler found in \$PATH
3662 See \`config.log' for more details" "$LINENO" 5; }
3663
3664 # Provide some information about the compiler.
3665 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3666 set X $ac_compile
3667 ac_compiler=$2
3668 for ac_option in --version -v -V -qversion; do
3669   { { ac_try="$ac_compiler $ac_option >&5"
3670 case "(($ac_try" in
3671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672   *) ac_try_echo=$ac_try;;
3673 esac
3674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3675 $as_echo "$ac_try_echo"; } >&5
3676   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3677   ac_status=$?
3678   if test -s conftest.err; then
3679     sed '10a\
3680 ... rest of stderr output deleted ...
3681          10q' conftest.err >conftest.er1
3682     cat conftest.er1 >&5
3683   fi
3684   rm -f conftest.er1 conftest.err
3685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686   test $ac_status = 0; }
3687 done
3688
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h.  */
3691
3692 int
3693 main ()
3694 {
3695
3696   ;
3697   return 0;
3698 }
3699 _ACEOF
3700 ac_clean_files_save=$ac_clean_files
3701 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3702 # Try to create an executable without -o first, disregard a.out.
3703 # It will help us diagnose broken compilers, and finding out an intuition
3704 # of exeext.
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3706 $as_echo_n "checking whether the C compiler works... " >&6; }
3707 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3708
3709 # The possible output files:
3710 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3711
3712 ac_rmfiles=
3713 for ac_file in $ac_files
3714 do
3715   case $ac_file in
3716     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3717     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3718   esac
3719 done
3720 rm -f $ac_rmfiles
3721
3722 if { { ac_try="$ac_link_default"
3723 case "(($ac_try" in
3724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725   *) ac_try_echo=$ac_try;;
3726 esac
3727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3728 $as_echo "$ac_try_echo"; } >&5
3729   (eval "$ac_link_default") 2>&5
3730   ac_status=$?
3731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3732   test $ac_status = 0; }; then :
3733   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3734 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3735 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3736 # so that the user can short-circuit this test for compilers unknown to
3737 # Autoconf.
3738 for ac_file in $ac_files ''
3739 do
3740   test -f "$ac_file" || continue
3741   case $ac_file in
3742     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3743         ;;
3744     [ab].out )
3745         # We found the default executable, but exeext='' is most
3746         # certainly right.
3747         break;;
3748     *.* )
3749         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3750         then :; else
3751            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3752         fi
3753         # We set ac_cv_exeext here because the later test for it is not
3754         # safe: cross compilers may not add the suffix if given an `-o'
3755         # argument, so we may need to know it at that point already.
3756         # Even if this section looks crufty: it has the advantage of
3757         # actually working.
3758         break;;
3759     * )
3760         break;;
3761   esac
3762 done
3763 test "$ac_cv_exeext" = no && ac_cv_exeext=
3764
3765 else
3766   ac_file=''
3767 fi
3768 if test -z "$ac_file"; then :
3769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3770 $as_echo "no" >&6; }
3771 $as_echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3773
3774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3776 as_fn_error 77 "C compiler cannot create executables
3777 See \`config.log' for more details" "$LINENO" 5; }
3778 else
3779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3780 $as_echo "yes" >&6; }
3781 fi
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3783 $as_echo_n "checking for C compiler default output file name... " >&6; }
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3785 $as_echo "$ac_file" >&6; }
3786 ac_exeext=$ac_cv_exeext
3787
3788 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3789 ac_clean_files=$ac_clean_files_save
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3791 $as_echo_n "checking for suffix of executables... " >&6; }
3792 if { { ac_try="$ac_link"
3793 case "(($ac_try" in
3794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795   *) ac_try_echo=$ac_try;;
3796 esac
3797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3798 $as_echo "$ac_try_echo"; } >&5
3799   (eval "$ac_link") 2>&5
3800   ac_status=$?
3801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3802   test $ac_status = 0; }; then :
3803   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3804 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3805 # work properly (i.e., refer to `conftest.exe'), while it won't with
3806 # `rm'.
3807 for ac_file in conftest.exe conftest conftest.*; do
3808   test -f "$ac_file" || continue
3809   case $ac_file in
3810     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3811     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3812           break;;
3813     * ) break;;
3814   esac
3815 done
3816 else
3817   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3819 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3820 See \`config.log' for more details" "$LINENO" 5; }
3821 fi
3822 rm -f conftest conftest$ac_cv_exeext
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3824 $as_echo "$ac_cv_exeext" >&6; }
3825
3826 rm -f conftest.$ac_ext
3827 EXEEXT=$ac_cv_exeext
3828 ac_exeext=$EXEEXT
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h.  */
3831 #include <stdio.h>
3832 int
3833 main ()
3834 {
3835 FILE *f = fopen ("conftest.out", "w");
3836  return ferror (f) || fclose (f) != 0;
3837
3838   ;
3839   return 0;
3840 }
3841 _ACEOF
3842 ac_clean_files="$ac_clean_files conftest.out"
3843 # Check that the compiler produces executables we can run.  If not, either
3844 # the compiler is broken, or we cross compile.
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3846 $as_echo_n "checking whether we are cross compiling... " >&6; }
3847 if test "$cross_compiling" != yes; then
3848   { { ac_try="$ac_link"
3849 case "(($ac_try" in
3850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851   *) ac_try_echo=$ac_try;;
3852 esac
3853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3854 $as_echo "$ac_try_echo"; } >&5
3855   (eval "$ac_link") 2>&5
3856   ac_status=$?
3857   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3858   test $ac_status = 0; }
3859   if { ac_try='./conftest$ac_cv_exeext'
3860   { { case "(($ac_try" in
3861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862   *) ac_try_echo=$ac_try;;
3863 esac
3864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3865 $as_echo "$ac_try_echo"; } >&5
3866   (eval "$ac_try") 2>&5
3867   ac_status=$?
3868   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3869   test $ac_status = 0; }; }; then
3870     cross_compiling=no
3871   else
3872     if test "$cross_compiling" = maybe; then
3873         cross_compiling=yes
3874     else
3875         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3877 as_fn_error $? "cannot run C compiled programs.
3878 If you meant to cross compile, use \`--host'.
3879 See \`config.log' for more details" "$LINENO" 5; }
3880     fi
3881   fi
3882 fi
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3884 $as_echo "$cross_compiling" >&6; }
3885
3886 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3887 ac_clean_files=$ac_clean_files_save
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3889 $as_echo_n "checking for suffix of object files... " >&6; }
3890 if ${ac_cv_objext+:} false; then :
3891   $as_echo_n "(cached) " >&6
3892 else
3893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h.  */
3895
3896 int
3897 main ()
3898 {
3899
3900   ;
3901   return 0;
3902 }
3903 _ACEOF
3904 rm -f conftest.o conftest.obj
3905 if { { ac_try="$ac_compile"
3906 case "(($ac_try" in
3907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908   *) ac_try_echo=$ac_try;;
3909 esac
3910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3911 $as_echo "$ac_try_echo"; } >&5
3912   (eval "$ac_compile") 2>&5
3913   ac_status=$?
3914   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3915   test $ac_status = 0; }; then :
3916   for ac_file in conftest.o conftest.obj conftest.*; do
3917   test -f "$ac_file" || continue;
3918   case $ac_file in
3919     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3920     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3921        break;;
3922   esac
3923 done
3924 else
3925   $as_echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3927
3928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3930 as_fn_error $? "cannot compute suffix of object files: cannot compile
3931 See \`config.log' for more details" "$LINENO" 5; }
3932 fi
3933 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3934 fi
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3936 $as_echo "$ac_cv_objext" >&6; }
3937 OBJEXT=$ac_cv_objext
3938 ac_objext=$OBJEXT
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3940 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3941 if ${ac_cv_c_compiler_gnu+:} false; then :
3942   $as_echo_n "(cached) " >&6
3943 else
3944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h.  */
3946
3947 int
3948 main ()
3949 {
3950 #ifndef __GNUC__
3951        choke me
3952 #endif
3953
3954   ;
3955   return 0;
3956 }
3957 _ACEOF
3958 if ac_fn_c_try_compile "$LINENO"; then :
3959   ac_compiler_gnu=yes
3960 else
3961   ac_compiler_gnu=no
3962 fi
3963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3964 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3965
3966 fi
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3968 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3969 if test $ac_compiler_gnu = yes; then
3970   GCC=yes
3971 else
3972   GCC=
3973 fi
3974 ac_test_CFLAGS=${CFLAGS+set}
3975 ac_save_CFLAGS=$CFLAGS
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3977 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3978 if ${ac_cv_prog_cc_g+:} false; then :
3979   $as_echo_n "(cached) " >&6
3980 else
3981   ac_save_c_werror_flag=$ac_c_werror_flag
3982    ac_c_werror_flag=yes
3983    ac_cv_prog_cc_g=no
3984    CFLAGS="-g"
3985    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h.  */
3987
3988 int
3989 main ()
3990 {
3991
3992   ;
3993   return 0;
3994 }
3995 _ACEOF
3996 if ac_fn_c_try_compile "$LINENO"; then :
3997   ac_cv_prog_cc_g=yes
3998 else
3999   CFLAGS=""
4000       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h.  */
4002
4003 int
4004 main ()
4005 {
4006
4007   ;
4008   return 0;
4009 }
4010 _ACEOF
4011 if ac_fn_c_try_compile "$LINENO"; then :
4012
4013 else
4014   ac_c_werror_flag=$ac_save_c_werror_flag
4015          CFLAGS="-g"
4016          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h.  */
4018
4019 int
4020 main ()
4021 {
4022
4023   ;
4024   return 0;
4025 }
4026 _ACEOF
4027 if ac_fn_c_try_compile "$LINENO"; then :
4028   ac_cv_prog_cc_g=yes
4029 fi
4030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4031 fi
4032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4033 fi
4034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4035    ac_c_werror_flag=$ac_save_c_werror_flag
4036 fi
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4038 $as_echo "$ac_cv_prog_cc_g" >&6; }
4039 if test "$ac_test_CFLAGS" = set; then
4040   CFLAGS=$ac_save_CFLAGS
4041 elif test $ac_cv_prog_cc_g = yes; then
4042   if test "$GCC" = yes; then
4043     CFLAGS="-g -O2"
4044   else
4045     CFLAGS="-g"
4046   fi
4047 else
4048   if test "$GCC" = yes; then
4049     CFLAGS="-O2"
4050   else
4051     CFLAGS=
4052   fi
4053 fi
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4055 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4056 if ${ac_cv_prog_cc_c89+:} false; then :
4057   $as_echo_n "(cached) " >&6
4058 else
4059   ac_cv_prog_cc_c89=no
4060 ac_save_CC=$CC
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h.  */
4063 #include <stdarg.h>
4064 #include <stdio.h>
4065 struct stat;
4066 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4067 struct buf { int x; };
4068 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4069 static char *e (p, i)
4070      char **p;
4071      int i;
4072 {
4073   return p[i];
4074 }
4075 static char *f (char * (*g) (char **, int), char **p, ...)
4076 {
4077   char *s;
4078   va_list v;
4079   va_start (v,p);
4080   s = g (p, va_arg (v,int));
4081   va_end (v);
4082   return s;
4083 }
4084
4085 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4086    function prototypes and stuff, but not '\xHH' hex character constants.
4087    These don't provoke an error unfortunately, instead are silently treated
4088    as 'x'.  The following induces an error, until -std is added to get
4089    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4090    array size at least.  It's necessary to write '\x00'==0 to get something
4091    that's true only with -std.  */
4092 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4093
4094 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4095    inside strings and character constants.  */
4096 #define FOO(x) 'x'
4097 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4098
4099 int test (int i, double x);
4100 struct s1 {int (*f) (int a);};
4101 struct s2 {int (*f) (double a);};
4102 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4103 int argc;
4104 char **argv;
4105 int
4106 main ()
4107 {
4108 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4109   ;
4110   return 0;
4111 }
4112 _ACEOF
4113 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4114         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4115 do
4116   CC="$ac_save_CC $ac_arg"
4117   if ac_fn_c_try_compile "$LINENO"; then :
4118   ac_cv_prog_cc_c89=$ac_arg
4119 fi
4120 rm -f core conftest.err conftest.$ac_objext
4121   test "x$ac_cv_prog_cc_c89" != "xno" && break
4122 done
4123 rm -f conftest.$ac_ext
4124 CC=$ac_save_CC
4125
4126 fi
4127 # AC_CACHE_VAL
4128 case "x$ac_cv_prog_cc_c89" in
4129   x)
4130     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4131 $as_echo "none needed" >&6; } ;;
4132   xno)
4133     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4134 $as_echo "unsupported" >&6; } ;;
4135   *)
4136     CC="$CC $ac_cv_prog_cc_c89"
4137     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4138 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4139 esac
4140 if test "x$ac_cv_prog_cc_c89" != xno; then :
4141
4142 fi
4143
4144 ac_ext=cpp
4145 ac_cpp='$CXXCPP $CPPFLAGS'
4146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4149
4150 ac_ext=c
4151 ac_cpp='$CPP $CPPFLAGS'
4152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4156 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4157 if ${am_cv_prog_cc_c_o+:} false; then :
4158   $as_echo_n "(cached) " >&6
4159 else
4160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h.  */
4162
4163 int
4164 main ()
4165 {
4166
4167   ;
4168   return 0;
4169 }
4170 _ACEOF
4171   # Make sure it works both with $CC and with simple cc.
4172   # Following AC_PROG_CC_C_O, we do the test twice because some
4173   # compilers refuse to overwrite an existing .o file with -o,
4174   # though they will create one.
4175   am_cv_prog_cc_c_o=yes
4176   for am_i in 1 2; do
4177     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4178    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4179    ac_status=$?
4180    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181    (exit $ac_status); } \
4182          && test -f conftest2.$ac_objext; then
4183       : OK
4184     else
4185       am_cv_prog_cc_c_o=no
4186       break
4187     fi
4188   done
4189   rm -f core conftest*
4190   unset am_i
4191 fi
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4193 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4194 if test "$am_cv_prog_cc_c_o" != yes; then
4195    # Losing compiler, so override with the script.
4196    # FIXME: It is wrong to rewrite CC.
4197    # But if we don't then we get into trouble of one sort or another.
4198    # A longer-term fix would be to have automake use am__CC in this case,
4199    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4200    CC="$am_aux_dir/compile $CC"
4201 fi
4202 ac_ext=cpp
4203 ac_cpp='$CXXCPP $CPPFLAGS'
4204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4207
4208 DEPDIR="${am__leading_dot}deps"
4209
4210 ac_config_commands="$ac_config_commands depfiles"
4211
4212
4213 am_make=${MAKE-make}
4214 cat > confinc << 'END'
4215 am__doit:
4216         @echo this is the am__doit target
4217 .PHONY: am__doit
4218 END
4219 # If we don't find an include directive, just comment out the code.
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4221 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4222 am__include="#"
4223 am__quote=
4224 _am_result=none
4225 # First try GNU make style include.
4226 echo "include confinc" > confmf
4227 # Ignore all kinds of additional output from 'make'.
4228 case `$am_make -s -f confmf 2> /dev/null` in #(
4229 *the\ am__doit\ target*)
4230   am__include=include
4231   am__quote=
4232   _am_result=GNU
4233   ;;
4234 esac
4235 # Now try BSD make style include.
4236 if test "$am__include" = "#"; then
4237    echo '.include "confinc"' > confmf
4238    case `$am_make -s -f confmf 2> /dev/null` in #(
4239    *the\ am__doit\ target*)
4240      am__include=.include
4241      am__quote="\""
4242      _am_result=BSD
4243      ;;
4244    esac
4245 fi
4246
4247
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4249 $as_echo "$_am_result" >&6; }
4250 rm -f confinc confmf
4251
4252 # Check whether --enable-dependency-tracking was given.
4253 if test "${enable_dependency_tracking+set}" = set; then :
4254   enableval=$enable_dependency_tracking;
4255 fi
4256
4257 if test "x$enable_dependency_tracking" != xno; then
4258   am_depcomp="$ac_aux_dir/depcomp"
4259   AMDEPBACKSLASH='\'
4260   am__nodep='_no'
4261 fi
4262  if test "x$enable_dependency_tracking" != xno; then
4263   AMDEP_TRUE=
4264   AMDEP_FALSE='#'
4265 else
4266   AMDEP_TRUE='#'
4267   AMDEP_FALSE=
4268 fi
4269
4270
4271
4272 depcc="$CC"   am_compiler_list=
4273
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4275 $as_echo_n "checking dependency style of $depcc... " >&6; }
4276 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4277   $as_echo_n "(cached) " >&6
4278 else
4279   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4280   # We make a subdir and do the tests there.  Otherwise we can end up
4281   # making bogus files that we don't know about and never remove.  For
4282   # instance it was reported that on HP-UX the gcc test will end up
4283   # making a dummy file named 'D' -- because '-MD' means "put the output
4284   # in D".
4285   rm -rf conftest.dir
4286   mkdir conftest.dir
4287   # Copy depcomp to subdir because otherwise we won't find it if we're
4288   # using a relative directory.
4289   cp "$am_depcomp" conftest.dir
4290   cd conftest.dir
4291   # We will build objects and dependencies in a subdirectory because
4292   # it helps to detect inapplicable dependency modes.  For instance
4293   # both Tru64's cc and ICC support -MD to output dependencies as a
4294   # side effect of compilation, but ICC will put the dependencies in
4295   # the current directory while Tru64 will put them in the object
4296   # directory.
4297   mkdir sub
4298
4299   am_cv_CC_dependencies_compiler_type=none
4300   if test "$am_compiler_list" = ""; then
4301      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4302   fi
4303   am__universal=false
4304   case " $depcc " in #(
4305      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4306      esac
4307
4308   for depmode in $am_compiler_list; do
4309     # Setup a source with many dependencies, because some compilers
4310     # like to wrap large dependency lists on column 80 (with \), and
4311     # we should not choose a depcomp mode which is confused by this.
4312     #
4313     # We need to recreate these files for each test, as the compiler may
4314     # overwrite some of them when testing with obscure command lines.
4315     # This happens at least with the AIX C compiler.
4316     : > sub/conftest.c
4317     for i in 1 2 3 4 5 6; do
4318       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4319       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4320       # Solaris 10 /bin/sh.
4321       echo '/* dummy */' > sub/conftst$i.h
4322     done
4323     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4324
4325     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4326     # mode.  It turns out that the SunPro C++ compiler does not properly
4327     # handle '-M -o', and we need to detect this.  Also, some Intel
4328     # versions had trouble with output in subdirs.
4329     am__obj=sub/conftest.${OBJEXT-o}
4330     am__minus_obj="-o $am__obj"
4331     case $depmode in
4332     gcc)
4333       # This depmode causes a compiler race in universal mode.
4334       test "$am__universal" = false || continue
4335       ;;
4336     nosideeffect)
4337       # After this tag, mechanisms are not by side-effect, so they'll
4338       # only be used when explicitly requested.
4339       if test "x$enable_dependency_tracking" = xyes; then
4340         continue
4341       else
4342         break
4343       fi
4344       ;;
4345     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4346       # This compiler won't grok '-c -o', but also, the minuso test has
4347       # not run yet.  These depmodes are late enough in the game, and
4348       # so weak that their functioning should not be impacted.
4349       am__obj=conftest.${OBJEXT-o}
4350       am__minus_obj=
4351       ;;
4352     none) break ;;
4353     esac
4354     if depmode=$depmode \
4355        source=sub/conftest.c object=$am__obj \
4356        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4357        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4358          >/dev/null 2>conftest.err &&
4359        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4360        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4361        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4362        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4363       # icc doesn't choke on unknown options, it will just issue warnings
4364       # or remarks (even with -Werror).  So we grep stderr for any message
4365       # that says an option was ignored or not supported.
4366       # When given -MP, icc 7.0 and 7.1 complain thusly:
4367       #   icc: Command line warning: ignoring option '-M'; no argument required
4368       # The diagnosis changed in icc 8.0:
4369       #   icc: Command line remark: option '-MP' not supported
4370       if (grep 'ignoring option' conftest.err ||
4371           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4372         am_cv_CC_dependencies_compiler_type=$depmode
4373         break
4374       fi
4375     fi
4376   done
4377
4378   cd ..
4379   rm -rf conftest.dir
4380 else
4381   am_cv_CC_dependencies_compiler_type=none
4382 fi
4383
4384 fi
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4386 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4387 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4388
4389  if
4390   test "x$enable_dependency_tracking" != xno \
4391   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4392   am__fastdepCC_TRUE=
4393   am__fastdepCC_FALSE='#'
4394 else
4395   am__fastdepCC_TRUE='#'
4396   am__fastdepCC_FALSE=
4397 fi
4398
4399
4400 ac_ext=c
4401 ac_cpp='$CPP $CPPFLAGS'
4402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4406 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4407 # On Suns, sometimes $CPP names a directory.
4408 if test -n "$CPP" && test -d "$CPP"; then
4409   CPP=
4410 fi
4411 if test -z "$CPP"; then
4412   if ${ac_cv_prog_CPP+:} false; then :
4413   $as_echo_n "(cached) " >&6
4414 else
4415       # Double quotes because CPP needs to be expanded
4416     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4417     do
4418       ac_preproc_ok=false
4419 for ac_c_preproc_warn_flag in '' yes
4420 do
4421   # Use a header file that comes with gcc, so configuring glibc
4422   # with a fresh cross-compiler works.
4423   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4424   # <limits.h> exists even on freestanding compilers.
4425   # On the NeXT, cc -E runs the code through the compiler's parser,
4426   # not just through cpp. "Syntax error" is here to catch this case.
4427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h.  */
4429 #ifdef __STDC__
4430 # include <limits.h>
4431 #else
4432 # include <assert.h>
4433 #endif
4434                      Syntax error
4435 _ACEOF
4436 if ac_fn_c_try_cpp "$LINENO"; then :
4437
4438 else
4439   # Broken: fails on valid input.
4440 continue
4441 fi
4442 rm -f conftest.err conftest.i conftest.$ac_ext
4443
4444   # OK, works on sane cases.  Now check whether nonexistent headers
4445   # can be detected and how.
4446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447 /* end confdefs.h.  */
4448 #include <ac_nonexistent.h>
4449 _ACEOF
4450 if ac_fn_c_try_cpp "$LINENO"; then :
4451   # Broken: success on invalid input.
4452 continue
4453 else
4454   # Passes both tests.
4455 ac_preproc_ok=:
4456 break
4457 fi
4458 rm -f conftest.err conftest.i conftest.$ac_ext
4459
4460 done
4461 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4462 rm -f conftest.i conftest.err conftest.$ac_ext
4463 if $ac_preproc_ok; then :
4464   break
4465 fi
4466
4467     done
4468     ac_cv_prog_CPP=$CPP
4469
4470 fi
4471   CPP=$ac_cv_prog_CPP
4472 else
4473   ac_cv_prog_CPP=$CPP
4474 fi
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4476 $as_echo "$CPP" >&6; }
4477 ac_preproc_ok=false
4478 for ac_c_preproc_warn_flag in '' yes
4479 do
4480   # Use a header file that comes with gcc, so configuring glibc
4481   # with a fresh cross-compiler works.
4482   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4483   # <limits.h> exists even on freestanding compilers.
4484   # On the NeXT, cc -E runs the code through the compiler's parser,
4485   # not just through cpp. "Syntax error" is here to catch this case.
4486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h.  */
4488 #ifdef __STDC__
4489 # include <limits.h>
4490 #else
4491 # include <assert.h>
4492 #endif
4493                      Syntax error
4494 _ACEOF
4495 if ac_fn_c_try_cpp "$LINENO"; then :
4496
4497 else
4498   # Broken: fails on valid input.
4499 continue
4500 fi
4501 rm -f conftest.err conftest.i conftest.$ac_ext
4502
4503   # OK, works on sane cases.  Now check whether nonexistent headers
4504   # can be detected and how.
4505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h.  */
4507 #include <ac_nonexistent.h>
4508 _ACEOF
4509 if ac_fn_c_try_cpp "$LINENO"; then :
4510   # Broken: success on invalid input.
4511 continue
4512 else
4513   # Passes both tests.
4514 ac_preproc_ok=:
4515 break
4516 fi
4517 rm -f conftest.err conftest.i conftest.$ac_ext
4518
4519 done
4520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4521 rm -f conftest.i conftest.err conftest.$ac_ext
4522 if $ac_preproc_ok; then :
4523
4524 else
4525   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4527 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4528 See \`config.log' for more details" "$LINENO" 5; }
4529 fi
4530
4531 ac_ext=cpp
4532 ac_cpp='$CXXCPP $CPPFLAGS'
4533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4536
4537 ac_ext=cpp
4538 ac_cpp='$CXXCPP $CPPFLAGS'
4539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4542 if test -z "$CXX"; then
4543   if test -n "$CCC"; then
4544     CXX=$CCC
4545   else
4546     if test -n "$ac_tool_prefix"; then
4547   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4548   do
4549     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4550 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if ${ac_cv_prog_CXX+:} false; then :
4554   $as_echo_n "(cached) " >&6
4555 else
4556   if test -n "$CXX"; then
4557   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4558 else
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 for as_dir in $PATH
4561 do
4562   IFS=$as_save_IFS
4563   test -z "$as_dir" && as_dir=.
4564     for ac_exec_ext in '' $ac_executable_extensions; do
4565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4566     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4568     break 2
4569   fi
4570 done
4571   done
4572 IFS=$as_save_IFS
4573
4574 fi
4575 fi
4576 CXX=$ac_cv_prog_CXX
4577 if test -n "$CXX"; then
4578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4579 $as_echo "$CXX" >&6; }
4580 else
4581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4582 $as_echo "no" >&6; }
4583 fi
4584
4585
4586     test -n "$CXX" && break
4587   done
4588 fi
4589 if test -z "$CXX"; then
4590   ac_ct_CXX=$CXX
4591   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4592 do
4593   # Extract the first word of "$ac_prog", so it can be a program name with args.
4594 set dummy $ac_prog; ac_word=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4598   $as_echo_n "(cached) " >&6
4599 else
4600   if test -n "$ac_ct_CXX"; then
4601   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4602 else
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4605 do
4606   IFS=$as_save_IFS
4607   test -z "$as_dir" && as_dir=.
4608     for ac_exec_ext in '' $ac_executable_extensions; do
4609   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4610     ac_cv_prog_ac_ct_CXX="$ac_prog"
4611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612     break 2
4613   fi
4614 done
4615   done
4616 IFS=$as_save_IFS
4617
4618 fi
4619 fi
4620 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4621 if test -n "$ac_ct_CXX"; then
4622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4623 $as_echo "$ac_ct_CXX" >&6; }
4624 else
4625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4627 fi
4628
4629
4630   test -n "$ac_ct_CXX" && break
4631 done
4632
4633   if test "x$ac_ct_CXX" = x; then
4634     CXX="g++"
4635   else
4636     case $cross_compiling:$ac_tool_warned in
4637 yes:)
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4640 ac_tool_warned=yes ;;
4641 esac
4642     CXX=$ac_ct_CXX
4643   fi
4644 fi
4645
4646   fi
4647 fi
4648 # Provide some information about the compiler.
4649 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4650 set X $ac_compile
4651 ac_compiler=$2
4652 for ac_option in --version -v -V -qversion; do
4653   { { ac_try="$ac_compiler $ac_option >&5"
4654 case "(($ac_try" in
4655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656   *) ac_try_echo=$ac_try;;
4657 esac
4658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4659 $as_echo "$ac_try_echo"; } >&5
4660   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4661   ac_status=$?
4662   if test -s conftest.err; then
4663     sed '10a\
4664 ... rest of stderr output deleted ...
4665          10q' conftest.err >conftest.er1
4666     cat conftest.er1 >&5
4667   fi
4668   rm -f conftest.er1 conftest.err
4669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4670   test $ac_status = 0; }
4671 done
4672
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4674 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4675 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4676   $as_echo_n "(cached) " >&6
4677 else
4678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h.  */
4680
4681 int
4682 main ()
4683 {
4684 #ifndef __GNUC__
4685        choke me
4686 #endif
4687
4688   ;
4689   return 0;
4690 }
4691 _ACEOF
4692 if ac_fn_cxx_try_compile "$LINENO"; then :
4693   ac_compiler_gnu=yes
4694 else
4695   ac_compiler_gnu=no
4696 fi
4697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4698 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4699
4700 fi
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4702 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4703 if test $ac_compiler_gnu = yes; then
4704   GXX=yes
4705 else
4706   GXX=
4707 fi
4708 ac_test_CXXFLAGS=${CXXFLAGS+set}
4709 ac_save_CXXFLAGS=$CXXFLAGS
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4711 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4712 if ${ac_cv_prog_cxx_g+:} false; then :
4713   $as_echo_n "(cached) " >&6
4714 else
4715   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4716    ac_cxx_werror_flag=yes
4717    ac_cv_prog_cxx_g=no
4718    CXXFLAGS="-g"
4719    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h.  */
4721
4722 int
4723 main ()
4724 {
4725
4726   ;
4727   return 0;
4728 }
4729 _ACEOF
4730 if ac_fn_cxx_try_compile "$LINENO"; then :
4731   ac_cv_prog_cxx_g=yes
4732 else
4733   CXXFLAGS=""
4734       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h.  */
4736
4737 int
4738 main ()
4739 {
4740
4741   ;
4742   return 0;
4743 }
4744 _ACEOF
4745 if ac_fn_cxx_try_compile "$LINENO"; then :
4746
4747 else
4748   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4749          CXXFLAGS="-g"
4750          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h.  */
4752
4753 int
4754 main ()
4755 {
4756
4757   ;
4758   return 0;
4759 }
4760 _ACEOF
4761 if ac_fn_cxx_try_compile "$LINENO"; then :
4762   ac_cv_prog_cxx_g=yes
4763 fi
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765 fi
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 fi
4768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4770 fi
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4772 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4773 if test "$ac_test_CXXFLAGS" = set; then
4774   CXXFLAGS=$ac_save_CXXFLAGS
4775 elif test $ac_cv_prog_cxx_g = yes; then
4776   if test "$GXX" = yes; then
4777     CXXFLAGS="-g -O2"
4778   else
4779     CXXFLAGS="-g"
4780   fi
4781 else
4782   if test "$GXX" = yes; then
4783     CXXFLAGS="-O2"
4784   else
4785     CXXFLAGS=
4786   fi
4787 fi
4788 ac_ext=cpp
4789 ac_cpp='$CXXCPP $CPPFLAGS'
4790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4793
4794 depcc="$CXX"  am_compiler_list=
4795
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4797 $as_echo_n "checking dependency style of $depcc... " >&6; }
4798 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4799   $as_echo_n "(cached) " >&6
4800 else
4801   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4802   # We make a subdir and do the tests there.  Otherwise we can end up
4803   # making bogus files that we don't know about and never remove.  For
4804   # instance it was reported that on HP-UX the gcc test will end up
4805   # making a dummy file named 'D' -- because '-MD' means "put the output
4806   # in D".
4807   rm -rf conftest.dir
4808   mkdir conftest.dir
4809   # Copy depcomp to subdir because otherwise we won't find it if we're
4810   # using a relative directory.
4811   cp "$am_depcomp" conftest.dir
4812   cd conftest.dir
4813   # We will build objects and dependencies in a subdirectory because
4814   # it helps to detect inapplicable dependency modes.  For instance
4815   # both Tru64's cc and ICC support -MD to output dependencies as a
4816   # side effect of compilation, but ICC will put the dependencies in
4817   # the current directory while Tru64 will put them in the object
4818   # directory.
4819   mkdir sub
4820
4821   am_cv_CXX_dependencies_compiler_type=none
4822   if test "$am_compiler_list" = ""; then
4823      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4824   fi
4825   am__universal=false
4826   case " $depcc " in #(
4827      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4828      esac
4829
4830   for depmode in $am_compiler_list; do
4831     # Setup a source with many dependencies, because some compilers
4832     # like to wrap large dependency lists on column 80 (with \), and
4833     # we should not choose a depcomp mode which is confused by this.
4834     #
4835     # We need to recreate these files for each test, as the compiler may
4836     # overwrite some of them when testing with obscure command lines.
4837     # This happens at least with the AIX C compiler.
4838     : > sub/conftest.c
4839     for i in 1 2 3 4 5 6; do
4840       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4841       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4842       # Solaris 10 /bin/sh.
4843       echo '/* dummy */' > sub/conftst$i.h
4844     done
4845     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4846
4847     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4848     # mode.  It turns out that the SunPro C++ compiler does not properly
4849     # handle '-M -o', and we need to detect this.  Also, some Intel
4850     # versions had trouble with output in subdirs.
4851     am__obj=sub/conftest.${OBJEXT-o}
4852     am__minus_obj="-o $am__obj"
4853     case $depmode in
4854     gcc)
4855       # This depmode causes a compiler race in universal mode.
4856       test "$am__universal" = false || continue
4857       ;;
4858     nosideeffect)
4859       # After this tag, mechanisms are not by side-effect, so they'll
4860       # only be used when explicitly requested.
4861       if test "x$enable_dependency_tracking" = xyes; then
4862         continue
4863       else
4864         break
4865       fi
4866       ;;
4867     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4868       # This compiler won't grok '-c -o', but also, the minuso test has
4869       # not run yet.  These depmodes are late enough in the game, and
4870       # so weak that their functioning should not be impacted.
4871       am__obj=conftest.${OBJEXT-o}
4872       am__minus_obj=
4873       ;;
4874     none) break ;;
4875     esac
4876     if depmode=$depmode \
4877        source=sub/conftest.c object=$am__obj \
4878        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4879        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4880          >/dev/null 2>conftest.err &&
4881        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4882        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4883        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4884        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4885       # icc doesn't choke on unknown options, it will just issue warnings
4886       # or remarks (even with -Werror).  So we grep stderr for any message
4887       # that says an option was ignored or not supported.
4888       # When given -MP, icc 7.0 and 7.1 complain thusly:
4889       #   icc: Command line warning: ignoring option '-M'; no argument required
4890       # The diagnosis changed in icc 8.0:
4891       #   icc: Command line remark: option '-MP' not supported
4892       if (grep 'ignoring option' conftest.err ||
4893           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4894         am_cv_CXX_dependencies_compiler_type=$depmode
4895         break
4896       fi
4897     fi
4898   done
4899
4900   cd ..
4901   rm -rf conftest.dir
4902 else
4903   am_cv_CXX_dependencies_compiler_type=none
4904 fi
4905
4906 fi
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4908 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4909 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4910
4911  if
4912   test "x$enable_dependency_tracking" != xno \
4913   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4914   am__fastdepCXX_TRUE=
4915   am__fastdepCXX_FALSE='#'
4916 else
4917   am__fastdepCXX_TRUE='#'
4918   am__fastdepCXX_FALSE=
4919 fi
4920
4921
4922  if test "$GCC" = yes; then
4923   GCC_TRUE=
4924   GCC_FALSE='#'
4925 else
4926   GCC_TRUE='#'
4927   GCC_FALSE=
4928 fi
4929    # let the Makefile know if we're gcc
4930
4931 case `pwd` in
4932   *\ * | *\     *)
4933     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4934 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4935 esac
4936
4937
4938
4939 macro_version='2.4.2'
4940 macro_revision='1.3337'
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954 ltmain="$ac_aux_dir/ltmain.sh"
4955
4956 # Make sure we can run config.sub.
4957 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4958   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4959
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4961 $as_echo_n "checking build system type... " >&6; }
4962 if ${ac_cv_build+:} false; then :
4963   $as_echo_n "(cached) " >&6
4964 else
4965   ac_build_alias=$build_alias
4966 test "x$ac_build_alias" = x &&
4967   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4968 test "x$ac_build_alias" = x &&
4969   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4970 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4971   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4972
4973 fi
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4975 $as_echo "$ac_cv_build" >&6; }
4976 case $ac_cv_build in
4977 *-*-*) ;;
4978 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4979 esac
4980 build=$ac_cv_build
4981 ac_save_IFS=$IFS; IFS='-'
4982 set x $ac_cv_build
4983 shift
4984 build_cpu=$1
4985 build_vendor=$2
4986 shift; shift
4987 # Remember, the first character of IFS is used to create $*,
4988 # except with old shells:
4989 build_os=$*
4990 IFS=$ac_save_IFS
4991 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4992
4993
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4995 $as_echo_n "checking host system type... " >&6; }
4996 if ${ac_cv_host+:} false; then :
4997   $as_echo_n "(cached) " >&6
4998 else
4999   if test "x$host_alias" = x; then
5000   ac_cv_host=$ac_cv_build
5001 else
5002   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5003     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5004 fi
5005
5006 fi
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5008 $as_echo "$ac_cv_host" >&6; }
5009 case $ac_cv_host in
5010 *-*-*) ;;
5011 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5012 esac
5013 host=$ac_cv_host
5014 ac_save_IFS=$IFS; IFS='-'
5015 set x $ac_cv_host
5016 shift
5017 host_cpu=$1
5018 host_vendor=$2
5019 shift; shift
5020 # Remember, the first character of IFS is used to create $*,
5021 # except with old shells:
5022 host_os=$*
5023 IFS=$ac_save_IFS
5024 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5025
5026
5027 # Backslashify metacharacters that are still active within
5028 # double-quoted strings.
5029 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5030
5031 # Same as above, but do not quote variable references.
5032 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5033
5034 # Sed substitution to delay expansion of an escaped shell variable in a
5035 # double_quote_subst'ed string.
5036 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5037
5038 # Sed substitution to delay expansion of an escaped single quote.
5039 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5040
5041 # Sed substitution to avoid accidental globbing in evaled expressions
5042 no_glob_subst='s/\*/\\\*/g'
5043
5044 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5045 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5046 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5047
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5049 $as_echo_n "checking how to print strings... " >&6; }
5050 # Test print first, because it will be a builtin if present.
5051 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5052    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5053   ECHO='print -r --'
5054 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5055   ECHO='printf %s\n'
5056 else
5057   # Use this function as a fallback that always works.
5058   func_fallback_echo ()
5059   {
5060     eval 'cat <<_LTECHO_EOF
5061 $1
5062 _LTECHO_EOF'
5063   }
5064   ECHO='func_fallback_echo'
5065 fi
5066
5067 # func_echo_all arg...
5068 # Invoke $ECHO with all args, space-separated.
5069 func_echo_all ()
5070 {
5071     $ECHO ""
5072 }
5073
5074 case "$ECHO" in
5075   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5076 $as_echo "printf" >&6; } ;;
5077   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5078 $as_echo "print -r" >&6; } ;;
5079   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5080 $as_echo "cat" >&6; } ;;
5081 esac
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5097 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5098 if ${ac_cv_path_SED+:} false; then :
5099   $as_echo_n "(cached) " >&6
5100 else
5101             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5102      for ac_i in 1 2 3 4 5 6 7; do
5103        ac_script="$ac_script$as_nl$ac_script"
5104      done
5105      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5106      { ac_script=; unset ac_script;}
5107      if test -z "$SED"; then
5108   ac_path_SED_found=false
5109   # Loop through the user's path and test for each of PROGNAME-LIST
5110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 for as_dir in $PATH
5112 do
5113   IFS=$as_save_IFS
5114   test -z "$as_dir" && as_dir=.
5115     for ac_prog in sed gsed; do
5116     for ac_exec_ext in '' $ac_executable_extensions; do
5117       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5118       as_fn_executable_p "$ac_path_SED" || continue
5119 # Check for GNU ac_path_SED and select it if it is found.
5120   # Check for GNU $ac_path_SED
5121 case `"$ac_path_SED" --version 2>&1` in
5122 *GNU*)
5123   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5124 *)
5125   ac_count=0
5126   $as_echo_n 0123456789 >"conftest.in"
5127   while :
5128   do
5129     cat "conftest.in" "conftest.in" >"conftest.tmp"
5130     mv "conftest.tmp" "conftest.in"
5131     cp "conftest.in" "conftest.nl"
5132     $as_echo '' >> "conftest.nl"
5133     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5134     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5135     as_fn_arith $ac_count + 1 && ac_count=$as_val
5136     if test $ac_count -gt ${ac_path_SED_max-0}; then
5137       # Best one so far, save it but keep looking for a better one
5138       ac_cv_path_SED="$ac_path_SED"
5139       ac_path_SED_max=$ac_count
5140     fi
5141     # 10*(2^10) chars as input seems more than enough
5142     test $ac_count -gt 10 && break
5143   done
5144   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5145 esac
5146
5147       $ac_path_SED_found && break 3
5148     done
5149   done
5150   done
5151 IFS=$as_save_IFS
5152   if test -z "$ac_cv_path_SED"; then
5153     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5154   fi
5155 else
5156   ac_cv_path_SED=$SED
5157 fi
5158
5159 fi
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5161 $as_echo "$ac_cv_path_SED" >&6; }
5162  SED="$ac_cv_path_SED"
5163   rm -f conftest.sed
5164
5165 test -z "$SED" && SED=sed
5166 Xsed="$SED -e 1s/^X//"
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5179 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5180 if ${ac_cv_path_GREP+:} false; then :
5181   $as_echo_n "(cached) " >&6
5182 else
5183   if test -z "$GREP"; then
5184   ac_path_GREP_found=false
5185   # Loop through the user's path and test for each of PROGNAME-LIST
5186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5188 do
5189   IFS=$as_save_IFS
5190   test -z "$as_dir" && as_dir=.
5191     for ac_prog in grep ggrep; do
5192     for ac_exec_ext in '' $ac_executable_extensions; do
5193       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5194       as_fn_executable_p "$ac_path_GREP" || continue
5195 # Check for GNU ac_path_GREP and select it if it is found.
5196   # Check for GNU $ac_path_GREP
5197 case `"$ac_path_GREP" --version 2>&1` in
5198 *GNU*)
5199   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5200 *)
5201   ac_count=0
5202   $as_echo_n 0123456789 >"conftest.in"
5203   while :
5204   do
5205     cat "conftest.in" "conftest.in" >"conftest.tmp"
5206     mv "conftest.tmp" "conftest.in"
5207     cp "conftest.in" "conftest.nl"
5208     $as_echo 'GREP' >> "conftest.nl"
5209     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5210     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5211     as_fn_arith $ac_count + 1 && ac_count=$as_val
5212     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5213       # Best one so far, save it but keep looking for a better one
5214       ac_cv_path_GREP="$ac_path_GREP"
5215       ac_path_GREP_max=$ac_count
5216     fi
5217     # 10*(2^10) chars as input seems more than enough
5218     test $ac_count -gt 10 && break
5219   done
5220   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5221 esac
5222
5223       $ac_path_GREP_found && break 3
5224     done
5225   done
5226   done
5227 IFS=$as_save_IFS
5228   if test -z "$ac_cv_path_GREP"; then
5229     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5230   fi
5231 else
5232   ac_cv_path_GREP=$GREP
5233 fi
5234
5235 fi
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5237 $as_echo "$ac_cv_path_GREP" >&6; }
5238  GREP="$ac_cv_path_GREP"
5239
5240
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5242 $as_echo_n "checking for egrep... " >&6; }
5243 if ${ac_cv_path_EGREP+:} false; then :
5244   $as_echo_n "(cached) " >&6
5245 else
5246   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5247    then ac_cv_path_EGREP="$GREP -E"
5248    else
5249      if test -z "$EGREP"; then
5250   ac_path_EGREP_found=false
5251   # Loop through the user's path and test for each of PROGNAME-LIST
5252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5254 do
5255   IFS=$as_save_IFS
5256   test -z "$as_dir" && as_dir=.
5257     for ac_prog in egrep; do
5258     for ac_exec_ext in '' $ac_executable_extensions; do
5259       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5260       as_fn_executable_p "$ac_path_EGREP" || continue
5261 # Check for GNU ac_path_EGREP and select it if it is found.
5262   # Check for GNU $ac_path_EGREP
5263 case `"$ac_path_EGREP" --version 2>&1` in
5264 *GNU*)
5265   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5266 *)
5267   ac_count=0
5268   $as_echo_n 0123456789 >"conftest.in"
5269   while :
5270   do
5271     cat "conftest.in" "conftest.in" >"conftest.tmp"
5272     mv "conftest.tmp" "conftest.in"
5273     cp "conftest.in" "conftest.nl"
5274     $as_echo 'EGREP' >> "conftest.nl"
5275     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5276     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5277     as_fn_arith $ac_count + 1 && ac_count=$as_val
5278     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5279       # Best one so far, save it but keep looking for a better one
5280       ac_cv_path_EGREP="$ac_path_EGREP"
5281       ac_path_EGREP_max=$ac_count
5282     fi
5283     # 10*(2^10) chars as input seems more than enough
5284     test $ac_count -gt 10 && break
5285   done
5286   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5287 esac
5288
5289       $ac_path_EGREP_found && break 3
5290     done
5291   done
5292   done
5293 IFS=$as_save_IFS
5294   if test -z "$ac_cv_path_EGREP"; then
5295     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5296   fi
5297 else
5298   ac_cv_path_EGREP=$EGREP
5299 fi
5300
5301    fi
5302 fi
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5304 $as_echo "$ac_cv_path_EGREP" >&6; }
5305  EGREP="$ac_cv_path_EGREP"
5306
5307
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5309 $as_echo_n "checking for fgrep... " >&6; }
5310 if ${ac_cv_path_FGREP+:} false; then :
5311   $as_echo_n "(cached) " >&6
5312 else
5313   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5314    then ac_cv_path_FGREP="$GREP -F"
5315    else
5316      if test -z "$FGREP"; then
5317   ac_path_FGREP_found=false
5318   # Loop through the user's path and test for each of PROGNAME-LIST
5319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5321 do
5322   IFS=$as_save_IFS
5323   test -z "$as_dir" && as_dir=.
5324     for ac_prog in fgrep; do
5325     for ac_exec_ext in '' $ac_executable_extensions; do
5326       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5327       as_fn_executable_p "$ac_path_FGREP" || continue
5328 # Check for GNU ac_path_FGREP and select it if it is found.
5329   # Check for GNU $ac_path_FGREP
5330 case `"$ac_path_FGREP" --version 2>&1` in
5331 *GNU*)
5332   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5333 *)
5334   ac_count=0
5335   $as_echo_n 0123456789 >"conftest.in"
5336   while :
5337   do
5338     cat "conftest.in" "conftest.in" >"conftest.tmp"
5339     mv "conftest.tmp" "conftest.in"
5340     cp "conftest.in" "conftest.nl"
5341     $as_echo 'FGREP' >> "conftest.nl"
5342     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5343     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5344     as_fn_arith $ac_count + 1 && ac_count=$as_val
5345     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5346       # Best one so far, save it but keep looking for a better one
5347       ac_cv_path_FGREP="$ac_path_FGREP"
5348       ac_path_FGREP_max=$ac_count
5349     fi
5350     # 10*(2^10) chars as input seems more than enough
5351     test $ac_count -gt 10 && break
5352   done
5353   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5354 esac
5355
5356       $ac_path_FGREP_found && break 3
5357     done
5358   done
5359   done
5360 IFS=$as_save_IFS
5361   if test -z "$ac_cv_path_FGREP"; then
5362     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5363   fi
5364 else
5365   ac_cv_path_FGREP=$FGREP
5366 fi
5367
5368    fi
5369 fi
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5371 $as_echo "$ac_cv_path_FGREP" >&6; }
5372  FGREP="$ac_cv_path_FGREP"
5373
5374
5375 test -z "$GREP" && GREP=grep
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395 # Check whether --with-gnu-ld was given.
5396 if test "${with_gnu_ld+set}" = set; then :
5397   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5398 else
5399   with_gnu_ld=no
5400 fi
5401
5402 ac_prog=ld
5403 if test "$GCC" = yes; then
5404   # Check if gcc -print-prog-name=ld gives a path.
5405   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5406 $as_echo_n "checking for ld used by $CC... " >&6; }
5407   case $host in
5408   *-*-mingw*)
5409     # gcc leaves a trailing carriage return which upsets mingw
5410     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5411   *)
5412     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5413   esac
5414   case $ac_prog in
5415     # Accept absolute paths.
5416     [\\/]* | ?:[\\/]*)
5417       re_direlt='/[^/][^/]*/\.\./'
5418       # Canonicalize the pathname of ld
5419       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5420       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5421         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5422       done
5423       test -z "$LD" && LD="$ac_prog"
5424       ;;
5425   "")
5426     # If it fails, then pretend we aren't using GCC.
5427     ac_prog=ld
5428     ;;
5429   *)
5430     # If it is relative, then search for the first ld in PATH.
5431     with_gnu_ld=unknown
5432     ;;
5433   esac
5434 elif test "$with_gnu_ld" = yes; then
5435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5436 $as_echo_n "checking for GNU ld... " >&6; }
5437 else
5438   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5439 $as_echo_n "checking for non-GNU ld... " >&6; }
5440 fi
5441 if ${lt_cv_path_LD+:} false; then :
5442   $as_echo_n "(cached) " >&6
5443 else
5444   if test -z "$LD"; then
5445   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5446   for ac_dir in $PATH; do
5447     IFS="$lt_save_ifs"
5448     test -z "$ac_dir" && ac_dir=.
5449     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5450       lt_cv_path_LD="$ac_dir/$ac_prog"
5451       # Check to see if the program is GNU ld.  I'd rather use --version,
5452       # but apparently some variants of GNU ld only accept -v.
5453       # Break only if it was the GNU/non-GNU ld that we prefer.
5454       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5455       *GNU* | *'with BFD'*)
5456         test "$with_gnu_ld" != no && break
5457         ;;
5458       *)
5459         test "$with_gnu_ld" != yes && break
5460         ;;
5461       esac
5462     fi
5463   done
5464   IFS="$lt_save_ifs"
5465 else
5466   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5467 fi
5468 fi
5469
5470 LD="$lt_cv_path_LD"
5471 if test -n "$LD"; then
5472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5473 $as_echo "$LD" >&6; }
5474 else
5475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476 $as_echo "no" >&6; }
5477 fi
5478 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5480 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5481 if ${lt_cv_prog_gnu_ld+:} false; then :
5482   $as_echo_n "(cached) " >&6
5483 else
5484   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5485 case `$LD -v 2>&1 </dev/null` in
5486 *GNU* | *'with BFD'*)
5487   lt_cv_prog_gnu_ld=yes
5488   ;;
5489 *)
5490   lt_cv_prog_gnu_ld=no
5491   ;;
5492 esac
5493 fi
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5495 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5496 with_gnu_ld=$lt_cv_prog_gnu_ld
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5507 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5508 if ${lt_cv_path_NM+:} false; then :
5509   $as_echo_n "(cached) " >&6
5510 else
5511   if test -n "$NM"; then
5512   # Let the user override the test.
5513   lt_cv_path_NM="$NM"
5514 else
5515   lt_nm_to_check="${ac_tool_prefix}nm"
5516   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5517     lt_nm_to_check="$lt_nm_to_check nm"
5518   fi
5519   for lt_tmp_nm in $lt_nm_to_check; do
5520     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5521     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5522       IFS="$lt_save_ifs"
5523       test -z "$ac_dir" && ac_dir=.
5524       tmp_nm="$ac_dir/$lt_tmp_nm"
5525       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5526         # Check to see if the nm accepts a BSD-compat flag.
5527         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5528         #   nm: unknown option "B" ignored
5529         # Tru64's nm complains that /dev/null is an invalid object file
5530         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5531         */dev/null* | *'Invalid file or object type'*)
5532           lt_cv_path_NM="$tmp_nm -B"
5533           break
5534           ;;
5535         *)
5536           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5537           */dev/null*)
5538             lt_cv_path_NM="$tmp_nm -p"
5539             break
5540             ;;
5541           *)
5542             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5543             continue # so that we can try to find one that supports BSD flags
5544             ;;
5545           esac
5546           ;;
5547         esac
5548       fi
5549     done
5550     IFS="$lt_save_ifs"
5551   done
5552   : ${lt_cv_path_NM=no}
5553 fi
5554 fi
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5556 $as_echo "$lt_cv_path_NM" >&6; }
5557 if test "$lt_cv_path_NM" != "no"; then
5558   NM="$lt_cv_path_NM"
5559 else
5560   # Didn't find any BSD compatible name lister, look for dumpbin.
5561   if test -n "$DUMPBIN"; then :
5562     # Let the user override the test.
5563   else
5564     if test -n "$ac_tool_prefix"; then
5565   for ac_prog in dumpbin "link -dump"
5566   do
5567     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5568 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5570 $as_echo_n "checking for $ac_word... " >&6; }
5571 if ${ac_cv_prog_DUMPBIN+:} false; then :
5572   $as_echo_n "(cached) " >&6
5573 else
5574   if test -n "$DUMPBIN"; then
5575   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5576 else
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH
5579 do
5580   IFS=$as_save_IFS
5581   test -z "$as_dir" && as_dir=.
5582     for ac_exec_ext in '' $ac_executable_extensions; do
5583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5586     break 2
5587   fi
5588 done
5589   done
5590 IFS=$as_save_IFS
5591
5592 fi
5593 fi
5594 DUMPBIN=$ac_cv_prog_DUMPBIN
5595 if test -n "$DUMPBIN"; then
5596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5597 $as_echo "$DUMPBIN" >&6; }
5598 else
5599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 $as_echo "no" >&6; }
5601 fi
5602
5603
5604     test -n "$DUMPBIN" && break
5605   done
5606 fi
5607 if test -z "$DUMPBIN"; then
5608   ac_ct_DUMPBIN=$DUMPBIN
5609   for ac_prog in dumpbin "link -dump"
5610 do
5611   # Extract the first word of "$ac_prog", so it can be a program name with args.
5612 set dummy $ac_prog; ac_word=$2
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5614 $as_echo_n "checking for $ac_word... " >&6; }
5615 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5616   $as_echo_n "(cached) " >&6
5617 else
5618   if test -n "$ac_ct_DUMPBIN"; then
5619   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5620 else
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 for as_dir in $PATH
5623 do
5624   IFS=$as_save_IFS
5625   test -z "$as_dir" && as_dir=.
5626     for ac_exec_ext in '' $ac_executable_extensions; do
5627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5628     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5630     break 2
5631   fi
5632 done
5633   done
5634 IFS=$as_save_IFS
5635
5636 fi
5637 fi
5638 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5639 if test -n "$ac_ct_DUMPBIN"; then
5640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5641 $as_echo "$ac_ct_DUMPBIN" >&6; }
5642 else
5643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644 $as_echo "no" >&6; }
5645 fi
5646
5647
5648   test -n "$ac_ct_DUMPBIN" && break
5649 done
5650
5651   if test "x$ac_ct_DUMPBIN" = x; then
5652     DUMPBIN=":"
5653   else
5654     case $cross_compiling:$ac_tool_warned in
5655 yes:)
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5658 ac_tool_warned=yes ;;
5659 esac
5660     DUMPBIN=$ac_ct_DUMPBIN
5661   fi
5662 fi
5663
5664     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5665     *COFF*)
5666       DUMPBIN="$DUMPBIN -symbols"
5667       ;;
5668     *)
5669       DUMPBIN=:
5670       ;;
5671     esac
5672   fi
5673
5674   if test "$DUMPBIN" != ":"; then
5675     NM="$DUMPBIN"
5676   fi
5677 fi
5678 test -z "$NM" && NM=nm
5679
5680
5681
5682
5683
5684
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5686 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5687 if ${lt_cv_nm_interface+:} false; then :
5688   $as_echo_n "(cached) " >&6
5689 else
5690   lt_cv_nm_interface="BSD nm"
5691   echo "int some_variable = 0;" > conftest.$ac_ext
5692   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5693   (eval "$ac_compile" 2>conftest.err)
5694   cat conftest.err >&5
5695   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5696   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5697   cat conftest.err >&5
5698   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5699   cat conftest.out >&5
5700   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5701     lt_cv_nm_interface="MS dumpbin"
5702   fi
5703   rm -f conftest*
5704 fi
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5706 $as_echo "$lt_cv_nm_interface" >&6; }
5707
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5709 $as_echo_n "checking whether ln -s works... " >&6; }
5710 LN_S=$as_ln_s
5711 if test "$LN_S" = "ln -s"; then
5712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5713 $as_echo "yes" >&6; }
5714 else
5715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5716 $as_echo "no, using $LN_S" >&6; }
5717 fi
5718
5719 # find the maximum length of command line arguments
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5721 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5722 if ${lt_cv_sys_max_cmd_len+:} false; then :
5723   $as_echo_n "(cached) " >&6
5724 else
5725     i=0
5726   teststring="ABCD"
5727
5728   case $build_os in
5729   msdosdjgpp*)
5730     # On DJGPP, this test can blow up pretty badly due to problems in libc
5731     # (any single argument exceeding 2000 bytes causes a buffer overrun
5732     # during glob expansion).  Even if it were fixed, the result of this
5733     # check would be larger than it should be.
5734     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5735     ;;
5736
5737   gnu*)
5738     # Under GNU Hurd, this test is not required because there is
5739     # no limit to the length of command line arguments.
5740     # Libtool will interpret -1 as no limit whatsoever
5741     lt_cv_sys_max_cmd_len=-1;
5742     ;;
5743
5744   cygwin* | mingw* | cegcc*)
5745     # On Win9x/ME, this test blows up -- it succeeds, but takes
5746     # about 5 minutes as the teststring grows exponentially.
5747     # Worse, since 9x/ME are not pre-emptively multitasking,
5748     # you end up with a "frozen" computer, even though with patience
5749     # the test eventually succeeds (with a max line length of 256k).
5750     # Instead, let's just punt: use the minimum linelength reported by
5751     # all of the supported platforms: 8192 (on NT/2K/XP).
5752     lt_cv_sys_max_cmd_len=8192;
5753     ;;
5754
5755   mint*)
5756     # On MiNT this can take a long time and run out of memory.
5757     lt_cv_sys_max_cmd_len=8192;
5758     ;;
5759
5760   amigaos*)
5761     # On AmigaOS with pdksh, this test takes hours, literally.
5762     # So we just punt and use a minimum line length of 8192.
5763     lt_cv_sys_max_cmd_len=8192;
5764     ;;
5765
5766   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5767     # This has been around since 386BSD, at least.  Likely further.
5768     if test -x /sbin/sysctl; then
5769       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5770     elif test -x /usr/sbin/sysctl; then
5771       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5772     else
5773       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5774     fi
5775     # And add a safety zone
5776     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5777     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5778     ;;
5779
5780   interix*)
5781     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5782     lt_cv_sys_max_cmd_len=196608
5783     ;;
5784
5785   os2*)
5786     # The test takes a long time on OS/2.
5787     lt_cv_sys_max_cmd_len=8192
5788     ;;
5789
5790   osf*)
5791     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5792     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5793     # nice to cause kernel panics so lets avoid the loop below.
5794     # First set a reasonable default.
5795     lt_cv_sys_max_cmd_len=16384
5796     #
5797     if test -x /sbin/sysconfig; then
5798       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5799         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5800       esac
5801     fi
5802     ;;
5803   sco3.2v5*)
5804     lt_cv_sys_max_cmd_len=102400
5805     ;;
5806   sysv5* | sco5v6* | sysv4.2uw2*)
5807     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5808     if test -n "$kargmax"; then
5809       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5810     else
5811       lt_cv_sys_max_cmd_len=32768
5812     fi
5813     ;;
5814   *)
5815     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5816     if test -n "$lt_cv_sys_max_cmd_len"; then
5817       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5818       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5819     else
5820       # Make teststring a little bigger before we do anything with it.
5821       # a 1K string should be a reasonable start.
5822       for i in 1 2 3 4 5 6 7 8 ; do
5823         teststring=$teststring$teststring
5824       done
5825       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5826       # If test is not a shell built-in, we'll probably end up computing a
5827       # maximum length that is only half of the actual maximum length, but
5828       # we can't tell.
5829       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5830                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5831               test $i != 17 # 1/2 MB should be enough
5832       do
5833         i=`expr $i + 1`
5834         teststring=$teststring$teststring
5835       done
5836       # Only check the string length outside the loop.
5837       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5838       teststring=
5839       # Add a significant safety factor because C++ compilers can tack on
5840       # massive amounts of additional arguments before passing them to the
5841       # linker.  It appears as though 1/2 is a usable value.
5842       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5843     fi
5844     ;;
5845   esac
5846
5847 fi
5848
5849 if test -n $lt_cv_sys_max_cmd_len ; then
5850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5851 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5852 else
5853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5854 $as_echo "none" >&6; }
5855 fi
5856 max_cmd_len=$lt_cv_sys_max_cmd_len
5857
5858
5859
5860
5861
5862
5863 : ${CP="cp -f"}
5864 : ${MV="mv -f"}
5865 : ${RM="rm -f"}
5866
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5868 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5869 # Try some XSI features
5870 xsi_shell=no
5871 ( _lt_dummy="a/b/c"
5872   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5873       = c,a/b,b/c, \
5874     && eval 'test $(( 1 + 1 )) -eq 2 \
5875     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5876   && xsi_shell=yes
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5878 $as_echo "$xsi_shell" >&6; }
5879
5880
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5882 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5883 lt_shell_append=no
5884 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5885     >/dev/null 2>&1 \
5886   && lt_shell_append=yes
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5888 $as_echo "$lt_shell_append" >&6; }
5889
5890
5891 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5892   lt_unset=unset
5893 else
5894   lt_unset=false
5895 fi
5896
5897
5898
5899
5900
5901 # test EBCDIC or ASCII
5902 case `echo X|tr X '\101'` in
5903  A) # ASCII based system
5904     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5905   lt_SP2NL='tr \040 \012'
5906   lt_NL2SP='tr \015\012 \040\040'
5907   ;;
5908  *) # EBCDIC based system
5909   lt_SP2NL='tr \100 \n'
5910   lt_NL2SP='tr \r\n \100\100'
5911   ;;
5912 esac
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5923 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5924 if ${lt_cv_to_host_file_cmd+:} false; then :
5925   $as_echo_n "(cached) " >&6
5926 else
5927   case $host in
5928   *-*-mingw* )
5929     case $build in
5930       *-*-mingw* ) # actually msys
5931         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5932         ;;
5933       *-*-cygwin* )
5934         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5935         ;;
5936       * ) # otherwise, assume *nix
5937         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5938         ;;
5939     esac
5940     ;;
5941   *-*-cygwin* )
5942     case $build in
5943       *-*-mingw* ) # actually msys
5944         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5945         ;;
5946       *-*-cygwin* )
5947         lt_cv_to_host_file_cmd=func_convert_file_noop
5948         ;;
5949       * ) # otherwise, assume *nix
5950         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5951         ;;
5952     esac
5953     ;;
5954   * ) # unhandled hosts (and "normal" native builds)
5955     lt_cv_to_host_file_cmd=func_convert_file_noop
5956     ;;
5957 esac
5958
5959 fi
5960
5961 to_host_file_cmd=$lt_cv_to_host_file_cmd
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5963 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5964
5965
5966
5967
5968
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5970 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5971 if ${lt_cv_to_tool_file_cmd+:} false; then :
5972   $as_echo_n "(cached) " >&6
5973 else
5974   #assume ordinary cross tools, or native build.
5975 lt_cv_to_tool_file_cmd=func_convert_file_noop
5976 case $host in
5977   *-*-mingw* )
5978     case $build in
5979       *-*-mingw* ) # actually msys
5980         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5981         ;;
5982     esac
5983     ;;
5984 esac
5985
5986 fi
5987
5988 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5990 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5991
5992
5993
5994
5995
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5997 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5998 if ${lt_cv_ld_reload_flag+:} false; then :
5999   $as_echo_n "(cached) " >&6
6000 else
6001   lt_cv_ld_reload_flag='-r'
6002 fi
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6004 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6005 reload_flag=$lt_cv_ld_reload_flag
6006 case $reload_flag in
6007 "" | " "*) ;;
6008 *) reload_flag=" $reload_flag" ;;
6009 esac
6010 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6011 case $host_os in
6012   cygwin* | mingw* | pw32* | cegcc*)
6013     if test "$GCC" != yes; then
6014       reload_cmds=false
6015     fi
6016     ;;
6017   darwin*)
6018     if test "$GCC" = yes; then
6019       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6020     else
6021       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6022     fi
6023     ;;
6024 esac
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034 if test -n "$ac_tool_prefix"; then
6035   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6036 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6038 $as_echo_n "checking for $ac_word... " >&6; }
6039 if ${ac_cv_prog_OBJDUMP+:} false; then :
6040   $as_echo_n "(cached) " >&6
6041 else
6042   if test -n "$OBJDUMP"; then
6043   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6044 else
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 for as_dir in $PATH
6047 do
6048   IFS=$as_save_IFS
6049   test -z "$as_dir" && as_dir=.
6050     for ac_exec_ext in '' $ac_executable_extensions; do
6051   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6052     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054     break 2
6055   fi
6056 done
6057   done
6058 IFS=$as_save_IFS
6059
6060 fi
6061 fi
6062 OBJDUMP=$ac_cv_prog_OBJDUMP
6063 if test -n "$OBJDUMP"; then
6064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6065 $as_echo "$OBJDUMP" >&6; }
6066 else
6067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068 $as_echo "no" >&6; }
6069 fi
6070
6071
6072 fi
6073 if test -z "$ac_cv_prog_OBJDUMP"; then
6074   ac_ct_OBJDUMP=$OBJDUMP
6075   # Extract the first word of "objdump", so it can be a program name with args.
6076 set dummy objdump; ac_word=$2
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 $as_echo_n "checking for $ac_word... " >&6; }
6079 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6080   $as_echo_n "(cached) " >&6
6081 else
6082   if test -n "$ac_ct_OBJDUMP"; then
6083   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6084 else
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 for as_dir in $PATH
6087 do
6088   IFS=$as_save_IFS
6089   test -z "$as_dir" && as_dir=.
6090     for ac_exec_ext in '' $ac_executable_extensions; do
6091   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6092     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094     break 2
6095   fi
6096 done
6097   done
6098 IFS=$as_save_IFS
6099
6100 fi
6101 fi
6102 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6103 if test -n "$ac_ct_OBJDUMP"; then
6104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6105 $as_echo "$ac_ct_OBJDUMP" >&6; }
6106 else
6107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108 $as_echo "no" >&6; }
6109 fi
6110
6111   if test "x$ac_ct_OBJDUMP" = x; then
6112     OBJDUMP="false"
6113   else
6114     case $cross_compiling:$ac_tool_warned in
6115 yes:)
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6118 ac_tool_warned=yes ;;
6119 esac
6120     OBJDUMP=$ac_ct_OBJDUMP
6121   fi
6122 else
6123   OBJDUMP="$ac_cv_prog_OBJDUMP"
6124 fi
6125
6126 test -z "$OBJDUMP" && OBJDUMP=objdump
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6137 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6138 if ${lt_cv_deplibs_check_method+:} false; then :
6139   $as_echo_n "(cached) " >&6
6140 else
6141   lt_cv_file_magic_cmd='$MAGIC_CMD'
6142 lt_cv_file_magic_test_file=
6143 lt_cv_deplibs_check_method='unknown'
6144 # Need to set the preceding variable on all platforms that support
6145 # interlibrary dependencies.
6146 # 'none' -- dependencies not supported.
6147 # `unknown' -- same as none, but documents that we really don't know.
6148 # 'pass_all' -- all dependencies passed with no checks.
6149 # 'test_compile' -- check by making test program.
6150 # 'file_magic [[regex]]' -- check by looking for files in library path
6151 # which responds to the $file_magic_cmd with a given extended regex.
6152 # If you have `file' or equivalent on your system and you're not sure
6153 # whether `pass_all' will *always* work, you probably want this one.
6154
6155 case $host_os in
6156 aix[4-9]*)
6157   lt_cv_deplibs_check_method=pass_all
6158   ;;
6159
6160 beos*)
6161   lt_cv_deplibs_check_method=pass_all
6162   ;;
6163
6164 bsdi[45]*)
6165   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6166   lt_cv_file_magic_cmd='/usr/bin/file -L'
6167   lt_cv_file_magic_test_file=/shlib/libc.so
6168   ;;
6169
6170 cygwin*)
6171   # func_win32_libid is a shell function defined in ltmain.sh
6172   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6173   lt_cv_file_magic_cmd='func_win32_libid'
6174   ;;
6175
6176 mingw* | pw32*)
6177   # Base MSYS/MinGW do not provide the 'file' command needed by
6178   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6179   # unless we find 'file', for example because we are cross-compiling.
6180   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6181   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6182     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6183     lt_cv_file_magic_cmd='func_win32_libid'
6184   else
6185     # Keep this pattern in sync with the one in func_win32_libid.
6186     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6187     lt_cv_file_magic_cmd='$OBJDUMP -f'
6188   fi
6189   ;;
6190
6191 cegcc*)
6192   # use the weaker test based on 'objdump'. See mingw*.
6193   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6194   lt_cv_file_magic_cmd='$OBJDUMP -f'
6195   ;;
6196
6197 darwin* | rhapsody*)
6198   lt_cv_deplibs_check_method=pass_all
6199   ;;
6200
6201 freebsd* | dragonfly*)
6202   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6203     case $host_cpu in
6204     i*86 )
6205       # Not sure whether the presence of OpenBSD here was a mistake.
6206       # Let's accept both of them until this is cleared up.
6207       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6208       lt_cv_file_magic_cmd=/usr/bin/file
6209       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6210       ;;
6211     esac
6212   else
6213     lt_cv_deplibs_check_method=pass_all
6214   fi
6215   ;;
6216
6217 gnu*)
6218   lt_cv_deplibs_check_method=pass_all
6219   ;;
6220
6221 haiku*)
6222   lt_cv_deplibs_check_method=pass_all
6223   ;;
6224
6225 hpux10.20* | hpux11*)
6226   lt_cv_file_magic_cmd=/usr/bin/file
6227   case $host_cpu in
6228   ia64*)
6229     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6230     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6231     ;;
6232   hppa*64*)
6233     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]'
6234     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6235     ;;
6236   *)
6237     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6238     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6239     ;;
6240   esac
6241   ;;
6242
6243 interix[3-9]*)
6244   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6245   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6246   ;;
6247
6248 irix5* | irix6* | nonstopux*)
6249   case $LD in
6250   *-32|*"-32 ") libmagic=32-bit;;
6251   *-n32|*"-n32 ") libmagic=N32;;
6252   *-64|*"-64 ") libmagic=64-bit;;
6253   *) libmagic=never-match;;
6254   esac
6255   lt_cv_deplibs_check_method=pass_all
6256   ;;
6257
6258 # This must be glibc/ELF.
6259 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6260   lt_cv_deplibs_check_method=pass_all
6261   ;;
6262
6263 netbsd* | netbsdelf*-gnu)
6264   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6265     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6266   else
6267     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6268   fi
6269   ;;
6270
6271 newos6*)
6272   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6273   lt_cv_file_magic_cmd=/usr/bin/file
6274   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6275   ;;
6276
6277 *nto* | *qnx*)
6278   lt_cv_deplibs_check_method=pass_all
6279   ;;
6280
6281 openbsd*)
6282   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6283     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6284   else
6285     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6286   fi
6287   ;;
6288
6289 osf3* | osf4* | osf5*)
6290   lt_cv_deplibs_check_method=pass_all
6291   ;;
6292
6293 rdos*)
6294   lt_cv_deplibs_check_method=pass_all
6295   ;;
6296
6297 solaris*)
6298   lt_cv_deplibs_check_method=pass_all
6299   ;;
6300
6301 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6302   lt_cv_deplibs_check_method=pass_all
6303   ;;
6304
6305 sysv4 | sysv4.3*)
6306   case $host_vendor in
6307   motorola)
6308     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]'
6309     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6310     ;;
6311   ncr)
6312     lt_cv_deplibs_check_method=pass_all
6313     ;;
6314   sequent)
6315     lt_cv_file_magic_cmd='/bin/file'
6316     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6317     ;;
6318   sni)
6319     lt_cv_file_magic_cmd='/bin/file'
6320     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6321     lt_cv_file_magic_test_file=/lib/libc.so
6322     ;;
6323   siemens)
6324     lt_cv_deplibs_check_method=pass_all
6325     ;;
6326   pc)
6327     lt_cv_deplibs_check_method=pass_all
6328     ;;
6329   esac
6330   ;;
6331
6332 tpf*)
6333   lt_cv_deplibs_check_method=pass_all
6334   ;;
6335 esac
6336
6337 fi
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6339 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6340
6341 file_magic_glob=
6342 want_nocaseglob=no
6343 if test "$build" = "$host"; then
6344   case $host_os in
6345   mingw* | pw32*)
6346     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6347       want_nocaseglob=yes
6348     else
6349       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6350     fi
6351     ;;
6352   esac
6353 fi
6354
6355 file_magic_cmd=$lt_cv_file_magic_cmd
6356 deplibs_check_method=$lt_cv_deplibs_check_method
6357 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380 if test -n "$ac_tool_prefix"; then
6381   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6382 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6384 $as_echo_n "checking for $ac_word... " >&6; }
6385 if ${ac_cv_prog_DLLTOOL+:} false; then :
6386   $as_echo_n "(cached) " >&6
6387 else
6388   if test -n "$DLLTOOL"; then
6389   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6390 else
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 for as_dir in $PATH
6393 do
6394   IFS=$as_save_IFS
6395   test -z "$as_dir" && as_dir=.
6396     for ac_exec_ext in '' $ac_executable_extensions; do
6397   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6398     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6400     break 2
6401   fi
6402 done
6403   done
6404 IFS=$as_save_IFS
6405
6406 fi
6407 fi
6408 DLLTOOL=$ac_cv_prog_DLLTOOL
6409 if test -n "$DLLTOOL"; then
6410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6411 $as_echo "$DLLTOOL" >&6; }
6412 else
6413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6414 $as_echo "no" >&6; }
6415 fi
6416
6417
6418 fi
6419 if test -z "$ac_cv_prog_DLLTOOL"; then
6420   ac_ct_DLLTOOL=$DLLTOOL
6421   # Extract the first word of "dlltool", so it can be a program name with args.
6422 set dummy dlltool; ac_word=$2
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424 $as_echo_n "checking for $ac_word... " >&6; }
6425 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6426   $as_echo_n "(cached) " >&6
6427 else
6428   if test -n "$ac_ct_DLLTOOL"; then
6429   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6430 else
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 for as_dir in $PATH
6433 do
6434   IFS=$as_save_IFS
6435   test -z "$as_dir" && as_dir=.
6436     for ac_exec_ext in '' $ac_executable_extensions; do
6437   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6438     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440     break 2
6441   fi
6442 done
6443   done
6444 IFS=$as_save_IFS
6445
6446 fi
6447 fi
6448 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6449 if test -n "$ac_ct_DLLTOOL"; then
6450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6451 $as_echo "$ac_ct_DLLTOOL" >&6; }
6452 else
6453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454 $as_echo "no" >&6; }
6455 fi
6456
6457   if test "x$ac_ct_DLLTOOL" = x; then
6458     DLLTOOL="false"
6459   else
6460     case $cross_compiling:$ac_tool_warned in
6461 yes:)
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6464 ac_tool_warned=yes ;;
6465 esac
6466     DLLTOOL=$ac_ct_DLLTOOL
6467   fi
6468 else
6469   DLLTOOL="$ac_cv_prog_DLLTOOL"
6470 fi
6471
6472 test -z "$DLLTOOL" && DLLTOOL=dlltool
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6484 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6485 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6486   $as_echo_n "(cached) " >&6
6487 else
6488   lt_cv_sharedlib_from_linklib_cmd='unknown'
6489
6490 case $host_os in
6491 cygwin* | mingw* | pw32* | cegcc*)
6492   # two different shell functions defined in ltmain.sh
6493   # decide which to use based on capabilities of $DLLTOOL
6494   case `$DLLTOOL --help 2>&1` in
6495   *--identify-strict*)
6496     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6497     ;;
6498   *)
6499     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6500     ;;
6501   esac
6502   ;;
6503 *)
6504   # fallback: assume linklib IS sharedlib
6505   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6506   ;;
6507 esac
6508
6509 fi
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6511 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6512 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6513 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6514
6515
6516
6517
6518
6519
6520
6521
6522 if test -n "$ac_tool_prefix"; then
6523   for ac_prog in ar
6524   do
6525     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6526 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6528 $as_echo_n "checking for $ac_word... " >&6; }
6529 if ${ac_cv_prog_AR+:} false; then :
6530   $as_echo_n "(cached) " >&6
6531 else
6532   if test -n "$AR"; then
6533   ac_cv_prog_AR="$AR" # Let the user override the test.
6534 else
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 for as_dir in $PATH
6537 do
6538   IFS=$as_save_IFS
6539   test -z "$as_dir" && as_dir=.
6540     for ac_exec_ext in '' $ac_executable_extensions; do
6541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6542     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6544     break 2
6545   fi
6546 done
6547   done
6548 IFS=$as_save_IFS
6549
6550 fi
6551 fi
6552 AR=$ac_cv_prog_AR
6553 if test -n "$AR"; then
6554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6555 $as_echo "$AR" >&6; }
6556 else
6557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6558 $as_echo "no" >&6; }
6559 fi
6560
6561
6562     test -n "$AR" && break
6563   done
6564 fi
6565 if test -z "$AR"; then
6566   ac_ct_AR=$AR
6567   for ac_prog in ar
6568 do
6569   # Extract the first word of "$ac_prog", so it can be a program name with args.
6570 set dummy $ac_prog; ac_word=$2
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6572 $as_echo_n "checking for $ac_word... " >&6; }
6573 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6574   $as_echo_n "(cached) " >&6
6575 else
6576   if test -n "$ac_ct_AR"; then
6577   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6578 else
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 for as_dir in $PATH
6581 do
6582   IFS=$as_save_IFS
6583   test -z "$as_dir" && as_dir=.
6584     for ac_exec_ext in '' $ac_executable_extensions; do
6585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6586     ac_cv_prog_ac_ct_AR="$ac_prog"
6587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6588     break 2
6589   fi
6590 done
6591   done
6592 IFS=$as_save_IFS
6593
6594 fi
6595 fi
6596 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6597 if test -n "$ac_ct_AR"; then
6598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6599 $as_echo "$ac_ct_AR" >&6; }
6600 else
6601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 $as_echo "no" >&6; }
6603 fi
6604
6605
6606   test -n "$ac_ct_AR" && break
6607 done
6608
6609   if test "x$ac_ct_AR" = x; then
6610     AR="false"
6611   else
6612     case $cross_compiling:$ac_tool_warned in
6613 yes:)
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6616 ac_tool_warned=yes ;;
6617 esac
6618     AR=$ac_ct_AR
6619   fi
6620 fi
6621
6622 : ${AR=ar}
6623 : ${AR_FLAGS=cru}
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6636 $as_echo_n "checking for archiver @FILE support... " >&6; }
6637 if ${lt_cv_ar_at_file+:} false; then :
6638   $as_echo_n "(cached) " >&6
6639 else
6640   lt_cv_ar_at_file=no
6641    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642 /* end confdefs.h.  */
6643
6644 int
6645 main ()
6646 {
6647
6648   ;
6649   return 0;
6650 }
6651 _ACEOF
6652 if ac_fn_cxx_try_compile "$LINENO"; then :
6653   echo conftest.$ac_objext > conftest.lst
6654       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6655       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6656   (eval $lt_ar_try) 2>&5
6657   ac_status=$?
6658   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6659   test $ac_status = 0; }
6660       if test "$ac_status" -eq 0; then
6661         # Ensure the archiver fails upon bogus file names.
6662         rm -f conftest.$ac_objext libconftest.a
6663         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6664   (eval $lt_ar_try) 2>&5
6665   ac_status=$?
6666   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6667   test $ac_status = 0; }
6668         if test "$ac_status" -ne 0; then
6669           lt_cv_ar_at_file=@
6670         fi
6671       fi
6672       rm -f conftest.* libconftest.a
6673
6674 fi
6675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6676
6677 fi
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6679 $as_echo "$lt_cv_ar_at_file" >&6; }
6680
6681 if test "x$lt_cv_ar_at_file" = xno; then
6682   archiver_list_spec=
6683 else
6684   archiver_list_spec=$lt_cv_ar_at_file
6685 fi
6686
6687
6688
6689
6690
6691
6692
6693 if test -n "$ac_tool_prefix"; then
6694   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6695 set dummy ${ac_tool_prefix}strip; ac_word=$2
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697 $as_echo_n "checking for $ac_word... " >&6; }
6698 if ${ac_cv_prog_STRIP+:} false; then :
6699   $as_echo_n "(cached) " >&6
6700 else
6701   if test -n "$STRIP"; then
6702   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6703 else
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 for as_dir in $PATH
6706 do
6707   IFS=$as_save_IFS
6708   test -z "$as_dir" && as_dir=.
6709     for ac_exec_ext in '' $ac_executable_extensions; do
6710   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6711     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6713     break 2
6714   fi
6715 done
6716   done
6717 IFS=$as_save_IFS
6718
6719 fi
6720 fi
6721 STRIP=$ac_cv_prog_STRIP
6722 if test -n "$STRIP"; then
6723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6724 $as_echo "$STRIP" >&6; }
6725 else
6726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6727 $as_echo "no" >&6; }
6728 fi
6729
6730
6731 fi
6732 if test -z "$ac_cv_prog_STRIP"; then
6733   ac_ct_STRIP=$STRIP
6734   # Extract the first word of "strip", so it can be a program name with args.
6735 set dummy strip; ac_word=$2
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6737 $as_echo_n "checking for $ac_word... " >&6; }
6738 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6739   $as_echo_n "(cached) " >&6
6740 else
6741   if test -n "$ac_ct_STRIP"; then
6742   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6743 else
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745 for as_dir in $PATH
6746 do
6747   IFS=$as_save_IFS
6748   test -z "$as_dir" && as_dir=.
6749     for ac_exec_ext in '' $ac_executable_extensions; do
6750   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6751     ac_cv_prog_ac_ct_STRIP="strip"
6752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6753     break 2
6754   fi
6755 done
6756   done
6757 IFS=$as_save_IFS
6758
6759 fi
6760 fi
6761 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6762 if test -n "$ac_ct_STRIP"; then
6763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6764 $as_echo "$ac_ct_STRIP" >&6; }
6765 else
6766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767 $as_echo "no" >&6; }
6768 fi
6769
6770   if test "x$ac_ct_STRIP" = x; then
6771     STRIP=":"
6772   else
6773     case $cross_compiling:$ac_tool_warned in
6774 yes:)
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6777 ac_tool_warned=yes ;;
6778 esac
6779     STRIP=$ac_ct_STRIP
6780   fi
6781 else
6782   STRIP="$ac_cv_prog_STRIP"
6783 fi
6784
6785 test -z "$STRIP" && STRIP=:
6786
6787
6788
6789
6790
6791
6792 if test -n "$ac_tool_prefix"; then
6793   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6794 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796 $as_echo_n "checking for $ac_word... " >&6; }
6797 if ${ac_cv_prog_RANLIB+:} false; then :
6798   $as_echo_n "(cached) " >&6
6799 else
6800   if test -n "$RANLIB"; then
6801   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6802 else
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 for as_dir in $PATH
6805 do
6806   IFS=$as_save_IFS
6807   test -z "$as_dir" && as_dir=.
6808     for ac_exec_ext in '' $ac_executable_extensions; do
6809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6810     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6812     break 2
6813   fi
6814 done
6815   done
6816 IFS=$as_save_IFS
6817
6818 fi
6819 fi
6820 RANLIB=$ac_cv_prog_RANLIB
6821 if test -n "$RANLIB"; then
6822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6823 $as_echo "$RANLIB" >&6; }
6824 else
6825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826 $as_echo "no" >&6; }
6827 fi
6828
6829
6830 fi
6831 if test -z "$ac_cv_prog_RANLIB"; then
6832   ac_ct_RANLIB=$RANLIB
6833   # Extract the first word of "ranlib", so it can be a program name with args.
6834 set dummy ranlib; ac_word=$2
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6836 $as_echo_n "checking for $ac_word... " >&6; }
6837 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6838   $as_echo_n "(cached) " >&6
6839 else
6840   if test -n "$ac_ct_RANLIB"; then
6841   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6842 else
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6845 do
6846   IFS=$as_save_IFS
6847   test -z "$as_dir" && as_dir=.
6848     for ac_exec_ext in '' $ac_executable_extensions; do
6849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6850     ac_cv_prog_ac_ct_RANLIB="ranlib"
6851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6852     break 2
6853   fi
6854 done
6855   done
6856 IFS=$as_save_IFS
6857
6858 fi
6859 fi
6860 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6861 if test -n "$ac_ct_RANLIB"; then
6862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6863 $as_echo "$ac_ct_RANLIB" >&6; }
6864 else
6865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866 $as_echo "no" >&6; }
6867 fi
6868
6869   if test "x$ac_ct_RANLIB" = x; then
6870     RANLIB=":"
6871   else
6872     case $cross_compiling:$ac_tool_warned in
6873 yes:)
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6876 ac_tool_warned=yes ;;
6877 esac
6878     RANLIB=$ac_ct_RANLIB
6879   fi
6880 else
6881   RANLIB="$ac_cv_prog_RANLIB"
6882 fi
6883
6884 test -z "$RANLIB" && RANLIB=:
6885
6886
6887
6888
6889
6890
6891 # Determine commands to create old-style static archives.
6892 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6893 old_postinstall_cmds='chmod 644 $oldlib'
6894 old_postuninstall_cmds=
6895
6896 if test -n "$RANLIB"; then
6897   case $host_os in
6898   openbsd*)
6899     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6900     ;;
6901   *)
6902     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6903     ;;
6904   esac
6905   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6906 fi
6907
6908 case $host_os in
6909   darwin*)
6910     lock_old_archive_extraction=yes ;;
6911   *)
6912     lock_old_archive_extraction=no ;;
6913 esac
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953 # If no C compiler was specified, use CC.
6954 LTCC=${LTCC-"$CC"}
6955
6956 # If no C compiler flags were specified, use CFLAGS.
6957 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6958
6959 # Allow CC to be a program name with arguments.
6960 compiler=$CC
6961
6962
6963 # Check for command to grab the raw symbol name followed by C symbol from nm.
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6965 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6966 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6967   $as_echo_n "(cached) " >&6
6968 else
6969
6970 # These are sane defaults that work on at least a few old systems.
6971 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6972
6973 # Character class describing NM global symbol codes.
6974 symcode='[BCDEGRST]'
6975
6976 # Regexp to match symbols that can be accessed directly from C.
6977 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6978
6979 # Define system-specific variables.
6980 case $host_os in
6981 aix*)
6982   symcode='[BCDT]'
6983   ;;
6984 cygwin* | mingw* | pw32* | cegcc*)
6985   symcode='[ABCDGISTW]'
6986   ;;
6987 hpux*)
6988   if test "$host_cpu" = ia64; then
6989     symcode='[ABCDEGRST]'
6990   fi
6991   ;;
6992 irix* | nonstopux*)
6993   symcode='[BCDEGRST]'
6994   ;;
6995 osf*)
6996   symcode='[BCDEGQRST]'
6997   ;;
6998 solaris*)
6999   symcode='[BDRT]'
7000   ;;
7001 sco3.2v5*)
7002   symcode='[DT]'
7003   ;;
7004 sysv4.2uw2*)
7005   symcode='[DT]'
7006   ;;
7007 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7008   symcode='[ABDT]'
7009   ;;
7010 sysv4)
7011   symcode='[DFNSTU]'
7012   ;;
7013 esac
7014
7015 # If we're using GNU nm, then use its standard symbol codes.
7016 case `$NM -V 2>&1` in
7017 *GNU* | *'with BFD'*)
7018   symcode='[ABCDGIRSTW]' ;;
7019 esac
7020
7021 # Transform an extracted symbol line into a proper C declaration.
7022 # Some systems (esp. on ia64) link data and code symbols differently,
7023 # so use this general approach.
7024 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7025
7026 # Transform an extracted symbol line into symbol name and symbol address
7027 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7028 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'"
7029
7030 # Handle CRLF in mingw tool chain
7031 opt_cr=
7032 case $build_os in
7033 mingw*)
7034   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7035   ;;
7036 esac
7037
7038 # Try without a prefix underscore, then with it.
7039 for ac_symprfx in "" "_"; do
7040
7041   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7042   symxfrm="\\1 $ac_symprfx\\2 \\2"
7043
7044   # Write the raw and C identifiers.
7045   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7046     # Fake it for dumpbin and say T for any non-static function
7047     # and D for any global variable.
7048     # Also find C++ and __fastcall symbols from MSVC++,
7049     # which start with @ or ?.
7050     lt_cv_sys_global_symbol_pipe="$AWK '"\
7051 "     {last_section=section; section=\$ 3};"\
7052 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7053 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7054 "     \$ 0!~/External *\|/{next};"\
7055 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7056 "     {if(hide[section]) next};"\
7057 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7058 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7059 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7060 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7061 "     ' prfx=^$ac_symprfx"
7062   else
7063     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7064   fi
7065   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7066
7067   # Check to see that the pipe works correctly.
7068   pipe_works=no
7069
7070   rm -f conftest*
7071   cat > conftest.$ac_ext <<_LT_EOF
7072 #ifdef __cplusplus
7073 extern "C" {
7074 #endif
7075 char nm_test_var;
7076 void nm_test_func(void);
7077 void nm_test_func(void){}
7078 #ifdef __cplusplus
7079 }
7080 #endif
7081 int main(){nm_test_var='a';nm_test_func();return(0);}
7082 _LT_EOF
7083
7084   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7085   (eval $ac_compile) 2>&5
7086   ac_status=$?
7087   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7088   test $ac_status = 0; }; then
7089     # Now try to grab the symbols.
7090     nlist=conftest.nm
7091     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7092   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7093   ac_status=$?
7094   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7095   test $ac_status = 0; } && test -s "$nlist"; then
7096       # Try sorting and uniquifying the output.
7097       if sort "$nlist" | uniq > "$nlist"T; then
7098         mv -f "$nlist"T "$nlist"
7099       else
7100         rm -f "$nlist"T
7101       fi
7102
7103       # Make sure that we snagged all the symbols we need.
7104       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7105         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7106           cat <<_LT_EOF > conftest.$ac_ext
7107 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7108 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7109 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7110    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7111 # define LT_DLSYM_CONST
7112 #elif defined(__osf__)
7113 /* This system does not cope well with relocations in const data.  */
7114 # define LT_DLSYM_CONST
7115 #else
7116 # define LT_DLSYM_CONST const
7117 #endif
7118
7119 #ifdef __cplusplus
7120 extern "C" {
7121 #endif
7122
7123 _LT_EOF
7124           # Now generate the symbol file.
7125           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7126
7127           cat <<_LT_EOF >> conftest.$ac_ext
7128
7129 /* The mapping between symbol names and symbols.  */
7130 LT_DLSYM_CONST struct {
7131   const char *name;
7132   void       *address;
7133 }
7134 lt__PROGRAM__LTX_preloaded_symbols[] =
7135 {
7136   { "@PROGRAM@", (void *) 0 },
7137 _LT_EOF
7138           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7139           cat <<\_LT_EOF >> conftest.$ac_ext
7140   {0, (void *) 0}
7141 };
7142
7143 /* This works around a problem in FreeBSD linker */
7144 #ifdef FREEBSD_WORKAROUND
7145 static const void *lt_preloaded_setup() {
7146   return lt__PROGRAM__LTX_preloaded_symbols;
7147 }
7148 #endif
7149
7150 #ifdef __cplusplus
7151 }
7152 #endif
7153 _LT_EOF
7154           # Now try linking the two files.
7155           mv conftest.$ac_objext conftstm.$ac_objext
7156           lt_globsym_save_LIBS=$LIBS
7157           lt_globsym_save_CFLAGS=$CFLAGS
7158           LIBS="conftstm.$ac_objext"
7159           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7160           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7161   (eval $ac_link) 2>&5
7162   ac_status=$?
7163   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7164   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7165             pipe_works=yes
7166           fi
7167           LIBS=$lt_globsym_save_LIBS
7168           CFLAGS=$lt_globsym_save_CFLAGS
7169         else
7170           echo "cannot find nm_test_func in $nlist" >&5
7171         fi
7172       else
7173         echo "cannot find nm_test_var in $nlist" >&5
7174       fi
7175     else
7176       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7177     fi
7178   else
7179     echo "$progname: failed program was:" >&5
7180     cat conftest.$ac_ext >&5
7181   fi
7182   rm -rf conftest* conftst*
7183
7184   # Do not use the global_symbol_pipe unless it works.
7185   if test "$pipe_works" = yes; then
7186     break
7187   else
7188     lt_cv_sys_global_symbol_pipe=
7189   fi
7190 done
7191
7192 fi
7193
7194 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7195   lt_cv_sys_global_symbol_to_cdecl=
7196 fi
7197 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7199 $as_echo "failed" >&6; }
7200 else
7201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7202 $as_echo "ok" >&6; }
7203 fi
7204
7205 # Response file support.
7206 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7207   nm_file_list_spec='@'
7208 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7209   nm_file_list_spec='@'
7210 fi
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7239 $as_echo_n "checking for sysroot... " >&6; }
7240
7241 # Check whether --with-sysroot was given.
7242 if test "${with_sysroot+set}" = set; then :
7243   withval=$with_sysroot;
7244 else
7245   with_sysroot=no
7246 fi
7247
7248
7249 lt_sysroot=
7250 case ${with_sysroot} in #(
7251  yes)
7252    if test "$GCC" = yes; then
7253      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7254    fi
7255    ;; #(
7256  /*)
7257    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7258    ;; #(
7259  no|'')
7260    ;; #(
7261  *)
7262    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7263 $as_echo "${with_sysroot}" >&6; }
7264    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7265    ;;
7266 esac
7267
7268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7269 $as_echo "${lt_sysroot:-no}" >&6; }
7270
7271
7272
7273
7274
7275
7276 # Check whether --enable-libtool-lock was given.
7277 if test "${enable_libtool_lock+set}" = set; then :
7278   enableval=$enable_libtool_lock;
7279 fi
7280
7281 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7282
7283 # Some flags need to be propagated to the compiler or linker for good
7284 # libtool support.
7285 case $host in
7286 ia64-*-hpux*)
7287   # Find out which ABI we are using.
7288   echo 'int i;' > conftest.$ac_ext
7289   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7290   (eval $ac_compile) 2>&5
7291   ac_status=$?
7292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7293   test $ac_status = 0; }; then
7294     case `/usr/bin/file conftest.$ac_objext` in
7295       *ELF-32*)
7296         HPUX_IA64_MODE="32"
7297         ;;
7298       *ELF-64*)
7299         HPUX_IA64_MODE="64"
7300         ;;
7301     esac
7302   fi
7303   rm -rf conftest*
7304   ;;
7305 *-*-irix6*)
7306   # Find out which ABI we are using.
7307   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7308   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7309   (eval $ac_compile) 2>&5
7310   ac_status=$?
7311   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7312   test $ac_status = 0; }; then
7313     if test "$lt_cv_prog_gnu_ld" = yes; then
7314       case `/usr/bin/file conftest.$ac_objext` in
7315         *32-bit*)
7316           LD="${LD-ld} -melf32bsmip"
7317           ;;
7318         *N32*)
7319           LD="${LD-ld} -melf32bmipn32"
7320           ;;
7321         *64-bit*)
7322           LD="${LD-ld} -melf64bmip"
7323         ;;
7324       esac
7325     else
7326       case `/usr/bin/file conftest.$ac_objext` in
7327         *32-bit*)
7328           LD="${LD-ld} -32"
7329           ;;
7330         *N32*)
7331           LD="${LD-ld} -n32"
7332           ;;
7333         *64-bit*)
7334           LD="${LD-ld} -64"
7335           ;;
7336       esac
7337     fi
7338   fi
7339   rm -rf conftest*
7340   ;;
7341
7342 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7343 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7344   # Find out which ABI we are using.
7345   echo 'int i;' > conftest.$ac_ext
7346   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7347   (eval $ac_compile) 2>&5
7348   ac_status=$?
7349   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7350   test $ac_status = 0; }; then
7351     case `/usr/bin/file conftest.o` in
7352       *32-bit*)
7353         case $host in
7354           x86_64-*kfreebsd*-gnu)
7355             LD="${LD-ld} -m elf_i386_fbsd"
7356             ;;
7357           x86_64-*linux*)
7358             LD="${LD-ld} -m elf_i386"
7359             ;;
7360           ppc64-*linux*|powerpc64-*linux*)
7361             LD="${LD-ld} -m elf32ppclinux"
7362             ;;
7363           s390x-*linux*)
7364             LD="${LD-ld} -m elf_s390"
7365             ;;
7366           sparc64-*linux*)
7367             LD="${LD-ld} -m elf32_sparc"
7368             ;;
7369         esac
7370         ;;
7371       *64-bit*)
7372         case $host in
7373           x86_64-*kfreebsd*-gnu)
7374             LD="${LD-ld} -m elf_x86_64_fbsd"
7375             ;;
7376           x86_64-*linux*)
7377             LD="${LD-ld} -m elf_x86_64"
7378             ;;
7379           ppc*-*linux*|powerpc*-*linux*)
7380             LD="${LD-ld} -m elf64ppc"
7381             ;;
7382           s390*-*linux*|s390*-*tpf*)
7383             LD="${LD-ld} -m elf64_s390"
7384             ;;
7385           sparc*-*linux*)
7386             LD="${LD-ld} -m elf64_sparc"
7387             ;;
7388         esac
7389         ;;
7390     esac
7391   fi
7392   rm -rf conftest*
7393   ;;
7394
7395 *-*-sco3.2v5*)
7396   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7397   SAVE_CFLAGS="$CFLAGS"
7398   CFLAGS="$CFLAGS -belf"
7399   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7400 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7401 if ${lt_cv_cc_needs_belf+:} false; then :
7402   $as_echo_n "(cached) " >&6
7403 else
7404   ac_ext=c
7405 ac_cpp='$CPP $CPPFLAGS'
7406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7409
7410      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411 /* end confdefs.h.  */
7412
7413 int
7414 main ()
7415 {
7416
7417   ;
7418   return 0;
7419 }
7420 _ACEOF
7421 if ac_fn_c_try_link "$LINENO"; then :
7422   lt_cv_cc_needs_belf=yes
7423 else
7424   lt_cv_cc_needs_belf=no
7425 fi
7426 rm -f core conftest.err conftest.$ac_objext \
7427     conftest$ac_exeext conftest.$ac_ext
7428      ac_ext=c
7429 ac_cpp='$CPP $CPPFLAGS'
7430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7433
7434 fi
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7436 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7437   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7438     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7439     CFLAGS="$SAVE_CFLAGS"
7440   fi
7441   ;;
7442 *-*solaris*)
7443   # Find out which ABI we are using.
7444   echo 'int i;' > conftest.$ac_ext
7445   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7446   (eval $ac_compile) 2>&5
7447   ac_status=$?
7448   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7449   test $ac_status = 0; }; then
7450     case `/usr/bin/file conftest.o` in
7451     *64-bit*)
7452       case $lt_cv_prog_gnu_ld in
7453       yes*)
7454         case $host in
7455         i?86-*-solaris*)
7456           LD="${LD-ld} -m elf_x86_64"
7457           ;;
7458         sparc*-*-solaris*)
7459           LD="${LD-ld} -m elf64_sparc"
7460           ;;
7461         esac
7462         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7463         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7464           LD="${LD-ld}_sol2"
7465         fi
7466         ;;
7467       *)
7468         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7469           LD="${LD-ld} -64"
7470         fi
7471         ;;
7472       esac
7473       ;;
7474     esac
7475   fi
7476   rm -rf conftest*
7477   ;;
7478 esac
7479
7480 need_locks="$enable_libtool_lock"
7481
7482 if test -n "$ac_tool_prefix"; then
7483   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7484 set dummy ${ac_tool_prefix}mt; ac_word=$2
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7486 $as_echo_n "checking for $ac_word... " >&6; }
7487 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7488   $as_echo_n "(cached) " >&6
7489 else
7490   if test -n "$MANIFEST_TOOL"; then
7491   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7492 else
7493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494 for as_dir in $PATH
7495 do
7496   IFS=$as_save_IFS
7497   test -z "$as_dir" && as_dir=.
7498     for ac_exec_ext in '' $ac_executable_extensions; do
7499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7500     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7502     break 2
7503   fi
7504 done
7505   done
7506 IFS=$as_save_IFS
7507
7508 fi
7509 fi
7510 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7511 if test -n "$MANIFEST_TOOL"; then
7512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7513 $as_echo "$MANIFEST_TOOL" >&6; }
7514 else
7515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7516 $as_echo "no" >&6; }
7517 fi
7518
7519
7520 fi
7521 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7522   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7523   # Extract the first word of "mt", so it can be a program name with args.
7524 set dummy mt; ac_word=$2
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7526 $as_echo_n "checking for $ac_word... " >&6; }
7527 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7528   $as_echo_n "(cached) " >&6
7529 else
7530   if test -n "$ac_ct_MANIFEST_TOOL"; then
7531   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7532 else
7533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534 for as_dir in $PATH
7535 do
7536   IFS=$as_save_IFS
7537   test -z "$as_dir" && as_dir=.
7538     for ac_exec_ext in '' $ac_executable_extensions; do
7539   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7540     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7542     break 2
7543   fi
7544 done
7545   done
7546 IFS=$as_save_IFS
7547
7548 fi
7549 fi
7550 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7551 if test -n "$ac_ct_MANIFEST_TOOL"; then
7552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7553 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7554 else
7555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7556 $as_echo "no" >&6; }
7557 fi
7558
7559   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7560     MANIFEST_TOOL=":"
7561   else
7562     case $cross_compiling:$ac_tool_warned in
7563 yes:)
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7566 ac_tool_warned=yes ;;
7567 esac
7568     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7569   fi
7570 else
7571   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7572 fi
7573
7574 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7576 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7577 if ${lt_cv_path_mainfest_tool+:} false; then :
7578   $as_echo_n "(cached) " >&6
7579 else
7580   lt_cv_path_mainfest_tool=no
7581   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7582   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7583   cat conftest.err >&5
7584   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7585     lt_cv_path_mainfest_tool=yes
7586   fi
7587   rm -f conftest*
7588 fi
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7590 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7591 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7592   MANIFEST_TOOL=:
7593 fi
7594
7595
7596
7597
7598
7599
7600   case $host_os in
7601     rhapsody* | darwin*)
7602     if test -n "$ac_tool_prefix"; then
7603   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7604 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7606 $as_echo_n "checking for $ac_word... " >&6; }
7607 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7608   $as_echo_n "(cached) " >&6
7609 else
7610   if test -n "$DSYMUTIL"; then
7611   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7612 else
7613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614 for as_dir in $PATH
7615 do
7616   IFS=$as_save_IFS
7617   test -z "$as_dir" && as_dir=.
7618     for ac_exec_ext in '' $ac_executable_extensions; do
7619   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7620     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7622     break 2
7623   fi
7624 done
7625   done
7626 IFS=$as_save_IFS
7627
7628 fi
7629 fi
7630 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7631 if test -n "$DSYMUTIL"; then
7632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7633 $as_echo "$DSYMUTIL" >&6; }
7634 else
7635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636 $as_echo "no" >&6; }
7637 fi
7638
7639
7640 fi
7641 if test -z "$ac_cv_prog_DSYMUTIL"; then
7642   ac_ct_DSYMUTIL=$DSYMUTIL
7643   # Extract the first word of "dsymutil", so it can be a program name with args.
7644 set dummy dsymutil; ac_word=$2
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7646 $as_echo_n "checking for $ac_word... " >&6; }
7647 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7648   $as_echo_n "(cached) " >&6
7649 else
7650   if test -n "$ac_ct_DSYMUTIL"; then
7651   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7652 else
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 for as_dir in $PATH
7655 do
7656   IFS=$as_save_IFS
7657   test -z "$as_dir" && as_dir=.
7658     for ac_exec_ext in '' $ac_executable_extensions; do
7659   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7660     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7662     break 2
7663   fi
7664 done
7665   done
7666 IFS=$as_save_IFS
7667
7668 fi
7669 fi
7670 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7671 if test -n "$ac_ct_DSYMUTIL"; then
7672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7673 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7674 else
7675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676 $as_echo "no" >&6; }
7677 fi
7678
7679   if test "x$ac_ct_DSYMUTIL" = x; then
7680     DSYMUTIL=":"
7681   else
7682     case $cross_compiling:$ac_tool_warned in
7683 yes:)
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7686 ac_tool_warned=yes ;;
7687 esac
7688     DSYMUTIL=$ac_ct_DSYMUTIL
7689   fi
7690 else
7691   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7692 fi
7693
7694     if test -n "$ac_tool_prefix"; then
7695   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7696 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698 $as_echo_n "checking for $ac_word... " >&6; }
7699 if ${ac_cv_prog_NMEDIT+:} false; then :
7700   $as_echo_n "(cached) " >&6
7701 else
7702   if test -n "$NMEDIT"; then
7703   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7704 else
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 for as_dir in $PATH
7707 do
7708   IFS=$as_save_IFS
7709   test -z "$as_dir" && as_dir=.
7710     for ac_exec_ext in '' $ac_executable_extensions; do
7711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7712     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7714     break 2
7715   fi
7716 done
7717   done
7718 IFS=$as_save_IFS
7719
7720 fi
7721 fi
7722 NMEDIT=$ac_cv_prog_NMEDIT
7723 if test -n "$NMEDIT"; then
7724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7725 $as_echo "$NMEDIT" >&6; }
7726 else
7727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7729 fi
7730
7731
7732 fi
7733 if test -z "$ac_cv_prog_NMEDIT"; then
7734   ac_ct_NMEDIT=$NMEDIT
7735   # Extract the first word of "nmedit", so it can be a program name with args.
7736 set dummy nmedit; ac_word=$2
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738 $as_echo_n "checking for $ac_word... " >&6; }
7739 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7740   $as_echo_n "(cached) " >&6
7741 else
7742   if test -n "$ac_ct_NMEDIT"; then
7743   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7744 else
7745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746 for as_dir in $PATH
7747 do
7748   IFS=$as_save_IFS
7749   test -z "$as_dir" && as_dir=.
7750     for ac_exec_ext in '' $ac_executable_extensions; do
7751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7752     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7754     break 2
7755   fi
7756 done
7757   done
7758 IFS=$as_save_IFS
7759
7760 fi
7761 fi
7762 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7763 if test -n "$ac_ct_NMEDIT"; then
7764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7765 $as_echo "$ac_ct_NMEDIT" >&6; }
7766 else
7767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768 $as_echo "no" >&6; }
7769 fi
7770
7771   if test "x$ac_ct_NMEDIT" = x; then
7772     NMEDIT=":"
7773   else
7774     case $cross_compiling:$ac_tool_warned in
7775 yes:)
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7778 ac_tool_warned=yes ;;
7779 esac
7780     NMEDIT=$ac_ct_NMEDIT
7781   fi
7782 else
7783   NMEDIT="$ac_cv_prog_NMEDIT"
7784 fi
7785
7786     if test -n "$ac_tool_prefix"; then
7787   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7788 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7790 $as_echo_n "checking for $ac_word... " >&6; }
7791 if ${ac_cv_prog_LIPO+:} false; then :
7792   $as_echo_n "(cached) " >&6
7793 else
7794   if test -n "$LIPO"; then
7795   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7796 else
7797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798 for as_dir in $PATH
7799 do
7800   IFS=$as_save_IFS
7801   test -z "$as_dir" && as_dir=.
7802     for ac_exec_ext in '' $ac_executable_extensions; do
7803   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7804     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7806     break 2
7807   fi
7808 done
7809   done
7810 IFS=$as_save_IFS
7811
7812 fi
7813 fi
7814 LIPO=$ac_cv_prog_LIPO
7815 if test -n "$LIPO"; then
7816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7817 $as_echo "$LIPO" >&6; }
7818 else
7819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7820 $as_echo "no" >&6; }
7821 fi
7822
7823
7824 fi
7825 if test -z "$ac_cv_prog_LIPO"; then
7826   ac_ct_LIPO=$LIPO
7827   # Extract the first word of "lipo", so it can be a program name with args.
7828 set dummy lipo; ac_word=$2
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7830 $as_echo_n "checking for $ac_word... " >&6; }
7831 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7832   $as_echo_n "(cached) " >&6
7833 else
7834   if test -n "$ac_ct_LIPO"; then
7835   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7836 else
7837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838 for as_dir in $PATH
7839 do
7840   IFS=$as_save_IFS
7841   test -z "$as_dir" && as_dir=.
7842     for ac_exec_ext in '' $ac_executable_extensions; do
7843   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7844     ac_cv_prog_ac_ct_LIPO="lipo"
7845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7846     break 2
7847   fi
7848 done
7849   done
7850 IFS=$as_save_IFS
7851
7852 fi
7853 fi
7854 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7855 if test -n "$ac_ct_LIPO"; then
7856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7857 $as_echo "$ac_ct_LIPO" >&6; }
7858 else
7859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860 $as_echo "no" >&6; }
7861 fi
7862
7863   if test "x$ac_ct_LIPO" = x; then
7864     LIPO=":"
7865   else
7866     case $cross_compiling:$ac_tool_warned in
7867 yes:)
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7870 ac_tool_warned=yes ;;
7871 esac
7872     LIPO=$ac_ct_LIPO
7873   fi
7874 else
7875   LIPO="$ac_cv_prog_LIPO"
7876 fi
7877
7878     if test -n "$ac_tool_prefix"; then
7879   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7880 set dummy ${ac_tool_prefix}otool; ac_word=$2
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7882 $as_echo_n "checking for $ac_word... " >&6; }
7883 if ${ac_cv_prog_OTOOL+:} false; then :
7884   $as_echo_n "(cached) " >&6
7885 else
7886   if test -n "$OTOOL"; then
7887   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7888 else
7889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890 for as_dir in $PATH
7891 do
7892   IFS=$as_save_IFS
7893   test -z "$as_dir" && as_dir=.
7894     for ac_exec_ext in '' $ac_executable_extensions; do
7895   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7896     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7898     break 2
7899   fi
7900 done
7901   done
7902 IFS=$as_save_IFS
7903
7904 fi
7905 fi
7906 OTOOL=$ac_cv_prog_OTOOL
7907 if test -n "$OTOOL"; then
7908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7909 $as_echo "$OTOOL" >&6; }
7910 else
7911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912 $as_echo "no" >&6; }
7913 fi
7914
7915
7916 fi
7917 if test -z "$ac_cv_prog_OTOOL"; then
7918   ac_ct_OTOOL=$OTOOL
7919   # Extract the first word of "otool", so it can be a program name with args.
7920 set dummy otool; ac_word=$2
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7922 $as_echo_n "checking for $ac_word... " >&6; }
7923 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7924   $as_echo_n "(cached) " >&6
7925 else
7926   if test -n "$ac_ct_OTOOL"; then
7927   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7928 else
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 for as_dir in $PATH
7931 do
7932   IFS=$as_save_IFS
7933   test -z "$as_dir" && as_dir=.
7934     for ac_exec_ext in '' $ac_executable_extensions; do
7935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7936     ac_cv_prog_ac_ct_OTOOL="otool"
7937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7938     break 2
7939   fi
7940 done
7941   done
7942 IFS=$as_save_IFS
7943
7944 fi
7945 fi
7946 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7947 if test -n "$ac_ct_OTOOL"; then
7948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7949 $as_echo "$ac_ct_OTOOL" >&6; }
7950 else
7951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952 $as_echo "no" >&6; }
7953 fi
7954
7955   if test "x$ac_ct_OTOOL" = x; then
7956     OTOOL=":"
7957   else
7958     case $cross_compiling:$ac_tool_warned in
7959 yes:)
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7962 ac_tool_warned=yes ;;
7963 esac
7964     OTOOL=$ac_ct_OTOOL
7965   fi
7966 else
7967   OTOOL="$ac_cv_prog_OTOOL"
7968 fi
7969
7970     if test -n "$ac_tool_prefix"; then
7971   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7972 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974 $as_echo_n "checking for $ac_word... " >&6; }
7975 if ${ac_cv_prog_OTOOL64+:} false; then :
7976   $as_echo_n "(cached) " >&6
7977 else
7978   if test -n "$OTOOL64"; then
7979   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7980 else
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 for as_dir in $PATH
7983 do
7984   IFS=$as_save_IFS
7985   test -z "$as_dir" && as_dir=.
7986     for ac_exec_ext in '' $ac_executable_extensions; do
7987   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7988     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7990     break 2
7991   fi
7992 done
7993   done
7994 IFS=$as_save_IFS
7995
7996 fi
7997 fi
7998 OTOOL64=$ac_cv_prog_OTOOL64
7999 if test -n "$OTOOL64"; then
8000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8001 $as_echo "$OTOOL64" >&6; }
8002 else
8003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 $as_echo "no" >&6; }
8005 fi
8006
8007
8008 fi
8009 if test -z "$ac_cv_prog_OTOOL64"; then
8010   ac_ct_OTOOL64=$OTOOL64
8011   # Extract the first word of "otool64", so it can be a program name with args.
8012 set dummy otool64; ac_word=$2
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8014 $as_echo_n "checking for $ac_word... " >&6; }
8015 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8016   $as_echo_n "(cached) " >&6
8017 else
8018   if test -n "$ac_ct_OTOOL64"; then
8019   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8020 else
8021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022 for as_dir in $PATH
8023 do
8024   IFS=$as_save_IFS
8025   test -z "$as_dir" && as_dir=.
8026     for ac_exec_ext in '' $ac_executable_extensions; do
8027   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8028     ac_cv_prog_ac_ct_OTOOL64="otool64"
8029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8030     break 2
8031   fi
8032 done
8033   done
8034 IFS=$as_save_IFS
8035
8036 fi
8037 fi
8038 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8039 if test -n "$ac_ct_OTOOL64"; then
8040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8041 $as_echo "$ac_ct_OTOOL64" >&6; }
8042 else
8043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8044 $as_echo "no" >&6; }
8045 fi
8046
8047   if test "x$ac_ct_OTOOL64" = x; then
8048     OTOOL64=":"
8049   else
8050     case $cross_compiling:$ac_tool_warned in
8051 yes:)
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8054 ac_tool_warned=yes ;;
8055 esac
8056     OTOOL64=$ac_ct_OTOOL64
8057   fi
8058 else
8059   OTOOL64="$ac_cv_prog_OTOOL64"
8060 fi
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8089 $as_echo_n "checking for -single_module linker flag... " >&6; }
8090 if ${lt_cv_apple_cc_single_mod+:} false; then :
8091   $as_echo_n "(cached) " >&6
8092 else
8093   lt_cv_apple_cc_single_mod=no
8094       if test -z "${LT_MULTI_MODULE}"; then
8095         # By default we will add the -single_module flag. You can override
8096         # by either setting the environment variable LT_MULTI_MODULE
8097         # non-empty at configure time, or by adding -multi_module to the
8098         # link flags.
8099         rm -rf libconftest.dylib*
8100         echo "int foo(void){return 1;}" > conftest.c
8101         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8102 -dynamiclib -Wl,-single_module conftest.c" >&5
8103         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8104           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8105         _lt_result=$?
8106         # If there is a non-empty error log, and "single_module"
8107         # appears in it, assume the flag caused a linker warning
8108         if test -s conftest.err && $GREP single_module conftest.err; then
8109           cat conftest.err >&5
8110         # Otherwise, if the output was created with a 0 exit code from
8111         # the compiler, it worked.
8112         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8113           lt_cv_apple_cc_single_mod=yes
8114         else
8115           cat conftest.err >&5
8116         fi
8117         rm -rf libconftest.dylib*
8118         rm -f conftest.*
8119       fi
8120 fi
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8122 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8123
8124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8125 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8126 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8127   $as_echo_n "(cached) " >&6
8128 else
8129   lt_cv_ld_exported_symbols_list=no
8130       save_LDFLAGS=$LDFLAGS
8131       echo "_main" > conftest.sym
8132       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8133       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134 /* end confdefs.h.  */
8135
8136 int
8137 main ()
8138 {
8139
8140   ;
8141   return 0;
8142 }
8143 _ACEOF
8144 if ac_fn_c_try_link "$LINENO"; then :
8145   lt_cv_ld_exported_symbols_list=yes
8146 else
8147   lt_cv_ld_exported_symbols_list=no
8148 fi
8149 rm -f core conftest.err conftest.$ac_objext \
8150     conftest$ac_exeext conftest.$ac_ext
8151         LDFLAGS="$save_LDFLAGS"
8152
8153 fi
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8155 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8156
8157     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8158 $as_echo_n "checking for -force_load linker flag... " >&6; }
8159 if ${lt_cv_ld_force_load+:} false; then :
8160   $as_echo_n "(cached) " >&6
8161 else
8162   lt_cv_ld_force_load=no
8163       cat > conftest.c << _LT_EOF
8164 int forced_loaded() { return 2;}
8165 _LT_EOF
8166       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8167       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8168       echo "$AR cru libconftest.a conftest.o" >&5
8169       $AR cru libconftest.a conftest.o 2>&5
8170       echo "$RANLIB libconftest.a" >&5
8171       $RANLIB libconftest.a 2>&5
8172       cat > conftest.c << _LT_EOF
8173 int main() { return 0;}
8174 _LT_EOF
8175       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8176       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8177       _lt_result=$?
8178       if test -s conftest.err && $GREP force_load conftest.err; then
8179         cat conftest.err >&5
8180       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8181         lt_cv_ld_force_load=yes
8182       else
8183         cat conftest.err >&5
8184       fi
8185         rm -f conftest.err libconftest.a conftest conftest.c
8186         rm -rf conftest.dSYM
8187
8188 fi
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8190 $as_echo "$lt_cv_ld_force_load" >&6; }
8191     case $host_os in
8192     rhapsody* | darwin1.[012])
8193       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8194     darwin1.*)
8195       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8196     darwin*) # darwin 5.x on
8197       # if running on 10.5 or later, the deployment target defaults
8198       # to the OS version, if on x86, and 10.4, the deployment
8199       # target defaults to 10.4. Don't you love it?
8200       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8201         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8202           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8203         10.[012]*)
8204           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8205         10.*)
8206           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8207       esac
8208     ;;
8209   esac
8210     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8211       _lt_dar_single_mod='$single_module'
8212     fi
8213     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8214       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8215     else
8216       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8217     fi
8218     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8219       _lt_dsymutil='~$DSYMUTIL $lib || :'
8220     else
8221       _lt_dsymutil=
8222     fi
8223     ;;
8224   esac
8225
8226
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8228 $as_echo_n "checking for ANSI C header files... " >&6; }
8229 if ${ac_cv_header_stdc+:} false; then :
8230   $as_echo_n "(cached) " >&6
8231 else
8232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233 /* end confdefs.h.  */
8234 #include <stdlib.h>
8235 #include <stdarg.h>
8236 #include <string.h>
8237 #include <float.h>
8238
8239 int
8240 main ()
8241 {
8242
8243   ;
8244   return 0;
8245 }
8246 _ACEOF
8247 if ac_fn_c_try_compile "$LINENO"; then :
8248   ac_cv_header_stdc=yes
8249 else
8250   ac_cv_header_stdc=no
8251 fi
8252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8253
8254 if test $ac_cv_header_stdc = yes; then
8255   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257 /* end confdefs.h.  */
8258 #include <string.h>
8259
8260 _ACEOF
8261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8262   $EGREP "memchr" >/dev/null 2>&1; then :
8263
8264 else
8265   ac_cv_header_stdc=no
8266 fi
8267 rm -f conftest*
8268
8269 fi
8270
8271 if test $ac_cv_header_stdc = yes; then
8272   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274 /* end confdefs.h.  */
8275 #include <stdlib.h>
8276
8277 _ACEOF
8278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8279   $EGREP "free" >/dev/null 2>&1; then :
8280
8281 else
8282   ac_cv_header_stdc=no
8283 fi
8284 rm -f conftest*
8285
8286 fi
8287
8288 if test $ac_cv_header_stdc = yes; then
8289   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8290   if test "$cross_compiling" = yes; then :
8291   :
8292 else
8293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294 /* end confdefs.h.  */
8295 #include <ctype.h>
8296 #include <stdlib.h>
8297 #if ((' ' & 0x0FF) == 0x020)
8298 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8299 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8300 #else
8301 # define ISLOWER(c) \
8302                    (('a' <= (c) && (c) <= 'i') \
8303                      || ('j' <= (c) && (c) <= 'r') \
8304                      || ('s' <= (c) && (c) <= 'z'))
8305 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8306 #endif
8307
8308 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8309 int
8310 main ()
8311 {
8312   int i;
8313   for (i = 0; i < 256; i++)
8314     if (XOR (islower (i), ISLOWER (i))
8315         || toupper (i) != TOUPPER (i))
8316       return 2;
8317   return 0;
8318 }
8319 _ACEOF
8320 if ac_fn_c_try_run "$LINENO"; then :
8321
8322 else
8323   ac_cv_header_stdc=no
8324 fi
8325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8326   conftest.$ac_objext conftest.beam conftest.$ac_ext
8327 fi
8328
8329 fi
8330 fi
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8332 $as_echo "$ac_cv_header_stdc" >&6; }
8333 if test $ac_cv_header_stdc = yes; then
8334
8335 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8336
8337 fi
8338
8339 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8340 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8341                   inttypes.h stdint.h unistd.h
8342 do :
8343   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8344 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8345 "
8346 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8347   cat >>confdefs.h <<_ACEOF
8348 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8349 _ACEOF
8350
8351 fi
8352
8353 done
8354
8355
8356 for ac_header in dlfcn.h
8357 do :
8358   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8359 "
8360 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8361   cat >>confdefs.h <<_ACEOF
8362 #define HAVE_DLFCN_H 1
8363 _ACEOF
8364
8365 fi
8366
8367 done
8368
8369
8370
8371 func_stripname_cnf ()
8372 {
8373   case ${2} in
8374   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8375   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8376   esac
8377 } # func_stripname_cnf
8378
8379
8380
8381
8382
8383 # Set options
8384
8385
8386
8387         enable_dlopen=no
8388
8389
8390   enable_win32_dll=no
8391
8392
8393             # Check whether --enable-shared was given.
8394 if test "${enable_shared+set}" = set; then :
8395   enableval=$enable_shared; p=${PACKAGE-default}
8396     case $enableval in
8397     yes) enable_shared=yes ;;
8398     no) enable_shared=no ;;
8399     *)
8400       enable_shared=no
8401       # Look at the argument we got.  We use all the common list separators.
8402       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8403       for pkg in $enableval; do
8404         IFS="$lt_save_ifs"
8405         if test "X$pkg" = "X$p"; then
8406           enable_shared=yes
8407         fi
8408       done
8409       IFS="$lt_save_ifs"
8410       ;;
8411     esac
8412 else
8413   enable_shared=yes
8414 fi
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424   # Check whether --enable-static was given.
8425 if test "${enable_static+set}" = set; then :
8426   enableval=$enable_static; p=${PACKAGE-default}
8427     case $enableval in
8428     yes) enable_static=yes ;;
8429     no) enable_static=no ;;
8430     *)
8431      enable_static=no
8432       # Look at the argument we got.  We use all the common list separators.
8433       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8434       for pkg in $enableval; do
8435         IFS="$lt_save_ifs"
8436         if test "X$pkg" = "X$p"; then
8437           enable_static=yes
8438         fi
8439       done
8440       IFS="$lt_save_ifs"
8441       ;;
8442     esac
8443 else
8444   enable_static=yes
8445 fi
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456 # Check whether --with-pic was given.
8457 if test "${with_pic+set}" = set; then :
8458   withval=$with_pic; lt_p=${PACKAGE-default}
8459     case $withval in
8460     yes|no) pic_mode=$withval ;;
8461     *)
8462       pic_mode=default
8463       # Look at the argument we got.  We use all the common list separators.
8464       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8465       for lt_pkg in $withval; do
8466         IFS="$lt_save_ifs"
8467         if test "X$lt_pkg" = "X$lt_p"; then
8468           pic_mode=yes
8469         fi
8470       done
8471       IFS="$lt_save_ifs"
8472       ;;
8473     esac
8474 else
8475   pic_mode=default
8476 fi
8477
8478
8479 test -z "$pic_mode" && pic_mode=default
8480
8481
8482
8483
8484
8485
8486
8487   # Check whether --enable-fast-install was given.
8488 if test "${enable_fast_install+set}" = set; then :
8489   enableval=$enable_fast_install; p=${PACKAGE-default}
8490     case $enableval in
8491     yes) enable_fast_install=yes ;;
8492     no) enable_fast_install=no ;;
8493     *)
8494       enable_fast_install=no
8495       # Look at the argument we got.  We use all the common list separators.
8496       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8497       for pkg in $enableval; do
8498         IFS="$lt_save_ifs"
8499         if test "X$pkg" = "X$p"; then
8500           enable_fast_install=yes
8501         fi
8502       done
8503       IFS="$lt_save_ifs"
8504       ;;
8505     esac
8506 else
8507   enable_fast_install=yes
8508 fi
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520 # This can be used to rebuild libtool when needed
8521 LIBTOOL_DEPS="$ltmain"
8522
8523 # Always use our own libtool.
8524 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555 test -z "$LN_S" && LN_S="ln -s"
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570 if test -n "${ZSH_VERSION+set}" ; then
8571    setopt NO_GLOB_SUBST
8572 fi
8573
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8575 $as_echo_n "checking for objdir... " >&6; }
8576 if ${lt_cv_objdir+:} false; then :
8577   $as_echo_n "(cached) " >&6
8578 else
8579   rm -f .libs 2>/dev/null
8580 mkdir .libs 2>/dev/null
8581 if test -d .libs; then
8582   lt_cv_objdir=.libs
8583 else
8584   # MS-DOS does not allow filenames that begin with a dot.
8585   lt_cv_objdir=_libs
8586 fi
8587 rmdir .libs 2>/dev/null
8588 fi
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8590 $as_echo "$lt_cv_objdir" >&6; }
8591 objdir=$lt_cv_objdir
8592
8593
8594
8595
8596
8597 cat >>confdefs.h <<_ACEOF
8598 #define LT_OBJDIR "$lt_cv_objdir/"
8599 _ACEOF
8600
8601
8602
8603
8604 case $host_os in
8605 aix3*)
8606   # AIX sometimes has problems with the GCC collect2 program.  For some
8607   # reason, if we set the COLLECT_NAMES environment variable, the problems
8608   # vanish in a puff of smoke.
8609   if test "X${COLLECT_NAMES+set}" != Xset; then
8610     COLLECT_NAMES=
8611     export COLLECT_NAMES
8612   fi
8613   ;;
8614 esac
8615
8616 # Global variables:
8617 ofile=libtool
8618 can_build_shared=yes
8619
8620 # All known linkers require a `.a' archive for static linking (except MSVC,
8621 # which needs '.lib').
8622 libext=a
8623
8624 with_gnu_ld="$lt_cv_prog_gnu_ld"
8625
8626 old_CC="$CC"
8627 old_CFLAGS="$CFLAGS"
8628
8629 # Set sane defaults for various variables
8630 test -z "$CC" && CC=cc
8631 test -z "$LTCC" && LTCC=$CC
8632 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8633 test -z "$LD" && LD=ld
8634 test -z "$ac_objext" && ac_objext=o
8635
8636 for cc_temp in $compiler""; do
8637   case $cc_temp in
8638     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8639     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8640     \-*) ;;
8641     *) break;;
8642   esac
8643 done
8644 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8645
8646
8647 # Only perform the check for file, if the check method requires it
8648 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8649 case $deplibs_check_method in
8650 file_magic*)
8651   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8652     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8653 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8654 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8655   $as_echo_n "(cached) " >&6
8656 else
8657   case $MAGIC_CMD in
8658 [\\/*] |  ?:[\\/]*)
8659   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8660   ;;
8661 *)
8662   lt_save_MAGIC_CMD="$MAGIC_CMD"
8663   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8664   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8665   for ac_dir in $ac_dummy; do
8666     IFS="$lt_save_ifs"
8667     test -z "$ac_dir" && ac_dir=.
8668     if test -f $ac_dir/${ac_tool_prefix}file; then
8669       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8670       if test -n "$file_magic_test_file"; then
8671         case $deplibs_check_method in
8672         "file_magic "*)
8673           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8674           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8675           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8676             $EGREP "$file_magic_regex" > /dev/null; then
8677             :
8678           else
8679             cat <<_LT_EOF 1>&2
8680
8681 *** Warning: the command libtool uses to detect shared libraries,
8682 *** $file_magic_cmd, produces output that libtool cannot recognize.
8683 *** The result is that libtool may fail to recognize shared libraries
8684 *** as such.  This will affect the creation of libtool libraries that
8685 *** depend on shared libraries, but programs linked with such libtool
8686 *** libraries will work regardless of this problem.  Nevertheless, you
8687 *** may want to report the problem to your system manager and/or to
8688 *** bug-libtool@gnu.org
8689
8690 _LT_EOF
8691           fi ;;
8692         esac
8693       fi
8694       break
8695     fi
8696   done
8697   IFS="$lt_save_ifs"
8698   MAGIC_CMD="$lt_save_MAGIC_CMD"
8699   ;;
8700 esac
8701 fi
8702
8703 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8704 if test -n "$MAGIC_CMD"; then
8705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8706 $as_echo "$MAGIC_CMD" >&6; }
8707 else
8708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709 $as_echo "no" >&6; }
8710 fi
8711
8712
8713
8714
8715
8716 if test -z "$lt_cv_path_MAGIC_CMD"; then
8717   if test -n "$ac_tool_prefix"; then
8718     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8719 $as_echo_n "checking for file... " >&6; }
8720 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8721   $as_echo_n "(cached) " >&6
8722 else
8723   case $MAGIC_CMD in
8724 [\\/*] |  ?:[\\/]*)
8725   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8726   ;;
8727 *)
8728   lt_save_MAGIC_CMD="$MAGIC_CMD"
8729   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8730   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8731   for ac_dir in $ac_dummy; do
8732     IFS="$lt_save_ifs"
8733     test -z "$ac_dir" && ac_dir=.
8734     if test -f $ac_dir/file; then
8735       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8736       if test -n "$file_magic_test_file"; then
8737         case $deplibs_check_method in
8738         "file_magic "*)
8739           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8740           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8741           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8742             $EGREP "$file_magic_regex" > /dev/null; then
8743             :
8744           else
8745             cat <<_LT_EOF 1>&2
8746
8747 *** Warning: the command libtool uses to detect shared libraries,
8748 *** $file_magic_cmd, produces output that libtool cannot recognize.
8749 *** The result is that libtool may fail to recognize shared libraries
8750 *** as such.  This will affect the creation of libtool libraries that
8751 *** depend on shared libraries, but programs linked with such libtool
8752 *** libraries will work regardless of this problem.  Nevertheless, you
8753 *** may want to report the problem to your system manager and/or to
8754 *** bug-libtool@gnu.org
8755
8756 _LT_EOF
8757           fi ;;
8758         esac
8759       fi
8760       break
8761     fi
8762   done
8763   IFS="$lt_save_ifs"
8764   MAGIC_CMD="$lt_save_MAGIC_CMD"
8765   ;;
8766 esac
8767 fi
8768
8769 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8770 if test -n "$MAGIC_CMD"; then
8771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8772 $as_echo "$MAGIC_CMD" >&6; }
8773 else
8774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8775 $as_echo "no" >&6; }
8776 fi
8777
8778
8779   else
8780     MAGIC_CMD=:
8781   fi
8782 fi
8783
8784   fi
8785   ;;
8786 esac
8787
8788 # Use C for the default configuration in the libtool script
8789
8790 lt_save_CC="$CC"
8791 ac_ext=c
8792 ac_cpp='$CPP $CPPFLAGS'
8793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8796
8797
8798 # Source file extension for C test sources.
8799 ac_ext=c
8800
8801 # Object file extension for compiled C test sources.
8802 objext=o
8803 objext=$objext
8804
8805 # Code to be used in simple compile tests
8806 lt_simple_compile_test_code="int some_variable = 0;"
8807
8808 # Code to be used in simple link tests
8809 lt_simple_link_test_code='int main(){return(0);}'
8810
8811
8812
8813
8814
8815
8816
8817 # If no C compiler was specified, use CC.
8818 LTCC=${LTCC-"$CC"}
8819
8820 # If no C compiler flags were specified, use CFLAGS.
8821 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8822
8823 # Allow CC to be a program name with arguments.
8824 compiler=$CC
8825
8826 # Save the default compiler, since it gets overwritten when the other
8827 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8828 compiler_DEFAULT=$CC
8829
8830 # save warnings/boilerplate of simple test code
8831 ac_outfile=conftest.$ac_objext
8832 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8833 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8834 _lt_compiler_boilerplate=`cat conftest.err`
8835 $RM conftest*
8836
8837 ac_outfile=conftest.$ac_objext
8838 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8839 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8840 _lt_linker_boilerplate=`cat conftest.err`
8841 $RM -r conftest*
8842
8843
8844 ## CAVEAT EMPTOR:
8845 ## There is no encapsulation within the following macros, do not change
8846 ## the running order or otherwise move them around unless you know exactly
8847 ## what you are doing...
8848 if test -n "$compiler"; then
8849
8850 lt_prog_compiler_no_builtin_flag=
8851
8852 if test "$GCC" = yes; then
8853   case $cc_basename in
8854   nvcc*)
8855     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8856   *)
8857     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8858   esac
8859
8860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8861 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8862 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8863   $as_echo_n "(cached) " >&6
8864 else
8865   lt_cv_prog_compiler_rtti_exceptions=no
8866    ac_outfile=conftest.$ac_objext
8867    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8868    lt_compiler_flag="-fno-rtti -fno-exceptions"
8869    # Insert the option either (1) after the last *FLAGS variable, or
8870    # (2) before a word containing "conftest.", or (3) at the end.
8871    # Note that $ac_compile itself does not contain backslashes and begins
8872    # with a dollar sign (not a hyphen), so the echo should work correctly.
8873    # The option is referenced via a variable to avoid confusing sed.
8874    lt_compile=`echo "$ac_compile" | $SED \
8875    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8876    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8877    -e 's:$: $lt_compiler_flag:'`
8878    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8879    (eval "$lt_compile" 2>conftest.err)
8880    ac_status=$?
8881    cat conftest.err >&5
8882    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883    if (exit $ac_status) && test -s "$ac_outfile"; then
8884      # The compiler can only warn and ignore the option if not recognized
8885      # So say no if there are warnings other than the usual output.
8886      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8887      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8888      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8889        lt_cv_prog_compiler_rtti_exceptions=yes
8890      fi
8891    fi
8892    $RM conftest*
8893
8894 fi
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8896 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8897
8898 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8899     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8900 else
8901     :
8902 fi
8903
8904 fi
8905
8906
8907
8908
8909
8910
8911   lt_prog_compiler_wl=
8912 lt_prog_compiler_pic=
8913 lt_prog_compiler_static=
8914
8915
8916   if test "$GCC" = yes; then
8917     lt_prog_compiler_wl='-Wl,'
8918     lt_prog_compiler_static='-static'
8919
8920     case $host_os in
8921       aix*)
8922       # All AIX code is PIC.
8923       if test "$host_cpu" = ia64; then
8924         # AIX 5 now supports IA64 processor
8925         lt_prog_compiler_static='-Bstatic'
8926       fi
8927       ;;
8928
8929     amigaos*)
8930       case $host_cpu in
8931       powerpc)
8932             # see comment about AmigaOS4 .so support
8933             lt_prog_compiler_pic='-fPIC'
8934         ;;
8935       m68k)
8936             # FIXME: we need at least 68020 code to build shared libraries, but
8937             # adding the `-m68020' flag to GCC prevents building anything better,
8938             # like `-m68040'.
8939             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8940         ;;
8941       esac
8942       ;;
8943
8944     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8945       # PIC is the default for these OSes.
8946       ;;
8947
8948     mingw* | cygwin* | pw32* | os2* | cegcc*)
8949       # This hack is so that the source file can tell whether it is being
8950       # built for inclusion in a dll (and should export symbols for example).
8951       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8952       # (--disable-auto-import) libraries
8953       lt_prog_compiler_pic='-DDLL_EXPORT'
8954       ;;
8955
8956     darwin* | rhapsody*)
8957       # PIC is the default on this platform
8958       # Common symbols not allowed in MH_DYLIB files
8959       lt_prog_compiler_pic='-fno-common'
8960       ;;
8961
8962     haiku*)
8963       # PIC is the default for Haiku.
8964       # The "-static" flag exists, but is broken.
8965       lt_prog_compiler_static=
8966       ;;
8967
8968     hpux*)
8969       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8970       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8971       # sets the default TLS model and affects inlining.
8972       case $host_cpu in
8973       hppa*64*)
8974         # +Z the default
8975         ;;
8976       *)
8977         lt_prog_compiler_pic='-fPIC'
8978         ;;
8979       esac
8980       ;;
8981
8982     interix[3-9]*)
8983       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8984       # Instead, we relocate shared libraries at runtime.
8985       ;;
8986
8987     msdosdjgpp*)
8988       # Just because we use GCC doesn't mean we suddenly get shared libraries
8989       # on systems that don't support them.
8990       lt_prog_compiler_can_build_shared=no
8991       enable_shared=no
8992       ;;
8993
8994     *nto* | *qnx*)
8995       # QNX uses GNU C++, but need to define -shared option too, otherwise
8996       # it will coredump.
8997       lt_prog_compiler_pic='-fPIC -shared'
8998       ;;
8999
9000     sysv4*MP*)
9001       if test -d /usr/nec; then
9002         lt_prog_compiler_pic=-Kconform_pic
9003       fi
9004       ;;
9005
9006     *)
9007       lt_prog_compiler_pic='-fPIC'
9008       ;;
9009     esac
9010
9011     case $cc_basename in
9012     nvcc*) # Cuda Compiler Driver 2.2
9013       lt_prog_compiler_wl='-Xlinker '
9014       if test -n "$lt_prog_compiler_pic"; then
9015         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9016       fi
9017       ;;
9018     esac
9019   else
9020     # PORTME Check for flag to pass linker flags through the system compiler.
9021     case $host_os in
9022     aix*)
9023       lt_prog_compiler_wl='-Wl,'
9024       if test "$host_cpu" = ia64; then
9025         # AIX 5 now supports IA64 processor
9026         lt_prog_compiler_static='-Bstatic'
9027       else
9028         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9029       fi
9030       ;;
9031
9032     mingw* | cygwin* | pw32* | os2* | cegcc*)
9033       # This hack is so that the source file can tell whether it is being
9034       # built for inclusion in a dll (and should export symbols for example).
9035       lt_prog_compiler_pic='-DDLL_EXPORT'
9036       ;;
9037
9038     hpux9* | hpux10* | hpux11*)
9039       lt_prog_compiler_wl='-Wl,'
9040       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9041       # not for PA HP-UX.
9042       case $host_cpu in
9043       hppa*64*|ia64*)
9044         # +Z the default
9045         ;;
9046       *)
9047         lt_prog_compiler_pic='+Z'
9048         ;;
9049       esac
9050       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9051       lt_prog_compiler_static='${wl}-a ${wl}archive'
9052       ;;
9053
9054     irix5* | irix6* | nonstopux*)
9055       lt_prog_compiler_wl='-Wl,'
9056       # PIC (with -KPIC) is the default.
9057       lt_prog_compiler_static='-non_shared'
9058       ;;
9059
9060     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9061       case $cc_basename in
9062       # old Intel for x86_64 which still supported -KPIC.
9063       ecc*)
9064         lt_prog_compiler_wl='-Wl,'
9065         lt_prog_compiler_pic='-KPIC'
9066         lt_prog_compiler_static='-static'
9067         ;;
9068       # icc used to be incompatible with GCC.
9069       # ICC 10 doesn't accept -KPIC any more.
9070       icc* | ifort*)
9071         lt_prog_compiler_wl='-Wl,'
9072         lt_prog_compiler_pic='-fPIC'
9073         lt_prog_compiler_static='-static'
9074         ;;
9075       # Lahey Fortran 8.1.
9076       lf95*)
9077         lt_prog_compiler_wl='-Wl,'
9078         lt_prog_compiler_pic='--shared'
9079         lt_prog_compiler_static='--static'
9080         ;;
9081       nagfor*)
9082         # NAG Fortran compiler
9083         lt_prog_compiler_wl='-Wl,-Wl,,'
9084         lt_prog_compiler_pic='-PIC'
9085         lt_prog_compiler_static='-Bstatic'
9086         ;;
9087       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9088         # Portland Group compilers (*not* the Pentium gcc compiler,
9089         # which looks to be a dead project)
9090         lt_prog_compiler_wl='-Wl,'
9091         lt_prog_compiler_pic='-fpic'
9092         lt_prog_compiler_static='-Bstatic'
9093         ;;
9094       ccc*)
9095         lt_prog_compiler_wl='-Wl,'
9096         # All Alpha code is PIC.
9097         lt_prog_compiler_static='-non_shared'
9098         ;;
9099       xl* | bgxl* | bgf* | mpixl*)
9100         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9101         lt_prog_compiler_wl='-Wl,'
9102         lt_prog_compiler_pic='-qpic'
9103         lt_prog_compiler_static='-qstaticlink'
9104         ;;
9105       *)
9106         case `$CC -V 2>&1 | sed 5q` in
9107         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9108           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9109           lt_prog_compiler_pic='-KPIC'
9110           lt_prog_compiler_static='-Bstatic'
9111           lt_prog_compiler_wl=''
9112           ;;
9113         *Sun\ F* | *Sun*Fortran*)
9114           lt_prog_compiler_pic='-KPIC'
9115           lt_prog_compiler_static='-Bstatic'
9116           lt_prog_compiler_wl='-Qoption ld '
9117           ;;
9118         *Sun\ C*)
9119           # Sun C 5.9
9120           lt_prog_compiler_pic='-KPIC'
9121           lt_prog_compiler_static='-Bstatic'
9122           lt_prog_compiler_wl='-Wl,'
9123           ;;
9124         *Intel*\ [CF]*Compiler*)
9125           lt_prog_compiler_wl='-Wl,'
9126           lt_prog_compiler_pic='-fPIC'
9127           lt_prog_compiler_static='-static'
9128           ;;
9129         *Portland\ Group*)
9130           lt_prog_compiler_wl='-Wl,'
9131           lt_prog_compiler_pic='-fpic'
9132           lt_prog_compiler_static='-Bstatic'
9133           ;;
9134         esac
9135         ;;
9136       esac
9137       ;;
9138
9139     newsos6)
9140       lt_prog_compiler_pic='-KPIC'
9141       lt_prog_compiler_static='-Bstatic'
9142       ;;
9143
9144     *nto* | *qnx*)
9145       # QNX uses GNU C++, but need to define -shared option too, otherwise
9146       # it will coredump.
9147       lt_prog_compiler_pic='-fPIC -shared'
9148       ;;
9149
9150     osf3* | osf4* | osf5*)
9151       lt_prog_compiler_wl='-Wl,'
9152       # All OSF/1 code is PIC.
9153       lt_prog_compiler_static='-non_shared'
9154       ;;
9155
9156     rdos*)
9157       lt_prog_compiler_static='-non_shared'
9158       ;;
9159
9160     solaris*)
9161       lt_prog_compiler_pic='-KPIC'
9162       lt_prog_compiler_static='-Bstatic'
9163       case $cc_basename in
9164       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9165         lt_prog_compiler_wl='-Qoption ld ';;
9166       *)
9167         lt_prog_compiler_wl='-Wl,';;
9168       esac
9169       ;;
9170
9171     sunos4*)
9172       lt_prog_compiler_wl='-Qoption ld '
9173       lt_prog_compiler_pic='-PIC'
9174       lt_prog_compiler_static='-Bstatic'
9175       ;;
9176
9177     sysv4 | sysv4.2uw2* | sysv4.3*)
9178       lt_prog_compiler_wl='-Wl,'
9179       lt_prog_compiler_pic='-KPIC'
9180       lt_prog_compiler_static='-Bstatic'
9181       ;;
9182
9183     sysv4*MP*)
9184       if test -d /usr/nec ;then
9185         lt_prog_compiler_pic='-Kconform_pic'
9186         lt_prog_compiler_static='-Bstatic'
9187       fi
9188       ;;
9189
9190     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9191       lt_prog_compiler_wl='-Wl,'
9192       lt_prog_compiler_pic='-KPIC'
9193       lt_prog_compiler_static='-Bstatic'
9194       ;;
9195
9196     unicos*)
9197       lt_prog_compiler_wl='-Wl,'
9198       lt_prog_compiler_can_build_shared=no
9199       ;;
9200
9201     uts4*)
9202       lt_prog_compiler_pic='-pic'
9203       lt_prog_compiler_static='-Bstatic'
9204       ;;
9205
9206     *)
9207       lt_prog_compiler_can_build_shared=no
9208       ;;
9209     esac
9210   fi
9211
9212 case $host_os in
9213   # For platforms which do not support PIC, -DPIC is meaningless:
9214   *djgpp*)
9215     lt_prog_compiler_pic=
9216     ;;
9217   *)
9218     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9219     ;;
9220 esac
9221
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9223 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9224 if ${lt_cv_prog_compiler_pic+:} false; then :
9225   $as_echo_n "(cached) " >&6
9226 else
9227   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9228 fi
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9230 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9231 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9232
9233 #
9234 # Check to make sure the PIC flag actually works.
9235 #
9236 if test -n "$lt_prog_compiler_pic"; then
9237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9238 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9239 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9240   $as_echo_n "(cached) " >&6
9241 else
9242   lt_cv_prog_compiler_pic_works=no
9243    ac_outfile=conftest.$ac_objext
9244    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9245    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9246    # Insert the option either (1) after the last *FLAGS variable, or
9247    # (2) before a word containing "conftest.", or (3) at the end.
9248    # Note that $ac_compile itself does not contain backslashes and begins
9249    # with a dollar sign (not a hyphen), so the echo should work correctly.
9250    # The option is referenced via a variable to avoid confusing sed.
9251    lt_compile=`echo "$ac_compile" | $SED \
9252    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9253    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9254    -e 's:$: $lt_compiler_flag:'`
9255    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9256    (eval "$lt_compile" 2>conftest.err)
9257    ac_status=$?
9258    cat conftest.err >&5
9259    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260    if (exit $ac_status) && test -s "$ac_outfile"; then
9261      # The compiler can only warn and ignore the option if not recognized
9262      # So say no if there are warnings other than the usual output.
9263      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9264      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9265      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9266        lt_cv_prog_compiler_pic_works=yes
9267      fi
9268    fi
9269    $RM conftest*
9270
9271 fi
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9273 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9274
9275 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9276     case $lt_prog_compiler_pic in
9277      "" | " "*) ;;
9278      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9279      esac
9280 else
9281     lt_prog_compiler_pic=
9282      lt_prog_compiler_can_build_shared=no
9283 fi
9284
9285 fi
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297 #
9298 # Check to make sure the static flag actually works.
9299 #
9300 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9302 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9303 if ${lt_cv_prog_compiler_static_works+:} false; then :
9304   $as_echo_n "(cached) " >&6
9305 else
9306   lt_cv_prog_compiler_static_works=no
9307    save_LDFLAGS="$LDFLAGS"
9308    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9309    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9310    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9311      # The linker can only warn and ignore the option if not recognized
9312      # So say no if there are warnings
9313      if test -s conftest.err; then
9314        # Append any errors to the config.log.
9315        cat conftest.err 1>&5
9316        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9317        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9318        if diff conftest.exp conftest.er2 >/dev/null; then
9319          lt_cv_prog_compiler_static_works=yes
9320        fi
9321      else
9322        lt_cv_prog_compiler_static_works=yes
9323      fi
9324    fi
9325    $RM -r conftest*
9326    LDFLAGS="$save_LDFLAGS"
9327
9328 fi
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9330 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9331
9332 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9333     :
9334 else
9335     lt_prog_compiler_static=
9336 fi
9337
9338
9339
9340
9341
9342
9343
9344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9345 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9346 if ${lt_cv_prog_compiler_c_o+:} false; then :
9347   $as_echo_n "(cached) " >&6
9348 else
9349   lt_cv_prog_compiler_c_o=no
9350    $RM -r conftest 2>/dev/null
9351    mkdir conftest
9352    cd conftest
9353    mkdir out
9354    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9355
9356    lt_compiler_flag="-o out/conftest2.$ac_objext"
9357    # Insert the option either (1) after the last *FLAGS variable, or
9358    # (2) before a word containing "conftest.", or (3) at the end.
9359    # Note that $ac_compile itself does not contain backslashes and begins
9360    # with a dollar sign (not a hyphen), so the echo should work correctly.
9361    lt_compile=`echo "$ac_compile" | $SED \
9362    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9363    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9364    -e 's:$: $lt_compiler_flag:'`
9365    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9366    (eval "$lt_compile" 2>out/conftest.err)
9367    ac_status=$?
9368    cat out/conftest.err >&5
9369    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9371    then
9372      # The compiler can only warn and ignore the option if not recognized
9373      # So say no if there are warnings
9374      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9375      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9376      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9377        lt_cv_prog_compiler_c_o=yes
9378      fi
9379    fi
9380    chmod u+w . 2>&5
9381    $RM conftest*
9382    # SGI C++ compiler will create directory out/ii_files/ for
9383    # template instantiation
9384    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9385    $RM out/* && rmdir out
9386    cd ..
9387    $RM -r conftest
9388    $RM conftest*
9389
9390 fi
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9392 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9393
9394
9395
9396
9397
9398
9399   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9400 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9401 if ${lt_cv_prog_compiler_c_o+:} false; then :
9402   $as_echo_n "(cached) " >&6
9403 else
9404   lt_cv_prog_compiler_c_o=no
9405    $RM -r conftest 2>/dev/null
9406    mkdir conftest
9407    cd conftest
9408    mkdir out
9409    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9410
9411    lt_compiler_flag="-o out/conftest2.$ac_objext"
9412    # Insert the option either (1) after the last *FLAGS variable, or
9413    # (2) before a word containing "conftest.", or (3) at the end.
9414    # Note that $ac_compile itself does not contain backslashes and begins
9415    # with a dollar sign (not a hyphen), so the echo should work correctly.
9416    lt_compile=`echo "$ac_compile" | $SED \
9417    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9418    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9419    -e 's:$: $lt_compiler_flag:'`
9420    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9421    (eval "$lt_compile" 2>out/conftest.err)
9422    ac_status=$?
9423    cat out/conftest.err >&5
9424    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9426    then
9427      # The compiler can only warn and ignore the option if not recognized
9428      # So say no if there are warnings
9429      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9430      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9431      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9432        lt_cv_prog_compiler_c_o=yes
9433      fi
9434    fi
9435    chmod u+w . 2>&5
9436    $RM conftest*
9437    # SGI C++ compiler will create directory out/ii_files/ for
9438    # template instantiation
9439    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9440    $RM out/* && rmdir out
9441    cd ..
9442    $RM -r conftest
9443    $RM conftest*
9444
9445 fi
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9447 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9448
9449
9450
9451
9452 hard_links="nottested"
9453 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9454   # do not overwrite the value of need_locks provided by the user
9455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9456 $as_echo_n "checking if we can lock with hard links... " >&6; }
9457   hard_links=yes
9458   $RM conftest*
9459   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9460   touch conftest.a
9461   ln conftest.a conftest.b 2>&5 || hard_links=no
9462   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9464 $as_echo "$hard_links" >&6; }
9465   if test "$hard_links" = no; then
9466     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9467 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9468     need_locks=warn
9469   fi
9470 else
9471   need_locks=no
9472 fi
9473
9474
9475
9476
9477
9478
9479   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9480 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9481
9482   runpath_var=
9483   allow_undefined_flag=
9484   always_export_symbols=no
9485   archive_cmds=
9486   archive_expsym_cmds=
9487   compiler_needs_object=no
9488   enable_shared_with_static_runtimes=no
9489   export_dynamic_flag_spec=
9490   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9491   hardcode_automatic=no
9492   hardcode_direct=no
9493   hardcode_direct_absolute=no
9494   hardcode_libdir_flag_spec=
9495   hardcode_libdir_separator=
9496   hardcode_minus_L=no
9497   hardcode_shlibpath_var=unsupported
9498   inherit_rpath=no
9499   link_all_deplibs=unknown
9500   module_cmds=
9501   module_expsym_cmds=
9502   old_archive_from_new_cmds=
9503   old_archive_from_expsyms_cmds=
9504   thread_safe_flag_spec=
9505   whole_archive_flag_spec=
9506   # include_expsyms should be a list of space-separated symbols to be *always*
9507   # included in the symbol list
9508   include_expsyms=
9509   # exclude_expsyms can be an extended regexp of symbols to exclude
9510   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9511   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9512   # as well as any symbol that contains `d'.
9513   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9514   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9515   # platforms (ab)use it in PIC code, but their linkers get confused if
9516   # the symbol is explicitly referenced.  Since portable code cannot
9517   # rely on this symbol name, it's probably fine to never include it in
9518   # preloaded symbol tables.
9519   # Exclude shared library initialization/finalization symbols.
9520   extract_expsyms_cmds=
9521
9522   case $host_os in
9523   cygwin* | mingw* | pw32* | cegcc*)
9524     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9525     # When not using gcc, we currently assume that we are using
9526     # Microsoft Visual C++.
9527     if test "$GCC" != yes; then
9528       with_gnu_ld=no
9529     fi
9530     ;;
9531   interix*)
9532     # we just hope/assume this is gcc and not c89 (= MSVC++)
9533     with_gnu_ld=yes
9534     ;;
9535   openbsd*)
9536     with_gnu_ld=no
9537     ;;
9538   linux* | k*bsd*-gnu | gnu*)
9539     link_all_deplibs=no
9540     ;;
9541   esac
9542
9543   ld_shlibs=yes
9544
9545   # On some targets, GNU ld is compatible enough with the native linker
9546   # that we're better off using the native interface for both.
9547   lt_use_gnu_ld_interface=no
9548   if test "$with_gnu_ld" = yes; then
9549     case $host_os in
9550       aix*)
9551         # The AIX port of GNU ld has always aspired to compatibility
9552         # with the native linker.  However, as the warning in the GNU ld
9553         # block says, versions before 2.19.5* couldn't really create working
9554         # shared libraries, regardless of the interface used.
9555         case `$LD -v 2>&1` in
9556           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9557           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9558           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9559           *)
9560             lt_use_gnu_ld_interface=yes
9561             ;;
9562         esac
9563         ;;
9564       *)
9565         lt_use_gnu_ld_interface=yes
9566         ;;
9567     esac
9568   fi
9569
9570   if test "$lt_use_gnu_ld_interface" = yes; then
9571     # If archive_cmds runs LD, not CC, wlarc should be empty
9572     wlarc='${wl}'
9573
9574     # Set some defaults for GNU ld with shared library support. These
9575     # are reset later if shared libraries are not supported. Putting them
9576     # here allows them to be overridden if necessary.
9577     runpath_var=LD_RUN_PATH
9578     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9579     export_dynamic_flag_spec='${wl}--export-dynamic'
9580     # ancient GNU ld didn't support --whole-archive et. al.
9581     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9582       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9583     else
9584       whole_archive_flag_spec=
9585     fi
9586     supports_anon_versioning=no
9587     case `$LD -v 2>&1` in
9588       *GNU\ gold*) supports_anon_versioning=yes ;;
9589       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9590       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9591       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9592       *\ 2.11.*) ;; # other 2.11 versions
9593       *) supports_anon_versioning=yes ;;
9594     esac
9595
9596     # See if GNU ld supports shared libraries.
9597     case $host_os in
9598     aix[3-9]*)
9599       # On AIX/PPC, the GNU linker is very broken
9600       if test "$host_cpu" != ia64; then
9601         ld_shlibs=no
9602         cat <<_LT_EOF 1>&2
9603
9604 *** Warning: the GNU linker, at least up to release 2.19, is reported
9605 *** to be unable to reliably create shared libraries on AIX.
9606 *** Therefore, libtool is disabling shared libraries support.  If you
9607 *** really care for shared libraries, you may want to install binutils
9608 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9609 *** You will then need to restart the configuration process.
9610
9611 _LT_EOF
9612       fi
9613       ;;
9614
9615     amigaos*)
9616       case $host_cpu in
9617       powerpc)
9618             # see comment about AmigaOS4 .so support
9619             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9620             archive_expsym_cmds=''
9621         ;;
9622       m68k)
9623             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)'
9624             hardcode_libdir_flag_spec='-L$libdir'
9625             hardcode_minus_L=yes
9626         ;;
9627       esac
9628       ;;
9629
9630     beos*)
9631       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9632         allow_undefined_flag=unsupported
9633         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9634         # support --undefined.  This deserves some investigation.  FIXME
9635         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9636       else
9637         ld_shlibs=no
9638       fi
9639       ;;
9640
9641     cygwin* | mingw* | pw32* | cegcc*)
9642       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9643       # as there is no search path for DLLs.
9644       hardcode_libdir_flag_spec='-L$libdir'
9645       export_dynamic_flag_spec='${wl}--export-all-symbols'
9646       allow_undefined_flag=unsupported
9647       always_export_symbols=no
9648       enable_shared_with_static_runtimes=yes
9649       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'
9650       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9651
9652       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9653         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9654         # If the export-symbols file already is a .def file (1st line
9655         # is EXPORTS), use it as is; otherwise, prepend...
9656         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9657           cp $export_symbols $output_objdir/$soname.def;
9658         else
9659           echo EXPORTS > $output_objdir/$soname.def;
9660           cat $export_symbols >> $output_objdir/$soname.def;
9661         fi~
9662         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9663       else
9664         ld_shlibs=no
9665       fi
9666       ;;
9667
9668     haiku*)
9669       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9670       link_all_deplibs=yes
9671       ;;
9672
9673     interix[3-9]*)
9674       hardcode_direct=no
9675       hardcode_shlibpath_var=no
9676       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9677       export_dynamic_flag_spec='${wl}-E'
9678       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9679       # Instead, shared libraries are loaded at an image base (0x10000000 by
9680       # default) and relocated if they conflict, which is a slow very memory
9681       # consuming and fragmenting process.  To avoid this, we pick a random,
9682       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9683       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9684       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9685       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'
9686       ;;
9687
9688     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9689       tmp_diet=no
9690       if test "$host_os" = linux-dietlibc; then
9691         case $cc_basename in
9692           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9693         esac
9694       fi
9695       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9696          && test "$tmp_diet" = no
9697       then
9698         tmp_addflag=' $pic_flag'
9699         tmp_sharedflag='-shared'
9700         case $cc_basename,$host_cpu in
9701         pgcc*)                          # Portland Group C compiler
9702           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'
9703           tmp_addflag=' $pic_flag'
9704           ;;
9705         pgf77* | pgf90* | pgf95* | pgfortran*)
9706                                         # Portland Group f77 and f90 compilers
9707           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'
9708           tmp_addflag=' $pic_flag -Mnomain' ;;
9709         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9710           tmp_addflag=' -i_dynamic' ;;
9711         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9712           tmp_addflag=' -i_dynamic -nofor_main' ;;
9713         ifc* | ifort*)                  # Intel Fortran compiler
9714           tmp_addflag=' -nofor_main' ;;
9715         lf95*)                          # Lahey Fortran 8.1
9716           whole_archive_flag_spec=
9717           tmp_sharedflag='--shared' ;;
9718         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9719           tmp_sharedflag='-qmkshrobj'
9720           tmp_addflag= ;;
9721         nvcc*)  # Cuda Compiler Driver 2.2
9722           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'
9723           compiler_needs_object=yes
9724           ;;
9725         esac
9726         case `$CC -V 2>&1 | sed 5q` in
9727         *Sun\ C*)                       # Sun C 5.9
9728           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'
9729           compiler_needs_object=yes
9730           tmp_sharedflag='-G' ;;
9731         *Sun\ F*)                       # Sun Fortran 8.3
9732           tmp_sharedflag='-G' ;;
9733         esac
9734         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9735
9736         if test "x$supports_anon_versioning" = xyes; then
9737           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9738             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9739             echo "local: *; };" >> $output_objdir/$libname.ver~
9740             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9741         fi
9742
9743         case $cc_basename in
9744         xlf* | bgf* | bgxlf* | mpixlf*)
9745           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9746           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9747           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9748           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9749           if test "x$supports_anon_versioning" = xyes; then
9750             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9751               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9752               echo "local: *; };" >> $output_objdir/$libname.ver~
9753               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9754           fi
9755           ;;
9756         esac
9757       else
9758         ld_shlibs=no
9759       fi
9760       ;;
9761
9762     netbsd* | netbsdelf*-gnu)
9763       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9764         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9765         wlarc=
9766       else
9767         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9768         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9769       fi
9770       ;;
9771
9772     solaris*)
9773       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9774         ld_shlibs=no
9775         cat <<_LT_EOF 1>&2
9776
9777 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9778 *** create shared libraries on Solaris systems.  Therefore, libtool
9779 *** is disabling shared libraries support.  We urge you to upgrade GNU
9780 *** binutils to release 2.9.1 or newer.  Another option is to modify
9781 *** your PATH or compiler configuration so that the native linker is
9782 *** used, and then restart.
9783
9784 _LT_EOF
9785       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9786         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9787         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9788       else
9789         ld_shlibs=no
9790       fi
9791       ;;
9792
9793     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9794       case `$LD -v 2>&1` in
9795         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9796         ld_shlibs=no
9797         cat <<_LT_EOF 1>&2
9798
9799 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9800 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9801 *** is disabling shared libraries support.  We urge you to upgrade GNU
9802 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9803 *** your PATH or compiler configuration so that the native linker is
9804 *** used, and then restart.
9805
9806 _LT_EOF
9807         ;;
9808         *)
9809           # For security reasons, it is highly recommended that you always
9810           # use absolute paths for naming shared libraries, and exclude the
9811           # DT_RUNPATH tag from executables and libraries.  But doing so
9812           # requires that you compile everything twice, which is a pain.
9813           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9814             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9815             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9816             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9817           else
9818             ld_shlibs=no
9819           fi
9820         ;;
9821       esac
9822       ;;
9823
9824     sunos4*)
9825       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9826       wlarc=
9827       hardcode_direct=yes
9828       hardcode_shlibpath_var=no
9829       ;;
9830
9831     *)
9832       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9833         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9834         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9835       else
9836         ld_shlibs=no
9837       fi
9838       ;;
9839     esac
9840
9841     if test "$ld_shlibs" = no; then
9842       runpath_var=
9843       hardcode_libdir_flag_spec=
9844       export_dynamic_flag_spec=
9845       whole_archive_flag_spec=
9846     fi
9847   else
9848     # PORTME fill in a description of your system's linker (not GNU ld)
9849     case $host_os in
9850     aix3*)
9851       allow_undefined_flag=unsupported
9852       always_export_symbols=yes
9853       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'
9854       # Note: this linker hardcodes the directories in LIBPATH if there
9855       # are no directories specified by -L.
9856       hardcode_minus_L=yes
9857       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9858         # Neither direct hardcoding nor static linking is supported with a
9859         # broken collect2.
9860         hardcode_direct=unsupported
9861       fi
9862       ;;
9863
9864     aix[4-9]*)
9865       if test "$host_cpu" = ia64; then
9866         # On IA64, the linker does run time linking by default, so we don't
9867         # have to do anything special.
9868         aix_use_runtimelinking=no
9869         exp_sym_flag='-Bexport'
9870         no_entry_flag=""
9871       else
9872         # If we're using GNU nm, then we don't want the "-C" option.
9873         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9874         # Also, AIX nm treats weak defined symbols like other global
9875         # defined symbols, whereas GNU nm marks them as "W".
9876         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9877           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'
9878         else
9879           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'
9880         fi
9881         aix_use_runtimelinking=no
9882
9883         # Test if we are trying to use run time linking or normal
9884         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9885         # need to do runtime linking.
9886         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9887           for ld_flag in $LDFLAGS; do
9888           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9889             aix_use_runtimelinking=yes
9890             break
9891           fi
9892           done
9893           ;;
9894         esac
9895
9896         exp_sym_flag='-bexport'
9897         no_entry_flag='-bnoentry'
9898       fi
9899
9900       # When large executables or shared objects are built, AIX ld can
9901       # have problems creating the table of contents.  If linking a library
9902       # or program results in "error TOC overflow" add -mminimal-toc to
9903       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9904       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9905
9906       archive_cmds=''
9907       hardcode_direct=yes
9908       hardcode_direct_absolute=yes
9909       hardcode_libdir_separator=':'
9910       link_all_deplibs=yes
9911       file_list_spec='${wl}-f,'
9912
9913       if test "$GCC" = yes; then
9914         case $host_os in aix4.[012]|aix4.[012].*)
9915         # We only want to do this on AIX 4.2 and lower, the check
9916         # below for broken collect2 doesn't work under 4.3+
9917           collect2name=`${CC} -print-prog-name=collect2`
9918           if test -f "$collect2name" &&
9919            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9920           then
9921           # We have reworked collect2
9922           :
9923           else
9924           # We have old collect2
9925           hardcode_direct=unsupported
9926           # It fails to find uninstalled libraries when the uninstalled
9927           # path is not listed in the libpath.  Setting hardcode_minus_L
9928           # to unsupported forces relinking
9929           hardcode_minus_L=yes
9930           hardcode_libdir_flag_spec='-L$libdir'
9931           hardcode_libdir_separator=
9932           fi
9933           ;;
9934         esac
9935         shared_flag='-shared'
9936         if test "$aix_use_runtimelinking" = yes; then
9937           shared_flag="$shared_flag "'${wl}-G'
9938         fi
9939         link_all_deplibs=no
9940       else
9941         # not using gcc
9942         if test "$host_cpu" = ia64; then
9943         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9944         # chokes on -Wl,-G. The following line is correct:
9945           shared_flag='-G'
9946         else
9947           if test "$aix_use_runtimelinking" = yes; then
9948             shared_flag='${wl}-G'
9949           else
9950             shared_flag='${wl}-bM:SRE'
9951           fi
9952         fi
9953       fi
9954
9955       export_dynamic_flag_spec='${wl}-bexpall'
9956       # It seems that -bexpall does not export symbols beginning with
9957       # underscore (_), so it is better to generate a list of symbols to export.
9958       always_export_symbols=yes
9959       if test "$aix_use_runtimelinking" = yes; then
9960         # Warning - without using the other runtime loading flags (-brtl),
9961         # -berok will link without error, but may produce a broken library.
9962         allow_undefined_flag='-berok'
9963         # Determine the default libpath from the value encoded in an
9964         # empty executable.
9965         if test "${lt_cv_aix_libpath+set}" = set; then
9966   aix_libpath=$lt_cv_aix_libpath
9967 else
9968   if ${lt_cv_aix_libpath_+:} false; then :
9969   $as_echo_n "(cached) " >&6
9970 else
9971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9972 /* end confdefs.h.  */
9973
9974 int
9975 main ()
9976 {
9977
9978   ;
9979   return 0;
9980 }
9981 _ACEOF
9982 if ac_fn_c_try_link "$LINENO"; then :
9983
9984   lt_aix_libpath_sed='
9985       /Import File Strings/,/^$/ {
9986           /^0/ {
9987               s/^0  *\([^ ]*\) *$/\1/
9988               p
9989           }
9990       }'
9991   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9992   # Check for a 64-bit object if we didn't find anything.
9993   if test -z "$lt_cv_aix_libpath_"; then
9994     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9995   fi
9996 fi
9997 rm -f core conftest.err conftest.$ac_objext \
9998     conftest$ac_exeext conftest.$ac_ext
9999   if test -z "$lt_cv_aix_libpath_"; then
10000     lt_cv_aix_libpath_="/usr/lib:/lib"
10001   fi
10002
10003 fi
10004
10005   aix_libpath=$lt_cv_aix_libpath_
10006 fi
10007
10008         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10009         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"
10010       else
10011         if test "$host_cpu" = ia64; then
10012           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10013           allow_undefined_flag="-z nodefs"
10014           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"
10015         else
10016          # Determine the default libpath from the value encoded in an
10017          # empty executable.
10018          if test "${lt_cv_aix_libpath+set}" = set; then
10019   aix_libpath=$lt_cv_aix_libpath
10020 else
10021   if ${lt_cv_aix_libpath_+:} false; then :
10022   $as_echo_n "(cached) " >&6
10023 else
10024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10025 /* end confdefs.h.  */
10026
10027 int
10028 main ()
10029 {
10030
10031   ;
10032   return 0;
10033 }
10034 _ACEOF
10035 if ac_fn_c_try_link "$LINENO"; then :
10036
10037   lt_aix_libpath_sed='
10038       /Import File Strings/,/^$/ {
10039           /^0/ {
10040               s/^0  *\([^ ]*\) *$/\1/
10041               p
10042           }
10043       }'
10044   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10045   # Check for a 64-bit object if we didn't find anything.
10046   if test -z "$lt_cv_aix_libpath_"; then
10047     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10048   fi
10049 fi
10050 rm -f core conftest.err conftest.$ac_objext \
10051     conftest$ac_exeext conftest.$ac_ext
10052   if test -z "$lt_cv_aix_libpath_"; then
10053     lt_cv_aix_libpath_="/usr/lib:/lib"
10054   fi
10055
10056 fi
10057
10058   aix_libpath=$lt_cv_aix_libpath_
10059 fi
10060
10061          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10062           # Warning - without using the other run time loading flags,
10063           # -berok will link without error, but may produce a broken library.
10064           no_undefined_flag=' ${wl}-bernotok'
10065           allow_undefined_flag=' ${wl}-berok'
10066           if test "$with_gnu_ld" = yes; then
10067             # We only use this code for GNU lds that support --whole-archive.
10068             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10069           else
10070             # Exported symbols can be pulled into shared objects from archives
10071             whole_archive_flag_spec='$convenience'
10072           fi
10073           archive_cmds_need_lc=yes
10074           # This is similar to how AIX traditionally builds its shared libraries.
10075           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'
10076         fi
10077       fi
10078       ;;
10079
10080     amigaos*)
10081       case $host_cpu in
10082       powerpc)
10083             # see comment about AmigaOS4 .so support
10084             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10085             archive_expsym_cmds=''
10086         ;;
10087       m68k)
10088             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)'
10089             hardcode_libdir_flag_spec='-L$libdir'
10090             hardcode_minus_L=yes
10091         ;;
10092       esac
10093       ;;
10094
10095     bsdi[45]*)
10096       export_dynamic_flag_spec=-rdynamic
10097       ;;
10098
10099     cygwin* | mingw* | pw32* | cegcc*)
10100       # When not using gcc, we currently assume that we are using
10101       # Microsoft Visual C++.
10102       # hardcode_libdir_flag_spec is actually meaningless, as there is
10103       # no search path for DLLs.
10104       case $cc_basename in
10105       cl*)
10106         # Native MSVC
10107         hardcode_libdir_flag_spec=' '
10108         allow_undefined_flag=unsupported
10109         always_export_symbols=yes
10110         file_list_spec='@'
10111         # Tell ltmain to make .lib files, not .a files.
10112         libext=lib
10113         # Tell ltmain to make .dll files, not .so files.
10114         shrext_cmds=".dll"
10115         # FIXME: Setting linknames here is a bad hack.
10116         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10117         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10118             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10119           else
10120             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10121           fi~
10122           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10123           linknames='
10124         # The linker will not automatically build a static lib if we build a DLL.
10125         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10126         enable_shared_with_static_runtimes=yes
10127         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10128         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10129         # Don't use ranlib
10130         old_postinstall_cmds='chmod 644 $oldlib'
10131         postlink_cmds='lt_outputfile="@OUTPUT@"~
10132           lt_tool_outputfile="@TOOL_OUTPUT@"~
10133           case $lt_outputfile in
10134             *.exe|*.EXE) ;;
10135             *)
10136               lt_outputfile="$lt_outputfile.exe"
10137               lt_tool_outputfile="$lt_tool_outputfile.exe"
10138               ;;
10139           esac~
10140           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10141             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10142             $RM "$lt_outputfile.manifest";
10143           fi'
10144         ;;
10145       *)
10146         # Assume MSVC wrapper
10147         hardcode_libdir_flag_spec=' '
10148         allow_undefined_flag=unsupported
10149         # Tell ltmain to make .lib files, not .a files.
10150         libext=lib
10151         # Tell ltmain to make .dll files, not .so files.
10152         shrext_cmds=".dll"
10153         # FIXME: Setting linknames here is a bad hack.
10154         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10155         # The linker will automatically build a .lib file if we build a DLL.
10156         old_archive_from_new_cmds='true'
10157         # FIXME: Should let the user specify the lib program.
10158         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10159         enable_shared_with_static_runtimes=yes
10160         ;;
10161       esac
10162       ;;
10163
10164     darwin* | rhapsody*)
10165
10166
10167   archive_cmds_need_lc=no
10168   hardcode_direct=no
10169   hardcode_automatic=yes
10170   hardcode_shlibpath_var=unsupported
10171   if test "$lt_cv_ld_force_load" = "yes"; then
10172     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\"`'
10173
10174   else
10175     whole_archive_flag_spec=''
10176   fi
10177   link_all_deplibs=yes
10178   allow_undefined_flag="$_lt_dar_allow_undefined"
10179   case $cc_basename in
10180      ifort*) _lt_dar_can_shared=yes ;;
10181      *) _lt_dar_can_shared=$GCC ;;
10182   esac
10183   if test "$_lt_dar_can_shared" = "yes"; then
10184     output_verbose_link_cmd=func_echo_all
10185     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10186     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10187     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}"
10188     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}"
10189
10190   else
10191   ld_shlibs=no
10192   fi
10193
10194       ;;
10195
10196     dgux*)
10197       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10198       hardcode_libdir_flag_spec='-L$libdir'
10199       hardcode_shlibpath_var=no
10200       ;;
10201
10202     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10203     # support.  Future versions do this automatically, but an explicit c++rt0.o
10204     # does not break anything, and helps significantly (at the cost of a little
10205     # extra space).
10206     freebsd2.2*)
10207       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10208       hardcode_libdir_flag_spec='-R$libdir'
10209       hardcode_direct=yes
10210       hardcode_shlibpath_var=no
10211       ;;
10212
10213     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10214     freebsd2.*)
10215       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10216       hardcode_direct=yes
10217       hardcode_minus_L=yes
10218       hardcode_shlibpath_var=no
10219       ;;
10220
10221     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10222     freebsd* | dragonfly*)
10223       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10224       hardcode_libdir_flag_spec='-R$libdir'
10225       hardcode_direct=yes
10226       hardcode_shlibpath_var=no
10227       ;;
10228
10229     hpux9*)
10230       if test "$GCC" = yes; then
10231         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'
10232       else
10233         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'
10234       fi
10235       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10236       hardcode_libdir_separator=:
10237       hardcode_direct=yes
10238
10239       # hardcode_minus_L: Not really in the search PATH,
10240       # but as the default location of the library.
10241       hardcode_minus_L=yes
10242       export_dynamic_flag_spec='${wl}-E'
10243       ;;
10244
10245     hpux10*)
10246       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10247         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10248       else
10249         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10250       fi
10251       if test "$with_gnu_ld" = no; then
10252         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10253         hardcode_libdir_separator=:
10254         hardcode_direct=yes
10255         hardcode_direct_absolute=yes
10256         export_dynamic_flag_spec='${wl}-E'
10257         # hardcode_minus_L: Not really in the search PATH,
10258         # but as the default location of the library.
10259         hardcode_minus_L=yes
10260       fi
10261       ;;
10262
10263     hpux11*)
10264       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10265         case $host_cpu in
10266         hppa*64*)
10267           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10268           ;;
10269         ia64*)
10270           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10271           ;;
10272         *)
10273           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10274           ;;
10275         esac
10276       else
10277         case $host_cpu in
10278         hppa*64*)
10279           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10280           ;;
10281         ia64*)
10282           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10283           ;;
10284         *)
10285
10286           # Older versions of the 11.00 compiler do not understand -b yet
10287           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10288           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10289 $as_echo_n "checking if $CC understands -b... " >&6; }
10290 if ${lt_cv_prog_compiler__b+:} false; then :
10291   $as_echo_n "(cached) " >&6
10292 else
10293   lt_cv_prog_compiler__b=no
10294    save_LDFLAGS="$LDFLAGS"
10295    LDFLAGS="$LDFLAGS -b"
10296    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10297    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10298      # The linker can only warn and ignore the option if not recognized
10299      # So say no if there are warnings
10300      if test -s conftest.err; then
10301        # Append any errors to the config.log.
10302        cat conftest.err 1>&5
10303        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10304        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10305        if diff conftest.exp conftest.er2 >/dev/null; then
10306          lt_cv_prog_compiler__b=yes
10307        fi
10308      else
10309        lt_cv_prog_compiler__b=yes
10310      fi
10311    fi
10312    $RM -r conftest*
10313    LDFLAGS="$save_LDFLAGS"
10314
10315 fi
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10317 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10318
10319 if test x"$lt_cv_prog_compiler__b" = xyes; then
10320     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10321 else
10322     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10323 fi
10324
10325           ;;
10326         esac
10327       fi
10328       if test "$with_gnu_ld" = no; then
10329         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10330         hardcode_libdir_separator=:
10331
10332         case $host_cpu in
10333         hppa*64*|ia64*)
10334           hardcode_direct=no
10335           hardcode_shlibpath_var=no
10336           ;;
10337         *)
10338           hardcode_direct=yes
10339           hardcode_direct_absolute=yes
10340           export_dynamic_flag_spec='${wl}-E'
10341
10342           # hardcode_minus_L: Not really in the search PATH,
10343           # but as the default location of the library.
10344           hardcode_minus_L=yes
10345           ;;
10346         esac
10347       fi
10348       ;;
10349
10350     irix5* | irix6* | nonstopux*)
10351       if test "$GCC" = yes; then
10352         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'
10353         # Try to use the -exported_symbol ld option, if it does not
10354         # work, assume that -exports_file does not work either and
10355         # implicitly export all symbols.
10356         # This should be the same for all languages, so no per-tag cache variable.
10357         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10358 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10359 if ${lt_cv_irix_exported_symbol+:} false; then :
10360   $as_echo_n "(cached) " >&6
10361 else
10362   save_LDFLAGS="$LDFLAGS"
10363            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10364            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365 /* end confdefs.h.  */
10366 int foo (void) { return 0; }
10367 _ACEOF
10368 if ac_fn_c_try_link "$LINENO"; then :
10369   lt_cv_irix_exported_symbol=yes
10370 else
10371   lt_cv_irix_exported_symbol=no
10372 fi
10373 rm -f core conftest.err conftest.$ac_objext \
10374     conftest$ac_exeext conftest.$ac_ext
10375            LDFLAGS="$save_LDFLAGS"
10376 fi
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10378 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10379         if test "$lt_cv_irix_exported_symbol" = yes; then
10380           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'
10381         fi
10382       else
10383         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'
10384         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'
10385       fi
10386       archive_cmds_need_lc='no'
10387       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10388       hardcode_libdir_separator=:
10389       inherit_rpath=yes
10390       link_all_deplibs=yes
10391       ;;
10392
10393     netbsd* | netbsdelf*-gnu)
10394       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10395         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10396       else
10397         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10398       fi
10399       hardcode_libdir_flag_spec='-R$libdir'
10400       hardcode_direct=yes
10401       hardcode_shlibpath_var=no
10402       ;;
10403
10404     newsos6)
10405       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10406       hardcode_direct=yes
10407       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10408       hardcode_libdir_separator=:
10409       hardcode_shlibpath_var=no
10410       ;;
10411
10412     *nto* | *qnx*)
10413       ;;
10414
10415     openbsd*)
10416       if test -f /usr/libexec/ld.so; then
10417         hardcode_direct=yes
10418         hardcode_shlibpath_var=no
10419         hardcode_direct_absolute=yes
10420         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10421           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10422           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10423           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10424           export_dynamic_flag_spec='${wl}-E'
10425         else
10426           case $host_os in
10427            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10428              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10429              hardcode_libdir_flag_spec='-R$libdir'
10430              ;;
10431            *)
10432              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10433              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10434              ;;
10435           esac
10436         fi
10437       else
10438         ld_shlibs=no
10439       fi
10440       ;;
10441
10442     os2*)
10443       hardcode_libdir_flag_spec='-L$libdir'
10444       hardcode_minus_L=yes
10445       allow_undefined_flag=unsupported
10446       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'
10447       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10448       ;;
10449
10450     osf3*)
10451       if test "$GCC" = yes; then
10452         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10453         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'
10454       else
10455         allow_undefined_flag=' -expect_unresolved \*'
10456         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'
10457       fi
10458       archive_cmds_need_lc='no'
10459       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10460       hardcode_libdir_separator=:
10461       ;;
10462
10463     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10464       if test "$GCC" = yes; then
10465         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10466         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'
10467         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10468       else
10469         allow_undefined_flag=' -expect_unresolved \*'
10470         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'
10471         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~
10472         $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'
10473
10474         # Both c and cxx compiler support -rpath directly
10475         hardcode_libdir_flag_spec='-rpath $libdir'
10476       fi
10477       archive_cmds_need_lc='no'
10478       hardcode_libdir_separator=:
10479       ;;
10480
10481     solaris*)
10482       no_undefined_flag=' -z defs'
10483       if test "$GCC" = yes; then
10484         wlarc='${wl}'
10485         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10486         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10487           $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'
10488       else
10489         case `$CC -V 2>&1` in
10490         *"Compilers 5.0"*)
10491           wlarc=''
10492           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10493           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10494           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10495           ;;
10496         *)
10497           wlarc='${wl}'
10498           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10499           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10500           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10501           ;;
10502         esac
10503       fi
10504       hardcode_libdir_flag_spec='-R$libdir'
10505       hardcode_shlibpath_var=no
10506       case $host_os in
10507       solaris2.[0-5] | solaris2.[0-5].*) ;;
10508       *)
10509         # The compiler driver will combine and reorder linker options,
10510         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10511         # but is careful enough not to reorder.
10512         # Supported since Solaris 2.6 (maybe 2.5.1?)
10513         if test "$GCC" = yes; then
10514           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10515         else
10516           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10517         fi
10518         ;;
10519       esac
10520       link_all_deplibs=yes
10521       ;;
10522
10523     sunos4*)
10524       if test "x$host_vendor" = xsequent; then
10525         # Use $CC to link under sequent, because it throws in some extra .o
10526         # files that make .init and .fini sections work.
10527         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10528       else
10529         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10530       fi
10531       hardcode_libdir_flag_spec='-L$libdir'
10532       hardcode_direct=yes
10533       hardcode_minus_L=yes
10534       hardcode_shlibpath_var=no
10535       ;;
10536
10537     sysv4)
10538       case $host_vendor in
10539         sni)
10540           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10541           hardcode_direct=yes # is this really true???
10542         ;;
10543         siemens)
10544           ## LD is ld it makes a PLAMLIB
10545           ## CC just makes a GrossModule.
10546           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10547           reload_cmds='$CC -r -o $output$reload_objs'
10548           hardcode_direct=no
10549         ;;
10550         motorola)
10551           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10552           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10553         ;;
10554       esac
10555       runpath_var='LD_RUN_PATH'
10556       hardcode_shlibpath_var=no
10557       ;;
10558
10559     sysv4.3*)
10560       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10561       hardcode_shlibpath_var=no
10562       export_dynamic_flag_spec='-Bexport'
10563       ;;
10564
10565     sysv4*MP*)
10566       if test -d /usr/nec; then
10567         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10568         hardcode_shlibpath_var=no
10569         runpath_var=LD_RUN_PATH
10570         hardcode_runpath_var=yes
10571         ld_shlibs=yes
10572       fi
10573       ;;
10574
10575     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10576       no_undefined_flag='${wl}-z,text'
10577       archive_cmds_need_lc=no
10578       hardcode_shlibpath_var=no
10579       runpath_var='LD_RUN_PATH'
10580
10581       if test "$GCC" = yes; then
10582         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10583         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10584       else
10585         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10586         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10587       fi
10588       ;;
10589
10590     sysv5* | sco3.2v5* | sco5v6*)
10591       # Note: We can NOT use -z defs as we might desire, because we do not
10592       # link with -lc, and that would cause any symbols used from libc to
10593       # always be unresolved, which means just about no library would
10594       # ever link correctly.  If we're not using GNU ld we use -z text
10595       # though, which does catch some bad symbols but isn't as heavy-handed
10596       # as -z defs.
10597       no_undefined_flag='${wl}-z,text'
10598       allow_undefined_flag='${wl}-z,nodefs'
10599       archive_cmds_need_lc=no
10600       hardcode_shlibpath_var=no
10601       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10602       hardcode_libdir_separator=':'
10603       link_all_deplibs=yes
10604       export_dynamic_flag_spec='${wl}-Bexport'
10605       runpath_var='LD_RUN_PATH'
10606
10607       if test "$GCC" = yes; then
10608         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10609         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10610       else
10611         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10612         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10613       fi
10614       ;;
10615
10616     uts4*)
10617       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10618       hardcode_libdir_flag_spec='-L$libdir'
10619       hardcode_shlibpath_var=no
10620       ;;
10621
10622     *)
10623       ld_shlibs=no
10624       ;;
10625     esac
10626
10627     if test x$host_vendor = xsni; then
10628       case $host in
10629       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10630         export_dynamic_flag_spec='${wl}-Blargedynsym'
10631         ;;
10632       esac
10633     fi
10634   fi
10635
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10637 $as_echo "$ld_shlibs" >&6; }
10638 test "$ld_shlibs" = no && can_build_shared=no
10639
10640 with_gnu_ld=$with_gnu_ld
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656 #
10657 # Do we need to explicitly link libc?
10658 #
10659 case "x$archive_cmds_need_lc" in
10660 x|xyes)
10661   # Assume -lc should be added
10662   archive_cmds_need_lc=yes
10663
10664   if test "$enable_shared" = yes && test "$GCC" = yes; then
10665     case $archive_cmds in
10666     *'~'*)
10667       # FIXME: we may have to deal with multi-command sequences.
10668       ;;
10669     '$CC '*)
10670       # Test whether the compiler implicitly links with -lc since on some
10671       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10672       # to ld, don't add -lc before -lgcc.
10673       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10674 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10675 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10676   $as_echo_n "(cached) " >&6
10677 else
10678   $RM conftest*
10679         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10680
10681         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10682   (eval $ac_compile) 2>&5
10683   ac_status=$?
10684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10685   test $ac_status = 0; } 2>conftest.err; then
10686           soname=conftest
10687           lib=conftest
10688           libobjs=conftest.$ac_objext
10689           deplibs=
10690           wl=$lt_prog_compiler_wl
10691           pic_flag=$lt_prog_compiler_pic
10692           compiler_flags=-v
10693           linker_flags=-v
10694           verstring=
10695           output_objdir=.
10696           libname=conftest
10697           lt_save_allow_undefined_flag=$allow_undefined_flag
10698           allow_undefined_flag=
10699           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10700   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10701   ac_status=$?
10702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10703   test $ac_status = 0; }
10704           then
10705             lt_cv_archive_cmds_need_lc=no
10706           else
10707             lt_cv_archive_cmds_need_lc=yes
10708           fi
10709           allow_undefined_flag=$lt_save_allow_undefined_flag
10710         else
10711           cat conftest.err 1>&5
10712         fi
10713         $RM conftest*
10714
10715 fi
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10717 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10718       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10719       ;;
10720     esac
10721   fi
10722   ;;
10723 esac
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10877 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10878
10879 if test "$GCC" = yes; then
10880   case $host_os in
10881     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10882     *) lt_awk_arg="/^libraries:/" ;;
10883   esac
10884   case $host_os in
10885     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10886     *) lt_sed_strip_eq="s,=/,/,g" ;;
10887   esac
10888   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10889   case $lt_search_path_spec in
10890   *\;*)
10891     # if the path contains ";" then we assume it to be the separator
10892     # otherwise default to the standard path separator (i.e. ":") - it is
10893     # assumed that no part of a normal pathname contains ";" but that should
10894     # okay in the real world where ";" in dirpaths is itself problematic.
10895     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10896     ;;
10897   *)
10898     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10899     ;;
10900   esac
10901   # Ok, now we have the path, separated by spaces, we can step through it
10902   # and add multilib dir if necessary.
10903   lt_tmp_lt_search_path_spec=
10904   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10905   for lt_sys_path in $lt_search_path_spec; do
10906     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10907       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10908     else
10909       test -d "$lt_sys_path" && \
10910         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10911     fi
10912   done
10913   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10914 BEGIN {RS=" "; FS="/|\n";} {
10915   lt_foo="";
10916   lt_count=0;
10917   for (lt_i = NF; lt_i > 0; lt_i--) {
10918     if ($lt_i != "" && $lt_i != ".") {
10919       if ($lt_i == "..") {
10920         lt_count++;
10921       } else {
10922         if (lt_count == 0) {
10923           lt_foo="/" $lt_i lt_foo;
10924         } else {
10925           lt_count--;
10926         }
10927       }
10928     }
10929   }
10930   if (lt_foo != "") { lt_freq[lt_foo]++; }
10931   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10932 }'`
10933   # AWK program above erroneously prepends '/' to C:/dos/paths
10934   # for these hosts.
10935   case $host_os in
10936     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10937       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10938   esac
10939   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10940 else
10941   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10942 fi
10943 library_names_spec=
10944 libname_spec='lib$name'
10945 soname_spec=
10946 shrext_cmds=".so"
10947 postinstall_cmds=
10948 postuninstall_cmds=
10949 finish_cmds=
10950 finish_eval=
10951 shlibpath_var=
10952 shlibpath_overrides_runpath=unknown
10953 version_type=none
10954 dynamic_linker="$host_os ld.so"
10955 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10956 need_lib_prefix=unknown
10957 hardcode_into_libs=no
10958
10959 # when you set need_version to no, make sure it does not cause -set_version
10960 # flags to be left without arguments
10961 need_version=unknown
10962
10963 case $host_os in
10964 aix3*)
10965   version_type=linux # correct to gnu/linux during the next big refactor
10966   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10967   shlibpath_var=LIBPATH
10968
10969   # AIX 3 has no versioning support, so we append a major version to the name.
10970   soname_spec='${libname}${release}${shared_ext}$major'
10971   ;;
10972
10973 aix[4-9]*)
10974   version_type=linux # correct to gnu/linux during the next big refactor
10975   need_lib_prefix=no
10976   need_version=no
10977   hardcode_into_libs=yes
10978   if test "$host_cpu" = ia64; then
10979     # AIX 5 supports IA64
10980     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10981     shlibpath_var=LD_LIBRARY_PATH
10982   else
10983     # With GCC up to 2.95.x, collect2 would create an import file
10984     # for dependence libraries.  The import file would start with
10985     # the line `#! .'.  This would cause the generated library to
10986     # depend on `.', always an invalid library.  This was fixed in
10987     # development snapshots of GCC prior to 3.0.
10988     case $host_os in
10989       aix4 | aix4.[01] | aix4.[01].*)
10990       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10991            echo ' yes '
10992            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10993         :
10994       else
10995         can_build_shared=no
10996       fi
10997       ;;
10998     esac
10999     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11000     # soname into executable. Probably we can add versioning support to
11001     # collect2, so additional links can be useful in future.
11002     if test "$aix_use_runtimelinking" = yes; then
11003       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11004       # instead of lib<name>.a to let people know that these are not
11005       # typical AIX shared libraries.
11006       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11007     else
11008       # We preserve .a as extension for shared libraries through AIX4.2
11009       # and later when we are not doing run time linking.
11010       library_names_spec='${libname}${release}.a $libname.a'
11011       soname_spec='${libname}${release}${shared_ext}$major'
11012     fi
11013     shlibpath_var=LIBPATH
11014   fi
11015   ;;
11016
11017 amigaos*)
11018   case $host_cpu in
11019   powerpc)
11020     # Since July 2007 AmigaOS4 officially supports .so libraries.
11021     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11022     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11023     ;;
11024   m68k)
11025     library_names_spec='$libname.ixlibrary $libname.a'
11026     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11027     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'
11028     ;;
11029   esac
11030   ;;
11031
11032 beos*)
11033   library_names_spec='${libname}${shared_ext}'
11034   dynamic_linker="$host_os ld.so"
11035   shlibpath_var=LIBRARY_PATH
11036   ;;
11037
11038 bsdi[45]*)
11039   version_type=linux # correct to gnu/linux during the next big refactor
11040   need_version=no
11041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11042   soname_spec='${libname}${release}${shared_ext}$major'
11043   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11044   shlibpath_var=LD_LIBRARY_PATH
11045   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11046   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11047   # the default ld.so.conf also contains /usr/contrib/lib and
11048   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11049   # libtool to hard-code these into programs
11050   ;;
11051
11052 cygwin* | mingw* | pw32* | cegcc*)
11053   version_type=windows
11054   shrext_cmds=".dll"
11055   need_version=no
11056   need_lib_prefix=no
11057
11058   case $GCC,$cc_basename in
11059   yes,*)
11060     # gcc
11061     library_names_spec='$libname.dll.a'
11062     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11063     postinstall_cmds='base_file=`basename \${file}`~
11064       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11065       dldir=$destdir/`dirname \$dlpath`~
11066       test -d \$dldir || mkdir -p \$dldir~
11067       $install_prog $dir/$dlname \$dldir/$dlname~
11068       chmod a+x \$dldir/$dlname~
11069       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11070         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11071       fi'
11072     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11073       dlpath=$dir/\$dldll~
11074        $RM \$dlpath'
11075     shlibpath_overrides_runpath=yes
11076
11077     case $host_os in
11078     cygwin*)
11079       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11080       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11081
11082       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11083       ;;
11084     mingw* | cegcc*)
11085       # MinGW DLLs use traditional 'lib' prefix
11086       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11087       ;;
11088     pw32*)
11089       # pw32 DLLs use 'pw' prefix rather than 'lib'
11090       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11091       ;;
11092     esac
11093     dynamic_linker='Win32 ld.exe'
11094     ;;
11095
11096   *,cl*)
11097     # Native MSVC
11098     libname_spec='$name'
11099     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11100     library_names_spec='${libname}.dll.lib'
11101
11102     case $build_os in
11103     mingw*)
11104       sys_lib_search_path_spec=
11105       lt_save_ifs=$IFS
11106       IFS=';'
11107       for lt_path in $LIB
11108       do
11109         IFS=$lt_save_ifs
11110         # Let DOS variable expansion print the short 8.3 style file name.
11111         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11112         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11113       done
11114       IFS=$lt_save_ifs
11115       # Convert to MSYS style.
11116       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11117       ;;
11118     cygwin*)
11119       # Convert to unix form, then to dos form, then back to unix form
11120       # but this time dos style (no spaces!) so that the unix form looks
11121       # like /cygdrive/c/PROGRA~1:/cygdr...
11122       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11123       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11124       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11125       ;;
11126     *)
11127       sys_lib_search_path_spec="$LIB"
11128       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11129         # It is most probably a Windows format PATH.
11130         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11131       else
11132         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11133       fi
11134       # FIXME: find the short name or the path components, as spaces are
11135       # common. (e.g. "Program Files" -> "PROGRA~1")
11136       ;;
11137     esac
11138
11139     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11140     postinstall_cmds='base_file=`basename \${file}`~
11141       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11142       dldir=$destdir/`dirname \$dlpath`~
11143       test -d \$dldir || mkdir -p \$dldir~
11144       $install_prog $dir/$dlname \$dldir/$dlname'
11145     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11146       dlpath=$dir/\$dldll~
11147        $RM \$dlpath'
11148     shlibpath_overrides_runpath=yes
11149     dynamic_linker='Win32 link.exe'
11150     ;;
11151
11152   *)
11153     # Assume MSVC wrapper
11154     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11155     dynamic_linker='Win32 ld.exe'
11156     ;;
11157   esac
11158   # FIXME: first we should search . and the directory the executable is in
11159   shlibpath_var=PATH
11160   ;;
11161
11162 darwin* | rhapsody*)
11163   dynamic_linker="$host_os dyld"
11164   version_type=darwin
11165   need_lib_prefix=no
11166   need_version=no
11167   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11168   soname_spec='${libname}${release}${major}$shared_ext'
11169   shlibpath_overrides_runpath=yes
11170   shlibpath_var=DYLD_LIBRARY_PATH
11171   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11172
11173   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11174   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11175   ;;
11176
11177 dgux*)
11178   version_type=linux # correct to gnu/linux during the next big refactor
11179   need_lib_prefix=no
11180   need_version=no
11181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11182   soname_spec='${libname}${release}${shared_ext}$major'
11183   shlibpath_var=LD_LIBRARY_PATH
11184   ;;
11185
11186 freebsd* | dragonfly*)
11187   # DragonFly does not have aout.  When/if they implement a new
11188   # versioning mechanism, adjust this.
11189   if test -x /usr/bin/objformat; then
11190     objformat=`/usr/bin/objformat`
11191   else
11192     case $host_os in
11193     freebsd[23].*) objformat=aout ;;
11194     *) objformat=elf ;;
11195     esac
11196   fi
11197   version_type=freebsd-$objformat
11198   case $version_type in
11199     freebsd-elf*)
11200       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11201       need_version=no
11202       need_lib_prefix=no
11203       ;;
11204     freebsd-*)
11205       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11206       need_version=yes
11207       ;;
11208   esac
11209   shlibpath_var=LD_LIBRARY_PATH
11210   case $host_os in
11211   freebsd2.*)
11212     shlibpath_overrides_runpath=yes
11213     ;;
11214   freebsd3.[01]* | freebsdelf3.[01]*)
11215     shlibpath_overrides_runpath=yes
11216     hardcode_into_libs=yes
11217     ;;
11218   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11219   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11220     shlibpath_overrides_runpath=no
11221     hardcode_into_libs=yes
11222     ;;
11223   *) # from 4.6 on, and DragonFly
11224     shlibpath_overrides_runpath=yes
11225     hardcode_into_libs=yes
11226     ;;
11227   esac
11228   ;;
11229
11230 gnu*)
11231   version_type=linux # correct to gnu/linux during the next big refactor
11232   need_lib_prefix=no
11233   need_version=no
11234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11235   soname_spec='${libname}${release}${shared_ext}$major'
11236   shlibpath_var=LD_LIBRARY_PATH
11237   shlibpath_overrides_runpath=no
11238   hardcode_into_libs=yes
11239   ;;
11240
11241 haiku*)
11242   version_type=linux # correct to gnu/linux during the next big refactor
11243   need_lib_prefix=no
11244   need_version=no
11245   dynamic_linker="$host_os runtime_loader"
11246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11247   soname_spec='${libname}${release}${shared_ext}$major'
11248   shlibpath_var=LIBRARY_PATH
11249   shlibpath_overrides_runpath=yes
11250   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11251   hardcode_into_libs=yes
11252   ;;
11253
11254 hpux9* | hpux10* | hpux11*)
11255   # Give a soname corresponding to the major version so that dld.sl refuses to
11256   # link against other versions.
11257   version_type=sunos
11258   need_lib_prefix=no
11259   need_version=no
11260   case $host_cpu in
11261   ia64*)
11262     shrext_cmds='.so'
11263     hardcode_into_libs=yes
11264     dynamic_linker="$host_os dld.so"
11265     shlibpath_var=LD_LIBRARY_PATH
11266     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11267     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11268     soname_spec='${libname}${release}${shared_ext}$major'
11269     if test "X$HPUX_IA64_MODE" = X32; then
11270       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11271     else
11272       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11273     fi
11274     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11275     ;;
11276   hppa*64*)
11277     shrext_cmds='.sl'
11278     hardcode_into_libs=yes
11279     dynamic_linker="$host_os dld.sl"
11280     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11281     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11282     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11283     soname_spec='${libname}${release}${shared_ext}$major'
11284     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11285     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11286     ;;
11287   *)
11288     shrext_cmds='.sl'
11289     dynamic_linker="$host_os dld.sl"
11290     shlibpath_var=SHLIB_PATH
11291     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11292     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11293     soname_spec='${libname}${release}${shared_ext}$major'
11294     ;;
11295   esac
11296   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11297   postinstall_cmds='chmod 555 $lib'
11298   # or fails outright, so override atomically:
11299   install_override_mode=555
11300   ;;
11301
11302 interix[3-9]*)
11303   version_type=linux # correct to gnu/linux during the next big refactor
11304   need_lib_prefix=no
11305   need_version=no
11306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11307   soname_spec='${libname}${release}${shared_ext}$major'
11308   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11309   shlibpath_var=LD_LIBRARY_PATH
11310   shlibpath_overrides_runpath=no
11311   hardcode_into_libs=yes
11312   ;;
11313
11314 irix5* | irix6* | nonstopux*)
11315   case $host_os in
11316     nonstopux*) version_type=nonstopux ;;
11317     *)
11318         if test "$lt_cv_prog_gnu_ld" = yes; then
11319                 version_type=linux # correct to gnu/linux during the next big refactor
11320         else
11321                 version_type=irix
11322         fi ;;
11323   esac
11324   need_lib_prefix=no
11325   need_version=no
11326   soname_spec='${libname}${release}${shared_ext}$major'
11327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11328   case $host_os in
11329   irix5* | nonstopux*)
11330     libsuff= shlibsuff=
11331     ;;
11332   *)
11333     case $LD in # libtool.m4 will add one of these switches to LD
11334     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11335       libsuff= shlibsuff= libmagic=32-bit;;
11336     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11337       libsuff=32 shlibsuff=N32 libmagic=N32;;
11338     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11339       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11340     *) libsuff= shlibsuff= libmagic=never-match;;
11341     esac
11342     ;;
11343   esac
11344   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11345   shlibpath_overrides_runpath=no
11346   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11347   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11348   hardcode_into_libs=yes
11349   ;;
11350
11351 # No shared lib support for Linux oldld, aout, or coff.
11352 linux*oldld* | linux*aout* | linux*coff*)
11353   dynamic_linker=no
11354   ;;
11355
11356 # This must be glibc/ELF.
11357 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11358   version_type=linux # correct to gnu/linux during the next big refactor
11359   need_lib_prefix=no
11360   need_version=no
11361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11362   soname_spec='${libname}${release}${shared_ext}$major'
11363   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11364   shlibpath_var=LD_LIBRARY_PATH
11365   shlibpath_overrides_runpath=no
11366
11367   # Some binutils ld are patched to set DT_RUNPATH
11368   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11369   $as_echo_n "(cached) " >&6
11370 else
11371   lt_cv_shlibpath_overrides_runpath=no
11372     save_LDFLAGS=$LDFLAGS
11373     save_libdir=$libdir
11374     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11375          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11376     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11377 /* end confdefs.h.  */
11378
11379 int
11380 main ()
11381 {
11382
11383   ;
11384   return 0;
11385 }
11386 _ACEOF
11387 if ac_fn_c_try_link "$LINENO"; then :
11388   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11389   lt_cv_shlibpath_overrides_runpath=yes
11390 fi
11391 fi
11392 rm -f core conftest.err conftest.$ac_objext \
11393     conftest$ac_exeext conftest.$ac_ext
11394     LDFLAGS=$save_LDFLAGS
11395     libdir=$save_libdir
11396
11397 fi
11398
11399   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11400
11401   # This implies no fast_install, which is unacceptable.
11402   # Some rework will be needed to allow for fast_install
11403   # before this can be enabled.
11404   hardcode_into_libs=yes
11405
11406   # Append ld.so.conf contents to the search path
11407   if test -f /etc/ld.so.conf; then
11408     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' ' '`
11409     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11410   fi
11411
11412   # We used to test for /lib/ld.so.1 and disable shared libraries on
11413   # powerpc, because MkLinux only supported shared libraries with the
11414   # GNU dynamic linker.  Since this was broken with cross compilers,
11415   # most powerpc-linux boxes support dynamic linking these days and
11416   # people can always --disable-shared, the test was removed, and we
11417   # assume the GNU/Linux dynamic linker is in use.
11418   dynamic_linker='GNU/Linux ld.so'
11419   ;;
11420
11421 netbsdelf*-gnu)
11422   version_type=linux
11423   need_lib_prefix=no
11424   need_version=no
11425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11426   soname_spec='${libname}${release}${shared_ext}$major'
11427   shlibpath_var=LD_LIBRARY_PATH
11428   shlibpath_overrides_runpath=no
11429   hardcode_into_libs=yes
11430   dynamic_linker='NetBSD ld.elf_so'
11431   ;;
11432
11433 netbsd*)
11434   version_type=sunos
11435   need_lib_prefix=no
11436   need_version=no
11437   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11438     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11439     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11440     dynamic_linker='NetBSD (a.out) ld.so'
11441   else
11442     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11443     soname_spec='${libname}${release}${shared_ext}$major'
11444     dynamic_linker='NetBSD ld.elf_so'
11445   fi
11446   shlibpath_var=LD_LIBRARY_PATH
11447   shlibpath_overrides_runpath=yes
11448   hardcode_into_libs=yes
11449   ;;
11450
11451 newsos6)
11452   version_type=linux # correct to gnu/linux during the next big refactor
11453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11454   shlibpath_var=LD_LIBRARY_PATH
11455   shlibpath_overrides_runpath=yes
11456   ;;
11457
11458 *nto* | *qnx*)
11459   version_type=qnx
11460   need_lib_prefix=no
11461   need_version=no
11462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11463   soname_spec='${libname}${release}${shared_ext}$major'
11464   shlibpath_var=LD_LIBRARY_PATH
11465   shlibpath_overrides_runpath=no
11466   hardcode_into_libs=yes
11467   dynamic_linker='ldqnx.so'
11468   ;;
11469
11470 openbsd*)
11471   version_type=sunos
11472   sys_lib_dlsearch_path_spec="/usr/lib"
11473   need_lib_prefix=no
11474   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11475   case $host_os in
11476     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11477     *)                          need_version=no  ;;
11478   esac
11479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11480   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11481   shlibpath_var=LD_LIBRARY_PATH
11482   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11483     case $host_os in
11484       openbsd2.[89] | openbsd2.[89].*)
11485         shlibpath_overrides_runpath=no
11486         ;;
11487       *)
11488         shlibpath_overrides_runpath=yes
11489         ;;
11490       esac
11491   else
11492     shlibpath_overrides_runpath=yes
11493   fi
11494   ;;
11495
11496 os2*)
11497   libname_spec='$name'
11498   shrext_cmds=".dll"
11499   need_lib_prefix=no
11500   library_names_spec='$libname${shared_ext} $libname.a'
11501   dynamic_linker='OS/2 ld.exe'
11502   shlibpath_var=LIBPATH
11503   ;;
11504
11505 osf3* | osf4* | osf5*)
11506   version_type=osf
11507   need_lib_prefix=no
11508   need_version=no
11509   soname_spec='${libname}${release}${shared_ext}$major'
11510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11511   shlibpath_var=LD_LIBRARY_PATH
11512   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11513   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11514   ;;
11515
11516 rdos*)
11517   dynamic_linker=no
11518   ;;
11519
11520 solaris*)
11521   version_type=linux # correct to gnu/linux during the next big refactor
11522   need_lib_prefix=no
11523   need_version=no
11524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11525   soname_spec='${libname}${release}${shared_ext}$major'
11526   shlibpath_var=LD_LIBRARY_PATH
11527   shlibpath_overrides_runpath=yes
11528   hardcode_into_libs=yes
11529   # ldd complains unless libraries are executable
11530   postinstall_cmds='chmod +x $lib'
11531   ;;
11532
11533 sunos4*)
11534   version_type=sunos
11535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11536   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11537   shlibpath_var=LD_LIBRARY_PATH
11538   shlibpath_overrides_runpath=yes
11539   if test "$with_gnu_ld" = yes; then
11540     need_lib_prefix=no
11541   fi
11542   need_version=yes
11543   ;;
11544
11545 sysv4 | sysv4.3*)
11546   version_type=linux # correct to gnu/linux during the next big refactor
11547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11548   soname_spec='${libname}${release}${shared_ext}$major'
11549   shlibpath_var=LD_LIBRARY_PATH
11550   case $host_vendor in
11551     sni)
11552       shlibpath_overrides_runpath=no
11553       need_lib_prefix=no
11554       runpath_var=LD_RUN_PATH
11555       ;;
11556     siemens)
11557       need_lib_prefix=no
11558       ;;
11559     motorola)
11560       need_lib_prefix=no
11561       need_version=no
11562       shlibpath_overrides_runpath=no
11563       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11564       ;;
11565   esac
11566   ;;
11567
11568 sysv4*MP*)
11569   if test -d /usr/nec ;then
11570     version_type=linux # correct to gnu/linux during the next big refactor
11571     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11572     soname_spec='$libname${shared_ext}.$major'
11573     shlibpath_var=LD_LIBRARY_PATH
11574   fi
11575   ;;
11576
11577 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11578   version_type=freebsd-elf
11579   need_lib_prefix=no
11580   need_version=no
11581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11582   soname_spec='${libname}${release}${shared_ext}$major'
11583   shlibpath_var=LD_LIBRARY_PATH
11584   shlibpath_overrides_runpath=yes
11585   hardcode_into_libs=yes
11586   if test "$with_gnu_ld" = yes; then
11587     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11588   else
11589     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11590     case $host_os in
11591       sco3.2v5*)
11592         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11593         ;;
11594     esac
11595   fi
11596   sys_lib_dlsearch_path_spec='/usr/lib'
11597   ;;
11598
11599 tpf*)
11600   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11601   version_type=linux # correct to gnu/linux during the next big refactor
11602   need_lib_prefix=no
11603   need_version=no
11604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11605   shlibpath_var=LD_LIBRARY_PATH
11606   shlibpath_overrides_runpath=no
11607   hardcode_into_libs=yes
11608   ;;
11609
11610 uts4*)
11611   version_type=linux # correct to gnu/linux during the next big refactor
11612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11613   soname_spec='${libname}${release}${shared_ext}$major'
11614   shlibpath_var=LD_LIBRARY_PATH
11615   ;;
11616
11617 *)
11618   dynamic_linker=no
11619   ;;
11620 esac
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11622 $as_echo "$dynamic_linker" >&6; }
11623 test "$dynamic_linker" = no && can_build_shared=no
11624
11625 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11626 if test "$GCC" = yes; then
11627   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11628 fi
11629
11630 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11631   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11632 fi
11633 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11634   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11635 fi
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11729 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11730 hardcode_action=
11731 if test -n "$hardcode_libdir_flag_spec" ||
11732    test -n "$runpath_var" ||
11733    test "X$hardcode_automatic" = "Xyes" ; then
11734
11735   # We can hardcode non-existent directories.
11736   if test "$hardcode_direct" != no &&
11737      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11738      # have to relink, otherwise we might link with an installed library
11739      # when we should be linking with a yet-to-be-installed one
11740      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11741      test "$hardcode_minus_L" != no; then
11742     # Linking always hardcodes the temporary library directory.
11743     hardcode_action=relink
11744   else
11745     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11746     hardcode_action=immediate
11747   fi
11748 else
11749   # We cannot hardcode anything, or else we can only hardcode existing
11750   # directories.
11751   hardcode_action=unsupported
11752 fi
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11754 $as_echo "$hardcode_action" >&6; }
11755
11756 if test "$hardcode_action" = relink ||
11757    test "$inherit_rpath" = yes; then
11758   # Fast installation is not supported
11759   enable_fast_install=no
11760 elif test "$shlibpath_overrides_runpath" = yes ||
11761      test "$enable_shared" = no; then
11762   # Fast installation is not necessary
11763   enable_fast_install=needless
11764 fi
11765
11766
11767
11768
11769
11770
11771   if test "x$enable_dlopen" != xyes; then
11772   enable_dlopen=unknown
11773   enable_dlopen_self=unknown
11774   enable_dlopen_self_static=unknown
11775 else
11776   lt_cv_dlopen=no
11777   lt_cv_dlopen_libs=
11778
11779   case $host_os in
11780   beos*)
11781     lt_cv_dlopen="load_add_on"
11782     lt_cv_dlopen_libs=
11783     lt_cv_dlopen_self=yes
11784     ;;
11785
11786   mingw* | pw32* | cegcc*)
11787     lt_cv_dlopen="LoadLibrary"
11788     lt_cv_dlopen_libs=
11789     ;;
11790
11791   cygwin*)
11792     lt_cv_dlopen="dlopen"
11793     lt_cv_dlopen_libs=
11794     ;;
11795
11796   darwin*)
11797   # if libdl is installed we need to link against it
11798     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11799 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11800 if ${ac_cv_lib_dl_dlopen+:} false; then :
11801   $as_echo_n "(cached) " >&6
11802 else
11803   ac_check_lib_save_LIBS=$LIBS
11804 LIBS="-ldl  $LIBS"
11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806 /* end confdefs.h.  */
11807
11808 /* Override any GCC internal prototype to avoid an error.
11809    Use char because int might match the return type of a GCC
11810    builtin and then its argument prototype would still apply.  */
11811 #ifdef __cplusplus
11812 extern "C"
11813 #endif
11814 char dlopen ();
11815 int
11816 main ()
11817 {
11818 return dlopen ();
11819   ;
11820   return 0;
11821 }
11822 _ACEOF
11823 if ac_fn_c_try_link "$LINENO"; then :
11824   ac_cv_lib_dl_dlopen=yes
11825 else
11826   ac_cv_lib_dl_dlopen=no
11827 fi
11828 rm -f core conftest.err conftest.$ac_objext \
11829     conftest$ac_exeext conftest.$ac_ext
11830 LIBS=$ac_check_lib_save_LIBS
11831 fi
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11833 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11834 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11835   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11836 else
11837
11838     lt_cv_dlopen="dyld"
11839     lt_cv_dlopen_libs=
11840     lt_cv_dlopen_self=yes
11841
11842 fi
11843
11844     ;;
11845
11846   *)
11847     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11848 if test "x$ac_cv_func_shl_load" = xyes; then :
11849   lt_cv_dlopen="shl_load"
11850 else
11851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11852 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11853 if ${ac_cv_lib_dld_shl_load+:} false; then :
11854   $as_echo_n "(cached) " >&6
11855 else
11856   ac_check_lib_save_LIBS=$LIBS
11857 LIBS="-ldld  $LIBS"
11858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11859 /* end confdefs.h.  */
11860
11861 /* Override any GCC internal prototype to avoid an error.
11862    Use char because int might match the return type of a GCC
11863    builtin and then its argument prototype would still apply.  */
11864 #ifdef __cplusplus
11865 extern "C"
11866 #endif
11867 char shl_load ();
11868 int
11869 main ()
11870 {
11871 return shl_load ();
11872   ;
11873   return 0;
11874 }
11875 _ACEOF
11876 if ac_fn_c_try_link "$LINENO"; then :
11877   ac_cv_lib_dld_shl_load=yes
11878 else
11879   ac_cv_lib_dld_shl_load=no
11880 fi
11881 rm -f core conftest.err conftest.$ac_objext \
11882     conftest$ac_exeext conftest.$ac_ext
11883 LIBS=$ac_check_lib_save_LIBS
11884 fi
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11886 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11887 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11888   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11889 else
11890   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11891 if test "x$ac_cv_func_dlopen" = xyes; then :
11892   lt_cv_dlopen="dlopen"
11893 else
11894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11895 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11896 if ${ac_cv_lib_dl_dlopen+:} false; then :
11897   $as_echo_n "(cached) " >&6
11898 else
11899   ac_check_lib_save_LIBS=$LIBS
11900 LIBS="-ldl  $LIBS"
11901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11902 /* end confdefs.h.  */
11903
11904 /* Override any GCC internal prototype to avoid an error.
11905    Use char because int might match the return type of a GCC
11906    builtin and then its argument prototype would still apply.  */
11907 #ifdef __cplusplus
11908 extern "C"
11909 #endif
11910 char dlopen ();
11911 int
11912 main ()
11913 {
11914 return dlopen ();
11915   ;
11916   return 0;
11917 }
11918 _ACEOF
11919 if ac_fn_c_try_link "$LINENO"; then :
11920   ac_cv_lib_dl_dlopen=yes
11921 else
11922   ac_cv_lib_dl_dlopen=no
11923 fi
11924 rm -f core conftest.err conftest.$ac_objext \
11925     conftest$ac_exeext conftest.$ac_ext
11926 LIBS=$ac_check_lib_save_LIBS
11927 fi
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11929 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11930 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11931   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11932 else
11933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11934 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11935 if ${ac_cv_lib_svld_dlopen+:} false; then :
11936   $as_echo_n "(cached) " >&6
11937 else
11938   ac_check_lib_save_LIBS=$LIBS
11939 LIBS="-lsvld  $LIBS"
11940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11941 /* end confdefs.h.  */
11942
11943 /* Override any GCC internal prototype to avoid an error.
11944    Use char because int might match the return type of a GCC
11945    builtin and then its argument prototype would still apply.  */
11946 #ifdef __cplusplus
11947 extern "C"
11948 #endif
11949 char dlopen ();
11950 int
11951 main ()
11952 {
11953 return dlopen ();
11954   ;
11955   return 0;
11956 }
11957 _ACEOF
11958 if ac_fn_c_try_link "$LINENO"; then :
11959   ac_cv_lib_svld_dlopen=yes
11960 else
11961   ac_cv_lib_svld_dlopen=no
11962 fi
11963 rm -f core conftest.err conftest.$ac_objext \
11964     conftest$ac_exeext conftest.$ac_ext
11965 LIBS=$ac_check_lib_save_LIBS
11966 fi
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11968 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11969 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11970   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11971 else
11972   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11973 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11974 if ${ac_cv_lib_dld_dld_link+:} false; then :
11975   $as_echo_n "(cached) " >&6
11976 else
11977   ac_check_lib_save_LIBS=$LIBS
11978 LIBS="-ldld  $LIBS"
11979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980 /* end confdefs.h.  */
11981
11982 /* Override any GCC internal prototype to avoid an error.
11983    Use char because int might match the return type of a GCC
11984    builtin and then its argument prototype would still apply.  */
11985 #ifdef __cplusplus
11986 extern "C"
11987 #endif
11988 char dld_link ();
11989 int
11990 main ()
11991 {
11992 return dld_link ();
11993   ;
11994   return 0;
11995 }
11996 _ACEOF
11997 if ac_fn_c_try_link "$LINENO"; then :
11998   ac_cv_lib_dld_dld_link=yes
11999 else
12000   ac_cv_lib_dld_dld_link=no
12001 fi
12002 rm -f core conftest.err conftest.$ac_objext \
12003     conftest$ac_exeext conftest.$ac_ext
12004 LIBS=$ac_check_lib_save_LIBS
12005 fi
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12007 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12008 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12009   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12010 fi
12011
12012
12013 fi
12014
12015
12016 fi
12017
12018
12019 fi
12020
12021
12022 fi
12023
12024
12025 fi
12026
12027     ;;
12028   esac
12029
12030   if test "x$lt_cv_dlopen" != xno; then
12031     enable_dlopen=yes
12032   else
12033     enable_dlopen=no
12034   fi
12035
12036   case $lt_cv_dlopen in
12037   dlopen)
12038     save_CPPFLAGS="$CPPFLAGS"
12039     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12040
12041     save_LDFLAGS="$LDFLAGS"
12042     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12043
12044     save_LIBS="$LIBS"
12045     LIBS="$lt_cv_dlopen_libs $LIBS"
12046
12047     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12048 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12049 if ${lt_cv_dlopen_self+:} false; then :
12050   $as_echo_n "(cached) " >&6
12051 else
12052           if test "$cross_compiling" = yes; then :
12053   lt_cv_dlopen_self=cross
12054 else
12055   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12056   lt_status=$lt_dlunknown
12057   cat > conftest.$ac_ext <<_LT_EOF
12058 #line $LINENO "configure"
12059 #include "confdefs.h"
12060
12061 #if HAVE_DLFCN_H
12062 #include <dlfcn.h>
12063 #endif
12064
12065 #include <stdio.h>
12066
12067 #ifdef RTLD_GLOBAL
12068 #  define LT_DLGLOBAL           RTLD_GLOBAL
12069 #else
12070 #  ifdef DL_GLOBAL
12071 #    define LT_DLGLOBAL         DL_GLOBAL
12072 #  else
12073 #    define LT_DLGLOBAL         0
12074 #  endif
12075 #endif
12076
12077 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12078    find out it does not work in some platform. */
12079 #ifndef LT_DLLAZY_OR_NOW
12080 #  ifdef RTLD_LAZY
12081 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12082 #  else
12083 #    ifdef DL_LAZY
12084 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12085 #    else
12086 #      ifdef RTLD_NOW
12087 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12088 #      else
12089 #        ifdef DL_NOW
12090 #          define LT_DLLAZY_OR_NOW      DL_NOW
12091 #        else
12092 #          define LT_DLLAZY_OR_NOW      0
12093 #        endif
12094 #      endif
12095 #    endif
12096 #  endif
12097 #endif
12098
12099 /* When -fvisbility=hidden is used, assume the code has been annotated
12100    correspondingly for the symbols needed.  */
12101 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12102 int fnord () __attribute__((visibility("default")));
12103 #endif
12104
12105 int fnord () { return 42; }
12106 int main ()
12107 {
12108   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12109   int status = $lt_dlunknown;
12110
12111   if (self)
12112     {
12113       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12114       else
12115         {
12116           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12117           else puts (dlerror ());
12118         }
12119       /* dlclose (self); */
12120     }
12121   else
12122     puts (dlerror ());
12123
12124   return status;
12125 }
12126 _LT_EOF
12127   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12128   (eval $ac_link) 2>&5
12129   ac_status=$?
12130   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12131   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12132     (./conftest; exit; ) >&5 2>/dev/null
12133     lt_status=$?
12134     case x$lt_status in
12135       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12136       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12137       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12138     esac
12139   else :
12140     # compilation failed
12141     lt_cv_dlopen_self=no
12142   fi
12143 fi
12144 rm -fr conftest*
12145
12146
12147 fi
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12149 $as_echo "$lt_cv_dlopen_self" >&6; }
12150
12151     if test "x$lt_cv_dlopen_self" = xyes; then
12152       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12153       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12154 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12155 if ${lt_cv_dlopen_self_static+:} false; then :
12156   $as_echo_n "(cached) " >&6
12157 else
12158           if test "$cross_compiling" = yes; then :
12159   lt_cv_dlopen_self_static=cross
12160 else
12161   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12162   lt_status=$lt_dlunknown
12163   cat > conftest.$ac_ext <<_LT_EOF
12164 #line $LINENO "configure"
12165 #include "confdefs.h"
12166
12167 #if HAVE_DLFCN_H
12168 #include <dlfcn.h>
12169 #endif
12170
12171 #include <stdio.h>
12172
12173 #ifdef RTLD_GLOBAL
12174 #  define LT_DLGLOBAL           RTLD_GLOBAL
12175 #else
12176 #  ifdef DL_GLOBAL
12177 #    define LT_DLGLOBAL         DL_GLOBAL
12178 #  else
12179 #    define LT_DLGLOBAL         0
12180 #  endif
12181 #endif
12182
12183 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12184    find out it does not work in some platform. */
12185 #ifndef LT_DLLAZY_OR_NOW
12186 #  ifdef RTLD_LAZY
12187 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12188 #  else
12189 #    ifdef DL_LAZY
12190 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12191 #    else
12192 #      ifdef RTLD_NOW
12193 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12194 #      else
12195 #        ifdef DL_NOW
12196 #          define LT_DLLAZY_OR_NOW      DL_NOW
12197 #        else
12198 #          define LT_DLLAZY_OR_NOW      0
12199 #        endif
12200 #      endif
12201 #    endif
12202 #  endif
12203 #endif
12204
12205 /* When -fvisbility=hidden is used, assume the code has been annotated
12206    correspondingly for the symbols needed.  */
12207 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12208 int fnord () __attribute__((visibility("default")));
12209 #endif
12210
12211 int fnord () { return 42; }
12212 int main ()
12213 {
12214   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12215   int status = $lt_dlunknown;
12216
12217   if (self)
12218     {
12219       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12220       else
12221         {
12222           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12223           else puts (dlerror ());
12224         }
12225       /* dlclose (self); */
12226     }
12227   else
12228     puts (dlerror ());
12229
12230   return status;
12231 }
12232 _LT_EOF
12233   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12234   (eval $ac_link) 2>&5
12235   ac_status=$?
12236   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12237   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12238     (./conftest; exit; ) >&5 2>/dev/null
12239     lt_status=$?
12240     case x$lt_status in
12241       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12242       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12243       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12244     esac
12245   else :
12246     # compilation failed
12247     lt_cv_dlopen_self_static=no
12248   fi
12249 fi
12250 rm -fr conftest*
12251
12252
12253 fi
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12255 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12256     fi
12257
12258     CPPFLAGS="$save_CPPFLAGS"
12259     LDFLAGS="$save_LDFLAGS"
12260     LIBS="$save_LIBS"
12261     ;;
12262   esac
12263
12264   case $lt_cv_dlopen_self in
12265   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12266   *) enable_dlopen_self=unknown ;;
12267   esac
12268
12269   case $lt_cv_dlopen_self_static in
12270   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12271   *) enable_dlopen_self_static=unknown ;;
12272   esac
12273 fi
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291 striplib=
12292 old_striplib=
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12294 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12295 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12296   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12297   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12299 $as_echo "yes" >&6; }
12300 else
12301 # FIXME - insert some real tests, host_os isn't really good enough
12302   case $host_os in
12303   darwin*)
12304     if test -n "$STRIP" ; then
12305       striplib="$STRIP -x"
12306       old_striplib="$STRIP -S"
12307       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12308 $as_echo "yes" >&6; }
12309     else
12310       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311 $as_echo "no" >&6; }
12312     fi
12313     ;;
12314   *)
12315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12316 $as_echo "no" >&6; }
12317     ;;
12318   esac
12319 fi
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332   # Report which library types will actually be built
12333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12334 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12336 $as_echo "$can_build_shared" >&6; }
12337
12338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12339 $as_echo_n "checking whether to build shared libraries... " >&6; }
12340   test "$can_build_shared" = "no" && enable_shared=no
12341
12342   # On AIX, shared libraries and static libraries use the same namespace, and
12343   # are all built from PIC.
12344   case $host_os in
12345   aix3*)
12346     test "$enable_shared" = yes && enable_static=no
12347     if test -n "$RANLIB"; then
12348       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12349       postinstall_cmds='$RANLIB $lib'
12350     fi
12351     ;;
12352
12353   aix[4-9]*)
12354     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12355       test "$enable_shared" = yes && enable_static=no
12356     fi
12357     ;;
12358   esac
12359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12360 $as_echo "$enable_shared" >&6; }
12361
12362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12363 $as_echo_n "checking whether to build static libraries... " >&6; }
12364   # Make sure either enable_shared or enable_static is yes.
12365   test "$enable_shared" = yes || enable_static=yes
12366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12367 $as_echo "$enable_static" >&6; }
12368
12369
12370
12371
12372 fi
12373 ac_ext=cpp
12374 ac_cpp='$CXXCPP $CPPFLAGS'
12375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12378
12379 CC="$lt_save_CC"
12380
12381       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12382     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12383     (test "X$CXX" != "Xg++"))) ; then
12384   ac_ext=cpp
12385 ac_cpp='$CXXCPP $CPPFLAGS'
12386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12390 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12391 if test -z "$CXXCPP"; then
12392   if ${ac_cv_prog_CXXCPP+:} false; then :
12393   $as_echo_n "(cached) " >&6
12394 else
12395       # Double quotes because CXXCPP needs to be expanded
12396     for CXXCPP in "$CXX -E" "/lib/cpp"
12397     do
12398       ac_preproc_ok=false
12399 for ac_cxx_preproc_warn_flag in '' yes
12400 do
12401   # Use a header file that comes with gcc, so configuring glibc
12402   # with a fresh cross-compiler works.
12403   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12404   # <limits.h> exists even on freestanding compilers.
12405   # On the NeXT, cc -E runs the code through the compiler's parser,
12406   # not just through cpp. "Syntax error" is here to catch this case.
12407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12408 /* end confdefs.h.  */
12409 #ifdef __STDC__
12410 # include <limits.h>
12411 #else
12412 # include <assert.h>
12413 #endif
12414                      Syntax error
12415 _ACEOF
12416 if ac_fn_cxx_try_cpp "$LINENO"; then :
12417
12418 else
12419   # Broken: fails on valid input.
12420 continue
12421 fi
12422 rm -f conftest.err conftest.i conftest.$ac_ext
12423
12424   # OK, works on sane cases.  Now check whether nonexistent headers
12425   # can be detected and how.
12426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12427 /* end confdefs.h.  */
12428 #include <ac_nonexistent.h>
12429 _ACEOF
12430 if ac_fn_cxx_try_cpp "$LINENO"; then :
12431   # Broken: success on invalid input.
12432 continue
12433 else
12434   # Passes both tests.
12435 ac_preproc_ok=:
12436 break
12437 fi
12438 rm -f conftest.err conftest.i conftest.$ac_ext
12439
12440 done
12441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12442 rm -f conftest.i conftest.err conftest.$ac_ext
12443 if $ac_preproc_ok; then :
12444   break
12445 fi
12446
12447     done
12448     ac_cv_prog_CXXCPP=$CXXCPP
12449
12450 fi
12451   CXXCPP=$ac_cv_prog_CXXCPP
12452 else
12453   ac_cv_prog_CXXCPP=$CXXCPP
12454 fi
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12456 $as_echo "$CXXCPP" >&6; }
12457 ac_preproc_ok=false
12458 for ac_cxx_preproc_warn_flag in '' yes
12459 do
12460   # Use a header file that comes with gcc, so configuring glibc
12461   # with a fresh cross-compiler works.
12462   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12463   # <limits.h> exists even on freestanding compilers.
12464   # On the NeXT, cc -E runs the code through the compiler's parser,
12465   # not just through cpp. "Syntax error" is here to catch this case.
12466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467 /* end confdefs.h.  */
12468 #ifdef __STDC__
12469 # include <limits.h>
12470 #else
12471 # include <assert.h>
12472 #endif
12473                      Syntax error
12474 _ACEOF
12475 if ac_fn_cxx_try_cpp "$LINENO"; then :
12476
12477 else
12478   # Broken: fails on valid input.
12479 continue
12480 fi
12481 rm -f conftest.err conftest.i conftest.$ac_ext
12482
12483   # OK, works on sane cases.  Now check whether nonexistent headers
12484   # can be detected and how.
12485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486 /* end confdefs.h.  */
12487 #include <ac_nonexistent.h>
12488 _ACEOF
12489 if ac_fn_cxx_try_cpp "$LINENO"; then :
12490   # Broken: success on invalid input.
12491 continue
12492 else
12493   # Passes both tests.
12494 ac_preproc_ok=:
12495 break
12496 fi
12497 rm -f conftest.err conftest.i conftest.$ac_ext
12498
12499 done
12500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12501 rm -f conftest.i conftest.err conftest.$ac_ext
12502 if $ac_preproc_ok; then :
12503
12504 else
12505   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12507 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12508 See \`config.log' for more details" "$LINENO" 5; }
12509 fi
12510
12511 ac_ext=cpp
12512 ac_cpp='$CXXCPP $CPPFLAGS'
12513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12516
12517 else
12518   _lt_caught_CXX_error=yes
12519 fi
12520
12521 ac_ext=cpp
12522 ac_cpp='$CXXCPP $CPPFLAGS'
12523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12526
12527 archive_cmds_need_lc_CXX=no
12528 allow_undefined_flag_CXX=
12529 always_export_symbols_CXX=no
12530 archive_expsym_cmds_CXX=
12531 compiler_needs_object_CXX=no
12532 export_dynamic_flag_spec_CXX=
12533 hardcode_direct_CXX=no
12534 hardcode_direct_absolute_CXX=no
12535 hardcode_libdir_flag_spec_CXX=
12536 hardcode_libdir_separator_CXX=
12537 hardcode_minus_L_CXX=no
12538 hardcode_shlibpath_var_CXX=unsupported
12539 hardcode_automatic_CXX=no
12540 inherit_rpath_CXX=no
12541 module_cmds_CXX=
12542 module_expsym_cmds_CXX=
12543 link_all_deplibs_CXX=unknown
12544 old_archive_cmds_CXX=$old_archive_cmds
12545 reload_flag_CXX=$reload_flag
12546 reload_cmds_CXX=$reload_cmds
12547 no_undefined_flag_CXX=
12548 whole_archive_flag_spec_CXX=
12549 enable_shared_with_static_runtimes_CXX=no
12550
12551 # Source file extension for C++ test sources.
12552 ac_ext=cpp
12553
12554 # Object file extension for compiled C++ test sources.
12555 objext=o
12556 objext_CXX=$objext
12557
12558 # No sense in running all these tests if we already determined that
12559 # the CXX compiler isn't working.  Some variables (like enable_shared)
12560 # are currently assumed to apply to all compilers on this platform,
12561 # and will be corrupted by setting them based on a non-working compiler.
12562 if test "$_lt_caught_CXX_error" != yes; then
12563   # Code to be used in simple compile tests
12564   lt_simple_compile_test_code="int some_variable = 0;"
12565
12566   # Code to be used in simple link tests
12567   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12568
12569   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12570
12571
12572
12573
12574
12575
12576 # If no C compiler was specified, use CC.
12577 LTCC=${LTCC-"$CC"}
12578
12579 # If no C compiler flags were specified, use CFLAGS.
12580 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12581
12582 # Allow CC to be a program name with arguments.
12583 compiler=$CC
12584
12585
12586   # save warnings/boilerplate of simple test code
12587   ac_outfile=conftest.$ac_objext
12588 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12589 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12590 _lt_compiler_boilerplate=`cat conftest.err`
12591 $RM conftest*
12592
12593   ac_outfile=conftest.$ac_objext
12594 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12595 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12596 _lt_linker_boilerplate=`cat conftest.err`
12597 $RM -r conftest*
12598
12599
12600   # Allow CC to be a program name with arguments.
12601   lt_save_CC=$CC
12602   lt_save_CFLAGS=$CFLAGS
12603   lt_save_LD=$LD
12604   lt_save_GCC=$GCC
12605   GCC=$GXX
12606   lt_save_with_gnu_ld=$with_gnu_ld
12607   lt_save_path_LD=$lt_cv_path_LD
12608   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12609     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12610   else
12611     $as_unset lt_cv_prog_gnu_ld
12612   fi
12613   if test -n "${lt_cv_path_LDCXX+set}"; then
12614     lt_cv_path_LD=$lt_cv_path_LDCXX
12615   else
12616     $as_unset lt_cv_path_LD
12617   fi
12618   test -z "${LDCXX+set}" || LD=$LDCXX
12619   CC=${CXX-"c++"}
12620   CFLAGS=$CXXFLAGS
12621   compiler=$CC
12622   compiler_CXX=$CC
12623   for cc_temp in $compiler""; do
12624   case $cc_temp in
12625     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12626     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12627     \-*) ;;
12628     *) break;;
12629   esac
12630 done
12631 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12632
12633
12634   if test -n "$compiler"; then
12635     # We don't want -fno-exception when compiling C++ code, so set the
12636     # no_builtin_flag separately
12637     if test "$GXX" = yes; then
12638       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12639     else
12640       lt_prog_compiler_no_builtin_flag_CXX=
12641     fi
12642
12643     if test "$GXX" = yes; then
12644       # Set up default GNU C++ configuration
12645
12646
12647
12648 # Check whether --with-gnu-ld was given.
12649 if test "${with_gnu_ld+set}" = set; then :
12650   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12651 else
12652   with_gnu_ld=no
12653 fi
12654
12655 ac_prog=ld
12656 if test "$GCC" = yes; then
12657   # Check if gcc -print-prog-name=ld gives a path.
12658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12659 $as_echo_n "checking for ld used by $CC... " >&6; }
12660   case $host in
12661   *-*-mingw*)
12662     # gcc leaves a trailing carriage return which upsets mingw
12663     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12664   *)
12665     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12666   esac
12667   case $ac_prog in
12668     # Accept absolute paths.
12669     [\\/]* | ?:[\\/]*)
12670       re_direlt='/[^/][^/]*/\.\./'
12671       # Canonicalize the pathname of ld
12672       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12673       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12674         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12675       done
12676       test -z "$LD" && LD="$ac_prog"
12677       ;;
12678   "")
12679     # If it fails, then pretend we aren't using GCC.
12680     ac_prog=ld
12681     ;;
12682   *)
12683     # If it is relative, then search for the first ld in PATH.
12684     with_gnu_ld=unknown
12685     ;;
12686   esac
12687 elif test "$with_gnu_ld" = yes; then
12688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12689 $as_echo_n "checking for GNU ld... " >&6; }
12690 else
12691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12692 $as_echo_n "checking for non-GNU ld... " >&6; }
12693 fi
12694 if ${lt_cv_path_LD+:} false; then :
12695   $as_echo_n "(cached) " >&6
12696 else
12697   if test -z "$LD"; then
12698   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12699   for ac_dir in $PATH; do
12700     IFS="$lt_save_ifs"
12701     test -z "$ac_dir" && ac_dir=.
12702     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12703       lt_cv_path_LD="$ac_dir/$ac_prog"
12704       # Check to see if the program is GNU ld.  I'd rather use --version,
12705       # but apparently some variants of GNU ld only accept -v.
12706       # Break only if it was the GNU/non-GNU ld that we prefer.
12707       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12708       *GNU* | *'with BFD'*)
12709         test "$with_gnu_ld" != no && break
12710         ;;
12711       *)
12712         test "$with_gnu_ld" != yes && break
12713         ;;
12714       esac
12715     fi
12716   done
12717   IFS="$lt_save_ifs"
12718 else
12719   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12720 fi
12721 fi
12722
12723 LD="$lt_cv_path_LD"
12724 if test -n "$LD"; then
12725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12726 $as_echo "$LD" >&6; }
12727 else
12728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12729 $as_echo "no" >&6; }
12730 fi
12731 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12733 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12734 if ${lt_cv_prog_gnu_ld+:} false; then :
12735   $as_echo_n "(cached) " >&6
12736 else
12737   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12738 case `$LD -v 2>&1 </dev/null` in
12739 *GNU* | *'with BFD'*)
12740   lt_cv_prog_gnu_ld=yes
12741   ;;
12742 *)
12743   lt_cv_prog_gnu_ld=no
12744   ;;
12745 esac
12746 fi
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12748 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12749 with_gnu_ld=$lt_cv_prog_gnu_ld
12750
12751
12752
12753
12754
12755
12756
12757       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12758       # archiving commands below assume that GNU ld is being used.
12759       if test "$with_gnu_ld" = yes; then
12760         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12761         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'
12762
12763         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12764         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12765
12766         # If archive_cmds runs LD, not CC, wlarc should be empty
12767         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12768         #     investigate it a little bit more. (MM)
12769         wlarc='${wl}'
12770
12771         # ancient GNU ld didn't support --whole-archive et. al.
12772         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12773           $GREP 'no-whole-archive' > /dev/null; then
12774           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12775         else
12776           whole_archive_flag_spec_CXX=
12777         fi
12778       else
12779         with_gnu_ld=no
12780         wlarc=
12781
12782         # A generic and very simple default shared library creation
12783         # command for GNU C++ for the case where it uses the native
12784         # linker, instead of GNU ld.  If possible, this setting should
12785         # overridden to take advantage of the native linker features on
12786         # the platform it is being used on.
12787         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12788       fi
12789
12790       # Commands to make compiler produce verbose output that lists
12791       # what "hidden" libraries, object files and flags are used when
12792       # linking a shared library.
12793       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12794
12795     else
12796       GXX=no
12797       with_gnu_ld=no
12798       wlarc=
12799     fi
12800
12801     # PORTME: fill in a description of your system's C++ link characteristics
12802     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12803 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12804     ld_shlibs_CXX=yes
12805     case $host_os in
12806       aix3*)
12807         # FIXME: insert proper C++ library support
12808         ld_shlibs_CXX=no
12809         ;;
12810       aix[4-9]*)
12811         if test "$host_cpu" = ia64; then
12812           # On IA64, the linker does run time linking by default, so we don't
12813           # have to do anything special.
12814           aix_use_runtimelinking=no
12815           exp_sym_flag='-Bexport'
12816           no_entry_flag=""
12817         else
12818           aix_use_runtimelinking=no
12819
12820           # Test if we are trying to use run time linking or normal
12821           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12822           # need to do runtime linking.
12823           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12824             for ld_flag in $LDFLAGS; do
12825               case $ld_flag in
12826               *-brtl*)
12827                 aix_use_runtimelinking=yes
12828                 break
12829                 ;;
12830               esac
12831             done
12832             ;;
12833           esac
12834
12835           exp_sym_flag='-bexport'
12836           no_entry_flag='-bnoentry'
12837         fi
12838
12839         # When large executables or shared objects are built, AIX ld can
12840         # have problems creating the table of contents.  If linking a library
12841         # or program results in "error TOC overflow" add -mminimal-toc to
12842         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12843         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12844
12845         archive_cmds_CXX=''
12846         hardcode_direct_CXX=yes
12847         hardcode_direct_absolute_CXX=yes
12848         hardcode_libdir_separator_CXX=':'
12849         link_all_deplibs_CXX=yes
12850         file_list_spec_CXX='${wl}-f,'
12851
12852         if test "$GXX" = yes; then
12853           case $host_os in aix4.[012]|aix4.[012].*)
12854           # We only want to do this on AIX 4.2 and lower, the check
12855           # below for broken collect2 doesn't work under 4.3+
12856           collect2name=`${CC} -print-prog-name=collect2`
12857           if test -f "$collect2name" &&
12858              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12859           then
12860             # We have reworked collect2
12861             :
12862           else
12863             # We have old collect2
12864             hardcode_direct_CXX=unsupported
12865             # It fails to find uninstalled libraries when the uninstalled
12866             # path is not listed in the libpath.  Setting hardcode_minus_L
12867             # to unsupported forces relinking
12868             hardcode_minus_L_CXX=yes
12869             hardcode_libdir_flag_spec_CXX='-L$libdir'
12870             hardcode_libdir_separator_CXX=
12871           fi
12872           esac
12873           shared_flag='-shared'
12874           if test "$aix_use_runtimelinking" = yes; then
12875             shared_flag="$shared_flag "'${wl}-G'
12876           fi
12877         else
12878           # not using gcc
12879           if test "$host_cpu" = ia64; then
12880           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12881           # chokes on -Wl,-G. The following line is correct:
12882           shared_flag='-G'
12883           else
12884             if test "$aix_use_runtimelinking" = yes; then
12885               shared_flag='${wl}-G'
12886             else
12887               shared_flag='${wl}-bM:SRE'
12888             fi
12889           fi
12890         fi
12891
12892         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12893         # It seems that -bexpall does not export symbols beginning with
12894         # underscore (_), so it is better to generate a list of symbols to
12895         # export.
12896         always_export_symbols_CXX=yes
12897         if test "$aix_use_runtimelinking" = yes; then
12898           # Warning - without using the other runtime loading flags (-brtl),
12899           # -berok will link without error, but may produce a broken library.
12900           allow_undefined_flag_CXX='-berok'
12901           # Determine the default libpath from the value encoded in an empty
12902           # executable.
12903           if test "${lt_cv_aix_libpath+set}" = set; then
12904   aix_libpath=$lt_cv_aix_libpath
12905 else
12906   if ${lt_cv_aix_libpath__CXX+:} false; then :
12907   $as_echo_n "(cached) " >&6
12908 else
12909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12910 /* end confdefs.h.  */
12911
12912 int
12913 main ()
12914 {
12915
12916   ;
12917   return 0;
12918 }
12919 _ACEOF
12920 if ac_fn_cxx_try_link "$LINENO"; then :
12921
12922   lt_aix_libpath_sed='
12923       /Import File Strings/,/^$/ {
12924           /^0/ {
12925               s/^0  *\([^ ]*\) *$/\1/
12926               p
12927           }
12928       }'
12929   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12930   # Check for a 64-bit object if we didn't find anything.
12931   if test -z "$lt_cv_aix_libpath__CXX"; then
12932     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12933   fi
12934 fi
12935 rm -f core conftest.err conftest.$ac_objext \
12936     conftest$ac_exeext conftest.$ac_ext
12937   if test -z "$lt_cv_aix_libpath__CXX"; then
12938     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12939   fi
12940
12941 fi
12942
12943   aix_libpath=$lt_cv_aix_libpath__CXX
12944 fi
12945
12946           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12947
12948           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"
12949         else
12950           if test "$host_cpu" = ia64; then
12951             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12952             allow_undefined_flag_CXX="-z nodefs"
12953             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"
12954           else
12955             # Determine the default libpath from the value encoded in an
12956             # empty executable.
12957             if test "${lt_cv_aix_libpath+set}" = set; then
12958   aix_libpath=$lt_cv_aix_libpath
12959 else
12960   if ${lt_cv_aix_libpath__CXX+:} false; then :
12961   $as_echo_n "(cached) " >&6
12962 else
12963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12964 /* end confdefs.h.  */
12965
12966 int
12967 main ()
12968 {
12969
12970   ;
12971   return 0;
12972 }
12973 _ACEOF
12974 if ac_fn_cxx_try_link "$LINENO"; then :
12975
12976   lt_aix_libpath_sed='
12977       /Import File Strings/,/^$/ {
12978           /^0/ {
12979               s/^0  *\([^ ]*\) *$/\1/
12980               p
12981           }
12982       }'
12983   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12984   # Check for a 64-bit object if we didn't find anything.
12985   if test -z "$lt_cv_aix_libpath__CXX"; then
12986     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12987   fi
12988 fi
12989 rm -f core conftest.err conftest.$ac_objext \
12990     conftest$ac_exeext conftest.$ac_ext
12991   if test -z "$lt_cv_aix_libpath__CXX"; then
12992     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12993   fi
12994
12995 fi
12996
12997   aix_libpath=$lt_cv_aix_libpath__CXX
12998 fi
12999
13000             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13001             # Warning - without using the other run time loading flags,
13002             # -berok will link without error, but may produce a broken library.
13003             no_undefined_flag_CXX=' ${wl}-bernotok'
13004             allow_undefined_flag_CXX=' ${wl}-berok'
13005             if test "$with_gnu_ld" = yes; then
13006               # We only use this code for GNU lds that support --whole-archive.
13007               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13008             else
13009               # Exported symbols can be pulled into shared objects from archives
13010               whole_archive_flag_spec_CXX='$convenience'
13011             fi
13012             archive_cmds_need_lc_CXX=yes
13013             # This is similar to how AIX traditionally builds its shared
13014             # libraries.
13015             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'
13016           fi
13017         fi
13018         ;;
13019
13020       beos*)
13021         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13022           allow_undefined_flag_CXX=unsupported
13023           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13024           # support --undefined.  This deserves some investigation.  FIXME
13025           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13026         else
13027           ld_shlibs_CXX=no
13028         fi
13029         ;;
13030
13031       chorus*)
13032         case $cc_basename in
13033           *)
13034           # FIXME: insert proper C++ library support
13035           ld_shlibs_CXX=no
13036           ;;
13037         esac
13038         ;;
13039
13040       cygwin* | mingw* | pw32* | cegcc*)
13041         case $GXX,$cc_basename in
13042         ,cl* | no,cl*)
13043           # Native MSVC
13044           # hardcode_libdir_flag_spec is actually meaningless, as there is
13045           # no search path for DLLs.
13046           hardcode_libdir_flag_spec_CXX=' '
13047           allow_undefined_flag_CXX=unsupported
13048           always_export_symbols_CXX=yes
13049           file_list_spec_CXX='@'
13050           # Tell ltmain to make .lib files, not .a files.
13051           libext=lib
13052           # Tell ltmain to make .dll files, not .so files.
13053           shrext_cmds=".dll"
13054           # FIXME: Setting linknames here is a bad hack.
13055           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13056           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13057               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13058             else
13059               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13060             fi~
13061             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13062             linknames='
13063           # The linker will not automatically build a static lib if we build a DLL.
13064           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13065           enable_shared_with_static_runtimes_CXX=yes
13066           # Don't use ranlib
13067           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13068           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13069             lt_tool_outputfile="@TOOL_OUTPUT@"~
13070             case $lt_outputfile in
13071               *.exe|*.EXE) ;;
13072               *)
13073                 lt_outputfile="$lt_outputfile.exe"
13074                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13075                 ;;
13076             esac~
13077             func_to_tool_file "$lt_outputfile"~
13078             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13079               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13080               $RM "$lt_outputfile.manifest";
13081             fi'
13082           ;;
13083         *)
13084           # g++
13085           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13086           # as there is no search path for DLLs.
13087           hardcode_libdir_flag_spec_CXX='-L$libdir'
13088           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13089           allow_undefined_flag_CXX=unsupported
13090           always_export_symbols_CXX=no
13091           enable_shared_with_static_runtimes_CXX=yes
13092
13093           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13094             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'
13095             # If the export-symbols file already is a .def file (1st line
13096             # is EXPORTS), use it as is; otherwise, prepend...
13097             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13098               cp $export_symbols $output_objdir/$soname.def;
13099             else
13100               echo EXPORTS > $output_objdir/$soname.def;
13101               cat $export_symbols >> $output_objdir/$soname.def;
13102             fi~
13103             $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'
13104           else
13105             ld_shlibs_CXX=no
13106           fi
13107           ;;
13108         esac
13109         ;;
13110       darwin* | rhapsody*)
13111
13112
13113   archive_cmds_need_lc_CXX=no
13114   hardcode_direct_CXX=no
13115   hardcode_automatic_CXX=yes
13116   hardcode_shlibpath_var_CXX=unsupported
13117   if test "$lt_cv_ld_force_load" = "yes"; then
13118     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\"`'
13119
13120   else
13121     whole_archive_flag_spec_CXX=''
13122   fi
13123   link_all_deplibs_CXX=yes
13124   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13125   case $cc_basename in
13126      ifort*) _lt_dar_can_shared=yes ;;
13127      *) _lt_dar_can_shared=$GCC ;;
13128   esac
13129   if test "$_lt_dar_can_shared" = "yes"; then
13130     output_verbose_link_cmd=func_echo_all
13131     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}"
13132     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13133     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}"
13134     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}"
13135        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13136       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}"
13137       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}"
13138     fi
13139
13140   else
13141   ld_shlibs_CXX=no
13142   fi
13143
13144         ;;
13145
13146       dgux*)
13147         case $cc_basename in
13148           ec++*)
13149             # FIXME: insert proper C++ library support
13150             ld_shlibs_CXX=no
13151             ;;
13152           ghcx*)
13153             # Green Hills C++ Compiler
13154             # FIXME: insert proper C++ library support
13155             ld_shlibs_CXX=no
13156             ;;
13157           *)
13158             # FIXME: insert proper C++ library support
13159             ld_shlibs_CXX=no
13160             ;;
13161         esac
13162         ;;
13163
13164       freebsd2.*)
13165         # C++ shared libraries reported to be fairly broken before
13166         # switch to ELF
13167         ld_shlibs_CXX=no
13168         ;;
13169
13170       freebsd-elf*)
13171         archive_cmds_need_lc_CXX=no
13172         ;;
13173
13174       freebsd* | dragonfly*)
13175         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13176         # conventions
13177         ld_shlibs_CXX=yes
13178         ;;
13179
13180       gnu*)
13181         ;;
13182
13183       haiku*)
13184         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13185         link_all_deplibs_CXX=yes
13186         ;;
13187
13188       hpux9*)
13189         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13190         hardcode_libdir_separator_CXX=:
13191         export_dynamic_flag_spec_CXX='${wl}-E'
13192         hardcode_direct_CXX=yes
13193         hardcode_minus_L_CXX=yes # Not in the search PATH,
13194                                              # but as the default
13195                                              # location of the library.
13196
13197         case $cc_basename in
13198           CC*)
13199             # FIXME: insert proper C++ library support
13200             ld_shlibs_CXX=no
13201             ;;
13202           aCC*)
13203             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'
13204             # Commands to make compiler produce verbose output that lists
13205             # what "hidden" libraries, object files and flags are used when
13206             # linking a shared library.
13207             #
13208             # There doesn't appear to be a way to prevent this compiler from
13209             # explicitly linking system object files so we need to strip them
13210             # from the output so that they don't get included in the library
13211             # dependencies.
13212             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"'
13213             ;;
13214           *)
13215             if test "$GXX" = yes; then
13216               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'
13217             else
13218               # FIXME: insert proper C++ library support
13219               ld_shlibs_CXX=no
13220             fi
13221             ;;
13222         esac
13223         ;;
13224
13225       hpux10*|hpux11*)
13226         if test $with_gnu_ld = no; then
13227           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13228           hardcode_libdir_separator_CXX=:
13229
13230           case $host_cpu in
13231             hppa*64*|ia64*)
13232               ;;
13233             *)
13234               export_dynamic_flag_spec_CXX='${wl}-E'
13235               ;;
13236           esac
13237         fi
13238         case $host_cpu in
13239           hppa*64*|ia64*)
13240             hardcode_direct_CXX=no
13241             hardcode_shlibpath_var_CXX=no
13242             ;;
13243           *)
13244             hardcode_direct_CXX=yes
13245             hardcode_direct_absolute_CXX=yes
13246             hardcode_minus_L_CXX=yes # Not in the search PATH,
13247                                                  # but as the default
13248                                                  # location of the library.
13249             ;;
13250         esac
13251
13252         case $cc_basename in
13253           CC*)
13254             # FIXME: insert proper C++ library support
13255             ld_shlibs_CXX=no
13256             ;;
13257           aCC*)
13258             case $host_cpu in
13259               hppa*64*)
13260                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13261                 ;;
13262               ia64*)
13263                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13264                 ;;
13265               *)
13266                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13267                 ;;
13268             esac
13269             # Commands to make compiler produce verbose output that lists
13270             # what "hidden" libraries, object files and flags are used when
13271             # linking a shared library.
13272             #
13273             # There doesn't appear to be a way to prevent this compiler from
13274             # explicitly linking system object files so we need to strip them
13275             # from the output so that they don't get included in the library
13276             # dependencies.
13277             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"'
13278             ;;
13279           *)
13280             if test "$GXX" = yes; then
13281               if test $with_gnu_ld = no; then
13282                 case $host_cpu in
13283                   hppa*64*)
13284                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13285                     ;;
13286                   ia64*)
13287                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13288                     ;;
13289                   *)
13290                     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'
13291                     ;;
13292                 esac
13293               fi
13294             else
13295               # FIXME: insert proper C++ library support
13296               ld_shlibs_CXX=no
13297             fi
13298             ;;
13299         esac
13300         ;;
13301
13302       interix[3-9]*)
13303         hardcode_direct_CXX=no
13304         hardcode_shlibpath_var_CXX=no
13305         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13306         export_dynamic_flag_spec_CXX='${wl}-E'
13307         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13308         # Instead, shared libraries are loaded at an image base (0x10000000 by
13309         # default) and relocated if they conflict, which is a slow very memory
13310         # consuming and fragmenting process.  To avoid this, we pick a random,
13311         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13312         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13313         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'
13314         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'
13315         ;;
13316       irix5* | irix6*)
13317         case $cc_basename in
13318           CC*)
13319             # SGI C++
13320             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'
13321
13322             # Archives containing C++ object files must be created using
13323             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13324             # necessary to make sure instantiated templates are included
13325             # in the archive.
13326             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13327             ;;
13328           *)
13329             if test "$GXX" = yes; then
13330               if test "$with_gnu_ld" = no; then
13331                 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'
13332               else
13333                 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'
13334               fi
13335             fi
13336             link_all_deplibs_CXX=yes
13337             ;;
13338         esac
13339         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13340         hardcode_libdir_separator_CXX=:
13341         inherit_rpath_CXX=yes
13342         ;;
13343
13344       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13345         case $cc_basename in
13346           KCC*)
13347             # Kuck and Associates, Inc. (KAI) C++ Compiler
13348
13349             # KCC will only create a shared library if the output file
13350             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13351             # to its proper name (with version) after linking.
13352             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'
13353             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'
13354             # Commands to make compiler produce verbose output that lists
13355             # what "hidden" libraries, object files and flags are used when
13356             # linking a shared library.
13357             #
13358             # There doesn't appear to be a way to prevent this compiler from
13359             # explicitly linking system object files so we need to strip them
13360             # from the output so that they don't get included in the library
13361             # dependencies.
13362             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"'
13363
13364             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13365             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13366
13367             # Archives containing C++ object files must be created using
13368             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13369             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13370             ;;
13371           icpc* | ecpc* )
13372             # Intel C++
13373             with_gnu_ld=yes
13374             # version 8.0 and above of icpc choke on multiply defined symbols
13375             # if we add $predep_objects and $postdep_objects, however 7.1 and
13376             # earlier do not add the objects themselves.
13377             case `$CC -V 2>&1` in
13378               *"Version 7."*)
13379                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13380                 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'
13381                 ;;
13382               *)  # Version 8.0 or newer
13383                 tmp_idyn=
13384                 case $host_cpu in
13385                   ia64*) tmp_idyn=' -i_dynamic';;
13386                 esac
13387                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13388                 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'
13389                 ;;
13390             esac
13391             archive_cmds_need_lc_CXX=no
13392             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13393             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13394             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13395             ;;
13396           pgCC* | pgcpp*)
13397             # Portland Group C++ compiler
13398             case `$CC -V` in
13399             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13400               prelink_cmds_CXX='tpldir=Template.dir~
13401                 rm -rf $tpldir~
13402                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13403                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13404               old_archive_cmds_CXX='tpldir=Template.dir~
13405                 rm -rf $tpldir~
13406                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13407                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13408                 $RANLIB $oldlib'
13409               archive_cmds_CXX='tpldir=Template.dir~
13410                 rm -rf $tpldir~
13411                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13412                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13413               archive_expsym_cmds_CXX='tpldir=Template.dir~
13414                 rm -rf $tpldir~
13415                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13416                 $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'
13417               ;;
13418             *) # Version 6 and above use weak symbols
13419               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13420               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'
13421               ;;
13422             esac
13423
13424             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13425             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13426             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'
13427             ;;
13428           cxx*)
13429             # Compaq C++
13430             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13431             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'
13432
13433             runpath_var=LD_RUN_PATH
13434             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13435             hardcode_libdir_separator_CXX=:
13436
13437             # Commands to make compiler produce verbose output that lists
13438             # what "hidden" libraries, object files and flags are used when
13439             # linking a shared library.
13440             #
13441             # There doesn't appear to be a way to prevent this compiler from
13442             # explicitly linking system object files so we need to strip them
13443             # from the output so that they don't get included in the library
13444             # dependencies.
13445             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'
13446             ;;
13447           xl* | mpixl* | bgxl*)
13448             # IBM XL 8.0 on PPC, with GNU ld
13449             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13450             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13451             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13452             if test "x$supports_anon_versioning" = xyes; then
13453               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13454                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13455                 echo "local: *; };" >> $output_objdir/$libname.ver~
13456                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13457             fi
13458             ;;
13459           *)
13460             case `$CC -V 2>&1 | sed 5q` in
13461             *Sun\ C*)
13462               # Sun C++ 5.9
13463               no_undefined_flag_CXX=' -zdefs'
13464               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13465               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'
13466               hardcode_libdir_flag_spec_CXX='-R$libdir'
13467               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'
13468               compiler_needs_object_CXX=yes
13469
13470               # Not sure whether something based on
13471               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13472               # would be better.
13473               output_verbose_link_cmd='func_echo_all'
13474
13475               # Archives containing C++ object files must be created using
13476               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13477               # necessary to make sure instantiated templates are included
13478               # in the archive.
13479               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13480               ;;
13481             esac
13482             ;;
13483         esac
13484         ;;
13485
13486       lynxos*)
13487         # FIXME: insert proper C++ library support
13488         ld_shlibs_CXX=no
13489         ;;
13490
13491       m88k*)
13492         # FIXME: insert proper C++ library support
13493         ld_shlibs_CXX=no
13494         ;;
13495
13496       mvs*)
13497         case $cc_basename in
13498           cxx*)
13499             # FIXME: insert proper C++ library support
13500             ld_shlibs_CXX=no
13501             ;;
13502           *)
13503             # FIXME: insert proper C++ library support
13504             ld_shlibs_CXX=no
13505             ;;
13506         esac
13507         ;;
13508
13509       netbsd*)
13510         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13511           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13512           wlarc=
13513           hardcode_libdir_flag_spec_CXX='-R$libdir'
13514           hardcode_direct_CXX=yes
13515           hardcode_shlibpath_var_CXX=no
13516         fi
13517         # Workaround some broken pre-1.5 toolchains
13518         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13519         ;;
13520
13521       *nto* | *qnx*)
13522         ld_shlibs_CXX=yes
13523         ;;
13524
13525       openbsd2*)
13526         # C++ shared libraries are fairly broken
13527         ld_shlibs_CXX=no
13528         ;;
13529
13530       openbsd*)
13531         if test -f /usr/libexec/ld.so; then
13532           hardcode_direct_CXX=yes
13533           hardcode_shlibpath_var_CXX=no
13534           hardcode_direct_absolute_CXX=yes
13535           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13536           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13537           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13538             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13539             export_dynamic_flag_spec_CXX='${wl}-E'
13540             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13541           fi
13542           output_verbose_link_cmd=func_echo_all
13543         else
13544           ld_shlibs_CXX=no
13545         fi
13546         ;;
13547
13548       osf3* | osf4* | osf5*)
13549         case $cc_basename in
13550           KCC*)
13551             # Kuck and Associates, Inc. (KAI) C++ Compiler
13552
13553             # KCC will only create a shared library if the output file
13554             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13555             # to its proper name (with version) after linking.
13556             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'
13557
13558             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13559             hardcode_libdir_separator_CXX=:
13560
13561             # Archives containing C++ object files must be created using
13562             # the KAI C++ compiler.
13563             case $host in
13564               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13565               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13566             esac
13567             ;;
13568           RCC*)
13569             # Rational C++ 2.4.1
13570             # FIXME: insert proper C++ library support
13571             ld_shlibs_CXX=no
13572             ;;
13573           cxx*)
13574             case $host in
13575               osf3*)
13576                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13577                 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'
13578                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13579                 ;;
13580               *)
13581                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13582                 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'
13583                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13584                   echo "-hidden">> $lib.exp~
13585                   $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~
13586                   $RM $lib.exp'
13587                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13588                 ;;
13589             esac
13590
13591             hardcode_libdir_separator_CXX=:
13592
13593             # Commands to make compiler produce verbose output that lists
13594             # what "hidden" libraries, object files and flags are used when
13595             # linking a shared library.
13596             #
13597             # There doesn't appear to be a way to prevent this compiler from
13598             # explicitly linking system object files so we need to strip them
13599             # from the output so that they don't get included in the library
13600             # dependencies.
13601             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"'
13602             ;;
13603           *)
13604             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13605               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13606               case $host in
13607                 osf3*)
13608                   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'
13609                   ;;
13610                 *)
13611                   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'
13612                   ;;
13613               esac
13614
13615               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13616               hardcode_libdir_separator_CXX=:
13617
13618               # Commands to make compiler produce verbose output that lists
13619               # what "hidden" libraries, object files and flags are used when
13620               # linking a shared library.
13621               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13622
13623             else
13624               # FIXME: insert proper C++ library support
13625               ld_shlibs_CXX=no
13626             fi
13627             ;;
13628         esac
13629         ;;
13630
13631       psos*)
13632         # FIXME: insert proper C++ library support
13633         ld_shlibs_CXX=no
13634         ;;
13635
13636       sunos4*)
13637         case $cc_basename in
13638           CC*)
13639             # Sun C++ 4.x
13640             # FIXME: insert proper C++ library support
13641             ld_shlibs_CXX=no
13642             ;;
13643           lcc*)
13644             # Lucid
13645             # FIXME: insert proper C++ library support
13646             ld_shlibs_CXX=no
13647             ;;
13648           *)
13649             # FIXME: insert proper C++ library support
13650             ld_shlibs_CXX=no
13651             ;;
13652         esac
13653         ;;
13654
13655       solaris*)
13656         case $cc_basename in
13657           CC* | sunCC*)
13658             # Sun C++ 4.2, 5.x and Centerline C++
13659             archive_cmds_need_lc_CXX=yes
13660             no_undefined_flag_CXX=' -zdefs'
13661             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13662             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13663               $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'
13664
13665             hardcode_libdir_flag_spec_CXX='-R$libdir'
13666             hardcode_shlibpath_var_CXX=no
13667             case $host_os in
13668               solaris2.[0-5] | solaris2.[0-5].*) ;;
13669               *)
13670                 # The compiler driver will combine and reorder linker options,
13671                 # but understands `-z linker_flag'.
13672                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13673                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13674                 ;;
13675             esac
13676             link_all_deplibs_CXX=yes
13677
13678             output_verbose_link_cmd='func_echo_all'
13679
13680             # Archives containing C++ object files must be created using
13681             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13682             # necessary to make sure instantiated templates are included
13683             # in the archive.
13684             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13685             ;;
13686           gcx*)
13687             # Green Hills C++ Compiler
13688             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13689
13690             # The C++ compiler must be used to create the archive.
13691             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13692             ;;
13693           *)
13694             # GNU C++ compiler with Solaris linker
13695             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13696               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13697               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13698                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13699                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13700                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13701
13702                 # Commands to make compiler produce verbose output that lists
13703                 # what "hidden" libraries, object files and flags are used when
13704                 # linking a shared library.
13705                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13706               else
13707                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13708                 # platform.
13709                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13710                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13711                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13712
13713                 # Commands to make compiler produce verbose output that lists
13714                 # what "hidden" libraries, object files and flags are used when
13715                 # linking a shared library.
13716                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13717               fi
13718
13719               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13720               case $host_os in
13721                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13722                 *)
13723                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13724                   ;;
13725               esac
13726             fi
13727             ;;
13728         esac
13729         ;;
13730
13731     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13732       no_undefined_flag_CXX='${wl}-z,text'
13733       archive_cmds_need_lc_CXX=no
13734       hardcode_shlibpath_var_CXX=no
13735       runpath_var='LD_RUN_PATH'
13736
13737       case $cc_basename in
13738         CC*)
13739           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13740           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13741           ;;
13742         *)
13743           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13744           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13745           ;;
13746       esac
13747       ;;
13748
13749       sysv5* | sco3.2v5* | sco5v6*)
13750         # Note: We can NOT use -z defs as we might desire, because we do not
13751         # link with -lc, and that would cause any symbols used from libc to
13752         # always be unresolved, which means just about no library would
13753         # ever link correctly.  If we're not using GNU ld we use -z text
13754         # though, which does catch some bad symbols but isn't as heavy-handed
13755         # as -z defs.
13756         no_undefined_flag_CXX='${wl}-z,text'
13757         allow_undefined_flag_CXX='${wl}-z,nodefs'
13758         archive_cmds_need_lc_CXX=no
13759         hardcode_shlibpath_var_CXX=no
13760         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13761         hardcode_libdir_separator_CXX=':'
13762         link_all_deplibs_CXX=yes
13763         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13764         runpath_var='LD_RUN_PATH'
13765
13766         case $cc_basename in
13767           CC*)
13768             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13769             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13770             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13771               '"$old_archive_cmds_CXX"
13772             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13773               '"$reload_cmds_CXX"
13774             ;;
13775           *)
13776             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13777             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13778             ;;
13779         esac
13780       ;;
13781
13782       tandem*)
13783         case $cc_basename in
13784           NCC*)
13785             # NonStop-UX NCC 3.20
13786             # FIXME: insert proper C++ library support
13787             ld_shlibs_CXX=no
13788             ;;
13789           *)
13790             # FIXME: insert proper C++ library support
13791             ld_shlibs_CXX=no
13792             ;;
13793         esac
13794         ;;
13795
13796       vxworks*)
13797         # FIXME: insert proper C++ library support
13798         ld_shlibs_CXX=no
13799         ;;
13800
13801       *)
13802         # FIXME: insert proper C++ library support
13803         ld_shlibs_CXX=no
13804         ;;
13805     esac
13806
13807     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13808 $as_echo "$ld_shlibs_CXX" >&6; }
13809     test "$ld_shlibs_CXX" = no && can_build_shared=no
13810
13811     GCC_CXX="$GXX"
13812     LD_CXX="$LD"
13813
13814     ## CAVEAT EMPTOR:
13815     ## There is no encapsulation within the following macros, do not change
13816     ## the running order or otherwise move them around unless you know exactly
13817     ## what you are doing...
13818     # Dependencies to place before and after the object being linked:
13819 predep_objects_CXX=
13820 postdep_objects_CXX=
13821 predeps_CXX=
13822 postdeps_CXX=
13823 compiler_lib_search_path_CXX=
13824
13825 cat > conftest.$ac_ext <<_LT_EOF
13826 class Foo
13827 {
13828 public:
13829   Foo (void) { a = 0; }
13830 private:
13831   int a;
13832 };
13833 _LT_EOF
13834
13835
13836 _lt_libdeps_save_CFLAGS=$CFLAGS
13837 case "$CC $CFLAGS " in #(
13838 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13839 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13840 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13841 esac
13842
13843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13844   (eval $ac_compile) 2>&5
13845   ac_status=$?
13846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13847   test $ac_status = 0; }; then
13848   # Parse the compiler output and extract the necessary
13849   # objects, libraries and library flags.
13850
13851   # Sentinel used to keep track of whether or not we are before
13852   # the conftest object file.
13853   pre_test_object_deps_done=no
13854
13855   for p in `eval "$output_verbose_link_cmd"`; do
13856     case ${prev}${p} in
13857
13858     -L* | -R* | -l*)
13859        # Some compilers place space between "-{L,R}" and the path.
13860        # Remove the space.
13861        if test $p = "-L" ||
13862           test $p = "-R"; then
13863          prev=$p
13864          continue
13865        fi
13866
13867        # Expand the sysroot to ease extracting the directories later.
13868        if test -z "$prev"; then
13869          case $p in
13870          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13871          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13872          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13873          esac
13874        fi
13875        case $p in
13876        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13877        esac
13878        if test "$pre_test_object_deps_done" = no; then
13879          case ${prev} in
13880          -L | -R)
13881            # Internal compiler library paths should come after those
13882            # provided the user.  The postdeps already come after the
13883            # user supplied libs so there is no need to process them.
13884            if test -z "$compiler_lib_search_path_CXX"; then
13885              compiler_lib_search_path_CXX="${prev}${p}"
13886            else
13887              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13888            fi
13889            ;;
13890          # The "-l" case would never come before the object being
13891          # linked, so don't bother handling this case.
13892          esac
13893        else
13894          if test -z "$postdeps_CXX"; then
13895            postdeps_CXX="${prev}${p}"
13896          else
13897            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13898          fi
13899        fi
13900        prev=
13901        ;;
13902
13903     *.lto.$objext) ;; # Ignore GCC LTO objects
13904     *.$objext)
13905        # This assumes that the test object file only shows up
13906        # once in the compiler output.
13907        if test "$p" = "conftest.$objext"; then
13908          pre_test_object_deps_done=yes
13909          continue
13910        fi
13911
13912        if test "$pre_test_object_deps_done" = no; then
13913          if test -z "$predep_objects_CXX"; then
13914            predep_objects_CXX="$p"
13915          else
13916            predep_objects_CXX="$predep_objects_CXX $p"
13917          fi
13918        else
13919          if test -z "$postdep_objects_CXX"; then
13920            postdep_objects_CXX="$p"
13921          else
13922            postdep_objects_CXX="$postdep_objects_CXX $p"
13923          fi
13924        fi
13925        ;;
13926
13927     *) ;; # Ignore the rest.
13928
13929     esac
13930   done
13931
13932   # Clean up.
13933   rm -f a.out a.exe
13934 else
13935   echo "libtool.m4: error: problem compiling CXX test program"
13936 fi
13937
13938 $RM -f confest.$objext
13939 CFLAGS=$_lt_libdeps_save_CFLAGS
13940
13941 # PORTME: override above test on systems where it is broken
13942 case $host_os in
13943 interix[3-9]*)
13944   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13945   # hack all around it, let's just trust "g++" to DTRT.
13946   predep_objects_CXX=
13947   postdep_objects_CXX=
13948   postdeps_CXX=
13949   ;;
13950
13951 linux*)
13952   case `$CC -V 2>&1 | sed 5q` in
13953   *Sun\ C*)
13954     # Sun C++ 5.9
13955
13956     # The more standards-conforming stlport4 library is
13957     # incompatible with the Cstd library. Avoid specifying
13958     # it if it's in CXXFLAGS. Ignore libCrun as
13959     # -library=stlport4 depends on it.
13960     case " $CXX $CXXFLAGS " in
13961     *" -library=stlport4 "*)
13962       solaris_use_stlport4=yes
13963       ;;
13964     esac
13965
13966     if test "$solaris_use_stlport4" != yes; then
13967       postdeps_CXX='-library=Cstd -library=Crun'
13968     fi
13969     ;;
13970   esac
13971   ;;
13972
13973 solaris*)
13974   case $cc_basename in
13975   CC* | sunCC*)
13976     # The more standards-conforming stlport4 library is
13977     # incompatible with the Cstd library. Avoid specifying
13978     # it if it's in CXXFLAGS. Ignore libCrun as
13979     # -library=stlport4 depends on it.
13980     case " $CXX $CXXFLAGS " in
13981     *" -library=stlport4 "*)
13982       solaris_use_stlport4=yes
13983       ;;
13984     esac
13985
13986     # Adding this requires a known-good setup of shared libraries for
13987     # Sun compiler versions before 5.6, else PIC objects from an old
13988     # archive will be linked into the output, leading to subtle bugs.
13989     if test "$solaris_use_stlport4" != yes; then
13990       postdeps_CXX='-library=Cstd -library=Crun'
13991     fi
13992     ;;
13993   esac
13994   ;;
13995 esac
13996
13997
13998 case " $postdeps_CXX " in
13999 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14000 esac
14001  compiler_lib_search_dirs_CXX=
14002 if test -n "${compiler_lib_search_path_CXX}"; then
14003  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14004 fi
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036     lt_prog_compiler_wl_CXX=
14037 lt_prog_compiler_pic_CXX=
14038 lt_prog_compiler_static_CXX=
14039
14040
14041   # C++ specific cases for pic, static, wl, etc.
14042   if test "$GXX" = yes; then
14043     lt_prog_compiler_wl_CXX='-Wl,'
14044     lt_prog_compiler_static_CXX='-static'
14045
14046     case $host_os in
14047     aix*)
14048       # All AIX code is PIC.
14049       if test "$host_cpu" = ia64; then
14050         # AIX 5 now supports IA64 processor
14051         lt_prog_compiler_static_CXX='-Bstatic'
14052       fi
14053       ;;
14054
14055     amigaos*)
14056       case $host_cpu in
14057       powerpc)
14058             # see comment about AmigaOS4 .so support
14059             lt_prog_compiler_pic_CXX='-fPIC'
14060         ;;
14061       m68k)
14062             # FIXME: we need at least 68020 code to build shared libraries, but
14063             # adding the `-m68020' flag to GCC prevents building anything better,
14064             # like `-m68040'.
14065             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14066         ;;
14067       esac
14068       ;;
14069
14070     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14071       # PIC is the default for these OSes.
14072       ;;
14073     mingw* | cygwin* | os2* | pw32* | cegcc*)
14074       # This hack is so that the source file can tell whether it is being
14075       # built for inclusion in a dll (and should export symbols for example).
14076       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14077       # (--disable-auto-import) libraries
14078       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14079       ;;
14080     darwin* | rhapsody*)
14081       # PIC is the default on this platform
14082       # Common symbols not allowed in MH_DYLIB files
14083       lt_prog_compiler_pic_CXX='-fno-common'
14084       ;;
14085     *djgpp*)
14086       # DJGPP does not support shared libraries at all
14087       lt_prog_compiler_pic_CXX=
14088       ;;
14089     haiku*)
14090       # PIC is the default for Haiku.
14091       # The "-static" flag exists, but is broken.
14092       lt_prog_compiler_static_CXX=
14093       ;;
14094     interix[3-9]*)
14095       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14096       # Instead, we relocate shared libraries at runtime.
14097       ;;
14098     sysv4*MP*)
14099       if test -d /usr/nec; then
14100         lt_prog_compiler_pic_CXX=-Kconform_pic
14101       fi
14102       ;;
14103     hpux*)
14104       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14105       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14106       # sets the default TLS model and affects inlining.
14107       case $host_cpu in
14108       hppa*64*)
14109         ;;
14110       *)
14111         lt_prog_compiler_pic_CXX='-fPIC'
14112         ;;
14113       esac
14114       ;;
14115     *qnx* | *nto*)
14116       # QNX uses GNU C++, but need to define -shared option too, otherwise
14117       # it will coredump.
14118       lt_prog_compiler_pic_CXX='-fPIC -shared'
14119       ;;
14120     *)
14121       lt_prog_compiler_pic_CXX='-fPIC'
14122       ;;
14123     esac
14124   else
14125     case $host_os in
14126       aix[4-9]*)
14127         # All AIX code is PIC.
14128         if test "$host_cpu" = ia64; then
14129           # AIX 5 now supports IA64 processor
14130           lt_prog_compiler_static_CXX='-Bstatic'
14131         else
14132           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14133         fi
14134         ;;
14135       chorus*)
14136         case $cc_basename in
14137         cxch68*)
14138           # Green Hills C++ Compiler
14139           # _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"
14140           ;;
14141         esac
14142         ;;
14143       mingw* | cygwin* | os2* | pw32* | cegcc*)
14144         # This hack is so that the source file can tell whether it is being
14145         # built for inclusion in a dll (and should export symbols for example).
14146         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14147         ;;
14148       dgux*)
14149         case $cc_basename in
14150           ec++*)
14151             lt_prog_compiler_pic_CXX='-KPIC'
14152             ;;
14153           ghcx*)
14154             # Green Hills C++ Compiler
14155             lt_prog_compiler_pic_CXX='-pic'
14156             ;;
14157           *)
14158             ;;
14159         esac
14160         ;;
14161       freebsd* | dragonfly*)
14162         # FreeBSD uses GNU C++
14163         ;;
14164       hpux9* | hpux10* | hpux11*)
14165         case $cc_basename in
14166           CC*)
14167             lt_prog_compiler_wl_CXX='-Wl,'
14168             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14169             if test "$host_cpu" != ia64; then
14170               lt_prog_compiler_pic_CXX='+Z'
14171             fi
14172             ;;
14173           aCC*)
14174             lt_prog_compiler_wl_CXX='-Wl,'
14175             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14176             case $host_cpu in
14177             hppa*64*|ia64*)
14178               # +Z the default
14179               ;;
14180             *)
14181               lt_prog_compiler_pic_CXX='+Z'
14182               ;;
14183             esac
14184             ;;
14185           *)
14186             ;;
14187         esac
14188         ;;
14189       interix*)
14190         # This is c89, which is MS Visual C++ (no shared libs)
14191         # Anyone wants to do a port?
14192         ;;
14193       irix5* | irix6* | nonstopux*)
14194         case $cc_basename in
14195           CC*)
14196             lt_prog_compiler_wl_CXX='-Wl,'
14197             lt_prog_compiler_static_CXX='-non_shared'
14198             # CC pic flag -KPIC is the default.
14199             ;;
14200           *)
14201             ;;
14202         esac
14203         ;;
14204       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14205         case $cc_basename in
14206           KCC*)
14207             # KAI C++ Compiler
14208             lt_prog_compiler_wl_CXX='--backend -Wl,'
14209             lt_prog_compiler_pic_CXX='-fPIC'
14210             ;;
14211           ecpc* )
14212             # old Intel C++ for x86_64 which still supported -KPIC.
14213             lt_prog_compiler_wl_CXX='-Wl,'
14214             lt_prog_compiler_pic_CXX='-KPIC'
14215             lt_prog_compiler_static_CXX='-static'
14216             ;;
14217           icpc* )
14218             # Intel C++, used to be incompatible with GCC.
14219             # ICC 10 doesn't accept -KPIC any more.
14220             lt_prog_compiler_wl_CXX='-Wl,'
14221             lt_prog_compiler_pic_CXX='-fPIC'
14222             lt_prog_compiler_static_CXX='-static'
14223             ;;
14224           pgCC* | pgcpp*)
14225             # Portland Group C++ compiler
14226             lt_prog_compiler_wl_CXX='-Wl,'
14227             lt_prog_compiler_pic_CXX='-fpic'
14228             lt_prog_compiler_static_CXX='-Bstatic'
14229             ;;
14230           cxx*)
14231             # Compaq C++
14232             # Make sure the PIC flag is empty.  It appears that all Alpha
14233             # Linux and Compaq Tru64 Unix objects are PIC.
14234             lt_prog_compiler_pic_CXX=
14235             lt_prog_compiler_static_CXX='-non_shared'
14236             ;;
14237           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14238             # IBM XL 8.0, 9.0 on PPC and BlueGene
14239             lt_prog_compiler_wl_CXX='-Wl,'
14240             lt_prog_compiler_pic_CXX='-qpic'
14241             lt_prog_compiler_static_CXX='-qstaticlink'
14242             ;;
14243           *)
14244             case `$CC -V 2>&1 | sed 5q` in
14245             *Sun\ C*)
14246               # Sun C++ 5.9
14247               lt_prog_compiler_pic_CXX='-KPIC'
14248               lt_prog_compiler_static_CXX='-Bstatic'
14249               lt_prog_compiler_wl_CXX='-Qoption ld '
14250               ;;
14251             esac
14252             ;;
14253         esac
14254         ;;
14255       lynxos*)
14256         ;;
14257       m88k*)
14258         ;;
14259       mvs*)
14260         case $cc_basename in
14261           cxx*)
14262             lt_prog_compiler_pic_CXX='-W c,exportall'
14263             ;;
14264           *)
14265             ;;
14266         esac
14267         ;;
14268       netbsd* | netbsdelf*-gnu)
14269         ;;
14270       *qnx* | *nto*)
14271         # QNX uses GNU C++, but need to define -shared option too, otherwise
14272         # it will coredump.
14273         lt_prog_compiler_pic_CXX='-fPIC -shared'
14274         ;;
14275       osf3* | osf4* | osf5*)
14276         case $cc_basename in
14277           KCC*)
14278             lt_prog_compiler_wl_CXX='--backend -Wl,'
14279             ;;
14280           RCC*)
14281             # Rational C++ 2.4.1
14282             lt_prog_compiler_pic_CXX='-pic'
14283             ;;
14284           cxx*)
14285             # Digital/Compaq C++
14286             lt_prog_compiler_wl_CXX='-Wl,'
14287             # Make sure the PIC flag is empty.  It appears that all Alpha
14288             # Linux and Compaq Tru64 Unix objects are PIC.
14289             lt_prog_compiler_pic_CXX=
14290             lt_prog_compiler_static_CXX='-non_shared'
14291             ;;
14292           *)
14293             ;;
14294         esac
14295         ;;
14296       psos*)
14297         ;;
14298       solaris*)
14299         case $cc_basename in
14300           CC* | sunCC*)
14301             # Sun C++ 4.2, 5.x and Centerline C++
14302             lt_prog_compiler_pic_CXX='-KPIC'
14303             lt_prog_compiler_static_CXX='-Bstatic'
14304             lt_prog_compiler_wl_CXX='-Qoption ld '
14305             ;;
14306           gcx*)
14307             # Green Hills C++ Compiler
14308             lt_prog_compiler_pic_CXX='-PIC'
14309             ;;
14310           *)
14311             ;;
14312         esac
14313         ;;
14314       sunos4*)
14315         case $cc_basename in
14316           CC*)
14317             # Sun C++ 4.x
14318             lt_prog_compiler_pic_CXX='-pic'
14319             lt_prog_compiler_static_CXX='-Bstatic'
14320             ;;
14321           lcc*)
14322             # Lucid
14323             lt_prog_compiler_pic_CXX='-pic'
14324             ;;
14325           *)
14326             ;;
14327         esac
14328         ;;
14329       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14330         case $cc_basename in
14331           CC*)
14332             lt_prog_compiler_wl_CXX='-Wl,'
14333             lt_prog_compiler_pic_CXX='-KPIC'
14334             lt_prog_compiler_static_CXX='-Bstatic'
14335             ;;
14336         esac
14337         ;;
14338       tandem*)
14339         case $cc_basename in
14340           NCC*)
14341             # NonStop-UX NCC 3.20
14342             lt_prog_compiler_pic_CXX='-KPIC'
14343             ;;
14344           *)
14345             ;;
14346         esac
14347         ;;
14348       vxworks*)
14349         ;;
14350       *)
14351         lt_prog_compiler_can_build_shared_CXX=no
14352         ;;
14353     esac
14354   fi
14355
14356 case $host_os in
14357   # For platforms which do not support PIC, -DPIC is meaningless:
14358   *djgpp*)
14359     lt_prog_compiler_pic_CXX=
14360     ;;
14361   *)
14362     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14363     ;;
14364 esac
14365
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14367 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14368 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14369   $as_echo_n "(cached) " >&6
14370 else
14371   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14372 fi
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14374 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14375 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14376
14377 #
14378 # Check to make sure the PIC flag actually works.
14379 #
14380 if test -n "$lt_prog_compiler_pic_CXX"; then
14381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14382 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14383 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14384   $as_echo_n "(cached) " >&6
14385 else
14386   lt_cv_prog_compiler_pic_works_CXX=no
14387    ac_outfile=conftest.$ac_objext
14388    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14389    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14390    # Insert the option either (1) after the last *FLAGS variable, or
14391    # (2) before a word containing "conftest.", or (3) at the end.
14392    # Note that $ac_compile itself does not contain backslashes and begins
14393    # with a dollar sign (not a hyphen), so the echo should work correctly.
14394    # The option is referenced via a variable to avoid confusing sed.
14395    lt_compile=`echo "$ac_compile" | $SED \
14396    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14397    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14398    -e 's:$: $lt_compiler_flag:'`
14399    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14400    (eval "$lt_compile" 2>conftest.err)
14401    ac_status=$?
14402    cat conftest.err >&5
14403    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404    if (exit $ac_status) && test -s "$ac_outfile"; then
14405      # The compiler can only warn and ignore the option if not recognized
14406      # So say no if there are warnings other than the usual output.
14407      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14408      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14409      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14410        lt_cv_prog_compiler_pic_works_CXX=yes
14411      fi
14412    fi
14413    $RM conftest*
14414
14415 fi
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14417 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14418
14419 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14420     case $lt_prog_compiler_pic_CXX in
14421      "" | " "*) ;;
14422      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14423      esac
14424 else
14425     lt_prog_compiler_pic_CXX=
14426      lt_prog_compiler_can_build_shared_CXX=no
14427 fi
14428
14429 fi
14430
14431
14432
14433
14434
14435 #
14436 # Check to make sure the static flag actually works.
14437 #
14438 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14440 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14441 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14442   $as_echo_n "(cached) " >&6
14443 else
14444   lt_cv_prog_compiler_static_works_CXX=no
14445    save_LDFLAGS="$LDFLAGS"
14446    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14447    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14448    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14449      # The linker can only warn and ignore the option if not recognized
14450      # So say no if there are warnings
14451      if test -s conftest.err; then
14452        # Append any errors to the config.log.
14453        cat conftest.err 1>&5
14454        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14455        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14456        if diff conftest.exp conftest.er2 >/dev/null; then
14457          lt_cv_prog_compiler_static_works_CXX=yes
14458        fi
14459      else
14460        lt_cv_prog_compiler_static_works_CXX=yes
14461      fi
14462    fi
14463    $RM -r conftest*
14464    LDFLAGS="$save_LDFLAGS"
14465
14466 fi
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14468 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14469
14470 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14471     :
14472 else
14473     lt_prog_compiler_static_CXX=
14474 fi
14475
14476
14477
14478
14479     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14480 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14481 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14482   $as_echo_n "(cached) " >&6
14483 else
14484   lt_cv_prog_compiler_c_o_CXX=no
14485    $RM -r conftest 2>/dev/null
14486    mkdir conftest
14487    cd conftest
14488    mkdir out
14489    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14490
14491    lt_compiler_flag="-o out/conftest2.$ac_objext"
14492    # Insert the option either (1) after the last *FLAGS variable, or
14493    # (2) before a word containing "conftest.", or (3) at the end.
14494    # Note that $ac_compile itself does not contain backslashes and begins
14495    # with a dollar sign (not a hyphen), so the echo should work correctly.
14496    lt_compile=`echo "$ac_compile" | $SED \
14497    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14498    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14499    -e 's:$: $lt_compiler_flag:'`
14500    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14501    (eval "$lt_compile" 2>out/conftest.err)
14502    ac_status=$?
14503    cat out/conftest.err >&5
14504    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14506    then
14507      # The compiler can only warn and ignore the option if not recognized
14508      # So say no if there are warnings
14509      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14510      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14511      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14512        lt_cv_prog_compiler_c_o_CXX=yes
14513      fi
14514    fi
14515    chmod u+w . 2>&5
14516    $RM conftest*
14517    # SGI C++ compiler will create directory out/ii_files/ for
14518    # template instantiation
14519    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14520    $RM out/* && rmdir out
14521    cd ..
14522    $RM -r conftest
14523    $RM conftest*
14524
14525 fi
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14527 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14528
14529
14530
14531     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14532 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14533 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14534   $as_echo_n "(cached) " >&6
14535 else
14536   lt_cv_prog_compiler_c_o_CXX=no
14537    $RM -r conftest 2>/dev/null
14538    mkdir conftest
14539    cd conftest
14540    mkdir out
14541    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14542
14543    lt_compiler_flag="-o out/conftest2.$ac_objext"
14544    # Insert the option either (1) after the last *FLAGS variable, or
14545    # (2) before a word containing "conftest.", or (3) at the end.
14546    # Note that $ac_compile itself does not contain backslashes and begins
14547    # with a dollar sign (not a hyphen), so the echo should work correctly.
14548    lt_compile=`echo "$ac_compile" | $SED \
14549    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14550    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14551    -e 's:$: $lt_compiler_flag:'`
14552    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14553    (eval "$lt_compile" 2>out/conftest.err)
14554    ac_status=$?
14555    cat out/conftest.err >&5
14556    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14558    then
14559      # The compiler can only warn and ignore the option if not recognized
14560      # So say no if there are warnings
14561      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14562      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14563      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14564        lt_cv_prog_compiler_c_o_CXX=yes
14565      fi
14566    fi
14567    chmod u+w . 2>&5
14568    $RM conftest*
14569    # SGI C++ compiler will create directory out/ii_files/ for
14570    # template instantiation
14571    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14572    $RM out/* && rmdir out
14573    cd ..
14574    $RM -r conftest
14575    $RM conftest*
14576
14577 fi
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14579 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14580
14581
14582
14583
14584 hard_links="nottested"
14585 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14586   # do not overwrite the value of need_locks provided by the user
14587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14588 $as_echo_n "checking if we can lock with hard links... " >&6; }
14589   hard_links=yes
14590   $RM conftest*
14591   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14592   touch conftest.a
14593   ln conftest.a conftest.b 2>&5 || hard_links=no
14594   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14596 $as_echo "$hard_links" >&6; }
14597   if test "$hard_links" = no; then
14598     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14599 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14600     need_locks=warn
14601   fi
14602 else
14603   need_locks=no
14604 fi
14605
14606
14607
14608     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14609 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14610
14611   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14612   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14613   case $host_os in
14614   aix[4-9]*)
14615     # If we're using GNU nm, then we don't want the "-C" option.
14616     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14617     # Also, AIX nm treats weak defined symbols like other global defined
14618     # symbols, whereas GNU nm marks them as "W".
14619     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14620       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'
14621     else
14622       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'
14623     fi
14624     ;;
14625   pw32*)
14626     export_symbols_cmds_CXX="$ltdll_cmds"
14627     ;;
14628   cygwin* | mingw* | cegcc*)
14629     case $cc_basename in
14630     cl*)
14631       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14632       ;;
14633     *)
14634       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'
14635       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14636       ;;
14637     esac
14638     ;;
14639   linux* | k*bsd*-gnu | gnu*)
14640     link_all_deplibs_CXX=no
14641     ;;
14642   *)
14643     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14644     ;;
14645   esac
14646
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14648 $as_echo "$ld_shlibs_CXX" >&6; }
14649 test "$ld_shlibs_CXX" = no && can_build_shared=no
14650
14651 with_gnu_ld_CXX=$with_gnu_ld
14652
14653
14654
14655
14656
14657
14658 #
14659 # Do we need to explicitly link libc?
14660 #
14661 case "x$archive_cmds_need_lc_CXX" in
14662 x|xyes)
14663   # Assume -lc should be added
14664   archive_cmds_need_lc_CXX=yes
14665
14666   if test "$enable_shared" = yes && test "$GCC" = yes; then
14667     case $archive_cmds_CXX in
14668     *'~'*)
14669       # FIXME: we may have to deal with multi-command sequences.
14670       ;;
14671     '$CC '*)
14672       # Test whether the compiler implicitly links with -lc since on some
14673       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14674       # to ld, don't add -lc before -lgcc.
14675       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14676 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14677 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14678   $as_echo_n "(cached) " >&6
14679 else
14680   $RM conftest*
14681         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14682
14683         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14684   (eval $ac_compile) 2>&5
14685   ac_status=$?
14686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14687   test $ac_status = 0; } 2>conftest.err; then
14688           soname=conftest
14689           lib=conftest
14690           libobjs=conftest.$ac_objext
14691           deplibs=
14692           wl=$lt_prog_compiler_wl_CXX
14693           pic_flag=$lt_prog_compiler_pic_CXX
14694           compiler_flags=-v
14695           linker_flags=-v
14696           verstring=
14697           output_objdir=.
14698           libname=conftest
14699           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14700           allow_undefined_flag_CXX=
14701           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14702   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14703   ac_status=$?
14704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14705   test $ac_status = 0; }
14706           then
14707             lt_cv_archive_cmds_need_lc_CXX=no
14708           else
14709             lt_cv_archive_cmds_need_lc_CXX=yes
14710           fi
14711           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14712         else
14713           cat conftest.err 1>&5
14714         fi
14715         $RM conftest*
14716
14717 fi
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14719 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14720       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14721       ;;
14722     esac
14723   fi
14724   ;;
14725 esac
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14789 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14790
14791 library_names_spec=
14792 libname_spec='lib$name'
14793 soname_spec=
14794 shrext_cmds=".so"
14795 postinstall_cmds=
14796 postuninstall_cmds=
14797 finish_cmds=
14798 finish_eval=
14799 shlibpath_var=
14800 shlibpath_overrides_runpath=unknown
14801 version_type=none
14802 dynamic_linker="$host_os ld.so"
14803 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14804 need_lib_prefix=unknown
14805 hardcode_into_libs=no
14806
14807 # when you set need_version to no, make sure it does not cause -set_version
14808 # flags to be left without arguments
14809 need_version=unknown
14810
14811 case $host_os in
14812 aix3*)
14813   version_type=linux # correct to gnu/linux during the next big refactor
14814   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14815   shlibpath_var=LIBPATH
14816
14817   # AIX 3 has no versioning support, so we append a major version to the name.
14818   soname_spec='${libname}${release}${shared_ext}$major'
14819   ;;
14820
14821 aix[4-9]*)
14822   version_type=linux # correct to gnu/linux during the next big refactor
14823   need_lib_prefix=no
14824   need_version=no
14825   hardcode_into_libs=yes
14826   if test "$host_cpu" = ia64; then
14827     # AIX 5 supports IA64
14828     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14829     shlibpath_var=LD_LIBRARY_PATH
14830   else
14831     # With GCC up to 2.95.x, collect2 would create an import file
14832     # for dependence libraries.  The import file would start with
14833     # the line `#! .'.  This would cause the generated library to
14834     # depend on `.', always an invalid library.  This was fixed in
14835     # development snapshots of GCC prior to 3.0.
14836     case $host_os in
14837       aix4 | aix4.[01] | aix4.[01].*)
14838       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14839            echo ' yes '
14840            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14841         :
14842       else
14843         can_build_shared=no
14844       fi
14845       ;;
14846     esac
14847     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14848     # soname into executable. Probably we can add versioning support to
14849     # collect2, so additional links can be useful in future.
14850     if test "$aix_use_runtimelinking" = yes; then
14851       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14852       # instead of lib<name>.a to let people know that these are not
14853       # typical AIX shared libraries.
14854       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14855     else
14856       # We preserve .a as extension for shared libraries through AIX4.2
14857       # and later when we are not doing run time linking.
14858       library_names_spec='${libname}${release}.a $libname.a'
14859       soname_spec='${libname}${release}${shared_ext}$major'
14860     fi
14861     shlibpath_var=LIBPATH
14862   fi
14863   ;;
14864
14865 amigaos*)
14866   case $host_cpu in
14867   powerpc)
14868     # Since July 2007 AmigaOS4 officially supports .so libraries.
14869     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14870     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14871     ;;
14872   m68k)
14873     library_names_spec='$libname.ixlibrary $libname.a'
14874     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14875     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'
14876     ;;
14877   esac
14878   ;;
14879
14880 beos*)
14881   library_names_spec='${libname}${shared_ext}'
14882   dynamic_linker="$host_os ld.so"
14883   shlibpath_var=LIBRARY_PATH
14884   ;;
14885
14886 bsdi[45]*)
14887   version_type=linux # correct to gnu/linux during the next big refactor
14888   need_version=no
14889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14890   soname_spec='${libname}${release}${shared_ext}$major'
14891   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14892   shlibpath_var=LD_LIBRARY_PATH
14893   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14894   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14895   # the default ld.so.conf also contains /usr/contrib/lib and
14896   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14897   # libtool to hard-code these into programs
14898   ;;
14899
14900 cygwin* | mingw* | pw32* | cegcc*)
14901   version_type=windows
14902   shrext_cmds=".dll"
14903   need_version=no
14904   need_lib_prefix=no
14905
14906   case $GCC,$cc_basename in
14907   yes,*)
14908     # gcc
14909     library_names_spec='$libname.dll.a'
14910     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14911     postinstall_cmds='base_file=`basename \${file}`~
14912       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14913       dldir=$destdir/`dirname \$dlpath`~
14914       test -d \$dldir || mkdir -p \$dldir~
14915       $install_prog $dir/$dlname \$dldir/$dlname~
14916       chmod a+x \$dldir/$dlname~
14917       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14918         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14919       fi'
14920     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14921       dlpath=$dir/\$dldll~
14922        $RM \$dlpath'
14923     shlibpath_overrides_runpath=yes
14924
14925     case $host_os in
14926     cygwin*)
14927       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14928       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14929
14930       ;;
14931     mingw* | cegcc*)
14932       # MinGW DLLs use traditional 'lib' prefix
14933       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14934       ;;
14935     pw32*)
14936       # pw32 DLLs use 'pw' prefix rather than 'lib'
14937       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14938       ;;
14939     esac
14940     dynamic_linker='Win32 ld.exe'
14941     ;;
14942
14943   *,cl*)
14944     # Native MSVC
14945     libname_spec='$name'
14946     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14947     library_names_spec='${libname}.dll.lib'
14948
14949     case $build_os in
14950     mingw*)
14951       sys_lib_search_path_spec=
14952       lt_save_ifs=$IFS
14953       IFS=';'
14954       for lt_path in $LIB
14955       do
14956         IFS=$lt_save_ifs
14957         # Let DOS variable expansion print the short 8.3 style file name.
14958         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14959         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14960       done
14961       IFS=$lt_save_ifs
14962       # Convert to MSYS style.
14963       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14964       ;;
14965     cygwin*)
14966       # Convert to unix form, then to dos form, then back to unix form
14967       # but this time dos style (no spaces!) so that the unix form looks
14968       # like /cygdrive/c/PROGRA~1:/cygdr...
14969       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14970       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14971       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14972       ;;
14973     *)
14974       sys_lib_search_path_spec="$LIB"
14975       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14976         # It is most probably a Windows format PATH.
14977         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14978       else
14979         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14980       fi
14981       # FIXME: find the short name or the path components, as spaces are
14982       # common. (e.g. "Program Files" -> "PROGRA~1")
14983       ;;
14984     esac
14985
14986     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14987     postinstall_cmds='base_file=`basename \${file}`~
14988       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14989       dldir=$destdir/`dirname \$dlpath`~
14990       test -d \$dldir || mkdir -p \$dldir~
14991       $install_prog $dir/$dlname \$dldir/$dlname'
14992     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14993       dlpath=$dir/\$dldll~
14994        $RM \$dlpath'
14995     shlibpath_overrides_runpath=yes
14996     dynamic_linker='Win32 link.exe'
14997     ;;
14998
14999   *)
15000     # Assume MSVC wrapper
15001     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15002     dynamic_linker='Win32 ld.exe'
15003     ;;
15004   esac
15005   # FIXME: first we should search . and the directory the executable is in
15006   shlibpath_var=PATH
15007   ;;
15008
15009 darwin* | rhapsody*)
15010   dynamic_linker="$host_os dyld"
15011   version_type=darwin
15012   need_lib_prefix=no
15013   need_version=no
15014   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15015   soname_spec='${libname}${release}${major}$shared_ext'
15016   shlibpath_overrides_runpath=yes
15017   shlibpath_var=DYLD_LIBRARY_PATH
15018   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15019
15020   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15021   ;;
15022
15023 dgux*)
15024   version_type=linux # correct to gnu/linux during the next big refactor
15025   need_lib_prefix=no
15026   need_version=no
15027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15028   soname_spec='${libname}${release}${shared_ext}$major'
15029   shlibpath_var=LD_LIBRARY_PATH
15030   ;;
15031
15032 freebsd* | dragonfly*)
15033   # DragonFly does not have aout.  When/if they implement a new
15034   # versioning mechanism, adjust this.
15035   if test -x /usr/bin/objformat; then
15036     objformat=`/usr/bin/objformat`
15037   else
15038     case $host_os in
15039     freebsd[23].*) objformat=aout ;;
15040     *) objformat=elf ;;
15041     esac
15042   fi
15043   version_type=freebsd-$objformat
15044   case $version_type in
15045     freebsd-elf*)
15046       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15047       need_version=no
15048       need_lib_prefix=no
15049       ;;
15050     freebsd-*)
15051       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15052       need_version=yes
15053       ;;
15054   esac
15055   shlibpath_var=LD_LIBRARY_PATH
15056   case $host_os in
15057   freebsd2.*)
15058     shlibpath_overrides_runpath=yes
15059     ;;
15060   freebsd3.[01]* | freebsdelf3.[01]*)
15061     shlibpath_overrides_runpath=yes
15062     hardcode_into_libs=yes
15063     ;;
15064   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15065   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15066     shlibpath_overrides_runpath=no
15067     hardcode_into_libs=yes
15068     ;;
15069   *) # from 4.6 on, and DragonFly
15070     shlibpath_overrides_runpath=yes
15071     hardcode_into_libs=yes
15072     ;;
15073   esac
15074   ;;
15075
15076 gnu*)
15077   version_type=linux # correct to gnu/linux during the next big refactor
15078   need_lib_prefix=no
15079   need_version=no
15080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15081   soname_spec='${libname}${release}${shared_ext}$major'
15082   shlibpath_var=LD_LIBRARY_PATH
15083   shlibpath_overrides_runpath=no
15084   hardcode_into_libs=yes
15085   ;;
15086
15087 haiku*)
15088   version_type=linux # correct to gnu/linux during the next big refactor
15089   need_lib_prefix=no
15090   need_version=no
15091   dynamic_linker="$host_os runtime_loader"
15092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15093   soname_spec='${libname}${release}${shared_ext}$major'
15094   shlibpath_var=LIBRARY_PATH
15095   shlibpath_overrides_runpath=yes
15096   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15097   hardcode_into_libs=yes
15098   ;;
15099
15100 hpux9* | hpux10* | hpux11*)
15101   # Give a soname corresponding to the major version so that dld.sl refuses to
15102   # link against other versions.
15103   version_type=sunos
15104   need_lib_prefix=no
15105   need_version=no
15106   case $host_cpu in
15107   ia64*)
15108     shrext_cmds='.so'
15109     hardcode_into_libs=yes
15110     dynamic_linker="$host_os dld.so"
15111     shlibpath_var=LD_LIBRARY_PATH
15112     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15113     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15114     soname_spec='${libname}${release}${shared_ext}$major'
15115     if test "X$HPUX_IA64_MODE" = X32; then
15116       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15117     else
15118       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15119     fi
15120     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15121     ;;
15122   hppa*64*)
15123     shrext_cmds='.sl'
15124     hardcode_into_libs=yes
15125     dynamic_linker="$host_os dld.sl"
15126     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15127     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15128     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15129     soname_spec='${libname}${release}${shared_ext}$major'
15130     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15131     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15132     ;;
15133   *)
15134     shrext_cmds='.sl'
15135     dynamic_linker="$host_os dld.sl"
15136     shlibpath_var=SHLIB_PATH
15137     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15138     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15139     soname_spec='${libname}${release}${shared_ext}$major'
15140     ;;
15141   esac
15142   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15143   postinstall_cmds='chmod 555 $lib'
15144   # or fails outright, so override atomically:
15145   install_override_mode=555
15146   ;;
15147
15148 interix[3-9]*)
15149   version_type=linux # correct to gnu/linux during the next big refactor
15150   need_lib_prefix=no
15151   need_version=no
15152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15153   soname_spec='${libname}${release}${shared_ext}$major'
15154   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15155   shlibpath_var=LD_LIBRARY_PATH
15156   shlibpath_overrides_runpath=no
15157   hardcode_into_libs=yes
15158   ;;
15159
15160 irix5* | irix6* | nonstopux*)
15161   case $host_os in
15162     nonstopux*) version_type=nonstopux ;;
15163     *)
15164         if test "$lt_cv_prog_gnu_ld" = yes; then
15165                 version_type=linux # correct to gnu/linux during the next big refactor
15166         else
15167                 version_type=irix
15168         fi ;;
15169   esac
15170   need_lib_prefix=no
15171   need_version=no
15172   soname_spec='${libname}${release}${shared_ext}$major'
15173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15174   case $host_os in
15175   irix5* | nonstopux*)
15176     libsuff= shlibsuff=
15177     ;;
15178   *)
15179     case $LD in # libtool.m4 will add one of these switches to LD
15180     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15181       libsuff= shlibsuff= libmagic=32-bit;;
15182     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15183       libsuff=32 shlibsuff=N32 libmagic=N32;;
15184     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15185       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15186     *) libsuff= shlibsuff= libmagic=never-match;;
15187     esac
15188     ;;
15189   esac
15190   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15191   shlibpath_overrides_runpath=no
15192   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15193   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15194   hardcode_into_libs=yes
15195   ;;
15196
15197 # No shared lib support for Linux oldld, aout, or coff.
15198 linux*oldld* | linux*aout* | linux*coff*)
15199   dynamic_linker=no
15200   ;;
15201
15202 # This must be glibc/ELF.
15203 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15204   version_type=linux # correct to gnu/linux during the next big refactor
15205   need_lib_prefix=no
15206   need_version=no
15207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15208   soname_spec='${libname}${release}${shared_ext}$major'
15209   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15210   shlibpath_var=LD_LIBRARY_PATH
15211   shlibpath_overrides_runpath=no
15212
15213   # Some binutils ld are patched to set DT_RUNPATH
15214   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15215   $as_echo_n "(cached) " >&6
15216 else
15217   lt_cv_shlibpath_overrides_runpath=no
15218     save_LDFLAGS=$LDFLAGS
15219     save_libdir=$libdir
15220     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15221          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15222     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223 /* end confdefs.h.  */
15224
15225 int
15226 main ()
15227 {
15228
15229   ;
15230   return 0;
15231 }
15232 _ACEOF
15233 if ac_fn_cxx_try_link "$LINENO"; then :
15234   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15235   lt_cv_shlibpath_overrides_runpath=yes
15236 fi
15237 fi
15238 rm -f core conftest.err conftest.$ac_objext \
15239     conftest$ac_exeext conftest.$ac_ext
15240     LDFLAGS=$save_LDFLAGS
15241     libdir=$save_libdir
15242
15243 fi
15244
15245   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15246
15247   # This implies no fast_install, which is unacceptable.
15248   # Some rework will be needed to allow for fast_install
15249   # before this can be enabled.
15250   hardcode_into_libs=yes
15251
15252   # Append ld.so.conf contents to the search path
15253   if test -f /etc/ld.so.conf; then
15254     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' ' '`
15255     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15256   fi
15257
15258   # We used to test for /lib/ld.so.1 and disable shared libraries on
15259   # powerpc, because MkLinux only supported shared libraries with the
15260   # GNU dynamic linker.  Since this was broken with cross compilers,
15261   # most powerpc-linux boxes support dynamic linking these days and
15262   # people can always --disable-shared, the test was removed, and we
15263   # assume the GNU/Linux dynamic linker is in use.
15264   dynamic_linker='GNU/Linux ld.so'
15265   ;;
15266
15267 netbsdelf*-gnu)
15268   version_type=linux
15269   need_lib_prefix=no
15270   need_version=no
15271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15272   soname_spec='${libname}${release}${shared_ext}$major'
15273   shlibpath_var=LD_LIBRARY_PATH
15274   shlibpath_overrides_runpath=no
15275   hardcode_into_libs=yes
15276   dynamic_linker='NetBSD ld.elf_so'
15277   ;;
15278
15279 netbsd*)
15280   version_type=sunos
15281   need_lib_prefix=no
15282   need_version=no
15283   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15284     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15285     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15286     dynamic_linker='NetBSD (a.out) ld.so'
15287   else
15288     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15289     soname_spec='${libname}${release}${shared_ext}$major'
15290     dynamic_linker='NetBSD ld.elf_so'
15291   fi
15292   shlibpath_var=LD_LIBRARY_PATH
15293   shlibpath_overrides_runpath=yes
15294   hardcode_into_libs=yes
15295   ;;
15296
15297 newsos6)
15298   version_type=linux # correct to gnu/linux during the next big refactor
15299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15300   shlibpath_var=LD_LIBRARY_PATH
15301   shlibpath_overrides_runpath=yes
15302   ;;
15303
15304 *nto* | *qnx*)
15305   version_type=qnx
15306   need_lib_prefix=no
15307   need_version=no
15308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15309   soname_spec='${libname}${release}${shared_ext}$major'
15310   shlibpath_var=LD_LIBRARY_PATH
15311   shlibpath_overrides_runpath=no
15312   hardcode_into_libs=yes
15313   dynamic_linker='ldqnx.so'
15314   ;;
15315
15316 openbsd*)
15317   version_type=sunos
15318   sys_lib_dlsearch_path_spec="/usr/lib"
15319   need_lib_prefix=no
15320   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15321   case $host_os in
15322     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15323     *)                          need_version=no  ;;
15324   esac
15325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15326   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15327   shlibpath_var=LD_LIBRARY_PATH
15328   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15329     case $host_os in
15330       openbsd2.[89] | openbsd2.[89].*)
15331         shlibpath_overrides_runpath=no
15332         ;;
15333       *)
15334         shlibpath_overrides_runpath=yes
15335         ;;
15336       esac
15337   else
15338     shlibpath_overrides_runpath=yes
15339   fi
15340   ;;
15341
15342 os2*)
15343   libname_spec='$name'
15344   shrext_cmds=".dll"
15345   need_lib_prefix=no
15346   library_names_spec='$libname${shared_ext} $libname.a'
15347   dynamic_linker='OS/2 ld.exe'
15348   shlibpath_var=LIBPATH
15349   ;;
15350
15351 osf3* | osf4* | osf5*)
15352   version_type=osf
15353   need_lib_prefix=no
15354   need_version=no
15355   soname_spec='${libname}${release}${shared_ext}$major'
15356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15357   shlibpath_var=LD_LIBRARY_PATH
15358   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15359   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15360   ;;
15361
15362 rdos*)
15363   dynamic_linker=no
15364   ;;
15365
15366 solaris*)
15367   version_type=linux # correct to gnu/linux during the next big refactor
15368   need_lib_prefix=no
15369   need_version=no
15370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15371   soname_spec='${libname}${release}${shared_ext}$major'
15372   shlibpath_var=LD_LIBRARY_PATH
15373   shlibpath_overrides_runpath=yes
15374   hardcode_into_libs=yes
15375   # ldd complains unless libraries are executable
15376   postinstall_cmds='chmod +x $lib'
15377   ;;
15378
15379 sunos4*)
15380   version_type=sunos
15381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15382   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15383   shlibpath_var=LD_LIBRARY_PATH
15384   shlibpath_overrides_runpath=yes
15385   if test "$with_gnu_ld" = yes; then
15386     need_lib_prefix=no
15387   fi
15388   need_version=yes
15389   ;;
15390
15391 sysv4 | sysv4.3*)
15392   version_type=linux # correct to gnu/linux during the next big refactor
15393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15394   soname_spec='${libname}${release}${shared_ext}$major'
15395   shlibpath_var=LD_LIBRARY_PATH
15396   case $host_vendor in
15397     sni)
15398       shlibpath_overrides_runpath=no
15399       need_lib_prefix=no
15400       runpath_var=LD_RUN_PATH
15401       ;;
15402     siemens)
15403       need_lib_prefix=no
15404       ;;
15405     motorola)
15406       need_lib_prefix=no
15407       need_version=no
15408       shlibpath_overrides_runpath=no
15409       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15410       ;;
15411   esac
15412   ;;
15413
15414 sysv4*MP*)
15415   if test -d /usr/nec ;then
15416     version_type=linux # correct to gnu/linux during the next big refactor
15417     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15418     soname_spec='$libname${shared_ext}.$major'
15419     shlibpath_var=LD_LIBRARY_PATH
15420   fi
15421   ;;
15422
15423 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15424   version_type=freebsd-elf
15425   need_lib_prefix=no
15426   need_version=no
15427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15428   soname_spec='${libname}${release}${shared_ext}$major'
15429   shlibpath_var=LD_LIBRARY_PATH
15430   shlibpath_overrides_runpath=yes
15431   hardcode_into_libs=yes
15432   if test "$with_gnu_ld" = yes; then
15433     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15434   else
15435     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15436     case $host_os in
15437       sco3.2v5*)
15438         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15439         ;;
15440     esac
15441   fi
15442   sys_lib_dlsearch_path_spec='/usr/lib'
15443   ;;
15444
15445 tpf*)
15446   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15447   version_type=linux # correct to gnu/linux during the next big refactor
15448   need_lib_prefix=no
15449   need_version=no
15450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15451   shlibpath_var=LD_LIBRARY_PATH
15452   shlibpath_overrides_runpath=no
15453   hardcode_into_libs=yes
15454   ;;
15455
15456 uts4*)
15457   version_type=linux # correct to gnu/linux during the next big refactor
15458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15459   soname_spec='${libname}${release}${shared_ext}$major'
15460   shlibpath_var=LD_LIBRARY_PATH
15461   ;;
15462
15463 *)
15464   dynamic_linker=no
15465   ;;
15466 esac
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15468 $as_echo "$dynamic_linker" >&6; }
15469 test "$dynamic_linker" = no && can_build_shared=no
15470
15471 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15472 if test "$GCC" = yes; then
15473   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15474 fi
15475
15476 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15477   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15478 fi
15479 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15480   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15481 fi
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15521 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15522 hardcode_action_CXX=
15523 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15524    test -n "$runpath_var_CXX" ||
15525    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15526
15527   # We can hardcode non-existent directories.
15528   if test "$hardcode_direct_CXX" != no &&
15529      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15530      # have to relink, otherwise we might link with an installed library
15531      # when we should be linking with a yet-to-be-installed one
15532      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15533      test "$hardcode_minus_L_CXX" != no; then
15534     # Linking always hardcodes the temporary library directory.
15535     hardcode_action_CXX=relink
15536   else
15537     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15538     hardcode_action_CXX=immediate
15539   fi
15540 else
15541   # We cannot hardcode anything, or else we can only hardcode existing
15542   # directories.
15543   hardcode_action_CXX=unsupported
15544 fi
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15546 $as_echo "$hardcode_action_CXX" >&6; }
15547
15548 if test "$hardcode_action_CXX" = relink ||
15549    test "$inherit_rpath_CXX" = yes; then
15550   # Fast installation is not supported
15551   enable_fast_install=no
15552 elif test "$shlibpath_overrides_runpath" = yes ||
15553      test "$enable_shared" = no; then
15554   # Fast installation is not necessary
15555   enable_fast_install=needless
15556 fi
15557
15558
15559
15560
15561
15562
15563
15564   fi # test -n "$compiler"
15565
15566   CC=$lt_save_CC
15567   CFLAGS=$lt_save_CFLAGS
15568   LDCXX=$LD
15569   LD=$lt_save_LD
15570   GCC=$lt_save_GCC
15571   with_gnu_ld=$lt_save_with_gnu_ld
15572   lt_cv_path_LDCXX=$lt_cv_path_LD
15573   lt_cv_path_LD=$lt_save_path_LD
15574   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15575   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15576 fi # test "$_lt_caught_CXX_error" != yes
15577
15578 ac_ext=cpp
15579 ac_cpp='$CXXCPP $CPPFLAGS'
15580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598         ac_config_commands="$ac_config_commands libtool"
15599
15600
15601
15602
15603 # Only expand once:
15604
15605
15606
15607
15608 # Check whether some low-level functions/files are available
15609
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15611 $as_echo_n "checking for ANSI C header files... " >&6; }
15612 if ${ac_cv_header_stdc+:} false; then :
15613   $as_echo_n "(cached) " >&6
15614 else
15615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15616 /* end confdefs.h.  */
15617 #include <stdlib.h>
15618 #include <stdarg.h>
15619 #include <string.h>
15620 #include <float.h>
15621
15622 int
15623 main ()
15624 {
15625
15626   ;
15627   return 0;
15628 }
15629 _ACEOF
15630 if ac_fn_cxx_try_compile "$LINENO"; then :
15631   ac_cv_header_stdc=yes
15632 else
15633   ac_cv_header_stdc=no
15634 fi
15635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15636
15637 if test $ac_cv_header_stdc = yes; then
15638   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15640 /* end confdefs.h.  */
15641 #include <string.h>
15642
15643 _ACEOF
15644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15645   $EGREP "memchr" >/dev/null 2>&1; then :
15646
15647 else
15648   ac_cv_header_stdc=no
15649 fi
15650 rm -f conftest*
15651
15652 fi
15653
15654 if test $ac_cv_header_stdc = yes; then
15655   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15657 /* end confdefs.h.  */
15658 #include <stdlib.h>
15659
15660 _ACEOF
15661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15662   $EGREP "free" >/dev/null 2>&1; then :
15663
15664 else
15665   ac_cv_header_stdc=no
15666 fi
15667 rm -f conftest*
15668
15669 fi
15670
15671 if test $ac_cv_header_stdc = yes; then
15672   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15673   if test "$cross_compiling" = yes; then :
15674   :
15675 else
15676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15677 /* end confdefs.h.  */
15678 #include <ctype.h>
15679 #include <stdlib.h>
15680 #if ((' ' & 0x0FF) == 0x020)
15681 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15682 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15683 #else
15684 # define ISLOWER(c) \
15685                    (('a' <= (c) && (c) <= 'i') \
15686                      || ('j' <= (c) && (c) <= 'r') \
15687                      || ('s' <= (c) && (c) <= 'z'))
15688 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15689 #endif
15690
15691 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15692 int
15693 main ()
15694 {
15695   int i;
15696   for (i = 0; i < 256; i++)
15697     if (XOR (islower (i), ISLOWER (i))
15698         || toupper (i) != TOUPPER (i))
15699       return 2;
15700   return 0;
15701 }
15702 _ACEOF
15703 if ac_fn_cxx_try_run "$LINENO"; then :
15704
15705 else
15706   ac_cv_header_stdc=no
15707 fi
15708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15709   conftest.$ac_objext conftest.beam conftest.$ac_ext
15710 fi
15711
15712 fi
15713 fi
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15715 $as_echo "$ac_cv_header_stdc" >&6; }
15716 if test $ac_cv_header_stdc = yes; then
15717
15718 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15719
15720 fi
15721
15722
15723 # These are tested for by AC_HEADER_STDC, but I check again to set the var
15724 ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
15725 if test "x$ac_cv_header_stdint_h" = xyes; then :
15726   ac_cv_have_stdint_h=1
15727 else
15728   ac_cv_have_stdint_h=0
15729 fi
15730
15731
15732 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
15733 if test "x$ac_cv_header_sys_types_h" = xyes; then :
15734   ac_cv_have_systypes_h=1
15735 else
15736   ac_cv_have_systypes_h=0
15737 fi
15738
15739
15740 ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
15741 if test "x$ac_cv_header_inttypes_h" = xyes; then :
15742   ac_cv_have_inttypes_h=1
15743 else
15744   ac_cv_have_inttypes_h=0
15745 fi
15746
15747
15748 for ac_header in unistd.h
15749 do :
15750   ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15751 if test "x$ac_cv_header_unistd_h" = xyes; then :
15752   cat >>confdefs.h <<_ACEOF
15753 #define HAVE_UNISTD_H 1
15754 _ACEOF
15755  ac_cv_have_unistd_h=1
15756 else
15757   ac_cv_have_unistd_h=0
15758 fi
15759
15760 done
15761
15762 for ac_header in syscall.h
15763 do :
15764   ac_fn_cxx_check_header_mongrel "$LINENO" "syscall.h" "ac_cv_header_syscall_h" "$ac_includes_default"
15765 if test "x$ac_cv_header_syscall_h" = xyes; then :
15766   cat >>confdefs.h <<_ACEOF
15767 #define HAVE_SYSCALL_H 1
15768 _ACEOF
15769
15770 fi
15771
15772 done
15773
15774 for ac_header in sys/syscall.h
15775 do :
15776   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
15777 if test "x$ac_cv_header_sys_syscall_h" = xyes; then :
15778   cat >>confdefs.h <<_ACEOF
15779 #define HAVE_SYS_SYSCALL_H 1
15780 _ACEOF
15781
15782 fi
15783
15784 done
15785
15786 # For backtrace with glibc.
15787 for ac_header in execinfo.h
15788 do :
15789   ac_fn_cxx_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
15790 if test "x$ac_cv_header_execinfo_h" = xyes; then :
15791   cat >>confdefs.h <<_ACEOF
15792 #define HAVE_EXECINFO_H 1
15793 _ACEOF
15794
15795 fi
15796
15797 done
15798
15799 # For backtrace with libunwind.
15800 for ac_header in libunwind.h
15801 do :
15802   ac_fn_cxx_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
15803 if test "x$ac_cv_header_libunwind_h" = xyes; then :
15804   cat >>confdefs.h <<_ACEOF
15805 #define HAVE_LIBUNWIND_H 1
15806 _ACEOF
15807  ac_cv_have_libunwind_h=1
15808 else
15809   ac_cv_have_libunwind_h=0
15810 fi
15811
15812 done
15813
15814 for ac_header in ucontext.h
15815 do :
15816   ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
15817 if test "x$ac_cv_header_ucontext_h" = xyes; then :
15818   cat >>confdefs.h <<_ACEOF
15819 #define HAVE_UCONTEXT_H 1
15820 _ACEOF
15821
15822 fi
15823
15824 done
15825
15826 for ac_header in sys/utsname.h
15827 do :
15828   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
15829 if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
15830   cat >>confdefs.h <<_ACEOF
15831 #define HAVE_SYS_UTSNAME_H 1
15832 _ACEOF
15833
15834 fi
15835
15836 done
15837
15838 for ac_header in pwd.h
15839 do :
15840   ac_fn_cxx_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
15841 if test "x$ac_cv_header_pwd_h" = xyes; then :
15842   cat >>confdefs.h <<_ACEOF
15843 #define HAVE_PWD_H 1
15844 _ACEOF
15845
15846 fi
15847
15848 done
15849
15850 for ac_header in syslog.h
15851 do :
15852   ac_fn_cxx_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
15853 if test "x$ac_cv_header_syslog_h" = xyes; then :
15854   cat >>confdefs.h <<_ACEOF
15855 #define HAVE_SYSLOG_H 1
15856 _ACEOF
15857
15858 fi
15859
15860 done
15861
15862 for ac_header in sys/time.h
15863 do :
15864   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
15865 if test "x$ac_cv_header_sys_time_h" = xyes; then :
15866   cat >>confdefs.h <<_ACEOF
15867 #define HAVE_SYS_TIME_H 1
15868 _ACEOF
15869
15870 fi
15871
15872 done
15873
15874 for ac_header in glob.h
15875 do :
15876   ac_fn_cxx_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
15877 if test "x$ac_cv_header_glob_h" = xyes; then :
15878   cat >>confdefs.h <<_ACEOF
15879 #define HAVE_GLOB_H 1
15880 _ACEOF
15881
15882 fi
15883
15884 done
15885
15886 # For backtrace with gcc.
15887 for ac_header in unwind.h
15888 do :
15889   ac_fn_cxx_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
15890 if test "x$ac_cv_header_unwind_h" = xyes; then :
15891   cat >>confdefs.h <<_ACEOF
15892 #define HAVE_UNWIND_H 1
15893 _ACEOF
15894
15895 fi
15896
15897 done
15898
15899
15900 ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
15901 if test "x$ac_cv_header_windows_h" = xyes; then :
15902   ac_cv_have_windows_h=1
15903 else
15904   ac_cv_have_windows_h=0
15905 fi
15906
15907
15908 if test x"$ac_cv_have_windows_h" = x"1"; then
15909   MINGW_CFLAGS=-Isrc/windows
15910 fi
15911
15912 # The cast to long int works around a bug in the HP C Compiler
15913 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15914 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15915 # This bug is HP SR number 8606223364.
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15917 $as_echo_n "checking size of void *... " >&6; }
15918 if ${ac_cv_sizeof_void_p+:} false; then :
15919   $as_echo_n "(cached) " >&6
15920 else
15921   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
15922
15923 else
15924   if test "$ac_cv_type_void_p" = yes; then
15925      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15927 as_fn_error 77 "cannot compute sizeof (void *)
15928 See \`config.log' for more details" "$LINENO" 5; }
15929    else
15930      ac_cv_sizeof_void_p=0
15931    fi
15932 fi
15933
15934 fi
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15936 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15937
15938
15939
15940 cat >>confdefs.h <<_ACEOF
15941 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15942 _ACEOF
15943
15944
15945
15946 # These are the types I need.  We look for them in either stdint.h,
15947 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
15948 ac_fn_cxx_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
15949 if test "x$ac_cv_type_uint16_t" = xyes; then :
15950   ac_cv_have_uint16_t=1
15951 else
15952   ac_cv_have_uint16_t=0
15953 fi
15954
15955 ac_fn_cxx_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
15956 if test "x$ac_cv_type_u_int16_t" = xyes; then :
15957   ac_cv_have_u_int16_t=1
15958 else
15959   ac_cv_have_u_int16_t=0
15960 fi
15961
15962 ac_fn_cxx_check_type "$LINENO" "__uint16" "ac_cv_type___uint16" "$ac_includes_default"
15963 if test "x$ac_cv_type___uint16" = xyes; then :
15964   ac_cv_have___uint16=1
15965 else
15966   ac_cv_have___uint16=0
15967 fi
15968
15969
15970 ac_fn_cxx_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack"
15971 if test "x$ac_cv_func_sigaltstack" = xyes; then :
15972
15973 $as_echo "#define HAVE_SIGALTSTACK 1" >>confdefs.h
15974
15975 fi
15976
15977 ac_fn_cxx_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
15978 if test "x$ac_cv_func_sigaction" = xyes; then :
15979
15980 $as_echo "#define HAVE_SIGACTION 1" >>confdefs.h
15981
15982 fi
15983
15984 ac_fn_cxx_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
15985 if test "x$ac_cv_func_dladdr" = xyes; then :
15986
15987 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
15988
15989 fi
15990
15991 ac_fn_cxx_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
15992 if test "x$ac_cv_func_fcntl" = xyes; then :
15993
15994 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
15995
15996 fi
15997
15998 ac_fn_cxx_check_func "$LINENO" "pread" "ac_cv_func_pread"
15999 if test "x$ac_cv_func_pread" = xyes; then :
16000
16001 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
16002
16003 fi
16004
16005 ac_fn_cxx_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
16006 if test "x$ac_cv_func_pwrite" = xyes; then :
16007
16008 $as_echo "#define HAVE_PWRITE 1" >>confdefs.h
16009
16010 fi
16011
16012
16013
16014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
16015 $as_echo_n "checking for __attribute__... " >&6; }
16016   if ${ac_cv___attribute__+:} false; then :
16017   $as_echo_n "(cached) " >&6
16018 else
16019
16020     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16021 /* end confdefs.h.  */
16022 #include <stdlib.h>
16023        static void foo(void) __attribute__ ((unused));
16024        void foo(void) { exit(1); }
16025 int
16026 main ()
16027 {
16028
16029   ;
16030   return 0;
16031 }
16032 _ACEOF
16033 if ac_fn_cxx_try_compile "$LINENO"; then :
16034   ac_cv___attribute__=yes
16035 else
16036   ac_cv___attribute__=no
16037
16038 fi
16039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16040 fi
16041
16042   if test "$ac_cv___attribute__" = "yes"; then
16043
16044 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
16045
16046   fi
16047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
16048 $as_echo "$ac_cv___attribute__" >&6; }
16049
16050 # We only care about these two attributes.
16051 if test x"$ac_cv___attribute__" = x"yes"; then
16052   ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
16053   ac_cv___attribute___noinline="__attribute__ ((noinline))"
16054   ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
16055 else
16056   ac_cv___attribute___noreturn=
16057   ac_cv___attribute___noinline=
16058   ac_cv___attribute___printf_4_5=
16059 fi
16060
16061
16062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
16063 $as_echo_n "checking for __builtin_expect... " >&6; }
16064   if ${ac_cv___builtin_expect+:} false; then :
16065   $as_echo_n "(cached) " >&6
16066 else
16067
16068     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16069 /* end confdefs.h.  */
16070 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
16071 int
16072 main ()
16073 {
16074
16075   ;
16076   return 0;
16077 }
16078 _ACEOF
16079 if ac_fn_cxx_try_compile "$LINENO"; then :
16080   ac_cv___builtin_expect=yes
16081 else
16082   ac_cv___builtin_expect=no
16083
16084 fi
16085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16086 fi
16087
16088   if test "$ac_cv___builtin_expect" = "yes"; then
16089
16090 $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
16091
16092   fi
16093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___builtin_expect" >&5
16094 $as_echo "$ac_cv___builtin_expect" >&6; }
16095
16096 if test x"$ac_cv___builtin_expect" = x"yes"; then
16097   ac_cv_have___builtin_expect=1
16098 else
16099   ac_cv_have___builtin_expect=0
16100 fi
16101
16102
16103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_val_compare_and_swap" >&5
16104 $as_echo_n "checking for __sync_val_compare_and_swap... " >&6; }
16105   if ${ac_cv___sync_val_compare_and_swap+:} false; then :
16106   $as_echo_n "(cached) " >&6
16107 else
16108
16109     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16110 /* end confdefs.h.  */
16111
16112 int
16113 main ()
16114 {
16115 int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0;
16116   ;
16117   return 0;
16118 }
16119 _ACEOF
16120 if ac_fn_cxx_try_link "$LINENO"; then :
16121   ac_cv___sync_val_compare_and_swap=yes
16122 else
16123   ac_cv___sync_val_compare_and_swap=no
16124
16125 fi
16126 rm -f core conftest.err conftest.$ac_objext \
16127     conftest$ac_exeext conftest.$ac_ext
16128 fi
16129
16130   if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then
16131
16132 $as_echo "#define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1" >>confdefs.h
16133
16134   fi
16135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___sync_val_compare_and_swap" >&5
16136 $as_echo "$ac_cv___sync_val_compare_and_swap" >&6; }
16137
16138
16139 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
16140 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
16141 # Check whether --enable-frame_pointers was given.
16142 if test "${enable_frame_pointers+set}" = set; then :
16143   enableval=$enable_frame_pointers;
16144 else
16145   enable_frame_pointers=no
16146 fi
16147
16148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16149 /* end confdefs.h.  */
16150
16151 int
16152 main ()
16153 {
16154 return __x86_64__ == 1 ? 0 : 1
16155   ;
16156   return 0;
16157 }
16158 _ACEOF
16159 if ac_fn_cxx_try_compile "$LINENO"; then :
16160   is_x86_64=yes
16161 else
16162   is_x86_64=no
16163 fi
16164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16165  if test "$enable_frame_pointers" = yes; then
16166   ENABLE_FRAME_POINTERS_TRUE=
16167   ENABLE_FRAME_POINTERS_FALSE='#'
16168 else
16169   ENABLE_FRAME_POINTERS_TRUE='#'
16170   ENABLE_FRAME_POINTERS_FALSE=
16171 fi
16172
16173  if test "$is_x86_64" = yes; then
16174   X86_64_TRUE=
16175   X86_64_FALSE='#'
16176 else
16177   X86_64_TRUE='#'
16178   X86_64_FALSE=
16179 fi
16180
16181
16182 # Check whether --enable-rtti was given.
16183 if test "${enable_rtti+set}" = set; then :
16184   enableval=$enable_rtti;
16185 fi
16186
16187  if test x"$enable_rtti" = x"no"; then
16188   DISABLE_RTTI_TRUE=
16189   DISABLE_RTTI_FALSE='#'
16190 else
16191   DISABLE_RTTI_TRUE='#'
16192   DISABLE_RTTI_FALSE=
16193 fi
16194
16195 if test x"$enable_rtti" = x"no"; then
16196
16197 $as_echo "#define DISABLE_RTTI 1" >>confdefs.h
16198
16199 fi
16200
16201 # Some of the code in this directory depends on pthreads
16202
16203
16204
16205 ac_ext=c
16206 ac_cpp='$CPP $CPPFLAGS'
16207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16210
16211 acx_pthread_ok=no
16212
16213 # We used to check for pthread.h first, but this fails if pthread.h
16214 # requires special compiler flags (e.g. on True64 or Sequent).
16215 # It gets checked for in the link test anyway.
16216
16217 # First of all, check if the user has set any of the PTHREAD_LIBS,
16218 # etcetera environment variables, and if threads linking works using
16219 # them:
16220 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16221         save_CFLAGS="$CFLAGS"
16222         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16223         save_LIBS="$LIBS"
16224         LIBS="$PTHREAD_LIBS $LIBS"
16225         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16226 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16227         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16228 /* end confdefs.h.  */
16229
16230 /* Override any GCC internal prototype to avoid an error.
16231    Use char because int might match the return type of a GCC
16232    builtin and then its argument prototype would still apply.  */
16233 #ifdef __cplusplus
16234 extern "C"
16235 #endif
16236 char pthread_join ();
16237 int
16238 main ()
16239 {
16240 return pthread_join ();
16241   ;
16242   return 0;
16243 }
16244 _ACEOF
16245 if ac_fn_c_try_link "$LINENO"; then :
16246   acx_pthread_ok=yes
16247 fi
16248 rm -f core conftest.err conftest.$ac_objext \
16249     conftest$ac_exeext conftest.$ac_ext
16250         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16251 $as_echo "$acx_pthread_ok" >&6; }
16252         if test x"$acx_pthread_ok" = xno; then
16253                 PTHREAD_LIBS=""
16254                 PTHREAD_CFLAGS=""
16255         fi
16256         LIBS="$save_LIBS"
16257         CFLAGS="$save_CFLAGS"
16258 fi
16259
16260 # We must check for the threads library under a number of different
16261 # names; the ordering is very important because some systems
16262 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16263 # libraries is broken (non-POSIX).
16264
16265 # Create a list of thread flags to try.  Items starting with a "-" are
16266 # C compiler flags, and other items are library names, except for "none"
16267 # which indicates that we try without any flags at all, and "pthread-config"
16268 # which is a program returning the flags for the Pth emulation library.
16269
16270 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16271
16272 # The ordering *is* (sometimes) important.  Some notes on the
16273 # individual items follow:
16274
16275 # pthreads: AIX (must check this before -lpthread)
16276 # none: in case threads are in libc; should be tried before -Kthread and
16277 #       other compiler flags to prevent continual compiler warnings
16278 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16279 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16280 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16281 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16282 # -pthreads: Solaris/gcc
16283 # -mthreads: Mingw32/gcc, Lynx/gcc
16284 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16285 #      doesn't hurt to check since this sometimes defines pthreads too;
16286 #      also defines -D_REENTRANT)
16287 #      ... -mt is also the pthreads flag for HP/aCC
16288 # pthread: Linux, etcetera
16289 # --thread-safe: KAI C++
16290 # pthread-config: use pthread-config program (for GNU Pth library)
16291
16292 case "${host_cpu}-${host_os}" in
16293         *solaris*)
16294
16295         # On Solaris (at least, for some versions), libc contains stubbed
16296         # (non-functional) versions of the pthreads routines, so link-based
16297         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
16298         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
16299         # a function called by this macro, so we could check for that, but
16300         # who knows whether they'll stub that too in a future libc.)  So,
16301         # we'll just look for -pthreads and -lpthread first:
16302
16303         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
16304         ;;
16305 esac
16306
16307 if test x"$acx_pthread_ok" = xno; then
16308 for flag in $acx_pthread_flags; do
16309
16310         case $flag in
16311                 none)
16312                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16313 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16314                 ;;
16315
16316                 -*)
16317                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16318 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16319                 PTHREAD_CFLAGS="$flag"
16320                 ;;
16321
16322                 pthread-config)
16323                 # Extract the first word of "pthread-config", so it can be a program name with args.
16324 set dummy pthread-config; ac_word=$2
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16326 $as_echo_n "checking for $ac_word... " >&6; }
16327 if ${ac_cv_prog_acx_pthread_config+:} false; then :
16328   $as_echo_n "(cached) " >&6
16329 else
16330   if test -n "$acx_pthread_config"; then
16331   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16332 else
16333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16334 for as_dir in $PATH
16335 do
16336   IFS=$as_save_IFS
16337   test -z "$as_dir" && as_dir=.
16338     for ac_exec_ext in '' $ac_executable_extensions; do
16339   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16340     ac_cv_prog_acx_pthread_config="yes"
16341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16342     break 2
16343   fi
16344 done
16345   done
16346 IFS=$as_save_IFS
16347
16348   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16349 fi
16350 fi
16351 acx_pthread_config=$ac_cv_prog_acx_pthread_config
16352 if test -n "$acx_pthread_config"; then
16353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
16354 $as_echo "$acx_pthread_config" >&6; }
16355 else
16356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16357 $as_echo "no" >&6; }
16358 fi
16359
16360
16361                 if test x"$acx_pthread_config" = xno; then continue; fi
16362                 PTHREAD_CFLAGS="`pthread-config --cflags`"
16363                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16364                 ;;
16365
16366                 *)
16367                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16368 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16369                 PTHREAD_LIBS="-l$flag"
16370                 ;;
16371         esac
16372
16373         save_LIBS="$LIBS"
16374         save_CFLAGS="$CFLAGS"
16375         LIBS="$PTHREAD_LIBS $LIBS"
16376         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16377
16378         # Check for various functions.  We must include pthread.h,
16379         # since some functions may be macros.  (On the Sequent, we
16380         # need a special flag -Kthread to make this header compile.)
16381         # We check for pthread_join because it is in -lpthread on IRIX
16382         # while pthread_create is in libc.  We check for pthread_attr_init
16383         # due to DEC craziness with -lpthreads.  We check for
16384         # pthread_cleanup_push because it is one of the few pthread
16385         # functions on Solaris that doesn't have a non-functional libc stub.
16386         # We try pthread_create on general principles.
16387         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16388 /* end confdefs.h.  */
16389 #include <pthread.h>
16390 int
16391 main ()
16392 {
16393 pthread_t th; pthread_join(th, 0);
16394                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
16395                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16396   ;
16397   return 0;
16398 }
16399 _ACEOF
16400 if ac_fn_c_try_link "$LINENO"; then :
16401   acx_pthread_ok=yes
16402 fi
16403 rm -f core conftest.err conftest.$ac_objext \
16404     conftest$ac_exeext conftest.$ac_ext
16405
16406         LIBS="$save_LIBS"
16407         CFLAGS="$save_CFLAGS"
16408
16409         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16410 $as_echo "$acx_pthread_ok" >&6; }
16411         if test "x$acx_pthread_ok" = xyes; then
16412                 break;
16413         fi
16414
16415         PTHREAD_LIBS=""
16416         PTHREAD_CFLAGS=""
16417 done
16418 fi
16419
16420 # Various other checks:
16421 if test "x$acx_pthread_ok" = xyes; then
16422         save_LIBS="$LIBS"
16423         LIBS="$PTHREAD_LIBS $LIBS"
16424         save_CFLAGS="$CFLAGS"
16425         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16426
16427         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16428         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16429 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16430         attr_name=unknown
16431         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16432             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16433 /* end confdefs.h.  */
16434 #include <pthread.h>
16435 int
16436 main ()
16437 {
16438 int attr=$attr; return attr;
16439   ;
16440   return 0;
16441 }
16442 _ACEOF
16443 if ac_fn_c_try_link "$LINENO"; then :
16444   attr_name=$attr; break
16445 fi
16446 rm -f core conftest.err conftest.$ac_objext \
16447     conftest$ac_exeext conftest.$ac_ext
16448         done
16449         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16450 $as_echo "$attr_name" >&6; }
16451         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16452
16453 cat >>confdefs.h <<_ACEOF
16454 #define PTHREAD_CREATE_JOINABLE $attr_name
16455 _ACEOF
16456
16457         fi
16458
16459         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16460 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16461         flag=no
16462         case "${host_cpu}-${host_os}" in
16463             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16464             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16465         esac
16466         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
16467 $as_echo "${flag}" >&6; }
16468         if test "x$flag" != xno; then
16469             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16470         fi
16471
16472         LIBS="$save_LIBS"
16473         CFLAGS="$save_CFLAGS"
16474         # More AIX lossage: must compile with xlc_r or cc_r
16475         if test x"$GCC" != xyes; then
16476           for ac_prog in xlc_r cc_r
16477 do
16478   # Extract the first word of "$ac_prog", so it can be a program name with args.
16479 set dummy $ac_prog; ac_word=$2
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16481 $as_echo_n "checking for $ac_word... " >&6; }
16482 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16483   $as_echo_n "(cached) " >&6
16484 else
16485   if test -n "$PTHREAD_CC"; then
16486   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16487 else
16488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16489 for as_dir in $PATH
16490 do
16491   IFS=$as_save_IFS
16492   test -z "$as_dir" && as_dir=.
16493     for ac_exec_ext in '' $ac_executable_extensions; do
16494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16495     ac_cv_prog_PTHREAD_CC="$ac_prog"
16496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16497     break 2
16498   fi
16499 done
16500   done
16501 IFS=$as_save_IFS
16502
16503 fi
16504 fi
16505 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16506 if test -n "$PTHREAD_CC"; then
16507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16508 $as_echo "$PTHREAD_CC" >&6; }
16509 else
16510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16511 $as_echo "no" >&6; }
16512 fi
16513
16514
16515   test -n "$PTHREAD_CC" && break
16516 done
16517 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
16518
16519         else
16520           PTHREAD_CC=$CC
16521         fi
16522
16523         # The next part tries to detect GCC inconsistency with -shared on some
16524         # architectures and systems. The problem is that in certain
16525         # configurations, when -shared is specified, GCC "forgets" to
16526         # internally use various flags which are still necessary.
16527
16528         #
16529         # Prepare the flags
16530         #
16531         save_CFLAGS="$CFLAGS"
16532         save_LIBS="$LIBS"
16533         save_CC="$CC"
16534
16535         # Try with the flags determined by the earlier checks.
16536         #
16537         # -Wl,-z,defs forces link-time symbol resolution, so that the
16538         # linking checks with -shared actually have any value
16539         #
16540         # FIXME: -fPIC is required for -shared on many architectures,
16541         # so we specify it here, but the right way would probably be to
16542         # properly detect whether it is actually required.
16543         CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
16544         LIBS="$PTHREAD_LIBS $LIBS"
16545         CC="$PTHREAD_CC"
16546
16547         # In order not to create several levels of indentation, we test
16548         # the value of "$done" until we find the cure or run out of ideas.
16549         done="no"
16550
16551         # First, make sure the CFLAGS we added are actually accepted by our
16552         # compiler.  If not (and OS X's ld, for instance, does not accept -z),
16553         # then we can't do this test.
16554         if test x"$done" = xno; then
16555            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
16556 $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
16557            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16558 /* end confdefs.h.  */
16559
16560 int
16561 main ()
16562 {
16563
16564   ;
16565   return 0;
16566 }
16567 _ACEOF
16568 if ac_fn_c_try_link "$LINENO"; then :
16569
16570 else
16571   done=yes
16572 fi
16573 rm -f core conftest.err conftest.$ac_objext \
16574     conftest$ac_exeext conftest.$ac_ext
16575
16576            if test "x$done" = xyes ; then
16577               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16578 $as_echo "no" >&6; }
16579            else
16580               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16581 $as_echo "yes" >&6; }
16582            fi
16583         fi
16584
16585         if test x"$done" = xno; then
16586            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
16587 $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
16588            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16589 /* end confdefs.h.  */
16590 #include <pthread.h>
16591 int
16592 main ()
16593 {
16594 pthread_t th; pthread_join(th, 0);
16595               pthread_attr_init(0); pthread_cleanup_push(0, 0);
16596               pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16597   ;
16598   return 0;
16599 }
16600 _ACEOF
16601 if ac_fn_c_try_link "$LINENO"; then :
16602   done=yes
16603 fi
16604 rm -f core conftest.err conftest.$ac_objext \
16605     conftest$ac_exeext conftest.$ac_ext
16606
16607            if test "x$done" = xyes; then
16608               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16609 $as_echo "yes" >&6; }
16610            else
16611               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16612 $as_echo "no" >&6; }
16613            fi
16614         fi
16615
16616         #
16617         # Linux gcc on some architectures such as mips/mipsel forgets
16618         # about -lpthread
16619         #
16620         if test x"$done" = xno; then
16621            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
16622 $as_echo_n "checking whether -lpthread fixes that... " >&6; }
16623            LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
16624            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16625 /* end confdefs.h.  */
16626 #include <pthread.h>
16627 int
16628 main ()
16629 {
16630 pthread_t th; pthread_join(th, 0);
16631               pthread_attr_init(0); pthread_cleanup_push(0, 0);
16632               pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16633   ;
16634   return 0;
16635 }
16636 _ACEOF
16637 if ac_fn_c_try_link "$LINENO"; then :
16638   done=yes
16639 fi
16640 rm -f core conftest.err conftest.$ac_objext \
16641     conftest$ac_exeext conftest.$ac_ext
16642
16643            if test "x$done" = xyes; then
16644               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16645 $as_echo "yes" >&6; }
16646               PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
16647            else
16648               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16649 $as_echo "no" >&6; }
16650            fi
16651         fi
16652         #
16653         # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
16654         #
16655         if test x"$done" = xno; then
16656            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
16657 $as_echo_n "checking whether -lc_r fixes that... " >&6; }
16658            LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
16659            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16660 /* end confdefs.h.  */
16661 #include <pthread.h>
16662 int
16663 main ()
16664 {
16665 pthread_t th; pthread_join(th, 0);
16666                 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16667                 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16668   ;
16669   return 0;
16670 }
16671 _ACEOF
16672 if ac_fn_c_try_link "$LINENO"; then :
16673   done=yes
16674 fi
16675 rm -f core conftest.err conftest.$ac_objext \
16676     conftest$ac_exeext conftest.$ac_ext
16677
16678            if test "x$done" = xyes; then
16679               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16680 $as_echo "yes" >&6; }
16681               PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
16682            else
16683               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16684 $as_echo "no" >&6; }
16685            fi
16686         fi
16687         if test x"$done" = xno; then
16688            # OK, we have run out of ideas
16689            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
16690 $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
16691
16692            # so it's not safe to assume that we may use pthreads
16693            acx_pthread_ok=no
16694         fi
16695
16696         CFLAGS="$save_CFLAGS"
16697         LIBS="$save_LIBS"
16698         CC="$save_CC"
16699 else
16700         PTHREAD_CC="$CC"
16701 fi
16702
16703
16704
16705
16706
16707 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16708 if test x"$acx_pthread_ok" = xyes; then
16709
16710 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16711
16712         :
16713 else
16714         acx_pthread_ok=no
16715
16716 fi
16717 ac_ext=cpp
16718 ac_cpp='$CXXCPP $CPPFLAGS'
16719 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16720 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16721 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16722
16723
16724 if test x"$acx_pthread_ok" = x"yes"; then
16725   # To make libglog depend on libpthread on Linux, we need to add
16726   # -lpthread in addition to -pthread.
16727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
16728 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
16729 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
16730   $as_echo_n "(cached) " >&6
16731 else
16732   ac_check_lib_save_LIBS=$LIBS
16733 LIBS="-lpthread  $LIBS"
16734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16735 /* end confdefs.h.  */
16736
16737 /* Override any GCC internal prototype to avoid an error.
16738    Use char because int might match the return type of a GCC
16739    builtin and then its argument prototype would still apply.  */
16740 #ifdef __cplusplus
16741 extern "C"
16742 #endif
16743 char pthread_self ();
16744 int
16745 main ()
16746 {
16747 return pthread_self ();
16748   ;
16749   return 0;
16750 }
16751 _ACEOF
16752 if ac_fn_cxx_try_link "$LINENO"; then :
16753   ac_cv_lib_pthread_pthread_self=yes
16754 else
16755   ac_cv_lib_pthread_pthread_self=no
16756 fi
16757 rm -f core conftest.err conftest.$ac_objext \
16758     conftest$ac_exeext conftest.$ac_ext
16759 LIBS=$ac_check_lib_save_LIBS
16760 fi
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
16762 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
16763 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
16764   cat >>confdefs.h <<_ACEOF
16765 #define HAVE_LIBPTHREAD 1
16766 _ACEOF
16767
16768   LIBS="-lpthread $LIBS"
16769
16770 fi
16771
16772 fi
16773
16774 # Check if there is google-gflags library installed.
16775 SAVE_CFLAGS="$CFLAGS"
16776 SAVE_LIBS="$LIBS"
16777
16778 # Check whether --with-gflags was given.
16779 if test "${with_gflags+set}" = set; then :
16780   withval=$with_gflags; GFLAGS_CFLAGS="-I${with_gflags}/include"
16781   GFLAGS_LIBS="-L${with_gflags}/lib -lgflags"
16782   CFLAGS="$CFLAGS $GFLAGS_CFLAGS"
16783   LIBS="$LIBS $GFLAGS_LIBS"
16784
16785 fi
16786
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgflags" >&5
16788 $as_echo_n "checking for main in -lgflags... " >&6; }
16789 if ${ac_cv_lib_gflags_main+:} false; then :
16790   $as_echo_n "(cached) " >&6
16791 else
16792   ac_check_lib_save_LIBS=$LIBS
16793 LIBS="-lgflags  $LIBS"
16794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16795 /* end confdefs.h.  */
16796
16797
16798 int
16799 main ()
16800 {
16801 return main ();
16802   ;
16803   return 0;
16804 }
16805 _ACEOF
16806 if ac_fn_cxx_try_link "$LINENO"; then :
16807   ac_cv_lib_gflags_main=yes
16808 else
16809   ac_cv_lib_gflags_main=no
16810 fi
16811 rm -f core conftest.err conftest.$ac_objext \
16812     conftest$ac_exeext conftest.$ac_ext
16813 LIBS=$ac_check_lib_save_LIBS
16814 fi
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gflags_main" >&5
16816 $as_echo "$ac_cv_lib_gflags_main" >&6; }
16817 if test "x$ac_cv_lib_gflags_main" = xyes; then :
16818   ac_cv_have_libgflags=1
16819 else
16820   ac_cv_have_libgflags=0
16821 fi
16822
16823 if test x"$ac_cv_have_libgflags" = x"1"; then
16824
16825 $as_echo "#define HAVE_LIB_GFLAGS 1" >>confdefs.h
16826
16827   if test x"$GFLAGS_LIBS" = x""; then
16828     GFLAGS_LIBS="-lgflags"
16829   fi
16830 else
16831   GFLAGS_CFLAGS=
16832   GFLAGS_LIBS=
16833 fi
16834 CFLAGS="$SAVE_CFLAGS"
16835 LIBS="$SAVE_LIBS"
16836
16837 # TODO(hamaji): Use official m4 macros provided by testing libraries
16838 #               once the m4 macro of Google Mocking becomes ready.
16839 # Check if there is Google Test library installed.
16840 # Extract the first word of "gtest-config", so it can be a program name with args.
16841 set dummy gtest-config; ac_word=$2
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16843 $as_echo_n "checking for $ac_word... " >&6; }
16844 if ${ac_cv_prog_GTEST_CONFIG+:} false; then :
16845   $as_echo_n "(cached) " >&6
16846 else
16847   if test -n "$GTEST_CONFIG"; then
16848   ac_cv_prog_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test.
16849 else
16850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16851 for as_dir in $PATH
16852 do
16853   IFS=$as_save_IFS
16854   test -z "$as_dir" && as_dir=.
16855     for ac_exec_ext in '' $ac_executable_extensions; do
16856   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16857     ac_cv_prog_GTEST_CONFIG=""yes""
16858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16859     break 2
16860   fi
16861 done
16862   done
16863 IFS=$as_save_IFS
16864
16865 fi
16866 fi
16867 GTEST_CONFIG=$ac_cv_prog_GTEST_CONFIG
16868 if test -n "$GTEST_CONFIG"; then
16869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
16870 $as_echo "$GTEST_CONFIG" >&6; }
16871 else
16872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16873 $as_echo "no" >&6; }
16874 fi
16875
16876
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgtest" >&5
16878 $as_echo_n "checking for main in -lgtest... " >&6; }
16879 if ${ac_cv_lib_gtest_main+:} false; then :
16880   $as_echo_n "(cached) " >&6
16881 else
16882   ac_check_lib_save_LIBS=$LIBS
16883 LIBS="-lgtest  $LIBS"
16884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16885 /* end confdefs.h.  */
16886
16887
16888 int
16889 main ()
16890 {
16891 return main ();
16892   ;
16893   return 0;
16894 }
16895 _ACEOF
16896 if ac_fn_cxx_try_link "$LINENO"; then :
16897   ac_cv_lib_gtest_main=yes
16898 else
16899   ac_cv_lib_gtest_main=no
16900 fi
16901 rm -f core conftest.err conftest.$ac_objext \
16902     conftest$ac_exeext conftest.$ac_ext
16903 LIBS=$ac_check_lib_save_LIBS
16904 fi
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gtest_main" >&5
16906 $as_echo "$ac_cv_lib_gtest_main" >&6; }
16907 if test "x$ac_cv_lib_gtest_main" = xyes; then :
16908   have_gtest_lib="yes"
16909 fi
16910
16911 if test x"$GTEST_CONFIG" = "xyes" -a x"$have_gtest_lib" = "xyes"; then
16912   GTEST_CFLAGS=`gtest-config --cppflags --cxxflags`
16913   GTEST_LIBS=`gtest-config --ldflags --libs`
16914
16915 $as_echo "#define HAVE_LIB_GTEST 1" >>confdefs.h
16916
16917
16918   # Check if there is Google Mocking library installed.
16919   # Extract the first word of "gmock-config", so it can be a program name with args.
16920 set dummy gmock-config; ac_word=$2
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16922 $as_echo_n "checking for $ac_word... " >&6; }
16923 if ${ac_cv_prog_GMOCK_CONFIG+:} false; then :
16924   $as_echo_n "(cached) " >&6
16925 else
16926   if test -n "$GMOCK_CONFIG"; then
16927   ac_cv_prog_GMOCK_CONFIG="$GMOCK_CONFIG" # Let the user override the test.
16928 else
16929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16930 for as_dir in $PATH
16931 do
16932   IFS=$as_save_IFS
16933   test -z "$as_dir" && as_dir=.
16934     for ac_exec_ext in '' $ac_executable_extensions; do
16935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16936     ac_cv_prog_GMOCK_CONFIG=""yes""
16937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16938     break 2
16939   fi
16940 done
16941   done
16942 IFS=$as_save_IFS
16943
16944 fi
16945 fi
16946 GMOCK_CONFIG=$ac_cv_prog_GMOCK_CONFIG
16947 if test -n "$GMOCK_CONFIG"; then
16948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMOCK_CONFIG" >&5
16949 $as_echo "$GMOCK_CONFIG" >&6; }
16950 else
16951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16952 $as_echo "no" >&6; }
16953 fi
16954
16955
16956   if test x"$GMOCK_CONFIG" = "xyes"; then
16957     GMOCK_CFLAGS=`gmock-config --cppflags --cxxflags`
16958     GMOCK_LIBS=`gmock-config --ldflags --libs`
16959
16960 $as_echo "#define HAVE_LIB_GMOCK 1" >>confdefs.h
16961
16962   else
16963     # We don't run test cases which use Google Mocking framework.
16964     GMOCK_CFLAGS=
16965     GMOCK_LIBS=
16966   fi
16967 else
16968   # We'll use src/googletest.h for our unittests.
16969   GTEST_CFLAGS=
16970   GTEST_LIBS=
16971 fi
16972  if test x"$GMOCK_CONFIG" = "xyes"; then
16973   HAVE_GMOCK_TRUE=
16974   HAVE_GMOCK_FALSE='#'
16975 else
16976   HAVE_GMOCK_TRUE='#'
16977   HAVE_GMOCK_FALSE=
16978 fi
16979
16980
16981 # We want to link in libunwind if it exists
16982 UNWIND_LIBS=
16983 # Unfortunately, we need to check the header file in addition to the
16984 # lib file to check if libunwind is available since libunwind-0.98
16985 # doesn't install all necessary header files.
16986 if test x"$ac_cv_have_libunwind_h" = x"1"; then
16987  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5
16988 $as_echo_n "checking for backtrace in -lunwind... " >&6; }
16989 if ${ac_cv_lib_unwind_backtrace+:} false; then :
16990   $as_echo_n "(cached) " >&6
16991 else
16992   ac_check_lib_save_LIBS=$LIBS
16993 LIBS="-lunwind  $LIBS"
16994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16995 /* end confdefs.h.  */
16996
16997 /* Override any GCC internal prototype to avoid an error.
16998    Use char because int might match the return type of a GCC
16999    builtin and then its argument prototype would still apply.  */
17000 #ifdef __cplusplus
17001 extern "C"
17002 #endif
17003 char backtrace ();
17004 int
17005 main ()
17006 {
17007 return backtrace ();
17008   ;
17009   return 0;
17010 }
17011 _ACEOF
17012 if ac_fn_cxx_try_link "$LINENO"; then :
17013   ac_cv_lib_unwind_backtrace=yes
17014 else
17015   ac_cv_lib_unwind_backtrace=no
17016 fi
17017 rm -f core conftest.err conftest.$ac_objext \
17018     conftest$ac_exeext conftest.$ac_ext
17019 LIBS=$ac_check_lib_save_LIBS
17020 fi
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5
17022 $as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
17023 if test "x$ac_cv_lib_unwind_backtrace" = xyes; then :
17024   UNWIND_LIBS=-lunwind
17025 fi
17026
17027 fi
17028
17029 if test x"$UNWIND_LIBS" != x""; then
17030
17031 $as_echo "#define HAVE_LIB_UNWIND 1" >>confdefs.h
17032
17033 fi
17034
17035 # We'd like to use read/write locks in several places in the code.
17036 # See if our pthreads support extends to that.  Note: for linux, it
17037 # does as long as you define _XOPEN_SOURCE appropriately.
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for pthread_rwlock_* functions" >&5
17039 $as_echo_n "checking support for pthread_rwlock_* functions... " >&6; }
17040 if ${ac_cv_rwlock+:} false; then :
17041   $as_echo_n "(cached) " >&6
17042 else
17043
17044  ac_ext=c
17045 ac_cpp='$CPP $CPPFLAGS'
17046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17049
17050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17051 /* end confdefs.h.  */
17052 #define _XOPEN_SOURCE 500
17053                  #include <pthread.h>
17054 int
17055 main ()
17056 {
17057 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
17058                  pthread_rwlock_rdlock(&l);
17059                  return 0;
17060   ;
17061   return 0;
17062 }
17063 _ACEOF
17064 if ac_fn_c_try_compile "$LINENO"; then :
17065   ac_cv_rwlock=yes
17066 else
17067   ac_cv_rwlock=no
17068 fi
17069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17070  ac_ext=cpp
17071 ac_cpp='$CXXCPP $CPPFLAGS'
17072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17075
17076
17077 fi
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rwlock" >&5
17079 $as_echo "$ac_cv_rwlock" >&6; }
17080 if test "$ac_cv_rwlock" = yes; then
17081
17082 $as_echo "#define HAVE_RWLOCK 1" >>confdefs.h
17083
17084 fi
17085
17086
17087 # Find out what namespace 'normal' STL code lives in, and also what namespace
17088 # the user wants our classes to be defined in
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
17090 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
17091 if ${ac_cv_cxx_namespaces+:} false; then :
17092   $as_echo_n "(cached) " >&6
17093 else
17094
17095                   ac_ext=cpp
17096 ac_cpp='$CXXCPP $CPPFLAGS'
17097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17100
17101                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17102 /* end confdefs.h.  */
17103 namespace Outer {
17104                                     namespace Inner { int i = 0; }}
17105 int
17106 main ()
17107 {
17108 using namespace Outer::Inner; return i;
17109   ;
17110   return 0;
17111 }
17112 _ACEOF
17113 if ac_fn_cxx_try_compile "$LINENO"; then :
17114   ac_cv_cxx_namespaces=yes
17115 else
17116   ac_cv_cxx_namespaces=no
17117 fi
17118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17119                   ac_ext=cpp
17120 ac_cpp='$CXXCPP $CPPFLAGS'
17121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17124
17125 fi
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
17127 $as_echo "$ac_cv_cxx_namespaces" >&6; }
17128   if test "$ac_cv_cxx_namespaces" = yes; then
17129
17130 $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
17131
17132   fi
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what namespace STL code is in" >&5
17134 $as_echo_n "checking what namespace STL code is in... " >&6; }
17135 if ${ac_cv_cxx_stl_namespace+:} false; then :
17136   $as_echo_n "(cached) " >&6
17137 else
17138
17139
17140       ac_ext=cpp
17141 ac_cpp='$CXXCPP $CPPFLAGS'
17142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17145
17146       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17147 /* end confdefs.h.  */
17148 #include <vector>
17149 int
17150 main ()
17151 {
17152 vector<int> t; return 0;
17153   ;
17154   return 0;
17155 }
17156 _ACEOF
17157 if ac_fn_cxx_try_compile "$LINENO"; then :
17158   ac_cv_cxx_stl_namespace=none
17159 fi
17160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17161       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17162 /* end confdefs.h.  */
17163 #include <vector>
17164 int
17165 main ()
17166 {
17167 std::vector<int> t; return 0;
17168   ;
17169   return 0;
17170 }
17171 _ACEOF
17172 if ac_fn_cxx_try_compile "$LINENO"; then :
17173   ac_cv_cxx_stl_namespace=std
17174 fi
17175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17176       ac_ext=cpp
17177 ac_cpp='$CXXCPP $CPPFLAGS'
17178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17181
17182 fi
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_stl_namespace" >&5
17184 $as_echo "$ac_cv_cxx_stl_namespace" >&6; }
17185    if test "$ac_cv_cxx_stl_namespace" = none; then
17186
17187 $as_echo "#define STL_NAMESPACE /**/" >>confdefs.h
17188
17189    fi
17190    if test "$ac_cv_cxx_stl_namespace" = std; then
17191
17192 $as_echo "#define STL_NAMESPACE std" >>confdefs.h
17193
17194    fi
17195
17196 google_namespace_default=google
17197    # Check whether --enable-namespace was given.
17198 if test "${enable_namespace+set}" = set; then :
17199   enableval=$enable_namespace; case "$enableval" in
17200                     yes) google_namespace="$google_namespace_default" ;;
17201                      no) google_namespace="" ;;
17202                       *) google_namespace="$enableval" ;;
17203                   esac
17204 else
17205   google_namespace="$google_namespace_default"
17206 fi
17207
17208    if test -n "$google_namespace"; then
17209      ac_google_namespace="$google_namespace"
17210      ac_google_start_namespace="namespace $google_namespace {"
17211      ac_google_end_namespace="}"
17212    else
17213      ac_google_namespace=""
17214      ac_google_start_namespace=""
17215      ac_google_end_namespace=""
17216    fi
17217
17218 cat >>confdefs.h <<_ACEOF
17219 #define GOOGLE_NAMESPACE $ac_google_namespace
17220 _ACEOF
17221
17222
17223 cat >>confdefs.h <<_ACEOF
17224 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
17225 _ACEOF
17226
17227
17228 cat >>confdefs.h <<_ACEOF
17229 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
17230 _ACEOF
17231
17232
17233
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports using ::operator<<" >&5
17235 $as_echo_n "checking whether compiler supports using ::operator<<... " >&6; }
17236 if ${ac_cv_cxx_using_operator+:} false; then :
17237   $as_echo_n "(cached) " >&6
17238 else
17239
17240        ac_ext=cpp
17241 ac_cpp='$CXXCPP $CPPFLAGS'
17242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17245
17246        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17247 /* end confdefs.h.  */
17248 #include <iostream>
17249                        std::ostream& operator<<(std::ostream&, struct s);
17250 int
17251 main ()
17252 {
17253 using ::operator<<; return 0;
17254   ;
17255   return 0;
17256 }
17257 _ACEOF
17258 if ac_fn_cxx_try_compile "$LINENO"; then :
17259   ac_cv_cxx_using_operator=1
17260 else
17261   ac_cv_cxx_using_operator=0
17262 fi
17263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17264       ac_ext=cpp
17265 ac_cpp='$CXXCPP $CPPFLAGS'
17266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17269
17270 fi
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_using_operator" >&5
17272 $as_echo "$ac_cv_cxx_using_operator" >&6; }
17273   if test "$ac_cv_cxx_using_operator" = 1; then
17274
17275 $as_echo "#define HAVE_USING_OPERATOR 1" >>confdefs.h
17276
17277   fi
17278
17279 for ac_header in ucontext.h
17280 do :
17281   ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
17282 if test "x$ac_cv_header_ucontext_h" = xyes; then :
17283   cat >>confdefs.h <<_ACEOF
17284 #define HAVE_UCONTEXT_H 1
17285 _ACEOF
17286
17287 fi
17288
17289 done
17290
17291    for ac_header in sys/ucontext.h
17292 do :
17293   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "$ac_includes_default"
17294 if test "x$ac_cv_header_sys_ucontext_h" = xyes; then :
17295   cat >>confdefs.h <<_ACEOF
17296 #define HAVE_SYS_UCONTEXT_H 1
17297 _ACEOF
17298
17299 fi
17300
17301 done
17302        # ucontext on OS X 10.6 (at least)
17303    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to access the program counter from a struct ucontext" >&5
17304 $as_echo_n "checking how to access the program counter from a struct ucontext... " >&6; }
17305    pc_fields="           uc_mcontext.gregs[REG_PC]"  # Solaris x86 (32 + 64 bit)
17306    pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
17307    pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
17308    pc_fields="$pc_fields uc_mcontext.sc_ip"            # Linux (ia64)
17309    pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
17310    pc_fields="$pc_fields uc_mcontext.gregs[R15]"     # Linux (arm old [untested])
17311    pc_fields="$pc_fields uc_mcontext.arm_pc"           # Linux (arm new [untested])
17312    pc_fields="$pc_fields uc_mcontext.mc_eip"           # FreeBSD (i386)
17313    pc_fields="$pc_fields uc_mcontext.mc_rip"           # FreeBSD (x86_64 [untested])
17314    pc_fields="$pc_fields uc_mcontext.__gregs[_REG_EIP]"  # NetBSD (i386)
17315    pc_fields="$pc_fields uc_mcontext.__gregs[_REG_RIP]"  # NetBSD (x86_64)
17316    pc_fields="$pc_fields uc_mcontext->ss.eip"          # OS X (i386, <=10.4)
17317    pc_fields="$pc_fields uc_mcontext->__ss.__eip"      # OS X (i386, >=10.5)
17318    pc_fields="$pc_fields uc_mcontext->ss.rip"          # OS X (x86_64)
17319    pc_fields="$pc_fields uc_mcontext->__ss.__rip"      # OS X (>=10.5 [untested])
17320    pc_fields="$pc_fields uc_mcontext->ss.srr0"         # OS X (ppc, ppc64 [untested])
17321    pc_fields="$pc_fields uc_mcontext->__ss.__srr0"     # OS X (>=10.5 [untested])
17322    pc_field_found=false
17323    for pc_field in $pc_fields; do
17324      if ! $pc_field_found; then
17325        if test "x$ac_cv_header_sys_ucontext_h" = xyes; then
17326          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17327 /* end confdefs.h.  */
17328 #define _GNU_SOURCE 1
17329                          #include <sys/ucontext.h>
17330 int
17331 main ()
17332 {
17333 ucontext_t u; return u.$pc_field == 0;
17334   ;
17335   return 0;
17336 }
17337 _ACEOF
17338 if ac_fn_cxx_try_compile "$LINENO"; then :
17339
17340 cat >>confdefs.h <<_ACEOF
17341 #define PC_FROM_UCONTEXT $pc_field
17342 _ACEOF
17343
17344                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
17345 $as_echo "$pc_field" >&6; }
17346                         pc_field_found=true
17347 fi
17348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17349        else
17350          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17351 /* end confdefs.h.  */
17352 #define _GNU_SOURCE 1
17353                          #include <ucontext.h>
17354 int
17355 main ()
17356 {
17357 ucontext_t u; return u.$pc_field == 0;
17358   ;
17359   return 0;
17360 }
17361 _ACEOF
17362 if ac_fn_cxx_try_compile "$LINENO"; then :
17363
17364 cat >>confdefs.h <<_ACEOF
17365 #define PC_FROM_UCONTEXT $pc_field
17366 _ACEOF
17367
17368                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
17369 $as_echo "$pc_field" >&6; }
17370                         pc_field_found=true
17371 fi
17372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17373        fi
17374      fi
17375    done
17376    if ! $pc_field_found; then
17377      pc_fields="           sc_eip"  # OpenBSD (i386)
17378      pc_fields="$pc_fields sc_rip"  # OpenBSD (x86_64)
17379      for pc_field in $pc_fields; do
17380        if ! $pc_field_found; then
17381          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17382 /* end confdefs.h.  */
17383 #include <signal.h>
17384 int
17385 main ()
17386 {
17387 ucontext_t u; return u.$pc_field == 0;
17388   ;
17389   return 0;
17390 }
17391 _ACEOF
17392 if ac_fn_cxx_try_compile "$LINENO"; then :
17393
17394 cat >>confdefs.h <<_ACEOF
17395 #define PC_FROM_UCONTEXT $pc_field
17396 _ACEOF
17397
17398                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
17399 $as_echo "$pc_field" >&6; }
17400                         pc_field_found=true
17401 fi
17402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17403        fi
17404      done
17405    fi
17406    if ! $pc_field_found; then
17407      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the PC.  Will not output failed addresses..." >&5
17408 $as_echo "$as_me: WARNING: Could not find the PC.  Will not output failed addresses..." >&2;}
17409    fi
17410
17411
17412 cat >>confdefs.h <<_ACEOF
17413 #define TEST_SRC_DIR "$srcdir"
17414 _ACEOF
17415
17416
17417 # These are what's needed by logging.h.in and raw_logging.h.in
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442 # Write generated configuration file
17443 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"
17444
17445 ac_config_files="$ac_config_files libglog.pc"
17446
17447 cat >confcache <<\_ACEOF
17448 # This file is a shell script that caches the results of configure
17449 # tests run on this system so they can be shared between configure
17450 # scripts and configure runs, see configure's option --config-cache.
17451 # It is not useful on other systems.  If it contains results you don't
17452 # want to keep, you may remove or edit it.
17453 #
17454 # config.status only pays attention to the cache file if you give it
17455 # the --recheck option to rerun configure.
17456 #
17457 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17458 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17459 # following values.
17460
17461 _ACEOF
17462
17463 # The following way of writing the cache mishandles newlines in values,
17464 # but we know of no workaround that is simple, portable, and efficient.
17465 # So, we kill variables containing newlines.
17466 # Ultrix sh set writes to stderr and can't be redirected directly,
17467 # and sets the high bit in the cache file unless we assign to the vars.
17468 (
17469   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17470     eval ac_val=\$$ac_var
17471     case $ac_val in #(
17472     *${as_nl}*)
17473       case $ac_var in #(
17474       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17475 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17476       esac
17477       case $ac_var in #(
17478       _ | IFS | as_nl) ;; #(
17479       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17480       *) { eval $ac_var=; unset $ac_var;} ;;
17481       esac ;;
17482     esac
17483   done
17484
17485   (set) 2>&1 |
17486     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17487     *${as_nl}ac_space=\ *)
17488       # `set' does not quote correctly, so add quotes: double-quote
17489       # substitution turns \\\\ into \\, and sed turns \\ into \.
17490       sed -n \
17491         "s/'/'\\\\''/g;
17492           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17493       ;; #(
17494     *)
17495       # `set' quotes correctly as required by POSIX, so do not add quotes.
17496       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17497       ;;
17498     esac |
17499     sort
17500 ) |
17501   sed '
17502      /^ac_cv_env_/b end
17503      t clear
17504      :clear
17505      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17506      t end
17507      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17508      :end' >>confcache
17509 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17510   if test -w "$cache_file"; then
17511     if test "x$cache_file" != "x/dev/null"; then
17512       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17513 $as_echo "$as_me: updating cache $cache_file" >&6;}
17514       if test ! -f "$cache_file" || test -h "$cache_file"; then
17515         cat confcache >"$cache_file"
17516       else
17517         case $cache_file in #(
17518         */* | ?:*)
17519           mv -f confcache "$cache_file"$$ &&
17520           mv -f "$cache_file"$$ "$cache_file" ;; #(
17521         *)
17522           mv -f confcache "$cache_file" ;;
17523         esac
17524       fi
17525     fi
17526   else
17527     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17528 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17529   fi
17530 fi
17531 rm -f confcache
17532
17533 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17534 # Let make expand exec_prefix.
17535 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17536
17537 DEFS=-DHAVE_CONFIG_H
17538
17539 ac_libobjs=
17540 ac_ltlibobjs=
17541 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17542   # 1. Remove the extension, and $U if already installed.
17543   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17544   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17545   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17546   #    will be set to the directory where LIBOBJS objects are built.
17547   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17548   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17549 done
17550 LIBOBJS=$ac_libobjs
17551
17552 LTLIBOBJS=$ac_ltlibobjs
17553
17554
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17556 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17557    if test -n "$am_sleep_pid"; then
17558      # Hide warnings about reused PIDs.
17559      wait $am_sleep_pid 2>/dev/null
17560    fi
17561    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17562 $as_echo "done" >&6; }
17563  if test -n "$EXEEXT"; then
17564   am__EXEEXT_TRUE=
17565   am__EXEEXT_FALSE='#'
17566 else
17567   am__EXEEXT_TRUE='#'
17568   am__EXEEXT_FALSE=
17569 fi
17570
17571 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17572   as_fn_error $? "conditional \"AMDEP\" was never defined.
17573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17574 fi
17575 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17576   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17578 fi
17579 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17580   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17582 fi
17583 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
17584   as_fn_error $? "conditional \"GCC\" was never defined.
17585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17586 fi
17587 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
17588   as_fn_error $? "conditional \"ENABLE_FRAME_POINTERS\" was never defined.
17589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17590 fi
17591 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
17592   as_fn_error $? "conditional \"X86_64\" was never defined.
17593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17594 fi
17595 if test -z "${DISABLE_RTTI_TRUE}" && test -z "${DISABLE_RTTI_FALSE}"; then
17596   as_fn_error $? "conditional \"DISABLE_RTTI\" was never defined.
17597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17598 fi
17599 if test -z "${HAVE_GMOCK_TRUE}" && test -z "${HAVE_GMOCK_FALSE}"; then
17600   as_fn_error $? "conditional \"HAVE_GMOCK\" was never defined.
17601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17602 fi
17603
17604 : "${CONFIG_STATUS=./config.status}"
17605 ac_write_fail=0
17606 ac_clean_files_save=$ac_clean_files
17607 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17609 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17610 as_write_fail=0
17611 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17612 #! $SHELL
17613 # Generated by $as_me.
17614 # Run this file to recreate the current configuration.
17615 # Compiler output produced by configure, useful for debugging
17616 # configure, is in config.log if it exists.
17617
17618 debug=false
17619 ac_cs_recheck=false
17620 ac_cs_silent=false
17621
17622 SHELL=\${CONFIG_SHELL-$SHELL}
17623 export SHELL
17624 _ASEOF
17625 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17626 ## -------------------- ##
17627 ## M4sh Initialization. ##
17628 ## -------------------- ##
17629
17630 # Be more Bourne compatible
17631 DUALCASE=1; export DUALCASE # for MKS sh
17632 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17633   emulate sh
17634   NULLCMD=:
17635   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17636   # is contrary to our usage.  Disable this feature.
17637   alias -g '${1+"$@"}'='"$@"'
17638   setopt NO_GLOB_SUBST
17639 else
17640   case `(set -o) 2>/dev/null` in #(
17641   *posix*) :
17642     set -o posix ;; #(
17643   *) :
17644      ;;
17645 esac
17646 fi
17647
17648
17649 as_nl='
17650 '
17651 export as_nl
17652 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17653 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17654 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17655 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17656 # Prefer a ksh shell builtin over an external printf program on Solaris,
17657 # but without wasting forks for bash or zsh.
17658 if test -z "$BASH_VERSION$ZSH_VERSION" \
17659     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17660   as_echo='print -r --'
17661   as_echo_n='print -rn --'
17662 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17663   as_echo='printf %s\n'
17664   as_echo_n='printf %s'
17665 else
17666   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17667     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17668     as_echo_n='/usr/ucb/echo -n'
17669   else
17670     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17671     as_echo_n_body='eval
17672       arg=$1;
17673       case $arg in #(
17674       *"$as_nl"*)
17675         expr "X$arg" : "X\\(.*\\)$as_nl";
17676         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17677       esac;
17678       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17679     '
17680     export as_echo_n_body
17681     as_echo_n='sh -c $as_echo_n_body as_echo'
17682   fi
17683   export as_echo_body
17684   as_echo='sh -c $as_echo_body as_echo'
17685 fi
17686
17687 # The user is always right.
17688 if test "${PATH_SEPARATOR+set}" != set; then
17689   PATH_SEPARATOR=:
17690   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17691     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17692       PATH_SEPARATOR=';'
17693   }
17694 fi
17695
17696
17697 # IFS
17698 # We need space, tab and new line, in precisely that order.  Quoting is
17699 # there to prevent editors from complaining about space-tab.
17700 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17701 # splitting by setting IFS to empty value.)
17702 IFS=" ""        $as_nl"
17703
17704 # Find who we are.  Look in the path if we contain no directory separator.
17705 as_myself=
17706 case $0 in #((
17707   *[\\/]* ) as_myself=$0 ;;
17708   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17709 for as_dir in $PATH
17710 do
17711   IFS=$as_save_IFS
17712   test -z "$as_dir" && as_dir=.
17713     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17714   done
17715 IFS=$as_save_IFS
17716
17717      ;;
17718 esac
17719 # We did not find ourselves, most probably we were run as `sh COMMAND'
17720 # in which case we are not to be found in the path.
17721 if test "x$as_myself" = x; then
17722   as_myself=$0
17723 fi
17724 if test ! -f "$as_myself"; then
17725   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17726   exit 1
17727 fi
17728
17729 # Unset variables that we do not need and which cause bugs (e.g. in
17730 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17731 # suppresses any "Segmentation fault" message there.  '((' could
17732 # trigger a bug in pdksh 5.2.14.
17733 for as_var in BASH_ENV ENV MAIL MAILPATH
17734 do eval test x\${$as_var+set} = xset \
17735   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17736 done
17737 PS1='$ '
17738 PS2='> '
17739 PS4='+ '
17740
17741 # NLS nuisances.
17742 LC_ALL=C
17743 export LC_ALL
17744 LANGUAGE=C
17745 export LANGUAGE
17746
17747 # CDPATH.
17748 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17749
17750
17751 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17752 # ----------------------------------------
17753 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17754 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17755 # script with STATUS, using 1 if that was 0.
17756 as_fn_error ()
17757 {
17758   as_status=$1; test $as_status -eq 0 && as_status=1
17759   if test "$4"; then
17760     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17761     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17762   fi
17763   $as_echo "$as_me: error: $2" >&2
17764   as_fn_exit $as_status
17765 } # as_fn_error
17766
17767
17768 # as_fn_set_status STATUS
17769 # -----------------------
17770 # Set $? to STATUS, without forking.
17771 as_fn_set_status ()
17772 {
17773   return $1
17774 } # as_fn_set_status
17775
17776 # as_fn_exit STATUS
17777 # -----------------
17778 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17779 as_fn_exit ()
17780 {
17781   set +e
17782   as_fn_set_status $1
17783   exit $1
17784 } # as_fn_exit
17785
17786 # as_fn_unset VAR
17787 # ---------------
17788 # Portably unset VAR.
17789 as_fn_unset ()
17790 {
17791   { eval $1=; unset $1;}
17792 }
17793 as_unset=as_fn_unset
17794 # as_fn_append VAR VALUE
17795 # ----------------------
17796 # Append the text in VALUE to the end of the definition contained in VAR. Take
17797 # advantage of any shell optimizations that allow amortized linear growth over
17798 # repeated appends, instead of the typical quadratic growth present in naive
17799 # implementations.
17800 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17801   eval 'as_fn_append ()
17802   {
17803     eval $1+=\$2
17804   }'
17805 else
17806   as_fn_append ()
17807   {
17808     eval $1=\$$1\$2
17809   }
17810 fi # as_fn_append
17811
17812 # as_fn_arith ARG...
17813 # ------------------
17814 # Perform arithmetic evaluation on the ARGs, and store the result in the
17815 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17816 # must be portable across $(()) and expr.
17817 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17818   eval 'as_fn_arith ()
17819   {
17820     as_val=$(( $* ))
17821   }'
17822 else
17823   as_fn_arith ()
17824   {
17825     as_val=`expr "$@" || test $? -eq 1`
17826   }
17827 fi # as_fn_arith
17828
17829
17830 if expr a : '\(a\)' >/dev/null 2>&1 &&
17831    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17832   as_expr=expr
17833 else
17834   as_expr=false
17835 fi
17836
17837 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17838   as_basename=basename
17839 else
17840   as_basename=false
17841 fi
17842
17843 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17844   as_dirname=dirname
17845 else
17846   as_dirname=false
17847 fi
17848
17849 as_me=`$as_basename -- "$0" ||
17850 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17851          X"$0" : 'X\(//\)$' \| \
17852          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17853 $as_echo X/"$0" |
17854     sed '/^.*\/\([^/][^/]*\)\/*$/{
17855             s//\1/
17856             q
17857           }
17858           /^X\/\(\/\/\)$/{
17859             s//\1/
17860             q
17861           }
17862           /^X\/\(\/\).*/{
17863             s//\1/
17864             q
17865           }
17866           s/.*/./; q'`
17867
17868 # Avoid depending upon Character Ranges.
17869 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17870 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17871 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17872 as_cr_digits='0123456789'
17873 as_cr_alnum=$as_cr_Letters$as_cr_digits
17874
17875 ECHO_C= ECHO_N= ECHO_T=
17876 case `echo -n x` in #(((((
17877 -n*)
17878   case `echo 'xy\c'` in
17879   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17880   xy)  ECHO_C='\c';;
17881   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17882        ECHO_T=' ';;
17883   esac;;
17884 *)
17885   ECHO_N='-n';;
17886 esac
17887
17888 rm -f conf$$ conf$$.exe conf$$.file
17889 if test -d conf$$.dir; then
17890   rm -f conf$$.dir/conf$$.file
17891 else
17892   rm -f conf$$.dir
17893   mkdir conf$$.dir 2>/dev/null
17894 fi
17895 if (echo >conf$$.file) 2>/dev/null; then
17896   if ln -s conf$$.file conf$$ 2>/dev/null; then
17897     as_ln_s='ln -s'
17898     # ... but there are two gotchas:
17899     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17900     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17901     # In both cases, we have to default to `cp -pR'.
17902     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17903       as_ln_s='cp -pR'
17904   elif ln conf$$.file conf$$ 2>/dev/null; then
17905     as_ln_s=ln
17906   else
17907     as_ln_s='cp -pR'
17908   fi
17909 else
17910   as_ln_s='cp -pR'
17911 fi
17912 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17913 rmdir conf$$.dir 2>/dev/null
17914
17915
17916 # as_fn_mkdir_p
17917 # -------------
17918 # Create "$as_dir" as a directory, including parents if necessary.
17919 as_fn_mkdir_p ()
17920 {
17921
17922   case $as_dir in #(
17923   -*) as_dir=./$as_dir;;
17924   esac
17925   test -d "$as_dir" || eval $as_mkdir_p || {
17926     as_dirs=
17927     while :; do
17928       case $as_dir in #(
17929       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17930       *) as_qdir=$as_dir;;
17931       esac
17932       as_dirs="'$as_qdir' $as_dirs"
17933       as_dir=`$as_dirname -- "$as_dir" ||
17934 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17935          X"$as_dir" : 'X\(//\)[^/]' \| \
17936          X"$as_dir" : 'X\(//\)$' \| \
17937          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17938 $as_echo X"$as_dir" |
17939     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17940             s//\1/
17941             q
17942           }
17943           /^X\(\/\/\)[^/].*/{
17944             s//\1/
17945             q
17946           }
17947           /^X\(\/\/\)$/{
17948             s//\1/
17949             q
17950           }
17951           /^X\(\/\).*/{
17952             s//\1/
17953             q
17954           }
17955           s/.*/./; q'`
17956       test -d "$as_dir" && break
17957     done
17958     test -z "$as_dirs" || eval "mkdir $as_dirs"
17959   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17960
17961
17962 } # as_fn_mkdir_p
17963 if mkdir -p . 2>/dev/null; then
17964   as_mkdir_p='mkdir -p "$as_dir"'
17965 else
17966   test -d ./-p && rmdir ./-p
17967   as_mkdir_p=false
17968 fi
17969
17970
17971 # as_fn_executable_p FILE
17972 # -----------------------
17973 # Test if FILE is an executable regular file.
17974 as_fn_executable_p ()
17975 {
17976   test -f "$1" && test -x "$1"
17977 } # as_fn_executable_p
17978 as_test_x='test -x'
17979 as_executable_p=as_fn_executable_p
17980
17981 # Sed expression to map a string onto a valid CPP name.
17982 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17983
17984 # Sed expression to map a string onto a valid variable name.
17985 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17986
17987
17988 exec 6>&1
17989 ## ----------------------------------- ##
17990 ## Main body of $CONFIG_STATUS script. ##
17991 ## ----------------------------------- ##
17992 _ASEOF
17993 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17994
17995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17996 # Save the log message, to keep $0 and so on meaningful, and to
17997 # report actual input values of CONFIG_FILES etc. instead of their
17998 # values after options handling.
17999 ac_log="
18000 This file was extended by glog $as_me 0.3.5, which was
18001 generated by GNU Autoconf 2.69.  Invocation command line was
18002
18003   CONFIG_FILES    = $CONFIG_FILES
18004   CONFIG_HEADERS  = $CONFIG_HEADERS
18005   CONFIG_LINKS    = $CONFIG_LINKS
18006   CONFIG_COMMANDS = $CONFIG_COMMANDS
18007   $ $0 $@
18008
18009 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18010 "
18011
18012 _ACEOF
18013
18014 case $ac_config_files in *"
18015 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18016 esac
18017
18018 case $ac_config_headers in *"
18019 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18020 esac
18021
18022
18023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18024 # Files that config.status was made for.
18025 config_files="$ac_config_files"
18026 config_headers="$ac_config_headers"
18027 config_commands="$ac_config_commands"
18028
18029 _ACEOF
18030
18031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18032 ac_cs_usage="\
18033 \`$as_me' instantiates files and other configuration actions
18034 from templates according to the current configuration.  Unless the files
18035 and actions are specified as TAGs, all are instantiated by default.
18036
18037 Usage: $0 [OPTION]... [TAG]...
18038
18039   -h, --help       print this help, then exit
18040   -V, --version    print version number and configuration settings, then exit
18041       --config     print configuration, then exit
18042   -q, --quiet, --silent
18043                    do not print progress messages
18044   -d, --debug      don't remove temporary files
18045       --recheck    update $as_me by reconfiguring in the same conditions
18046       --file=FILE[:TEMPLATE]
18047                    instantiate the configuration file FILE
18048       --header=FILE[:TEMPLATE]
18049                    instantiate the configuration header FILE
18050
18051 Configuration files:
18052 $config_files
18053
18054 Configuration headers:
18055 $config_headers
18056
18057 Configuration commands:
18058 $config_commands
18059
18060 Report bugs to <opensource@google.com>."
18061
18062 _ACEOF
18063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18064 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18065 ac_cs_version="\\
18066 glog config.status 0.3.5
18067 configured by $0, generated by GNU Autoconf 2.69,
18068   with options \\"\$ac_cs_config\\"
18069
18070 Copyright (C) 2012 Free Software Foundation, Inc.
18071 This config.status script is free software; the Free Software Foundation
18072 gives unlimited permission to copy, distribute and modify it."
18073
18074 ac_pwd='$ac_pwd'
18075 srcdir='$srcdir'
18076 INSTALL='$INSTALL'
18077 MKDIR_P='$MKDIR_P'
18078 AWK='$AWK'
18079 test -n "\$AWK" || AWK=awk
18080 _ACEOF
18081
18082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18083 # The default lists apply if the user does not specify any file.
18084 ac_need_defaults=:
18085 while test $# != 0
18086 do
18087   case $1 in
18088   --*=?*)
18089     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18090     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18091     ac_shift=:
18092     ;;
18093   --*=)
18094     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18095     ac_optarg=
18096     ac_shift=:
18097     ;;
18098   *)
18099     ac_option=$1
18100     ac_optarg=$2
18101     ac_shift=shift
18102     ;;
18103   esac
18104
18105   case $ac_option in
18106   # Handling of the options.
18107   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18108     ac_cs_recheck=: ;;
18109   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18110     $as_echo "$ac_cs_version"; exit ;;
18111   --config | --confi | --conf | --con | --co | --c )
18112     $as_echo "$ac_cs_config"; exit ;;
18113   --debug | --debu | --deb | --de | --d | -d )
18114     debug=: ;;
18115   --file | --fil | --fi | --f )
18116     $ac_shift
18117     case $ac_optarg in
18118     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18119     '') as_fn_error $? "missing file argument" ;;
18120     esac
18121     as_fn_append CONFIG_FILES " '$ac_optarg'"
18122     ac_need_defaults=false;;
18123   --header | --heade | --head | --hea )
18124     $ac_shift
18125     case $ac_optarg in
18126     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18127     esac
18128     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18129     ac_need_defaults=false;;
18130   --he | --h)
18131     # Conflict between --help and --header
18132     as_fn_error $? "ambiguous option: \`$1'
18133 Try \`$0 --help' for more information.";;
18134   --help | --hel | -h )
18135     $as_echo "$ac_cs_usage"; exit ;;
18136   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18137   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18138     ac_cs_silent=: ;;
18139
18140   # This is an error.
18141   -*) as_fn_error $? "unrecognized option: \`$1'
18142 Try \`$0 --help' for more information." ;;
18143
18144   *) as_fn_append ac_config_targets " $1"
18145      ac_need_defaults=false ;;
18146
18147   esac
18148   shift
18149 done
18150
18151 ac_configure_extra_args=
18152
18153 if $ac_cs_silent; then
18154   exec 6>/dev/null
18155   ac_configure_extra_args="$ac_configure_extra_args --silent"
18156 fi
18157
18158 _ACEOF
18159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18160 if \$ac_cs_recheck; then
18161   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18162   shift
18163   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18164   CONFIG_SHELL='$SHELL'
18165   export CONFIG_SHELL
18166   exec "\$@"
18167 fi
18168
18169 _ACEOF
18170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18171 exec 5>>config.log
18172 {
18173   echo
18174   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18175 ## Running $as_me. ##
18176 _ASBOX
18177   $as_echo "$ac_log"
18178 } >&5
18179
18180 _ACEOF
18181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18182 #
18183 # INIT-COMMANDS
18184 #
18185 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18186
18187
18188 # The HP-UX ksh and POSIX shell print the target directory to stdout
18189 # if CDPATH is set.
18190 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18191
18192 sed_quote_subst='$sed_quote_subst'
18193 double_quote_subst='$double_quote_subst'
18194 delay_variable_subst='$delay_variable_subst'
18195 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18196 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18197 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18198 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18199 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18200 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18201 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18202 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18203 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18204 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18205 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18206 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18207 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18208 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18209 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18210 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18211 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18212 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18213 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18214 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18215 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18216 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18217 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18218 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18219 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18220 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18221 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18222 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18223 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18224 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18225 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18226 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18227 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18228 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18229 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18230 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18231 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18232 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18233 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18234 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18235 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18236 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18237 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18238 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18239 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18240 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18241 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18242 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18243 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18244 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18245 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18246 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18247 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18248 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18249 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18250 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18251 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"`'
18252 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18253 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18254 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18255 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18256 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18257 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18258 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18259 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18260 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18261 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18262 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18263 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18264 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18265 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18266 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18267 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18268 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18269 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18270 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18271 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18272 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18273 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18274 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18275 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18276 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18277 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18278 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18279 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18280 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18281 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18282 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18283 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18284 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18285 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18286 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18287 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18288 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18289 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18290 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18291 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18292 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18293 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18294 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18295 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18296 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18297 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18298 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18299 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18300 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18301 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18302 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18303 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18304 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18305 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18306 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18307 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18308 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18309 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18310 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18311 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18312 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18313 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18314 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18315 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18316 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18317 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18318 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18319 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18320 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18321 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18322 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18323 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18324 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18325 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18326 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18327 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18328 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18329 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18330 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18331 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18332 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18333 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18334 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18335 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18336 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18337 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18338 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18339 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18340 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18341 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18342 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18343 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18344 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18345 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18346 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18347 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18348 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18349 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18350 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18351 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18352 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18353 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18354 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18355 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18356 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18357 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18358 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18359 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18360 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18361 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18362 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18363 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18364 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18365 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18366 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18367 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18368 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18369 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18370 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18371 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18372 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18373 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18374 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18375 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18376 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18377 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18378 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18379
18380 LTCC='$LTCC'
18381 LTCFLAGS='$LTCFLAGS'
18382 compiler='$compiler_DEFAULT'
18383
18384 # A function that is used when there is no print builtin or printf.
18385 func_fallback_echo ()
18386 {
18387   eval 'cat <<_LTECHO_EOF
18388 \$1
18389 _LTECHO_EOF'
18390 }
18391
18392 # Quote evaled strings.
18393 for var in SHELL \
18394 ECHO \
18395 PATH_SEPARATOR \
18396 SED \
18397 GREP \
18398 EGREP \
18399 FGREP \
18400 LD \
18401 NM \
18402 LN_S \
18403 lt_SP2NL \
18404 lt_NL2SP \
18405 reload_flag \
18406 OBJDUMP \
18407 deplibs_check_method \
18408 file_magic_cmd \
18409 file_magic_glob \
18410 want_nocaseglob \
18411 DLLTOOL \
18412 sharedlib_from_linklib_cmd \
18413 AR \
18414 AR_FLAGS \
18415 archiver_list_spec \
18416 STRIP \
18417 RANLIB \
18418 CC \
18419 CFLAGS \
18420 compiler \
18421 lt_cv_sys_global_symbol_pipe \
18422 lt_cv_sys_global_symbol_to_cdecl \
18423 lt_cv_sys_global_symbol_to_c_name_address \
18424 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18425 nm_file_list_spec \
18426 lt_prog_compiler_no_builtin_flag \
18427 lt_prog_compiler_pic \
18428 lt_prog_compiler_wl \
18429 lt_prog_compiler_static \
18430 lt_cv_prog_compiler_c_o \
18431 need_locks \
18432 MANIFEST_TOOL \
18433 DSYMUTIL \
18434 NMEDIT \
18435 LIPO \
18436 OTOOL \
18437 OTOOL64 \
18438 shrext_cmds \
18439 export_dynamic_flag_spec \
18440 whole_archive_flag_spec \
18441 compiler_needs_object \
18442 with_gnu_ld \
18443 allow_undefined_flag \
18444 no_undefined_flag \
18445 hardcode_libdir_flag_spec \
18446 hardcode_libdir_separator \
18447 exclude_expsyms \
18448 include_expsyms \
18449 file_list_spec \
18450 variables_saved_for_relink \
18451 libname_spec \
18452 library_names_spec \
18453 soname_spec \
18454 install_override_mode \
18455 finish_eval \
18456 old_striplib \
18457 striplib \
18458 compiler_lib_search_dirs \
18459 predep_objects \
18460 postdep_objects \
18461 predeps \
18462 postdeps \
18463 compiler_lib_search_path \
18464 LD_CXX \
18465 reload_flag_CXX \
18466 compiler_CXX \
18467 lt_prog_compiler_no_builtin_flag_CXX \
18468 lt_prog_compiler_pic_CXX \
18469 lt_prog_compiler_wl_CXX \
18470 lt_prog_compiler_static_CXX \
18471 lt_cv_prog_compiler_c_o_CXX \
18472 export_dynamic_flag_spec_CXX \
18473 whole_archive_flag_spec_CXX \
18474 compiler_needs_object_CXX \
18475 with_gnu_ld_CXX \
18476 allow_undefined_flag_CXX \
18477 no_undefined_flag_CXX \
18478 hardcode_libdir_flag_spec_CXX \
18479 hardcode_libdir_separator_CXX \
18480 exclude_expsyms_CXX \
18481 include_expsyms_CXX \
18482 file_list_spec_CXX \
18483 compiler_lib_search_dirs_CXX \
18484 predep_objects_CXX \
18485 postdep_objects_CXX \
18486 predeps_CXX \
18487 postdeps_CXX \
18488 compiler_lib_search_path_CXX; do
18489     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18490     *[\\\\\\\`\\"\\\$]*)
18491       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18492       ;;
18493     *)
18494       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18495       ;;
18496     esac
18497 done
18498
18499 # Double-quote double-evaled strings.
18500 for var in reload_cmds \
18501 old_postinstall_cmds \
18502 old_postuninstall_cmds \
18503 old_archive_cmds \
18504 extract_expsyms_cmds \
18505 old_archive_from_new_cmds \
18506 old_archive_from_expsyms_cmds \
18507 archive_cmds \
18508 archive_expsym_cmds \
18509 module_cmds \
18510 module_expsym_cmds \
18511 export_symbols_cmds \
18512 prelink_cmds \
18513 postlink_cmds \
18514 postinstall_cmds \
18515 postuninstall_cmds \
18516 finish_cmds \
18517 sys_lib_search_path_spec \
18518 sys_lib_dlsearch_path_spec \
18519 reload_cmds_CXX \
18520 old_archive_cmds_CXX \
18521 old_archive_from_new_cmds_CXX \
18522 old_archive_from_expsyms_cmds_CXX \
18523 archive_cmds_CXX \
18524 archive_expsym_cmds_CXX \
18525 module_cmds_CXX \
18526 module_expsym_cmds_CXX \
18527 export_symbols_cmds_CXX \
18528 prelink_cmds_CXX \
18529 postlink_cmds_CXX; do
18530     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18531     *[\\\\\\\`\\"\\\$]*)
18532       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18533       ;;
18534     *)
18535       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18536       ;;
18537     esac
18538 done
18539
18540 ac_aux_dir='$ac_aux_dir'
18541 xsi_shell='$xsi_shell'
18542 lt_shell_append='$lt_shell_append'
18543
18544 # See if we are running on zsh, and set the options which allow our
18545 # commands through without removal of \ escapes INIT.
18546 if test -n "\${ZSH_VERSION+set}" ; then
18547    setopt NO_GLOB_SUBST
18548 fi
18549
18550
18551     PACKAGE='$PACKAGE'
18552     VERSION='$VERSION'
18553     TIMESTAMP='$TIMESTAMP'
18554     RM='$RM'
18555     ofile='$ofile'
18556
18557
18558
18559
18560
18561
18562 _ACEOF
18563
18564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18565
18566 # Handling of arguments.
18567 for ac_config_target in $ac_config_targets
18568 do
18569   case $ac_config_target in
18570     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
18571     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18572     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18573     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18574     "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
18575     "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
18576     "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
18577     "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
18578     "libglog.pc") CONFIG_FILES="$CONFIG_FILES libglog.pc" ;;
18579
18580   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18581   esac
18582 done
18583
18584
18585 # If the user did not use the arguments to specify the items to instantiate,
18586 # then the envvar interface is used.  Set only those that are not.
18587 # We use the long form for the default assignment because of an extremely
18588 # bizarre bug on SunOS 4.1.3.
18589 if $ac_need_defaults; then
18590   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18591   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18592   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18593 fi
18594
18595 # Have a temporary directory for convenience.  Make it in the build tree
18596 # simply because there is no reason against having it here, and in addition,
18597 # creating and moving files from /tmp can sometimes cause problems.
18598 # Hook for its removal unless debugging.
18599 # Note that there is a small window in which the directory will not be cleaned:
18600 # after its creation but before its name has been assigned to `$tmp'.
18601 $debug ||
18602 {
18603   tmp= ac_tmp=
18604   trap 'exit_status=$?
18605   : "${ac_tmp:=$tmp}"
18606   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18607 ' 0
18608   trap 'as_fn_exit 1' 1 2 13 15
18609 }
18610 # Create a (secure) tmp directory for tmp files.
18611
18612 {
18613   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18614   test -d "$tmp"
18615 }  ||
18616 {
18617   tmp=./conf$$-$RANDOM
18618   (umask 077 && mkdir "$tmp")
18619 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18620 ac_tmp=$tmp
18621
18622 # Set up the scripts for CONFIG_FILES section.
18623 # No need to generate them if there are no CONFIG_FILES.
18624 # This happens for instance with `./config.status config.h'.
18625 if test -n "$CONFIG_FILES"; then
18626
18627
18628 ac_cr=`echo X | tr X '\015'`
18629 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18630 # But we know of no other shell where ac_cr would be empty at this
18631 # point, so we can use a bashism as a fallback.
18632 if test "x$ac_cr" = x; then
18633   eval ac_cr=\$\'\\r\'
18634 fi
18635 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18636 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18637   ac_cs_awk_cr='\\r'
18638 else
18639   ac_cs_awk_cr=$ac_cr
18640 fi
18641
18642 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18643 _ACEOF
18644
18645
18646 {
18647   echo "cat >conf$$subs.awk <<_ACEOF" &&
18648   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18649   echo "_ACEOF"
18650 } >conf$$subs.sh ||
18651   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18652 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18653 ac_delim='%!_!# '
18654 for ac_last_try in false false false false false :; do
18655   . ./conf$$subs.sh ||
18656     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18657
18658   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18659   if test $ac_delim_n = $ac_delim_num; then
18660     break
18661   elif $ac_last_try; then
18662     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18663   else
18664     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18665   fi
18666 done
18667 rm -f conf$$subs.sh
18668
18669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18670 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18671 _ACEOF
18672 sed -n '
18673 h
18674 s/^/S["/; s/!.*/"]=/
18675 p
18676 g
18677 s/^[^!]*!//
18678 :repl
18679 t repl
18680 s/'"$ac_delim"'$//
18681 t delim
18682 :nl
18683 h
18684 s/\(.\{148\}\)..*/\1/
18685 t more1
18686 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18687 p
18688 n
18689 b repl
18690 :more1
18691 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18692 p
18693 g
18694 s/.\{148\}//
18695 t nl
18696 :delim
18697 h
18698 s/\(.\{148\}\)..*/\1/
18699 t more2
18700 s/["\\]/\\&/g; s/^/"/; s/$/"/
18701 p
18702 b
18703 :more2
18704 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18705 p
18706 g
18707 s/.\{148\}//
18708 t delim
18709 ' <conf$$subs.awk | sed '
18710 /^[^""]/{
18711   N
18712   s/\n//
18713 }
18714 ' >>$CONFIG_STATUS || ac_write_fail=1
18715 rm -f conf$$subs.awk
18716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18717 _ACAWK
18718 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18719   for (key in S) S_is_set[key] = 1
18720   FS = "\a"
18721
18722 }
18723 {
18724   line = $ 0
18725   nfields = split(line, field, "@")
18726   substed = 0
18727   len = length(field[1])
18728   for (i = 2; i < nfields; i++) {
18729     key = field[i]
18730     keylen = length(key)
18731     if (S_is_set[key]) {
18732       value = S[key]
18733       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18734       len += length(value) + length(field[++i])
18735       substed = 1
18736     } else
18737       len += 1 + keylen
18738   }
18739
18740   print line
18741 }
18742
18743 _ACAWK
18744 _ACEOF
18745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18746 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18747   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18748 else
18749   cat
18750 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18751   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18752 _ACEOF
18753
18754 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18755 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18756 # trailing colons and then remove the whole line if VPATH becomes empty
18757 # (actually we leave an empty line to preserve line numbers).
18758 if test "x$srcdir" = x.; then
18759   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18760 h
18761 s///
18762 s/^/:/
18763 s/[      ]*$/:/
18764 s/:\$(srcdir):/:/g
18765 s/:\${srcdir}:/:/g
18766 s/:@srcdir@:/:/g
18767 s/^:*//
18768 s/:*$//
18769 x
18770 s/\(=[   ]*\).*/\1/
18771 G
18772 s/\n//
18773 s/^[^=]*=[       ]*$//
18774 }'
18775 fi
18776
18777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18778 fi # test -n "$CONFIG_FILES"
18779
18780 # Set up the scripts for CONFIG_HEADERS section.
18781 # No need to generate them if there are no CONFIG_HEADERS.
18782 # This happens for instance with `./config.status Makefile'.
18783 if test -n "$CONFIG_HEADERS"; then
18784 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18785 BEGIN {
18786 _ACEOF
18787
18788 # Transform confdefs.h into an awk script `defines.awk', embedded as
18789 # here-document in config.status, that substitutes the proper values into
18790 # config.h.in to produce config.h.
18791
18792 # Create a delimiter string that does not exist in confdefs.h, to ease
18793 # handling of long lines.
18794 ac_delim='%!_!# '
18795 for ac_last_try in false false :; do
18796   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18797   if test -z "$ac_tt"; then
18798     break
18799   elif $ac_last_try; then
18800     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18801   else
18802     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18803   fi
18804 done
18805
18806 # For the awk script, D is an array of macro values keyed by name,
18807 # likewise P contains macro parameters if any.  Preserve backslash
18808 # newline sequences.
18809
18810 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18811 sed -n '
18812 s/.\{148\}/&'"$ac_delim"'/g
18813 t rset
18814 :rset
18815 s/^[     ]*#[    ]*define[       ][      ]*/ /
18816 t def
18817 d
18818 :def
18819 s/\\$//
18820 t bsnl
18821 s/["\\]/\\&/g
18822 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18823 D["\1"]=" \3"/p
18824 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18825 d
18826 :bsnl
18827 s/["\\]/\\&/g
18828 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18829 D["\1"]=" \3\\\\\\n"\\/p
18830 t cont
18831 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18832 t cont
18833 d
18834 :cont
18835 n
18836 s/.\{148\}/&'"$ac_delim"'/g
18837 t clear
18838 :clear
18839 s/\\$//
18840 t bsnlc
18841 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18842 d
18843 :bsnlc
18844 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18845 b cont
18846 ' <confdefs.h | sed '
18847 s/'"$ac_delim"'/"\\\
18848 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18849
18850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18851   for (key in D) D_is_set[key] = 1
18852   FS = "\a"
18853 }
18854 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18855   line = \$ 0
18856   split(line, arg, " ")
18857   if (arg[1] == "#") {
18858     defundef = arg[2]
18859     mac1 = arg[3]
18860   } else {
18861     defundef = substr(arg[1], 2)
18862     mac1 = arg[2]
18863   }
18864   split(mac1, mac2, "(") #)
18865   macro = mac2[1]
18866   prefix = substr(line, 1, index(line, defundef) - 1)
18867   if (D_is_set[macro]) {
18868     # Preserve the white space surrounding the "#".
18869     print prefix "define", macro P[macro] D[macro]
18870     next
18871   } else {
18872     # Replace #undef with comments.  This is necessary, for example,
18873     # in the case of _POSIX_SOURCE, which is predefined and required
18874     # on some systems where configure will not decide to define it.
18875     if (defundef == "undef") {
18876       print "/*", prefix defundef, macro, "*/"
18877       next
18878     }
18879   }
18880 }
18881 { print }
18882 _ACAWK
18883 _ACEOF
18884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18885   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18886 fi # test -n "$CONFIG_HEADERS"
18887
18888
18889 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18890 shift
18891 for ac_tag
18892 do
18893   case $ac_tag in
18894   :[FHLC]) ac_mode=$ac_tag; continue;;
18895   esac
18896   case $ac_mode$ac_tag in
18897   :[FHL]*:*);;
18898   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18899   :[FH]-) ac_tag=-:-;;
18900   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18901   esac
18902   ac_save_IFS=$IFS
18903   IFS=:
18904   set x $ac_tag
18905   IFS=$ac_save_IFS
18906   shift
18907   ac_file=$1
18908   shift
18909
18910   case $ac_mode in
18911   :L) ac_source=$1;;
18912   :[FH])
18913     ac_file_inputs=
18914     for ac_f
18915     do
18916       case $ac_f in
18917       -) ac_f="$ac_tmp/stdin";;
18918       *) # Look for the file first in the build tree, then in the source tree
18919          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18920          # because $ac_f cannot contain `:'.
18921          test -f "$ac_f" ||
18922            case $ac_f in
18923            [\\/$]*) false;;
18924            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18925            esac ||
18926            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18927       esac
18928       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18929       as_fn_append ac_file_inputs " '$ac_f'"
18930     done
18931
18932     # Let's still pretend it is `configure' which instantiates (i.e., don't
18933     # use $as_me), people would be surprised to read:
18934     #    /* config.h.  Generated by config.status.  */
18935     configure_input='Generated from '`
18936           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18937         `' by configure.'
18938     if test x"$ac_file" != x-; then
18939       configure_input="$ac_file.  $configure_input"
18940       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18941 $as_echo "$as_me: creating $ac_file" >&6;}
18942     fi
18943     # Neutralize special characters interpreted by sed in replacement strings.
18944     case $configure_input in #(
18945     *\&* | *\|* | *\\* )
18946        ac_sed_conf_input=`$as_echo "$configure_input" |
18947        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18948     *) ac_sed_conf_input=$configure_input;;
18949     esac
18950
18951     case $ac_tag in
18952     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18953       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18954     esac
18955     ;;
18956   esac
18957
18958   ac_dir=`$as_dirname -- "$ac_file" ||
18959 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18960          X"$ac_file" : 'X\(//\)[^/]' \| \
18961          X"$ac_file" : 'X\(//\)$' \| \
18962          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18963 $as_echo X"$ac_file" |
18964     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18965             s//\1/
18966             q
18967           }
18968           /^X\(\/\/\)[^/].*/{
18969             s//\1/
18970             q
18971           }
18972           /^X\(\/\/\)$/{
18973             s//\1/
18974             q
18975           }
18976           /^X\(\/\).*/{
18977             s//\1/
18978             q
18979           }
18980           s/.*/./; q'`
18981   as_dir="$ac_dir"; as_fn_mkdir_p
18982   ac_builddir=.
18983
18984 case "$ac_dir" in
18985 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18986 *)
18987   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18988   # A ".." for each directory in $ac_dir_suffix.
18989   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18990   case $ac_top_builddir_sub in
18991   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18992   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18993   esac ;;
18994 esac
18995 ac_abs_top_builddir=$ac_pwd
18996 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18997 # for backward compatibility:
18998 ac_top_builddir=$ac_top_build_prefix
18999
19000 case $srcdir in
19001   .)  # We are building in place.
19002     ac_srcdir=.
19003     ac_top_srcdir=$ac_top_builddir_sub
19004     ac_abs_top_srcdir=$ac_pwd ;;
19005   [\\/]* | ?:[\\/]* )  # Absolute name.
19006     ac_srcdir=$srcdir$ac_dir_suffix;
19007     ac_top_srcdir=$srcdir
19008     ac_abs_top_srcdir=$srcdir ;;
19009   *) # Relative name.
19010     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19011     ac_top_srcdir=$ac_top_build_prefix$srcdir
19012     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19013 esac
19014 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19015
19016
19017   case $ac_mode in
19018   :F)
19019   #
19020   # CONFIG_FILE
19021   #
19022
19023   case $INSTALL in
19024   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19025   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19026   esac
19027   ac_MKDIR_P=$MKDIR_P
19028   case $MKDIR_P in
19029   [\\/$]* | ?:[\\/]* ) ;;
19030   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19031   esac
19032 _ACEOF
19033
19034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19035 # If the template does not know about datarootdir, expand it.
19036 # FIXME: This hack should be removed a few years after 2.60.
19037 ac_datarootdir_hack=; ac_datarootdir_seen=
19038 ac_sed_dataroot='
19039 /datarootdir/ {
19040   p
19041   q
19042 }
19043 /@datadir@/p
19044 /@docdir@/p
19045 /@infodir@/p
19046 /@localedir@/p
19047 /@mandir@/p'
19048 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19049 *datarootdir*) ac_datarootdir_seen=yes;;
19050 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19051   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19052 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19053 _ACEOF
19054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19055   ac_datarootdir_hack='
19056   s&@datadir@&$datadir&g
19057   s&@docdir@&$docdir&g
19058   s&@infodir@&$infodir&g
19059   s&@localedir@&$localedir&g
19060   s&@mandir@&$mandir&g
19061   s&\\\${datarootdir}&$datarootdir&g' ;;
19062 esac
19063 _ACEOF
19064
19065 # Neutralize VPATH when `$srcdir' = `.'.
19066 # Shell code in configure.ac might set extrasub.
19067 # FIXME: do we really want to maintain this feature?
19068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19069 ac_sed_extra="$ac_vpsub
19070 $extrasub
19071 _ACEOF
19072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19073 :t
19074 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19075 s|@configure_input@|$ac_sed_conf_input|;t t
19076 s&@top_builddir@&$ac_top_builddir_sub&;t t
19077 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19078 s&@srcdir@&$ac_srcdir&;t t
19079 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19080 s&@top_srcdir@&$ac_top_srcdir&;t t
19081 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19082 s&@builddir@&$ac_builddir&;t t
19083 s&@abs_builddir@&$ac_abs_builddir&;t t
19084 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19085 s&@INSTALL@&$ac_INSTALL&;t t
19086 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19087 $ac_datarootdir_hack
19088 "
19089 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19090   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19091
19092 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19093   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19094   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
19095       "$ac_tmp/out"`; test -z "$ac_out"; } &&
19096   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19097 which seems to be undefined.  Please make sure it is defined" >&5
19098 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19099 which seems to be undefined.  Please make sure it is defined" >&2;}
19100
19101   rm -f "$ac_tmp/stdin"
19102   case $ac_file in
19103   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19104   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19105   esac \
19106   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19107  ;;
19108   :H)
19109   #
19110   # CONFIG_HEADER
19111   #
19112   if test x"$ac_file" != x-; then
19113     {
19114       $as_echo "/* $configure_input  */" \
19115       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19116     } >"$ac_tmp/config.h" \
19117       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19118     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19119       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19120 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19121     else
19122       rm -f "$ac_file"
19123       mv "$ac_tmp/config.h" "$ac_file" \
19124         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19125     fi
19126   else
19127     $as_echo "/* $configure_input  */" \
19128       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19129       || as_fn_error $? "could not create -" "$LINENO" 5
19130   fi
19131 # Compute "$ac_file"'s index in $config_headers.
19132 _am_arg="$ac_file"
19133 _am_stamp_count=1
19134 for _am_header in $config_headers :; do
19135   case $_am_header in
19136     $_am_arg | $_am_arg:* )
19137       break ;;
19138     * )
19139       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19140   esac
19141 done
19142 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19143 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19144          X"$_am_arg" : 'X\(//\)[^/]' \| \
19145          X"$_am_arg" : 'X\(//\)$' \| \
19146          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19147 $as_echo X"$_am_arg" |
19148     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19149             s//\1/
19150             q
19151           }
19152           /^X\(\/\/\)[^/].*/{
19153             s//\1/
19154             q
19155           }
19156           /^X\(\/\/\)$/{
19157             s//\1/
19158             q
19159           }
19160           /^X\(\/\).*/{
19161             s//\1/
19162             q
19163           }
19164           s/.*/./; q'`/stamp-h$_am_stamp_count
19165  ;;
19166
19167   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19168 $as_echo "$as_me: executing $ac_file commands" >&6;}
19169  ;;
19170   esac
19171
19172
19173   case $ac_file$ac_mode in
19174     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19175   # Older Autoconf quotes --file arguments for eval, but not when files
19176   # are listed without --file.  Let's play safe and only enable the eval
19177   # if we detect the quoting.
19178   case $CONFIG_FILES in
19179   *\'*) eval set x "$CONFIG_FILES" ;;
19180   *)   set x $CONFIG_FILES ;;
19181   esac
19182   shift
19183   for mf
19184   do
19185     # Strip MF so we end up with the name of the file.
19186     mf=`echo "$mf" | sed -e 's/:.*$//'`
19187     # Check whether this is an Automake generated Makefile or not.
19188     # We used to match only the files named 'Makefile.in', but
19189     # some people rename them; so instead we look at the file content.
19190     # Grep'ing the first line is not enough: some people post-process
19191     # each Makefile.in and add a new line on top of each file to say so.
19192     # Grep'ing the whole file is not good either: AIX grep has a line
19193     # limit of 2048, but all sed's we know have understand at least 4000.
19194     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19195       dirpart=`$as_dirname -- "$mf" ||
19196 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19197          X"$mf" : 'X\(//\)[^/]' \| \
19198          X"$mf" : 'X\(//\)$' \| \
19199          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19200 $as_echo X"$mf" |
19201     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19202             s//\1/
19203             q
19204           }
19205           /^X\(\/\/\)[^/].*/{
19206             s//\1/
19207             q
19208           }
19209           /^X\(\/\/\)$/{
19210             s//\1/
19211             q
19212           }
19213           /^X\(\/\).*/{
19214             s//\1/
19215             q
19216           }
19217           s/.*/./; q'`
19218     else
19219       continue
19220     fi
19221     # Extract the definition of DEPDIR, am__include, and am__quote
19222     # from the Makefile without running 'make'.
19223     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19224     test -z "$DEPDIR" && continue
19225     am__include=`sed -n 's/^am__include = //p' < "$mf"`
19226     test -z "$am__include" && continue
19227     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19228     # Find all dependency output files, they are included files with
19229     # $(DEPDIR) in their names.  We invoke sed twice because it is the
19230     # simplest approach to changing $(DEPDIR) to its actual value in the
19231     # expansion.
19232     for file in `sed -n "
19233       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19234          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19235       # Make sure the directory exists.
19236       test -f "$dirpart/$file" && continue
19237       fdir=`$as_dirname -- "$file" ||
19238 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19239          X"$file" : 'X\(//\)[^/]' \| \
19240          X"$file" : 'X\(//\)$' \| \
19241          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19242 $as_echo X"$file" |
19243     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19244             s//\1/
19245             q
19246           }
19247           /^X\(\/\/\)[^/].*/{
19248             s//\1/
19249             q
19250           }
19251           /^X\(\/\/\)$/{
19252             s//\1/
19253             q
19254           }
19255           /^X\(\/\).*/{
19256             s//\1/
19257             q
19258           }
19259           s/.*/./; q'`
19260       as_dir=$dirpart/$fdir; as_fn_mkdir_p
19261       # echo "creating $dirpart/$file"
19262       echo '# dummy' > "$dirpart/$file"
19263     done
19264   done
19265 }
19266  ;;
19267     "libtool":C)
19268
19269     # See if we are running on zsh, and set the options which allow our
19270     # commands through without removal of \ escapes.
19271     if test -n "${ZSH_VERSION+set}" ; then
19272       setopt NO_GLOB_SUBST
19273     fi
19274
19275     cfgfile="${ofile}T"
19276     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19277     $RM "$cfgfile"
19278
19279     cat <<_LT_EOF >> "$cfgfile"
19280 #! $SHELL
19281
19282 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19283 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19284 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19285 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19286 #
19287 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19288 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19289 #                 Foundation, Inc.
19290 #   Written by Gordon Matzigkeit, 1996
19291 #
19292 #   This file is part of GNU Libtool.
19293 #
19294 # GNU Libtool is free software; you can redistribute it and/or
19295 # modify it under the terms of the GNU General Public License as
19296 # published by the Free Software Foundation; either version 2 of
19297 # the License, or (at your option) any later version.
19298 #
19299 # As a special exception to the GNU General Public License,
19300 # if you distribute this file as part of a program or library that
19301 # is built using GNU Libtool, you may include this file under the
19302 # same distribution terms that you use for the rest of that program.
19303 #
19304 # GNU Libtool is distributed in the hope that it will be useful,
19305 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19306 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19307 # GNU General Public License for more details.
19308 #
19309 # You should have received a copy of the GNU General Public License
19310 # along with GNU Libtool; see the file COPYING.  If not, a copy
19311 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19312 # obtained by writing to the Free Software Foundation, Inc.,
19313 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19314
19315
19316 # The names of the tagged configurations supported by this script.
19317 available_tags="CXX "
19318
19319 # ### BEGIN LIBTOOL CONFIG
19320
19321 # Which release of libtool.m4 was used?
19322 macro_version=$macro_version
19323 macro_revision=$macro_revision
19324
19325 # Whether or not to build shared libraries.
19326 build_libtool_libs=$enable_shared
19327
19328 # Whether or not to build static libraries.
19329 build_old_libs=$enable_static
19330
19331 # What type of objects to build.
19332 pic_mode=$pic_mode
19333
19334 # Whether or not to optimize for fast installation.
19335 fast_install=$enable_fast_install
19336
19337 # Shell to use when invoking shell scripts.
19338 SHELL=$lt_SHELL
19339
19340 # An echo program that protects backslashes.
19341 ECHO=$lt_ECHO
19342
19343 # The PATH separator for the build system.
19344 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19345
19346 # The host system.
19347 host_alias=$host_alias
19348 host=$host
19349 host_os=$host_os
19350
19351 # The build system.
19352 build_alias=$build_alias
19353 build=$build
19354 build_os=$build_os
19355
19356 # A sed program that does not truncate output.
19357 SED=$lt_SED
19358
19359 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19360 Xsed="\$SED -e 1s/^X//"
19361
19362 # A grep program that handles long lines.
19363 GREP=$lt_GREP
19364
19365 # An ERE matcher.
19366 EGREP=$lt_EGREP
19367
19368 # A literal string matcher.
19369 FGREP=$lt_FGREP
19370
19371 # A BSD- or MS-compatible name lister.
19372 NM=$lt_NM
19373
19374 # Whether we need soft or hard links.
19375 LN_S=$lt_LN_S
19376
19377 # What is the maximum length of a command?
19378 max_cmd_len=$max_cmd_len
19379
19380 # Object file suffix (normally "o").
19381 objext=$ac_objext
19382
19383 # Executable file suffix (normally "").
19384 exeext=$exeext
19385
19386 # whether the shell understands "unset".
19387 lt_unset=$lt_unset
19388
19389 # turn spaces into newlines.
19390 SP2NL=$lt_lt_SP2NL
19391
19392 # turn newlines into spaces.
19393 NL2SP=$lt_lt_NL2SP
19394
19395 # convert \$build file names to \$host format.
19396 to_host_file_cmd=$lt_cv_to_host_file_cmd
19397
19398 # convert \$build files to toolchain format.
19399 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19400
19401 # An object symbol dumper.
19402 OBJDUMP=$lt_OBJDUMP
19403
19404 # Method to check whether dependent libraries are shared objects.
19405 deplibs_check_method=$lt_deplibs_check_method
19406
19407 # Command to use when deplibs_check_method = "file_magic".
19408 file_magic_cmd=$lt_file_magic_cmd
19409
19410 # How to find potential files when deplibs_check_method = "file_magic".
19411 file_magic_glob=$lt_file_magic_glob
19412
19413 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19414 want_nocaseglob=$lt_want_nocaseglob
19415
19416 # DLL creation program.
19417 DLLTOOL=$lt_DLLTOOL
19418
19419 # Command to associate shared and link libraries.
19420 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19421
19422 # The archiver.
19423 AR=$lt_AR
19424
19425 # Flags to create an archive.
19426 AR_FLAGS=$lt_AR_FLAGS
19427
19428 # How to feed a file listing to the archiver.
19429 archiver_list_spec=$lt_archiver_list_spec
19430
19431 # A symbol stripping program.
19432 STRIP=$lt_STRIP
19433
19434 # Commands used to install an old-style archive.
19435 RANLIB=$lt_RANLIB
19436 old_postinstall_cmds=$lt_old_postinstall_cmds
19437 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19438
19439 # Whether to use a lock for old archive extraction.
19440 lock_old_archive_extraction=$lock_old_archive_extraction
19441
19442 # A C compiler.
19443 LTCC=$lt_CC
19444
19445 # LTCC compiler flags.
19446 LTCFLAGS=$lt_CFLAGS
19447
19448 # Take the output of nm and produce a listing of raw symbols and C names.
19449 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19450
19451 # Transform the output of nm in a proper C declaration.
19452 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19453
19454 # Transform the output of nm in a C name address pair.
19455 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19456
19457 # Transform the output of nm in a C name address pair when lib prefix is needed.
19458 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19459
19460 # Specify filename containing input files for \$NM.
19461 nm_file_list_spec=$lt_nm_file_list_spec
19462
19463 # The root where to search for dependent libraries,and in which our libraries should be installed.
19464 lt_sysroot=$lt_sysroot
19465
19466 # The name of the directory that contains temporary libtool files.
19467 objdir=$objdir
19468
19469 # Used to examine libraries when file_magic_cmd begins with "file".
19470 MAGIC_CMD=$MAGIC_CMD
19471
19472 # Must we lock files when doing compilation?
19473 need_locks=$lt_need_locks
19474
19475 # Manifest tool.
19476 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19477
19478 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19479 DSYMUTIL=$lt_DSYMUTIL
19480
19481 # Tool to change global to local symbols on Mac OS X.
19482 NMEDIT=$lt_NMEDIT
19483
19484 # Tool to manipulate fat objects and archives on Mac OS X.
19485 LIPO=$lt_LIPO
19486
19487 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19488 OTOOL=$lt_OTOOL
19489
19490 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19491 OTOOL64=$lt_OTOOL64
19492
19493 # Old archive suffix (normally "a").
19494 libext=$libext
19495
19496 # Shared library suffix (normally ".so").
19497 shrext_cmds=$lt_shrext_cmds
19498
19499 # The commands to extract the exported symbol list from a shared archive.
19500 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19501
19502 # Variables whose values should be saved in libtool wrapper scripts and
19503 # restored at link time.
19504 variables_saved_for_relink=$lt_variables_saved_for_relink
19505
19506 # Do we need the "lib" prefix for modules?
19507 need_lib_prefix=$need_lib_prefix
19508
19509 # Do we need a version for libraries?
19510 need_version=$need_version
19511
19512 # Library versioning type.
19513 version_type=$version_type
19514
19515 # Shared library runtime path variable.
19516 runpath_var=$runpath_var
19517
19518 # Shared library path variable.
19519 shlibpath_var=$shlibpath_var
19520
19521 # Is shlibpath searched before the hard-coded library search path?
19522 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19523
19524 # Format of library name prefix.
19525 libname_spec=$lt_libname_spec
19526
19527 # List of archive names.  First name is the real one, the rest are links.
19528 # The last name is the one that the linker finds with -lNAME
19529 library_names_spec=$lt_library_names_spec
19530
19531 # The coded name of the library, if different from the real name.
19532 soname_spec=$lt_soname_spec
19533
19534 # Permission mode override for installation of shared libraries.
19535 install_override_mode=$lt_install_override_mode
19536
19537 # Command to use after installation of a shared archive.
19538 postinstall_cmds=$lt_postinstall_cmds
19539
19540 # Command to use after uninstallation of a shared archive.
19541 postuninstall_cmds=$lt_postuninstall_cmds
19542
19543 # Commands used to finish a libtool library installation in a directory.
19544 finish_cmds=$lt_finish_cmds
19545
19546 # As "finish_cmds", except a single script fragment to be evaled but
19547 # not shown.
19548 finish_eval=$lt_finish_eval
19549
19550 # Whether we should hardcode library paths into libraries.
19551 hardcode_into_libs=$hardcode_into_libs
19552
19553 # Compile-time system search path for libraries.
19554 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19555
19556 # Run-time system search path for libraries.
19557 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19558
19559 # Whether dlopen is supported.
19560 dlopen_support=$enable_dlopen
19561
19562 # Whether dlopen of programs is supported.
19563 dlopen_self=$enable_dlopen_self
19564
19565 # Whether dlopen of statically linked programs is supported.
19566 dlopen_self_static=$enable_dlopen_self_static
19567
19568 # Commands to strip libraries.
19569 old_striplib=$lt_old_striplib
19570 striplib=$lt_striplib
19571
19572
19573 # The linker used to build libraries.
19574 LD=$lt_LD
19575
19576 # How to create reloadable object files.
19577 reload_flag=$lt_reload_flag
19578 reload_cmds=$lt_reload_cmds
19579
19580 # Commands used to build an old-style archive.
19581 old_archive_cmds=$lt_old_archive_cmds
19582
19583 # A language specific compiler.
19584 CC=$lt_compiler
19585
19586 # Is the compiler the GNU compiler?
19587 with_gcc=$GCC
19588
19589 # Compiler flag to turn off builtin functions.
19590 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19591
19592 # Additional compiler flags for building library objects.
19593 pic_flag=$lt_lt_prog_compiler_pic
19594
19595 # How to pass a linker flag through the compiler.
19596 wl=$lt_lt_prog_compiler_wl
19597
19598 # Compiler flag to prevent dynamic linking.
19599 link_static_flag=$lt_lt_prog_compiler_static
19600
19601 # Does compiler simultaneously support -c and -o options?
19602 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19603
19604 # Whether or not to add -lc for building shared libraries.
19605 build_libtool_need_lc=$archive_cmds_need_lc
19606
19607 # Whether or not to disallow shared libs when runtime libs are static.
19608 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19609
19610 # Compiler flag to allow reflexive dlopens.
19611 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19612
19613 # Compiler flag to generate shared objects directly from archives.
19614 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19615
19616 # Whether the compiler copes with passing no objects directly.
19617 compiler_needs_object=$lt_compiler_needs_object
19618
19619 # Create an old-style archive from a shared archive.
19620 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19621
19622 # Create a temporary old-style archive to link instead of a shared archive.
19623 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19624
19625 # Commands used to build a shared archive.
19626 archive_cmds=$lt_archive_cmds
19627 archive_expsym_cmds=$lt_archive_expsym_cmds
19628
19629 # Commands used to build a loadable module if different from building
19630 # a shared archive.
19631 module_cmds=$lt_module_cmds
19632 module_expsym_cmds=$lt_module_expsym_cmds
19633
19634 # Whether we are building with GNU ld or not.
19635 with_gnu_ld=$lt_with_gnu_ld
19636
19637 # Flag that allows shared libraries with undefined symbols to be built.
19638 allow_undefined_flag=$lt_allow_undefined_flag
19639
19640 # Flag that enforces no undefined symbols.
19641 no_undefined_flag=$lt_no_undefined_flag
19642
19643 # Flag to hardcode \$libdir into a binary during linking.
19644 # This must work even if \$libdir does not exist
19645 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19646
19647 # Whether we need a single "-rpath" flag with a separated argument.
19648 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19649
19650 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19651 # DIR into the resulting binary.
19652 hardcode_direct=$hardcode_direct
19653
19654 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19655 # DIR into the resulting binary and the resulting library dependency is
19656 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19657 # library is relocated.
19658 hardcode_direct_absolute=$hardcode_direct_absolute
19659
19660 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19661 # into the resulting binary.
19662 hardcode_minus_L=$hardcode_minus_L
19663
19664 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19665 # into the resulting binary.
19666 hardcode_shlibpath_var=$hardcode_shlibpath_var
19667
19668 # Set to "yes" if building a shared library automatically hardcodes DIR
19669 # into the library and all subsequent libraries and executables linked
19670 # against it.
19671 hardcode_automatic=$hardcode_automatic
19672
19673 # Set to yes if linker adds runtime paths of dependent libraries
19674 # to runtime path list.
19675 inherit_rpath=$inherit_rpath
19676
19677 # Whether libtool must link a program against all its dependency libraries.
19678 link_all_deplibs=$link_all_deplibs
19679
19680 # Set to "yes" if exported symbols are required.
19681 always_export_symbols=$always_export_symbols
19682
19683 # The commands to list exported symbols.
19684 export_symbols_cmds=$lt_export_symbols_cmds
19685
19686 # Symbols that should not be listed in the preloaded symbols.
19687 exclude_expsyms=$lt_exclude_expsyms
19688
19689 # Symbols that must always be exported.
19690 include_expsyms=$lt_include_expsyms
19691
19692 # Commands necessary for linking programs (against libraries) with templates.
19693 prelink_cmds=$lt_prelink_cmds
19694
19695 # Commands necessary for finishing linking programs.
19696 postlink_cmds=$lt_postlink_cmds
19697
19698 # Specify filename containing input files.
19699 file_list_spec=$lt_file_list_spec
19700
19701 # How to hardcode a shared library path into an executable.
19702 hardcode_action=$hardcode_action
19703
19704 # The directories searched by this compiler when creating a shared library.
19705 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19706
19707 # Dependencies to place before and after the objects being linked to
19708 # create a shared library.
19709 predep_objects=$lt_predep_objects
19710 postdep_objects=$lt_postdep_objects
19711 predeps=$lt_predeps
19712 postdeps=$lt_postdeps
19713
19714 # The library search path used internally by the compiler when linking
19715 # a shared library.
19716 compiler_lib_search_path=$lt_compiler_lib_search_path
19717
19718 # ### END LIBTOOL CONFIG
19719
19720 _LT_EOF
19721
19722   case $host_os in
19723   aix3*)
19724     cat <<\_LT_EOF >> "$cfgfile"
19725 # AIX sometimes has problems with the GCC collect2 program.  For some
19726 # reason, if we set the COLLECT_NAMES environment variable, the problems
19727 # vanish in a puff of smoke.
19728 if test "X${COLLECT_NAMES+set}" != Xset; then
19729   COLLECT_NAMES=
19730   export COLLECT_NAMES
19731 fi
19732 _LT_EOF
19733     ;;
19734   esac
19735
19736
19737 ltmain="$ac_aux_dir/ltmain.sh"
19738
19739
19740   # We use sed instead of cat because bash on DJGPP gets confused if
19741   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19742   # text mode, it properly converts lines to CR/LF.  This bash problem
19743   # is reportedly fixed, but why not run on old versions too?
19744   sed '$q' "$ltmain" >> "$cfgfile" \
19745      || (rm -f "$cfgfile"; exit 1)
19746
19747   if test x"$xsi_shell" = xyes; then
19748   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19749 func_dirname ()\
19750 {\
19751 \    case ${1} in\
19752 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19753 \      *  ) func_dirname_result="${3}" ;;\
19754 \    esac\
19755 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19756   && mv -f "$cfgfile.tmp" "$cfgfile" \
19757     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19758 test 0 -eq $? || _lt_function_replace_fail=:
19759
19760
19761   sed -e '/^func_basename ()$/,/^} # func_basename /c\
19762 func_basename ()\
19763 {\
19764 \    func_basename_result="${1##*/}"\
19765 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19766   && mv -f "$cfgfile.tmp" "$cfgfile" \
19767     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19768 test 0 -eq $? || _lt_function_replace_fail=:
19769
19770
19771   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19772 func_dirname_and_basename ()\
19773 {\
19774 \    case ${1} in\
19775 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19776 \      *  ) func_dirname_result="${3}" ;;\
19777 \    esac\
19778 \    func_basename_result="${1##*/}"\
19779 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19780   && mv -f "$cfgfile.tmp" "$cfgfile" \
19781     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19782 test 0 -eq $? || _lt_function_replace_fail=:
19783
19784
19785   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19786 func_stripname ()\
19787 {\
19788 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19789 \    # positional parameters, so assign one to ordinary parameter first.\
19790 \    func_stripname_result=${3}\
19791 \    func_stripname_result=${func_stripname_result#"${1}"}\
19792 \    func_stripname_result=${func_stripname_result%"${2}"}\
19793 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19794   && mv -f "$cfgfile.tmp" "$cfgfile" \
19795     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19796 test 0 -eq $? || _lt_function_replace_fail=:
19797
19798
19799   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19800 func_split_long_opt ()\
19801 {\
19802 \    func_split_long_opt_name=${1%%=*}\
19803 \    func_split_long_opt_arg=${1#*=}\
19804 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19805   && mv -f "$cfgfile.tmp" "$cfgfile" \
19806     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19807 test 0 -eq $? || _lt_function_replace_fail=:
19808
19809
19810   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19811 func_split_short_opt ()\
19812 {\
19813 \    func_split_short_opt_arg=${1#??}\
19814 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19815 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19816   && mv -f "$cfgfile.tmp" "$cfgfile" \
19817     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19818 test 0 -eq $? || _lt_function_replace_fail=:
19819
19820
19821   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19822 func_lo2o ()\
19823 {\
19824 \    case ${1} in\
19825 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19826 \      *)    func_lo2o_result=${1} ;;\
19827 \    esac\
19828 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19829   && mv -f "$cfgfile.tmp" "$cfgfile" \
19830     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19831 test 0 -eq $? || _lt_function_replace_fail=:
19832
19833
19834   sed -e '/^func_xform ()$/,/^} # func_xform /c\
19835 func_xform ()\
19836 {\
19837     func_xform_result=${1%.*}.lo\
19838 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19839   && mv -f "$cfgfile.tmp" "$cfgfile" \
19840     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19841 test 0 -eq $? || _lt_function_replace_fail=:
19842
19843
19844   sed -e '/^func_arith ()$/,/^} # func_arith /c\
19845 func_arith ()\
19846 {\
19847     func_arith_result=$(( $* ))\
19848 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19849   && mv -f "$cfgfile.tmp" "$cfgfile" \
19850     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19851 test 0 -eq $? || _lt_function_replace_fail=:
19852
19853
19854   sed -e '/^func_len ()$/,/^} # func_len /c\
19855 func_len ()\
19856 {\
19857     func_len_result=${#1}\
19858 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19859   && mv -f "$cfgfile.tmp" "$cfgfile" \
19860     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19861 test 0 -eq $? || _lt_function_replace_fail=:
19862
19863 fi
19864
19865 if test x"$lt_shell_append" = xyes; then
19866   sed -e '/^func_append ()$/,/^} # func_append /c\
19867 func_append ()\
19868 {\
19869     eval "${1}+=\\${2}"\
19870 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19871   && mv -f "$cfgfile.tmp" "$cfgfile" \
19872     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19873 test 0 -eq $? || _lt_function_replace_fail=:
19874
19875
19876   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19877 func_append_quoted ()\
19878 {\
19879 \    func_quote_for_eval "${2}"\
19880 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19881 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19882   && mv -f "$cfgfile.tmp" "$cfgfile" \
19883     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19884 test 0 -eq $? || _lt_function_replace_fail=:
19885
19886
19887   # Save a `func_append' function call where possible by direct use of '+='
19888   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19889     && mv -f "$cfgfile.tmp" "$cfgfile" \
19890       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19891   test 0 -eq $? || _lt_function_replace_fail=:
19892 else
19893   # Save a `func_append' function call even when '+=' is not available
19894   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19895     && mv -f "$cfgfile.tmp" "$cfgfile" \
19896       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19897   test 0 -eq $? || _lt_function_replace_fail=:
19898 fi
19899
19900 if test x"$_lt_function_replace_fail" = x":"; then
19901   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19902 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19903 fi
19904
19905
19906    mv -f "$cfgfile" "$ofile" ||
19907     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19908   chmod +x "$ofile"
19909
19910
19911     cat <<_LT_EOF >> "$ofile"
19912
19913 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19914
19915 # The linker used to build libraries.
19916 LD=$lt_LD_CXX
19917
19918 # How to create reloadable object files.
19919 reload_flag=$lt_reload_flag_CXX
19920 reload_cmds=$lt_reload_cmds_CXX
19921
19922 # Commands used to build an old-style archive.
19923 old_archive_cmds=$lt_old_archive_cmds_CXX
19924
19925 # A language specific compiler.
19926 CC=$lt_compiler_CXX
19927
19928 # Is the compiler the GNU compiler?
19929 with_gcc=$GCC_CXX
19930
19931 # Compiler flag to turn off builtin functions.
19932 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19933
19934 # Additional compiler flags for building library objects.
19935 pic_flag=$lt_lt_prog_compiler_pic_CXX
19936
19937 # How to pass a linker flag through the compiler.
19938 wl=$lt_lt_prog_compiler_wl_CXX
19939
19940 # Compiler flag to prevent dynamic linking.
19941 link_static_flag=$lt_lt_prog_compiler_static_CXX
19942
19943 # Does compiler simultaneously support -c and -o options?
19944 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19945
19946 # Whether or not to add -lc for building shared libraries.
19947 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19948
19949 # Whether or not to disallow shared libs when runtime libs are static.
19950 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19951
19952 # Compiler flag to allow reflexive dlopens.
19953 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19954
19955 # Compiler flag to generate shared objects directly from archives.
19956 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19957
19958 # Whether the compiler copes with passing no objects directly.
19959 compiler_needs_object=$lt_compiler_needs_object_CXX
19960
19961 # Create an old-style archive from a shared archive.
19962 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19963
19964 # Create a temporary old-style archive to link instead of a shared archive.
19965 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19966
19967 # Commands used to build a shared archive.
19968 archive_cmds=$lt_archive_cmds_CXX
19969 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19970
19971 # Commands used to build a loadable module if different from building
19972 # a shared archive.
19973 module_cmds=$lt_module_cmds_CXX
19974 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19975
19976 # Whether we are building with GNU ld or not.
19977 with_gnu_ld=$lt_with_gnu_ld_CXX
19978
19979 # Flag that allows shared libraries with undefined symbols to be built.
19980 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19981
19982 # Flag that enforces no undefined symbols.
19983 no_undefined_flag=$lt_no_undefined_flag_CXX
19984
19985 # Flag to hardcode \$libdir into a binary during linking.
19986 # This must work even if \$libdir does not exist
19987 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19988
19989 # Whether we need a single "-rpath" flag with a separated argument.
19990 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19991
19992 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19993 # DIR into the resulting binary.
19994 hardcode_direct=$hardcode_direct_CXX
19995
19996 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19997 # DIR into the resulting binary and the resulting library dependency is
19998 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19999 # library is relocated.
20000 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20001
20002 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20003 # into the resulting binary.
20004 hardcode_minus_L=$hardcode_minus_L_CXX
20005
20006 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20007 # into the resulting binary.
20008 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20009
20010 # Set to "yes" if building a shared library automatically hardcodes DIR
20011 # into the library and all subsequent libraries and executables linked
20012 # against it.
20013 hardcode_automatic=$hardcode_automatic_CXX
20014
20015 # Set to yes if linker adds runtime paths of dependent libraries
20016 # to runtime path list.
20017 inherit_rpath=$inherit_rpath_CXX
20018
20019 # Whether libtool must link a program against all its dependency libraries.
20020 link_all_deplibs=$link_all_deplibs_CXX
20021
20022 # Set to "yes" if exported symbols are required.
20023 always_export_symbols=$always_export_symbols_CXX
20024
20025 # The commands to list exported symbols.
20026 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20027
20028 # Symbols that should not be listed in the preloaded symbols.
20029 exclude_expsyms=$lt_exclude_expsyms_CXX
20030
20031 # Symbols that must always be exported.
20032 include_expsyms=$lt_include_expsyms_CXX
20033
20034 # Commands necessary for linking programs (against libraries) with templates.
20035 prelink_cmds=$lt_prelink_cmds_CXX
20036
20037 # Commands necessary for finishing linking programs.
20038 postlink_cmds=$lt_postlink_cmds_CXX
20039
20040 # Specify filename containing input files.
20041 file_list_spec=$lt_file_list_spec_CXX
20042
20043 # How to hardcode a shared library path into an executable.
20044 hardcode_action=$hardcode_action_CXX
20045
20046 # The directories searched by this compiler when creating a shared library.
20047 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20048
20049 # Dependencies to place before and after the objects being linked to
20050 # create a shared library.
20051 predep_objects=$lt_predep_objects_CXX
20052 postdep_objects=$lt_postdep_objects_CXX
20053 predeps=$lt_predeps_CXX
20054 postdeps=$lt_postdeps_CXX
20055
20056 # The library search path used internally by the compiler when linking
20057 # a shared library.
20058 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20059
20060 # ### END LIBTOOL TAG CONFIG: CXX
20061 _LT_EOF
20062
20063  ;;
20064
20065   esac
20066 done # for ac_tag
20067
20068
20069 as_fn_exit 0
20070 _ACEOF
20071 ac_clean_files=$ac_clean_files_save
20072
20073 test $ac_write_fail = 0 ||
20074   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20075
20076
20077 # configure is writing to config.log, and then calls config.status.
20078 # config.status does its own redirection, appending to config.log.
20079 # Unfortunately, on DOS this fails, as config.log is still kept open
20080 # by configure, so config.status won't be able to write to it; its
20081 # output is simply discarded.  So we exec the FD to /dev/null,
20082 # effectively closing config.log, so it can be properly (re)opened and
20083 # appended to by config.status.  When coming back to configure, we
20084 # need to make the FD available again.
20085 if test "$no_create" != yes; then
20086   ac_cs_success=:
20087   ac_config_status_args=
20088   test "$silent" = yes &&
20089     ac_config_status_args="$ac_config_status_args --quiet"
20090   exec 5>/dev/null
20091   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20092   exec 5>>config.log
20093   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20094   # would make configure fail if this is the last instruction.
20095   $ac_cs_success || as_fn_exit 1
20096 fi
20097 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20098   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20099 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20100 fi
20101