tizen 2.3.1 release
[external/protobuf.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Protocol Buffers 2.6.1.
4 #
5 # Report bugs to <protobuf@googlegroups.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 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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: protobuf@googlegroups.com about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a 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='Protocol Buffers'
592 PACKAGE_TARNAME='protobuf'
593 PACKAGE_VERSION='2.6.1'
594 PACKAGE_STRING='Protocol Buffers 2.6.1'
595 PACKAGE_BUGREPORT='protobuf@googlegroups.com'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/google/protobuf/message.cc"
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 enable_option_checking=no
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 subdirs
640 PTHREAD_CFLAGS
641 PTHREAD_LIBS
642 PTHREAD_CC
643 acx_pthread_config
644 USE_EXTERNAL_PROTOC_FALSE
645 USE_EXTERNAL_PROTOC_TRUE
646 PROTOC
647 HAVE_ZLIB_FALSE
648 HAVE_ZLIB_TRUE
649 POW_LIB
650 LIBOBJS
651 OTOOL64
652 OTOOL
653 LIPO
654 NMEDIT
655 DSYMUTIL
656 MANIFEST_TOOL
657 RANLIB
658 ac_ct_AR
659 AR
660 DLLTOOL
661 OBJDUMP
662 LN_S
663 NM
664 ac_ct_DUMPBIN
665 DUMPBIN
666 LD
667 FGREP
668 SED
669 LIBTOOL
670 ISAINFO
671 PROTOBUF_OPT_FLAG
672 GCC_FALSE
673 GCC_TRUE
674 EGREP
675 GREP
676 CXXCPP
677 am__fastdepCXX_FALSE
678 am__fastdepCXX_TRUE
679 CXXDEPMODE
680 ac_ct_CXX
681 CXXFLAGS
682 CXX
683 am__fastdepCC_FALSE
684 am__fastdepCC_TRUE
685 CCDEPMODE
686 am__nodep
687 AMDEPBACKSLASH
688 AMDEP_FALSE
689 AMDEP_TRUE
690 am__quote
691 am__include
692 DEPDIR
693 OBJEXT
694 EXEEXT
695 ac_ct_CC
696 CPPFLAGS
697 LDFLAGS
698 CFLAGS
699 CC
700 AM_BACKSLASH
701 AM_DEFAULT_VERBOSITY
702 AM_DEFAULT_V
703 AM_V
704 am__untar
705 am__tar
706 AMTAR
707 am__leading_dot
708 SET_MAKE
709 AWK
710 mkdir_p
711 MKDIR_P
712 INSTALL_STRIP_PROGRAM
713 STRIP
714 install_sh
715 MAKEINFO
716 AUTOHEADER
717 AUTOMAKE
718 AUTOCONF
719 ACLOCAL
720 VERSION
721 PACKAGE
722 CYGPATH_W
723 am__isrc
724 INSTALL_DATA
725 INSTALL_SCRIPT
726 INSTALL_PROGRAM
727 target_os
728 target_vendor
729 target_cpu
730 target
731 host_os
732 host_vendor
733 host_cpu
734 host
735 build_os
736 build_vendor
737 build_cpu
738 build
739 MAINT
740 MAINTAINER_MODE_FALSE
741 MAINTAINER_MODE_TRUE
742 target_alias
743 host_alias
744 build_alias
745 LIBS
746 ECHO_T
747 ECHO_N
748 ECHO_C
749 DEFS
750 mandir
751 localedir
752 libdir
753 psdir
754 pdfdir
755 dvidir
756 htmldir
757 infodir
758 docdir
759 oldincludedir
760 includedir
761 localstatedir
762 sharedstatedir
763 sysconfdir
764 datadir
765 datarootdir
766 libexecdir
767 sbindir
768 bindir
769 program_transform_name
770 prefix
771 exec_prefix
772 PACKAGE_URL
773 PACKAGE_BUGREPORT
774 PACKAGE_STRING
775 PACKAGE_VERSION
776 PACKAGE_TARNAME
777 PACKAGE_NAME
778 PATH_SEPARATOR
779 SHELL'
780 ac_subst_files=''
781 ac_user_opts='
782 enable_option_checking
783 enable_maintainer_mode
784 enable_silent_rules
785 with_zlib
786 with_protoc
787 enable_dependency_tracking
788 enable_64bit_solaris
789 enable_shared
790 enable_static
791 with_pic
792 enable_fast_install
793 with_gnu_ld
794 with_sysroot
795 enable_libtool_lock
796 '
797       ac_precious_vars='build_alias
798 host_alias
799 target_alias
800 CC
801 CFLAGS
802 LDFLAGS
803 LIBS
804 CPPFLAGS
805 CXX
806 CXXFLAGS
807 CCC
808 CXXCPP'
809 ac_subdirs_all='gtest'
810
811 # Initialize some variables set by options.
812 ac_init_help=
813 ac_init_version=false
814 ac_unrecognized_opts=
815 ac_unrecognized_sep=
816 # The variables have the same names as the options, with
817 # dashes changed to underlines.
818 cache_file=/dev/null
819 exec_prefix=NONE
820 no_create=
821 no_recursion=
822 prefix=NONE
823 program_prefix=NONE
824 program_suffix=NONE
825 program_transform_name=s,x,x,
826 silent=
827 site=
828 srcdir=
829 verbose=
830 x_includes=NONE
831 x_libraries=NONE
832
833 # Installation directory options.
834 # These are left unexpanded so users can "make install exec_prefix=/foo"
835 # and all the variables that are supposed to be based on exec_prefix
836 # by default will actually change.
837 # Use braces instead of parens because sh, perl, etc. also accept them.
838 # (The list follows the same order as the GNU Coding Standards.)
839 bindir='${exec_prefix}/bin'
840 sbindir='${exec_prefix}/sbin'
841 libexecdir='${exec_prefix}/libexec'
842 datarootdir='${prefix}/share'
843 datadir='${datarootdir}'
844 sysconfdir='${prefix}/etc'
845 sharedstatedir='${prefix}/com'
846 localstatedir='${prefix}/var'
847 includedir='${prefix}/include'
848 oldincludedir='/usr/include'
849 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
850 infodir='${datarootdir}/info'
851 htmldir='${docdir}'
852 dvidir='${docdir}'
853 pdfdir='${docdir}'
854 psdir='${docdir}'
855 libdir='${exec_prefix}/lib'
856 localedir='${datarootdir}/locale'
857 mandir='${datarootdir}/man'
858
859 ac_prev=
860 ac_dashdash=
861 for ac_option
862 do
863   # If the previous option needs an argument, assign it.
864   if test -n "$ac_prev"; then
865     eval $ac_prev=\$ac_option
866     ac_prev=
867     continue
868   fi
869
870   case $ac_option in
871   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
872   *=)   ac_optarg= ;;
873   *)    ac_optarg=yes ;;
874   esac
875
876   # Accept the important Cygnus configure options, so we can diagnose typos.
877
878   case $ac_dashdash$ac_option in
879   --)
880     ac_dashdash=yes ;;
881
882   -bindir | --bindir | --bindi | --bind | --bin | --bi)
883     ac_prev=bindir ;;
884   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
885     bindir=$ac_optarg ;;
886
887   -build | --build | --buil | --bui | --bu)
888     ac_prev=build_alias ;;
889   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
890     build_alias=$ac_optarg ;;
891
892   -cache-file | --cache-file | --cache-fil | --cache-fi \
893   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
894     ac_prev=cache_file ;;
895   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
896   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
897     cache_file=$ac_optarg ;;
898
899   --config-cache | -C)
900     cache_file=config.cache ;;
901
902   -datadir | --datadir | --datadi | --datad)
903     ac_prev=datadir ;;
904   -datadir=* | --datadir=* | --datadi=* | --datad=*)
905     datadir=$ac_optarg ;;
906
907   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
908   | --dataroo | --dataro | --datar)
909     ac_prev=datarootdir ;;
910   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
911   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
912     datarootdir=$ac_optarg ;;
913
914   -disable-* | --disable-*)
915     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
916     # Reject names that are not valid shell variable names.
917     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918       as_fn_error $? "invalid feature name: $ac_useropt"
919     ac_useropt_orig=$ac_useropt
920     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921     case $ac_user_opts in
922       *"
923 "enable_$ac_useropt"
924 "*) ;;
925       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
926          ac_unrecognized_sep=', ';;
927     esac
928     eval enable_$ac_useropt=no ;;
929
930   -docdir | --docdir | --docdi | --doc | --do)
931     ac_prev=docdir ;;
932   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933     docdir=$ac_optarg ;;
934
935   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936     ac_prev=dvidir ;;
937   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938     dvidir=$ac_optarg ;;
939
940   -enable-* | --enable-*)
941     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942     # Reject names that are not valid shell variable names.
943     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944       as_fn_error $? "invalid feature name: $ac_useropt"
945     ac_useropt_orig=$ac_useropt
946     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947     case $ac_user_opts in
948       *"
949 "enable_$ac_useropt"
950 "*) ;;
951       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
952          ac_unrecognized_sep=', ';;
953     esac
954     eval enable_$ac_useropt=\$ac_optarg ;;
955
956   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
957   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
958   | --exec | --exe | --ex)
959     ac_prev=exec_prefix ;;
960   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
961   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
962   | --exec=* | --exe=* | --ex=*)
963     exec_prefix=$ac_optarg ;;
964
965   -gas | --gas | --ga | --g)
966     # Obsolete; use --with-gas.
967     with_gas=yes ;;
968
969   -help | --help | --hel | --he | -h)
970     ac_init_help=long ;;
971   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
972     ac_init_help=recursive ;;
973   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
974     ac_init_help=short ;;
975
976   -host | --host | --hos | --ho)
977     ac_prev=host_alias ;;
978   -host=* | --host=* | --hos=* | --ho=*)
979     host_alias=$ac_optarg ;;
980
981   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982     ac_prev=htmldir ;;
983   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984   | --ht=*)
985     htmldir=$ac_optarg ;;
986
987   -includedir | --includedir | --includedi | --included | --include \
988   | --includ | --inclu | --incl | --inc)
989     ac_prev=includedir ;;
990   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
991   | --includ=* | --inclu=* | --incl=* | --inc=*)
992     includedir=$ac_optarg ;;
993
994   -infodir | --infodir | --infodi | --infod | --info | --inf)
995     ac_prev=infodir ;;
996   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
997     infodir=$ac_optarg ;;
998
999   -libdir | --libdir | --libdi | --libd)
1000     ac_prev=libdir ;;
1001   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1002     libdir=$ac_optarg ;;
1003
1004   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1005   | --libexe | --libex | --libe)
1006     ac_prev=libexecdir ;;
1007   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1008   | --libexe=* | --libex=* | --libe=*)
1009     libexecdir=$ac_optarg ;;
1010
1011   -localedir | --localedir | --localedi | --localed | --locale)
1012     ac_prev=localedir ;;
1013   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1014     localedir=$ac_optarg ;;
1015
1016   -localstatedir | --localstatedir | --localstatedi | --localstated \
1017   | --localstate | --localstat | --localsta | --localst | --locals)
1018     ac_prev=localstatedir ;;
1019   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1020   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1021     localstatedir=$ac_optarg ;;
1022
1023   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024     ac_prev=mandir ;;
1025   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1026     mandir=$ac_optarg ;;
1027
1028   -nfp | --nfp | --nf)
1029     # Obsolete; use --without-fp.
1030     with_fp=no ;;
1031
1032   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1033   | --no-cr | --no-c | -n)
1034     no_create=yes ;;
1035
1036   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1037   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038     no_recursion=yes ;;
1039
1040   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1041   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1042   | --oldin | --oldi | --old | --ol | --o)
1043     ac_prev=oldincludedir ;;
1044   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1045   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1046   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1047     oldincludedir=$ac_optarg ;;
1048
1049   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050     ac_prev=prefix ;;
1051   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1052     prefix=$ac_optarg ;;
1053
1054   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1055   | --program-pre | --program-pr | --program-p)
1056     ac_prev=program_prefix ;;
1057   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1058   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1059     program_prefix=$ac_optarg ;;
1060
1061   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1062   | --program-suf | --program-su | --program-s)
1063     ac_prev=program_suffix ;;
1064   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1065   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1066     program_suffix=$ac_optarg ;;
1067
1068   -program-transform-name | --program-transform-name \
1069   | --program-transform-nam | --program-transform-na \
1070   | --program-transform-n | --program-transform- \
1071   | --program-transform | --program-transfor \
1072   | --program-transfo | --program-transf \
1073   | --program-trans | --program-tran \
1074   | --progr-tra | --program-tr | --program-t)
1075     ac_prev=program_transform_name ;;
1076   -program-transform-name=* | --program-transform-name=* \
1077   | --program-transform-nam=* | --program-transform-na=* \
1078   | --program-transform-n=* | --program-transform-=* \
1079   | --program-transform=* | --program-transfor=* \
1080   | --program-transfo=* | --program-transf=* \
1081   | --program-trans=* | --program-tran=* \
1082   | --progr-tra=* | --program-tr=* | --program-t=*)
1083     program_transform_name=$ac_optarg ;;
1084
1085   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086     ac_prev=pdfdir ;;
1087   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1088     pdfdir=$ac_optarg ;;
1089
1090   -psdir | --psdir | --psdi | --psd | --ps)
1091     ac_prev=psdir ;;
1092   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093     psdir=$ac_optarg ;;
1094
1095   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1096   | -silent | --silent | --silen | --sile | --sil)
1097     silent=yes ;;
1098
1099   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100     ac_prev=sbindir ;;
1101   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102   | --sbi=* | --sb=*)
1103     sbindir=$ac_optarg ;;
1104
1105   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1106   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1107   | --sharedst | --shareds | --shared | --share | --shar \
1108   | --sha | --sh)
1109     ac_prev=sharedstatedir ;;
1110   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1111   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1112   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113   | --sha=* | --sh=*)
1114     sharedstatedir=$ac_optarg ;;
1115
1116   -site | --site | --sit)
1117     ac_prev=site ;;
1118   -site=* | --site=* | --sit=*)
1119     site=$ac_optarg ;;
1120
1121   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122     ac_prev=srcdir ;;
1123   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1124     srcdir=$ac_optarg ;;
1125
1126   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1127   | --syscon | --sysco | --sysc | --sys | --sy)
1128     ac_prev=sysconfdir ;;
1129   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1130   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1131     sysconfdir=$ac_optarg ;;
1132
1133   -target | --target | --targe | --targ | --tar | --ta | --t)
1134     ac_prev=target_alias ;;
1135   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1136     target_alias=$ac_optarg ;;
1137
1138   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1139     verbose=yes ;;
1140
1141   -version | --version | --versio | --versi | --vers | -V)
1142     ac_init_version=: ;;
1143
1144   -with-* | --with-*)
1145     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1146     # Reject names that are not valid shell variable names.
1147     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148       as_fn_error $? "invalid package name: $ac_useropt"
1149     ac_useropt_orig=$ac_useropt
1150     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151     case $ac_user_opts in
1152       *"
1153 "with_$ac_useropt"
1154 "*) ;;
1155       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1156          ac_unrecognized_sep=', ';;
1157     esac
1158     eval with_$ac_useropt=\$ac_optarg ;;
1159
1160   -without-* | --without-*)
1161     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1162     # Reject names that are not valid shell variable names.
1163     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164       as_fn_error $? "invalid package name: $ac_useropt"
1165     ac_useropt_orig=$ac_useropt
1166     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167     case $ac_user_opts in
1168       *"
1169 "with_$ac_useropt"
1170 "*) ;;
1171       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1172          ac_unrecognized_sep=', ';;
1173     esac
1174     eval with_$ac_useropt=no ;;
1175
1176   --x)
1177     # Obsolete; use --with-x.
1178     with_x=yes ;;
1179
1180   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1181   | --x-incl | --x-inc | --x-in | --x-i)
1182     ac_prev=x_includes ;;
1183   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1184   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1185     x_includes=$ac_optarg ;;
1186
1187   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1188   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1189     ac_prev=x_libraries ;;
1190   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1191   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1192     x_libraries=$ac_optarg ;;
1193
1194   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1195 Try \`$0 --help' for more information"
1196     ;;
1197
1198   *=*)
1199     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1200     # Reject names that are not valid shell variable names.
1201     case $ac_envvar in #(
1202       '' | [0-9]* | *[!_$as_cr_alnum]* )
1203       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1204     esac
1205     eval $ac_envvar=\$ac_optarg
1206     export $ac_envvar ;;
1207
1208   *)
1209     # FIXME: should be removed in autoconf 3.0.
1210     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1211     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1213     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1214     ;;
1215
1216   esac
1217 done
1218
1219 if test -n "$ac_prev"; then
1220   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1221   as_fn_error $? "missing argument to $ac_option"
1222 fi
1223
1224 if test -n "$ac_unrecognized_opts"; then
1225   case $enable_option_checking in
1226     no) ;;
1227     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1228     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1229   esac
1230 fi
1231
1232 # Check all directory arguments for consistency.
1233 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1234                 datadir sysconfdir sharedstatedir localstatedir includedir \
1235                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1236                 libdir localedir mandir
1237 do
1238   eval ac_val=\$$ac_var
1239   # Remove trailing slashes.
1240   case $ac_val in
1241     */ )
1242       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1243       eval $ac_var=\$ac_val;;
1244   esac
1245   # Be sure to have absolute directory names.
1246   case $ac_val in
1247     [\\/$]* | ?:[\\/]* )  continue;;
1248     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1249   esac
1250   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1251 done
1252
1253 # There might be people who depend on the old broken behavior: `$host'
1254 # used to hold the argument of --host etc.
1255 # FIXME: To remove some day.
1256 build=$build_alias
1257 host=$host_alias
1258 target=$target_alias
1259
1260 # FIXME: To remove some day.
1261 if test "x$host_alias" != x; then
1262   if test "x$build_alias" = x; then
1263     cross_compiling=maybe
1264   elif test "x$build_alias" != "x$host_alias"; then
1265     cross_compiling=yes
1266   fi
1267 fi
1268
1269 ac_tool_prefix=
1270 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271
1272 test "$silent" = yes && exec 6>/dev/null
1273
1274
1275 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1276 ac_ls_di=`ls -di .` &&
1277 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1278   as_fn_error $? "working directory cannot be determined"
1279 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1280   as_fn_error $? "pwd does not report name of working directory"
1281
1282
1283 # Find the source files, if location was not specified.
1284 if test -z "$srcdir"; then
1285   ac_srcdir_defaulted=yes
1286   # Try the directory containing this script, then the parent directory.
1287   ac_confdir=`$as_dirname -- "$as_myself" ||
1288 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289          X"$as_myself" : 'X\(//\)[^/]' \| \
1290          X"$as_myself" : 'X\(//\)$' \| \
1291          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1292 $as_echo X"$as_myself" |
1293     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294             s//\1/
1295             q
1296           }
1297           /^X\(\/\/\)[^/].*/{
1298             s//\1/
1299             q
1300           }
1301           /^X\(\/\/\)$/{
1302             s//\1/
1303             q
1304           }
1305           /^X\(\/\).*/{
1306             s//\1/
1307             q
1308           }
1309           s/.*/./; q'`
1310   srcdir=$ac_confdir
1311   if test ! -r "$srcdir/$ac_unique_file"; then
1312     srcdir=..
1313   fi
1314 else
1315   ac_srcdir_defaulted=no
1316 fi
1317 if test ! -r "$srcdir/$ac_unique_file"; then
1318   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1319   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1320 fi
1321 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1322 ac_abs_confdir=`(
1323         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1324         pwd)`
1325 # When building in place, set srcdir=.
1326 if test "$ac_abs_confdir" = "$ac_pwd"; then
1327   srcdir=.
1328 fi
1329 # Remove unnecessary trailing slashes from srcdir.
1330 # Double slashes in file names in object file debugging info
1331 # mess up M-x gdb in Emacs.
1332 case $srcdir in
1333 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334 esac
1335 for ac_var in $ac_precious_vars; do
1336   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1337   eval ac_env_${ac_var}_value=\$${ac_var}
1338   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1339   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1340 done
1341
1342 #
1343 # Report the --help message.
1344 #
1345 if test "$ac_init_help" = "long"; then
1346   # Omit some internal or obsolete options to make the list less imposing.
1347   # This message is too long to be a string in the A/UX 3.1 sh.
1348   cat <<_ACEOF
1349 \`configure' configures Protocol Buffers 2.6.1 to adapt to many kinds of systems.
1350
1351 Usage: $0 [OPTION]... [VAR=VALUE]...
1352
1353 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1354 VAR=VALUE.  See below for descriptions of some of the useful variables.
1355
1356 Defaults for the options are specified in brackets.
1357
1358 Configuration:
1359   -h, --help              display this help and exit
1360       --help=short        display options specific to this package
1361       --help=recursive    display the short help of all the included packages
1362   -V, --version           display version information and exit
1363   -q, --quiet, --silent   do not print \`checking ...' messages
1364       --cache-file=FILE   cache test results in FILE [disabled]
1365   -C, --config-cache      alias for \`--cache-file=config.cache'
1366   -n, --no-create         do not create output files
1367       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1368
1369 Installation directories:
1370   --prefix=PREFIX         install architecture-independent files in PREFIX
1371                           [$ac_default_prefix]
1372   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1373                           [PREFIX]
1374
1375 By default, \`make install' will install all the files in
1376 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1377 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1378 for instance \`--prefix=\$HOME'.
1379
1380 For better control, use the options below.
1381
1382 Fine tuning of the installation directories:
1383   --bindir=DIR            user executables [EPREFIX/bin]
1384   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1385   --libexecdir=DIR        program executables [EPREFIX/libexec]
1386   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1387   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1388   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1389   --libdir=DIR            object code libraries [EPREFIX/lib]
1390   --includedir=DIR        C header files [PREFIX/include]
1391   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1392   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1393   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1394   --infodir=DIR           info documentation [DATAROOTDIR/info]
1395   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1396   --mandir=DIR            man documentation [DATAROOTDIR/man]
1397   --docdir=DIR            documentation root [DATAROOTDIR/doc/protobuf]
1398   --htmldir=DIR           html documentation [DOCDIR]
1399   --dvidir=DIR            dvi documentation [DOCDIR]
1400   --pdfdir=DIR            pdf documentation [DOCDIR]
1401   --psdir=DIR             ps documentation [DOCDIR]
1402 _ACEOF
1403
1404   cat <<\_ACEOF
1405
1406 Program names:
1407   --program-prefix=PREFIX            prepend PREFIX to installed program names
1408   --program-suffix=SUFFIX            append SUFFIX to installed program names
1409   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1410
1411 System types:
1412   --build=BUILD     configure for building on BUILD [guessed]
1413   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1414   --target=TARGET   configure for building compilers for TARGET [HOST]
1415 _ACEOF
1416 fi
1417
1418 if test -n "$ac_init_help"; then
1419   case $ac_init_help in
1420      short | recursive ) echo "Configuration of Protocol Buffers 2.6.1:";;
1421    esac
1422   cat <<\_ACEOF
1423
1424 Optional Features:
1425   --disable-option-checking  ignore unrecognized --enable/--with options
1426   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1427   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1428   --disable-maintainer-mode
1429                           disable make rules and dependencies not useful (and
1430                           sometimes confusing) to the casual installer
1431   --enable-silent-rules   less verbose build output (undo: "make V=1")
1432   --disable-silent-rules  verbose build output (undo: "make V=0")
1433   --enable-dependency-tracking
1434                           do not reject slow dependency extractors
1435   --disable-dependency-tracking
1436                           speeds up one-time build
1437   --disable-64bit-solaris Build 64 bit binary on Solaris [default=on]
1438   --enable-shared[=PKGS]  build shared libraries [default=yes]
1439   --enable-static[=PKGS]  build static libraries [default=yes]
1440   --enable-fast-install[=PKGS]
1441                           optimize for fast installation [default=yes]
1442   --disable-libtool-lock  avoid locking (might break parallel builds)
1443
1444 Optional Packages:
1445   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1446   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1447   --with-zlib             include classes for streaming compressed data in and
1448                           out [default=check]
1449   --with-protoc=COMMAND   use the given protoc command instead of building a
1450                           new one when building tests (useful for
1451                           cross-compiling)
1452   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1453                           both]
1454   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1455   --with-sysroot=DIR Search for dependent libraries within DIR
1456                         (or the compiler's sysroot if not specified).
1457
1458 Some influential environment variables:
1459   CC          C compiler command
1460   CFLAGS      C compiler flags
1461   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1462               nonstandard directory <lib dir>
1463   LIBS        libraries to pass to the linker, e.g. -l<library>
1464   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1465               you have headers in a nonstandard directory <include dir>
1466   CXX         C++ compiler command
1467   CXXFLAGS    C++ compiler flags
1468   CXXCPP      C++ preprocessor
1469
1470 Use these variables to override the choices made by `configure' or to help
1471 it to find libraries and programs with nonstandard names/locations.
1472
1473 Report bugs to <protobuf@googlegroups.com>.
1474 _ACEOF
1475 ac_status=$?
1476 fi
1477
1478 if test "$ac_init_help" = "recursive"; then
1479   # If there are subdirs, report their specific --help.
1480   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481     test -d "$ac_dir" ||
1482       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1483       continue
1484     ac_builddir=.
1485
1486 case "$ac_dir" in
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *)
1489   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1490   # A ".." for each directory in $ac_dir_suffix.
1491   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1492   case $ac_top_builddir_sub in
1493   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495   esac ;;
1496 esac
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1501
1502 case $srcdir in
1503   .)  # We are building in place.
1504     ac_srcdir=.
1505     ac_top_srcdir=$ac_top_builddir_sub
1506     ac_abs_top_srcdir=$ac_pwd ;;
1507   [\\/]* | ?:[\\/]* )  # Absolute name.
1508     ac_srcdir=$srcdir$ac_dir_suffix;
1509     ac_top_srcdir=$srcdir
1510     ac_abs_top_srcdir=$srcdir ;;
1511   *) # Relative name.
1512     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513     ac_top_srcdir=$ac_top_build_prefix$srcdir
1514     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 esac
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518     cd "$ac_dir" || { ac_status=$?; continue; }
1519     # Check for guested configure.
1520     if test -f "$ac_srcdir/configure.gnu"; then
1521       echo &&
1522       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523     elif test -f "$ac_srcdir/configure"; then
1524       echo &&
1525       $SHELL "$ac_srcdir/configure" --help=recursive
1526     else
1527       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528     fi || ac_status=$?
1529     cd "$ac_pwd" || { ac_status=$?; break; }
1530   done
1531 fi
1532
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1535   cat <<\_ACEOF
1536 Protocol Buffers configure 2.6.1
1537 generated by GNU Autoconf 2.69
1538
1539 Copyright (C) 2012 Free Software Foundation, Inc.
1540 This configure script is free software; the Free Software Foundation
1541 gives unlimited permission to copy, distribute and modify it.
1542 _ACEOF
1543   exit
1544 fi
1545
1546 ## ------------------------ ##
1547 ## Autoconf initialization. ##
1548 ## ------------------------ ##
1549
1550 # ac_fn_c_try_compile LINENO
1551 # --------------------------
1552 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1553 ac_fn_c_try_compile ()
1554 {
1555   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556   rm -f conftest.$ac_objext
1557   if { { ac_try="$ac_compile"
1558 case "(($ac_try" in
1559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560   *) ac_try_echo=$ac_try;;
1561 esac
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 $as_echo "$ac_try_echo"; } >&5
1564   (eval "$ac_compile") 2>conftest.err
1565   ac_status=$?
1566   if test -s conftest.err; then
1567     grep -v '^ *+' conftest.err >conftest.er1
1568     cat conftest.er1 >&5
1569     mv -f conftest.er1 conftest.err
1570   fi
1571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572   test $ac_status = 0; } && {
1573          test -z "$ac_c_werror_flag" ||
1574          test ! -s conftest.err
1575        } && test -s conftest.$ac_objext; then :
1576   ac_retval=0
1577 else
1578   $as_echo "$as_me: failed program was:" >&5
1579 sed 's/^/| /' conftest.$ac_ext >&5
1580
1581         ac_retval=1
1582 fi
1583   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584   as_fn_set_status $ac_retval
1585
1586 } # ac_fn_c_try_compile
1587
1588 # ac_fn_cxx_try_compile LINENO
1589 # ----------------------------
1590 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1591 ac_fn_cxx_try_compile ()
1592 {
1593   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594   rm -f conftest.$ac_objext
1595   if { { ac_try="$ac_compile"
1596 case "(($ac_try" in
1597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598   *) ac_try_echo=$ac_try;;
1599 esac
1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601 $as_echo "$ac_try_echo"; } >&5
1602   (eval "$ac_compile") 2>conftest.err
1603   ac_status=$?
1604   if test -s conftest.err; then
1605     grep -v '^ *+' conftest.err >conftest.er1
1606     cat conftest.er1 >&5
1607     mv -f conftest.er1 conftest.err
1608   fi
1609   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610   test $ac_status = 0; } && {
1611          test -z "$ac_cxx_werror_flag" ||
1612          test ! -s conftest.err
1613        } && test -s conftest.$ac_objext; then :
1614   ac_retval=0
1615 else
1616   $as_echo "$as_me: failed program was:" >&5
1617 sed 's/^/| /' conftest.$ac_ext >&5
1618
1619         ac_retval=1
1620 fi
1621   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622   as_fn_set_status $ac_retval
1623
1624 } # ac_fn_cxx_try_compile
1625
1626 # ac_fn_cxx_try_cpp LINENO
1627 # ------------------------
1628 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_cxx_try_cpp ()
1630 {
1631   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632   if { { ac_try="$ac_cpp conftest.$ac_ext"
1633 case "(($ac_try" in
1634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635   *) ac_try_echo=$ac_try;;
1636 esac
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1640   ac_status=$?
1641   if test -s conftest.err; then
1642     grep -v '^ *+' conftest.err >conftest.er1
1643     cat conftest.er1 >&5
1644     mv -f conftest.er1 conftest.err
1645   fi
1646   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647   test $ac_status = 0; } > conftest.i && {
1648          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1649          test ! -s conftest.err
1650        }; then :
1651   ac_retval=0
1652 else
1653   $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1655
1656     ac_retval=1
1657 fi
1658   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659   as_fn_set_status $ac_retval
1660
1661 } # ac_fn_cxx_try_cpp
1662
1663 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1664 # ---------------------------------------------------------
1665 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1666 # the include files in INCLUDES and setting the cache variable VAR
1667 # accordingly.
1668 ac_fn_cxx_check_header_mongrel ()
1669 {
1670   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671   if eval \${$3+:} false; then :
1672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673 $as_echo_n "checking for $2... " >&6; }
1674 if eval \${$3+:} false; then :
1675   $as_echo_n "(cached) " >&6
1676 fi
1677 eval ac_res=\$$3
1678                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679 $as_echo "$ac_res" >&6; }
1680 else
1681   # Is the header compilable?
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1683 $as_echo_n "checking $2 usability... " >&6; }
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h.  */
1686 $4
1687 #include <$2>
1688 _ACEOF
1689 if ac_fn_cxx_try_compile "$LINENO"; then :
1690   ac_header_compiler=yes
1691 else
1692   ac_header_compiler=no
1693 fi
1694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1696 $as_echo "$ac_header_compiler" >&6; }
1697
1698 # Is the header present?
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1700 $as_echo_n "checking $2 presence... " >&6; }
1701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702 /* end confdefs.h.  */
1703 #include <$2>
1704 _ACEOF
1705 if ac_fn_cxx_try_cpp "$LINENO"; then :
1706   ac_header_preproc=yes
1707 else
1708   ac_header_preproc=no
1709 fi
1710 rm -f conftest.err conftest.i conftest.$ac_ext
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1712 $as_echo "$ac_header_preproc" >&6; }
1713
1714 # So?  What about this header?
1715 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1716   yes:no: )
1717     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1718 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1719     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1720 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1721     ;;
1722   no:yes:* )
1723     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1724 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1725     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1726 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1727     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1728 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1729     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1730 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1731     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1732 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1733 ( $as_echo "## ---------------------------------------- ##
1734 ## Report this to protobuf@googlegroups.com ##
1735 ## ---------------------------------------- ##"
1736      ) | sed "s/^/$as_me: WARNING:     /" >&2
1737     ;;
1738 esac
1739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if eval \${$3+:} false; then :
1742   $as_echo_n "(cached) " >&6
1743 else
1744   eval "$3=\$ac_header_compiler"
1745 fi
1746 eval ac_res=\$$3
1747                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748 $as_echo "$ac_res" >&6; }
1749 fi
1750   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751
1752 } # ac_fn_cxx_check_header_mongrel
1753
1754 # ac_fn_cxx_try_run LINENO
1755 # ------------------------
1756 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1757 # that executables *can* be run.
1758 ac_fn_cxx_try_run ()
1759 {
1760   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761   if { { ac_try="$ac_link"
1762 case "(($ac_try" in
1763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764   *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768   (eval "$ac_link") 2>&5
1769   ac_status=$?
1770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1772   { { case "(($ac_try" in
1773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774   *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778   (eval "$ac_try") 2>&5
1779   ac_status=$?
1780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781   test $ac_status = 0; }; }; then :
1782   ac_retval=0
1783 else
1784   $as_echo "$as_me: program exited with status $ac_status" >&5
1785        $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1787
1788        ac_retval=$ac_status
1789 fi
1790   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792   as_fn_set_status $ac_retval
1793
1794 } # ac_fn_cxx_try_run
1795
1796 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1797 # ---------------------------------------------------------
1798 # Tests whether HEADER exists and can be compiled using the include files in
1799 # INCLUDES, setting the cache variable VAR accordingly.
1800 ac_fn_cxx_check_header_compile ()
1801 {
1802   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if eval \${$3+:} false; then :
1806   $as_echo_n "(cached) " >&6
1807 else
1808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h.  */
1810 $4
1811 #include <$2>
1812 _ACEOF
1813 if ac_fn_cxx_try_compile "$LINENO"; then :
1814   eval "$3=yes"
1815 else
1816   eval "$3=no"
1817 fi
1818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819 fi
1820 eval ac_res=\$$3
1821                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1823   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824
1825 } # ac_fn_cxx_check_header_compile
1826
1827 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
1828 # -----------------------------------------------
1829 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1830 # accordingly.
1831 ac_fn_cxx_check_decl ()
1832 {
1833   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834   as_decl_name=`echo $2|sed 's/ *(.*//'`
1835   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1837 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1838 if eval \${$3+:} false; then :
1839   $as_echo_n "(cached) " >&6
1840 else
1841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h.  */
1843 $4
1844 int
1845 main ()
1846 {
1847 #ifndef $as_decl_name
1848 #ifdef __cplusplus
1849   (void) $as_decl_use;
1850 #else
1851   (void) $as_decl_name;
1852 #endif
1853 #endif
1854
1855   ;
1856   return 0;
1857 }
1858 _ACEOF
1859 if ac_fn_cxx_try_compile "$LINENO"; then :
1860   eval "$3=yes"
1861 else
1862   eval "$3=no"
1863 fi
1864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1865 fi
1866 eval ac_res=\$$3
1867                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868 $as_echo "$ac_res" >&6; }
1869   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870
1871 } # ac_fn_cxx_check_decl
1872
1873 # ac_fn_c_try_link LINENO
1874 # -----------------------
1875 # Try to link conftest.$ac_ext, and return whether this succeeded.
1876 ac_fn_c_try_link ()
1877 {
1878   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879   rm -f conftest.$ac_objext conftest$ac_exeext
1880   if { { ac_try="$ac_link"
1881 case "(($ac_try" in
1882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883   *) ac_try_echo=$ac_try;;
1884 esac
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887   (eval "$ac_link") 2>conftest.err
1888   ac_status=$?
1889   if test -s conftest.err; then
1890     grep -v '^ *+' conftest.err >conftest.er1
1891     cat conftest.er1 >&5
1892     mv -f conftest.er1 conftest.err
1893   fi
1894   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895   test $ac_status = 0; } && {
1896          test -z "$ac_c_werror_flag" ||
1897          test ! -s conftest.err
1898        } && test -s conftest$ac_exeext && {
1899          test "$cross_compiling" = yes ||
1900          test -x conftest$ac_exeext
1901        }; then :
1902   ac_retval=0
1903 else
1904   $as_echo "$as_me: failed program was:" >&5
1905 sed 's/^/| /' conftest.$ac_ext >&5
1906
1907         ac_retval=1
1908 fi
1909   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1910   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1911   # interfere with the next link command; also delete a directory that is
1912   # left behind by Apple's compiler.  We do this before executing the actions.
1913   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1914   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915   as_fn_set_status $ac_retval
1916
1917 } # ac_fn_c_try_link
1918
1919 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1920 # -------------------------------------------------------
1921 # Tests whether HEADER exists and can be compiled using the include files in
1922 # INCLUDES, setting the cache variable VAR accordingly.
1923 ac_fn_c_check_header_compile ()
1924 {
1925   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927 $as_echo_n "checking for $2... " >&6; }
1928 if eval \${$3+:} false; then :
1929   $as_echo_n "(cached) " >&6
1930 else
1931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h.  */
1933 $4
1934 #include <$2>
1935 _ACEOF
1936 if ac_fn_c_try_compile "$LINENO"; then :
1937   eval "$3=yes"
1938 else
1939   eval "$3=no"
1940 fi
1941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942 fi
1943 eval ac_res=\$$3
1944                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945 $as_echo "$ac_res" >&6; }
1946   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947
1948 } # ac_fn_c_check_header_compile
1949
1950 # ac_fn_c_check_func LINENO FUNC VAR
1951 # ----------------------------------
1952 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1953 ac_fn_c_check_func ()
1954 {
1955   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957 $as_echo_n "checking for $2... " >&6; }
1958 if eval \${$3+:} false; then :
1959   $as_echo_n "(cached) " >&6
1960 else
1961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h.  */
1963 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1965 #define $2 innocuous_$2
1966
1967 /* System header to define __stub macros and hopefully few prototypes,
1968     which can conflict with char $2 (); below.
1969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1970     <limits.h> exists even on freestanding compilers.  */
1971
1972 #ifdef __STDC__
1973 # include <limits.h>
1974 #else
1975 # include <assert.h>
1976 #endif
1977
1978 #undef $2
1979
1980 /* Override any GCC internal prototype to avoid an error.
1981    Use char because int might match the return type of a GCC
1982    builtin and then its argument prototype would still apply.  */
1983 #ifdef __cplusplus
1984 extern "C"
1985 #endif
1986 char $2 ();
1987 /* The GNU C library defines this for functions which it implements
1988     to always fail with ENOSYS.  Some functions are actually named
1989     something starting with __ and the normal name is an alias.  */
1990 #if defined __stub_$2 || defined __stub___$2
1991 choke me
1992 #endif
1993
1994 int
1995 main ()
1996 {
1997 return $2 ();
1998   ;
1999   return 0;
2000 }
2001 _ACEOF
2002 if ac_fn_c_try_link "$LINENO"; then :
2003   eval "$3=yes"
2004 else
2005   eval "$3=no"
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext \
2008     conftest$ac_exeext conftest.$ac_ext
2009 fi
2010 eval ac_res=\$$3
2011                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 $as_echo "$ac_res" >&6; }
2013   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014
2015 } # ac_fn_c_check_func
2016
2017 # ac_fn_cxx_try_link LINENO
2018 # -------------------------
2019 # Try to link conftest.$ac_ext, and return whether this succeeded.
2020 ac_fn_cxx_try_link ()
2021 {
2022   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023   rm -f conftest.$ac_objext conftest$ac_exeext
2024   if { { ac_try="$ac_link"
2025 case "(($ac_try" in
2026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027   *) ac_try_echo=$ac_try;;
2028 esac
2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031   (eval "$ac_link") 2>conftest.err
2032   ac_status=$?
2033   if test -s conftest.err; then
2034     grep -v '^ *+' conftest.err >conftest.er1
2035     cat conftest.er1 >&5
2036     mv -f conftest.er1 conftest.err
2037   fi
2038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039   test $ac_status = 0; } && {
2040          test -z "$ac_cxx_werror_flag" ||
2041          test ! -s conftest.err
2042        } && test -s conftest$ac_exeext && {
2043          test "$cross_compiling" = yes ||
2044          test -x conftest$ac_exeext
2045        }; then :
2046   ac_retval=0
2047 else
2048   $as_echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2050
2051         ac_retval=1
2052 fi
2053   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2054   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2055   # interfere with the next link command; also delete a directory that is
2056   # left behind by Apple's compiler.  We do this before executing the actions.
2057   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2058   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059   as_fn_set_status $ac_retval
2060
2061 } # ac_fn_cxx_try_link
2062
2063 # ac_fn_cxx_check_func LINENO FUNC VAR
2064 # ------------------------------------
2065 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2066 ac_fn_cxx_check_func ()
2067 {
2068   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h.  */
2076 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2077    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2078 #define $2 innocuous_$2
2079
2080 /* System header to define __stub macros and hopefully few prototypes,
2081     which can conflict with char $2 (); below.
2082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2083     <limits.h> exists even on freestanding compilers.  */
2084
2085 #ifdef __STDC__
2086 # include <limits.h>
2087 #else
2088 # include <assert.h>
2089 #endif
2090
2091 #undef $2
2092
2093 /* Override any GCC internal prototype to avoid an error.
2094    Use char because int might match the return type of a GCC
2095    builtin and then its argument prototype would still apply.  */
2096 #ifdef __cplusplus
2097 extern "C"
2098 #endif
2099 char $2 ();
2100 /* The GNU C library defines this for functions which it implements
2101     to always fail with ENOSYS.  Some functions are actually named
2102     something starting with __ and the normal name is an alias.  */
2103 #if defined __stub_$2 || defined __stub___$2
2104 choke me
2105 #endif
2106
2107 int
2108 main ()
2109 {
2110 return $2 ();
2111   ;
2112   return 0;
2113 }
2114 _ACEOF
2115 if ac_fn_cxx_try_link "$LINENO"; then :
2116   eval "$3=yes"
2117 else
2118   eval "$3=no"
2119 fi
2120 rm -f core conftest.err conftest.$ac_objext \
2121     conftest$ac_exeext conftest.$ac_ext
2122 fi
2123 eval ac_res=\$$3
2124                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2125 $as_echo "$ac_res" >&6; }
2126   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2127
2128 } # ac_fn_cxx_check_func
2129 cat >config.log <<_ACEOF
2130 This file contains any messages produced by compilers while
2131 running configure, to aid debugging if configure makes a mistake.
2132
2133 It was created by Protocol Buffers $as_me 2.6.1, which was
2134 generated by GNU Autoconf 2.69.  Invocation command line was
2135
2136   $ $0 $@
2137
2138 _ACEOF
2139 exec 5>>config.log
2140 {
2141 cat <<_ASUNAME
2142 ## --------- ##
2143 ## Platform. ##
2144 ## --------- ##
2145
2146 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2147 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2148 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2149 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2150 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2151
2152 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2153 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2154
2155 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2156 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2157 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2158 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2159 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2160 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2161 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2162
2163 _ASUNAME
2164
2165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166 for as_dir in $PATH
2167 do
2168   IFS=$as_save_IFS
2169   test -z "$as_dir" && as_dir=.
2170     $as_echo "PATH: $as_dir"
2171   done
2172 IFS=$as_save_IFS
2173
2174 } >&5
2175
2176 cat >&5 <<_ACEOF
2177
2178
2179 ## ----------- ##
2180 ## Core tests. ##
2181 ## ----------- ##
2182
2183 _ACEOF
2184
2185
2186 # Keep a trace of the command line.
2187 # Strip out --no-create and --no-recursion so they do not pile up.
2188 # Strip out --silent because we don't want to record it for future runs.
2189 # Also quote any args containing shell meta-characters.
2190 # Make two passes to allow for proper duplicate-argument suppression.
2191 ac_configure_args=
2192 ac_configure_args0=
2193 ac_configure_args1=
2194 ac_must_keep_next=false
2195 for ac_pass in 1 2
2196 do
2197   for ac_arg
2198   do
2199     case $ac_arg in
2200     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2201     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2202     | -silent | --silent | --silen | --sile | --sil)
2203       continue ;;
2204     *\'*)
2205       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2206     esac
2207     case $ac_pass in
2208     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2209     2)
2210       as_fn_append ac_configure_args1 " '$ac_arg'"
2211       if test $ac_must_keep_next = true; then
2212         ac_must_keep_next=false # Got value, back to normal.
2213       else
2214         case $ac_arg in
2215           *=* | --config-cache | -C | -disable-* | --disable-* \
2216           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2217           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2218           | -with-* | --with-* | -without-* | --without-* | --x)
2219             case "$ac_configure_args0 " in
2220               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2221             esac
2222             ;;
2223           -* ) ac_must_keep_next=true ;;
2224         esac
2225       fi
2226       as_fn_append ac_configure_args " '$ac_arg'"
2227       ;;
2228     esac
2229   done
2230 done
2231 { ac_configure_args0=; unset ac_configure_args0;}
2232 { ac_configure_args1=; unset ac_configure_args1;}
2233
2234 # When interrupted or exit'd, cleanup temporary files, and complete
2235 # config.log.  We remove comments because anyway the quotes in there
2236 # would cause problems or look ugly.
2237 # WARNING: Use '\'' to represent an apostrophe within the trap.
2238 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2239 trap 'exit_status=$?
2240   # Save into config.log some information that might help in debugging.
2241   {
2242     echo
2243
2244     $as_echo "## ---------------- ##
2245 ## Cache variables. ##
2246 ## ---------------- ##"
2247     echo
2248     # The following way of writing the cache mishandles newlines in values,
2249 (
2250   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2251     eval ac_val=\$$ac_var
2252     case $ac_val in #(
2253     *${as_nl}*)
2254       case $ac_var in #(
2255       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2256 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2257       esac
2258       case $ac_var in #(
2259       _ | IFS | as_nl) ;; #(
2260       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2261       *) { eval $ac_var=; unset $ac_var;} ;;
2262       esac ;;
2263     esac
2264   done
2265   (set) 2>&1 |
2266     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2267     *${as_nl}ac_space=\ *)
2268       sed -n \
2269         "s/'\''/'\''\\\\'\'''\''/g;
2270           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2271       ;; #(
2272     *)
2273       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2274       ;;
2275     esac |
2276     sort
2277 )
2278     echo
2279
2280     $as_echo "## ----------------- ##
2281 ## Output variables. ##
2282 ## ----------------- ##"
2283     echo
2284     for ac_var in $ac_subst_vars
2285     do
2286       eval ac_val=\$$ac_var
2287       case $ac_val in
2288       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2289       esac
2290       $as_echo "$ac_var='\''$ac_val'\''"
2291     done | sort
2292     echo
2293
2294     if test -n "$ac_subst_files"; then
2295       $as_echo "## ------------------- ##
2296 ## File substitutions. ##
2297 ## ------------------- ##"
2298       echo
2299       for ac_var in $ac_subst_files
2300       do
2301         eval ac_val=\$$ac_var
2302         case $ac_val in
2303         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2304         esac
2305         $as_echo "$ac_var='\''$ac_val'\''"
2306       done | sort
2307       echo
2308     fi
2309
2310     if test -s confdefs.h; then
2311       $as_echo "## ----------- ##
2312 ## confdefs.h. ##
2313 ## ----------- ##"
2314       echo
2315       cat confdefs.h
2316       echo
2317     fi
2318     test "$ac_signal" != 0 &&
2319       $as_echo "$as_me: caught signal $ac_signal"
2320     $as_echo "$as_me: exit $exit_status"
2321   } >&5
2322   rm -f core *.core core.conftest.* &&
2323     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2324     exit $exit_status
2325 ' 0
2326 for ac_signal in 1 2 13 15; do
2327   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2328 done
2329 ac_signal=0
2330
2331 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2332 rm -f -r conftest* confdefs.h
2333
2334 $as_echo "/* confdefs.h */" > confdefs.h
2335
2336 # Predefined preprocessor variables.
2337
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE_NAME "$PACKAGE_NAME"
2340 _ACEOF
2341
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2344 _ACEOF
2345
2346 cat >>confdefs.h <<_ACEOF
2347 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2348 _ACEOF
2349
2350 cat >>confdefs.h <<_ACEOF
2351 #define PACKAGE_STRING "$PACKAGE_STRING"
2352 _ACEOF
2353
2354 cat >>confdefs.h <<_ACEOF
2355 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2356 _ACEOF
2357
2358 cat >>confdefs.h <<_ACEOF
2359 #define PACKAGE_URL "$PACKAGE_URL"
2360 _ACEOF
2361
2362
2363 # Let the site file select an alternate cache file if it wants to.
2364 # Prefer an explicitly selected file to automatically selected ones.
2365 ac_site_file1=NONE
2366 ac_site_file2=NONE
2367 if test -n "$CONFIG_SITE"; then
2368   # We do not want a PATH search for config.site.
2369   case $CONFIG_SITE in #((
2370     -*)  ac_site_file1=./$CONFIG_SITE;;
2371     */*) ac_site_file1=$CONFIG_SITE;;
2372     *)   ac_site_file1=./$CONFIG_SITE;;
2373   esac
2374 elif test "x$prefix" != xNONE; then
2375   ac_site_file1=$prefix/share/config.site
2376   ac_site_file2=$prefix/etc/config.site
2377 else
2378   ac_site_file1=$ac_default_prefix/share/config.site
2379   ac_site_file2=$ac_default_prefix/etc/config.site
2380 fi
2381 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2382 do
2383   test "x$ac_site_file" = xNONE && continue
2384   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2385     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2386 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2387     sed 's/^/| /' "$ac_site_file" >&5
2388     . "$ac_site_file" \
2389       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2391 as_fn_error $? "failed to load site script $ac_site_file
2392 See \`config.log' for more details" "$LINENO" 5; }
2393   fi
2394 done
2395
2396 if test -r "$cache_file"; then
2397   # Some versions of bash will fail to source /dev/null (special files
2398   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2399   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2400     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2401 $as_echo "$as_me: loading cache $cache_file" >&6;}
2402     case $cache_file in
2403       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2404       *)                      . "./$cache_file";;
2405     esac
2406   fi
2407 else
2408   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2409 $as_echo "$as_me: creating cache $cache_file" >&6;}
2410   >$cache_file
2411 fi
2412
2413 # Check that the precious variables saved in the cache have kept the same
2414 # value.
2415 ac_cache_corrupted=false
2416 for ac_var in $ac_precious_vars; do
2417   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2418   eval ac_new_set=\$ac_env_${ac_var}_set
2419   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2420   eval ac_new_val=\$ac_env_${ac_var}_value
2421   case $ac_old_set,$ac_new_set in
2422     set,)
2423       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2424 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2425       ac_cache_corrupted=: ;;
2426     ,set)
2427       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2428 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2429       ac_cache_corrupted=: ;;
2430     ,);;
2431     *)
2432       if test "x$ac_old_val" != "x$ac_new_val"; then
2433         # differences in whitespace do not lead to failure.
2434         ac_old_val_w=`echo x $ac_old_val`
2435         ac_new_val_w=`echo x $ac_new_val`
2436         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2437           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2438 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2439           ac_cache_corrupted=:
2440         else
2441           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2442 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2443           eval $ac_var=\$ac_old_val
2444         fi
2445         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2446 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2447         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2448 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2449       fi;;
2450   esac
2451   # Pass precious variables to config.status.
2452   if test "$ac_new_set" = set; then
2453     case $ac_new_val in
2454     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2455     *) ac_arg=$ac_var=$ac_new_val ;;
2456     esac
2457     case " $ac_configure_args " in
2458       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2459       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2460     esac
2461   fi
2462 done
2463 if $ac_cache_corrupted; then
2464   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2466   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2467 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2468   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2469 fi
2470 ## -------------------- ##
2471 ## Main body of script. ##
2472 ## -------------------- ##
2473
2474 ac_ext=c
2475 ac_cpp='$CPP $CPPFLAGS'
2476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2479
2480
2481
2482
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2484 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2485     # Check whether --enable-maintainer-mode was given.
2486 if test "${enable_maintainer_mode+set}" = set; then :
2487   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2488 else
2489   USE_MAINTAINER_MODE=yes
2490 fi
2491
2492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2493 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2494    if test $USE_MAINTAINER_MODE = yes; then
2495   MAINTAINER_MODE_TRUE=
2496   MAINTAINER_MODE_FALSE='#'
2497 else
2498   MAINTAINER_MODE_TRUE='#'
2499   MAINTAINER_MODE_FALSE=
2500 fi
2501
2502   MAINT=$MAINTAINER_MODE_TRUE
2503
2504
2505
2506
2507 ac_config_headers="$ac_config_headers config.h"
2508
2509
2510
2511 # autoconf's default CXXFLAGS are usually "-g -O2".  These aren't necessarily
2512 # the best choice for libprotobuf.
2513 if test "x${ac_cv_env_CFLAGS_set}" = "x"; then :
2514   CFLAGS=""
2515 fi
2516 if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then :
2517   CXXFLAGS=""
2518 fi
2519
2520 ac_aux_dir=
2521 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2522   if test -f "$ac_dir/install-sh"; then
2523     ac_aux_dir=$ac_dir
2524     ac_install_sh="$ac_aux_dir/install-sh -c"
2525     break
2526   elif test -f "$ac_dir/install.sh"; then
2527     ac_aux_dir=$ac_dir
2528     ac_install_sh="$ac_aux_dir/install.sh -c"
2529     break
2530   elif test -f "$ac_dir/shtool"; then
2531     ac_aux_dir=$ac_dir
2532     ac_install_sh="$ac_aux_dir/shtool install -c"
2533     break
2534   fi
2535 done
2536 if test -z "$ac_aux_dir"; then
2537   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2538 fi
2539
2540 # These three variables are undocumented and unsupported,
2541 # and are intended to be withdrawn in a future Autoconf release.
2542 # They can cause serious problems if a builder's source tree is in a directory
2543 # whose full name contains unusual characters.
2544 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2545 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2546 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2547
2548
2549 # Make sure we can run config.sub.
2550 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2551   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2552
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2554 $as_echo_n "checking build system type... " >&6; }
2555 if ${ac_cv_build+:} false; then :
2556   $as_echo_n "(cached) " >&6
2557 else
2558   ac_build_alias=$build_alias
2559 test "x$ac_build_alias" = x &&
2560   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2561 test "x$ac_build_alias" = x &&
2562   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2563 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2564   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2565
2566 fi
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2568 $as_echo "$ac_cv_build" >&6; }
2569 case $ac_cv_build in
2570 *-*-*) ;;
2571 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2572 esac
2573 build=$ac_cv_build
2574 ac_save_IFS=$IFS; IFS='-'
2575 set x $ac_cv_build
2576 shift
2577 build_cpu=$1
2578 build_vendor=$2
2579 shift; shift
2580 # Remember, the first character of IFS is used to create $*,
2581 # except with old shells:
2582 build_os=$*
2583 IFS=$ac_save_IFS
2584 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2585
2586
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2588 $as_echo_n "checking host system type... " >&6; }
2589 if ${ac_cv_host+:} false; then :
2590   $as_echo_n "(cached) " >&6
2591 else
2592   if test "x$host_alias" = x; then
2593   ac_cv_host=$ac_cv_build
2594 else
2595   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2596     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2597 fi
2598
2599 fi
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2601 $as_echo "$ac_cv_host" >&6; }
2602 case $ac_cv_host in
2603 *-*-*) ;;
2604 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2605 esac
2606 host=$ac_cv_host
2607 ac_save_IFS=$IFS; IFS='-'
2608 set x $ac_cv_host
2609 shift
2610 host_cpu=$1
2611 host_vendor=$2
2612 shift; shift
2613 # Remember, the first character of IFS is used to create $*,
2614 # except with old shells:
2615 host_os=$*
2616 IFS=$ac_save_IFS
2617 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2618
2619
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2621 $as_echo_n "checking target system type... " >&6; }
2622 if ${ac_cv_target+:} false; then :
2623   $as_echo_n "(cached) " >&6
2624 else
2625   if test "x$target_alias" = x; then
2626   ac_cv_target=$ac_cv_host
2627 else
2628   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2629     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2630 fi
2631
2632 fi
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2634 $as_echo "$ac_cv_target" >&6; }
2635 case $ac_cv_target in
2636 *-*-*) ;;
2637 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2638 esac
2639 target=$ac_cv_target
2640 ac_save_IFS=$IFS; IFS='-'
2641 set x $ac_cv_target
2642 shift
2643 target_cpu=$1
2644 target_vendor=$2
2645 shift; shift
2646 # Remember, the first character of IFS is used to create $*,
2647 # except with old shells:
2648 target_os=$*
2649 IFS=$ac_save_IFS
2650 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2651
2652
2653 # The aliases save the names the user supplied, while $host etc.
2654 # will get canonicalized.
2655 test -n "$target_alias" &&
2656   test "$program_prefix$program_suffix$program_transform_name" = \
2657     NONENONEs,x,x, &&
2658   program_prefix=${target_alias}-
2659
2660 am__api_version='1.14'
2661
2662 # Find a good install program.  We prefer a C program (faster),
2663 # so one script is as good as another.  But avoid the broken or
2664 # incompatible versions:
2665 # SysV /etc/install, /usr/sbin/install
2666 # SunOS /usr/etc/install
2667 # IRIX /sbin/install
2668 # AIX /bin/install
2669 # AmigaOS /C/install, which installs bootblocks on floppy discs
2670 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2671 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2672 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2673 # OS/2's system install, which has a completely different semantic
2674 # ./install, which can be erroneously created by make from ./install.sh.
2675 # Reject install programs that cannot install multiple files.
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2677 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2678 if test -z "$INSTALL"; then
2679 if ${ac_cv_path_install+:} false; then :
2680   $as_echo_n "(cached) " >&6
2681 else
2682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2684 do
2685   IFS=$as_save_IFS
2686   test -z "$as_dir" && as_dir=.
2687     # Account for people who put trailing slashes in PATH elements.
2688 case $as_dir/ in #((
2689   ./ | .// | /[cC]/* | \
2690   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2691   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2692   /usr/ucb/* ) ;;
2693   *)
2694     # OSF1 and SCO ODT 3.0 have their own names for install.
2695     # Don't use installbsd from OSF since it installs stuff as root
2696     # by default.
2697     for ac_prog in ginstall scoinst install; do
2698       for ac_exec_ext in '' $ac_executable_extensions; do
2699         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2700           if test $ac_prog = install &&
2701             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2702             # AIX install.  It has an incompatible calling convention.
2703             :
2704           elif test $ac_prog = install &&
2705             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2706             # program-specific install script used by HP pwplus--don't use.
2707             :
2708           else
2709             rm -rf conftest.one conftest.two conftest.dir
2710             echo one > conftest.one
2711             echo two > conftest.two
2712             mkdir conftest.dir
2713             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2714               test -s conftest.one && test -s conftest.two &&
2715               test -s conftest.dir/conftest.one &&
2716               test -s conftest.dir/conftest.two
2717             then
2718               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2719               break 3
2720             fi
2721           fi
2722         fi
2723       done
2724     done
2725     ;;
2726 esac
2727
2728   done
2729 IFS=$as_save_IFS
2730
2731 rm -rf conftest.one conftest.two conftest.dir
2732
2733 fi
2734   if test "${ac_cv_path_install+set}" = set; then
2735     INSTALL=$ac_cv_path_install
2736   else
2737     # As a last resort, use the slow shell script.  Don't cache a
2738     # value for INSTALL within a source directory, because that will
2739     # break other packages using the cache if that directory is
2740     # removed, or if the value is a relative name.
2741     INSTALL=$ac_install_sh
2742   fi
2743 fi
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2745 $as_echo "$INSTALL" >&6; }
2746
2747 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2748 # It thinks the first close brace ends the variable substitution.
2749 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2750
2751 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2752
2753 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2754
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2756 $as_echo_n "checking whether build environment is sane... " >&6; }
2757 # Reject unsafe characters in $srcdir or the absolute working directory
2758 # name.  Accept space and tab only in the latter.
2759 am_lf='
2760 '
2761 case `pwd` in
2762   *[\\\"\#\$\&\'\`$am_lf]*)
2763     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2764 esac
2765 case $srcdir in
2766   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2767     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2768 esac
2769
2770 # Do 'set' in a subshell so we don't clobber the current shell's
2771 # arguments.  Must try -L first in case configure is actually a
2772 # symlink; some systems play weird games with the mod time of symlinks
2773 # (eg FreeBSD returns the mod time of the symlink's containing
2774 # directory).
2775 if (
2776    am_has_slept=no
2777    for am_try in 1 2; do
2778      echo "timestamp, slept: $am_has_slept" > conftest.file
2779      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2780      if test "$*" = "X"; then
2781         # -L didn't work.
2782         set X `ls -t "$srcdir/configure" conftest.file`
2783      fi
2784      if test "$*" != "X $srcdir/configure conftest.file" \
2785         && test "$*" != "X conftest.file $srcdir/configure"; then
2786
2787         # If neither matched, then we have a broken ls.  This can happen
2788         # if, for instance, CONFIG_SHELL is bash and it inherits a
2789         # broken ls alias from the environment.  This has actually
2790         # happened.  Such a system could not be considered "sane".
2791         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2792   alias in your environment" "$LINENO" 5
2793      fi
2794      if test "$2" = conftest.file || test $am_try -eq 2; then
2795        break
2796      fi
2797      # Just in case.
2798      sleep 1
2799      am_has_slept=yes
2800    done
2801    test "$2" = conftest.file
2802    )
2803 then
2804    # Ok.
2805    :
2806 else
2807    as_fn_error $? "newly created file is older than distributed files!
2808 Check your system clock" "$LINENO" 5
2809 fi
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2811 $as_echo "yes" >&6; }
2812 # If we didn't sleep, we still need to ensure time stamps of config.status and
2813 # generated files are strictly newer.
2814 am_sleep_pid=
2815 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2816   ( sleep 1 ) &
2817   am_sleep_pid=$!
2818 fi
2819
2820 rm -f conftest.file
2821
2822 test "$program_prefix" != NONE &&
2823   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2824 # Use a double $ so make ignores it.
2825 test "$program_suffix" != NONE &&
2826   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2827 # Double any \ or $.
2828 # By default was `s,x,x', remove it if useless.
2829 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2830 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2831
2832 # expand $ac_aux_dir to an absolute path
2833 am_aux_dir=`cd $ac_aux_dir && pwd`
2834
2835 if test x"${MISSING+set}" != xset; then
2836   case $am_aux_dir in
2837   *\ * | *\     *)
2838     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2839   *)
2840     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2841   esac
2842 fi
2843 # Use eval to expand $SHELL
2844 if eval "$MISSING --is-lightweight"; then
2845   am_missing_run="$MISSING "
2846 else
2847   am_missing_run=
2848   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2849 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2850 fi
2851
2852 if test x"${install_sh}" != xset; then
2853   case $am_aux_dir in
2854   *\ * | *\     *)
2855     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2856   *)
2857     install_sh="\${SHELL} $am_aux_dir/install-sh"
2858   esac
2859 fi
2860
2861 # Installed binaries are usually stripped using 'strip' when the user
2862 # run "make install-strip".  However 'strip' might not be the right
2863 # tool to use in cross-compilation environments, therefore Automake
2864 # will honor the 'STRIP' environment variable to overrule this program.
2865 if test "$cross_compiling" != no; then
2866   if test -n "$ac_tool_prefix"; then
2867   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2868 set dummy ${ac_tool_prefix}strip; ac_word=$2
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870 $as_echo_n "checking for $ac_word... " >&6; }
2871 if ${ac_cv_prog_STRIP+:} false; then :
2872   $as_echo_n "(cached) " >&6
2873 else
2874   if test -n "$STRIP"; then
2875   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2876 else
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2879 do
2880   IFS=$as_save_IFS
2881   test -z "$as_dir" && as_dir=.
2882     for ac_exec_ext in '' $ac_executable_extensions; do
2883   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2884     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2886     break 2
2887   fi
2888 done
2889   done
2890 IFS=$as_save_IFS
2891
2892 fi
2893 fi
2894 STRIP=$ac_cv_prog_STRIP
2895 if test -n "$STRIP"; then
2896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2897 $as_echo "$STRIP" >&6; }
2898 else
2899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900 $as_echo "no" >&6; }
2901 fi
2902
2903
2904 fi
2905 if test -z "$ac_cv_prog_STRIP"; then
2906   ac_ct_STRIP=$STRIP
2907   # Extract the first word of "strip", so it can be a program name with args.
2908 set dummy strip; ac_word=$2
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910 $as_echo_n "checking for $ac_word... " >&6; }
2911 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2912   $as_echo_n "(cached) " >&6
2913 else
2914   if test -n "$ac_ct_STRIP"; then
2915   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2916 else
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 for as_dir in $PATH
2919 do
2920   IFS=$as_save_IFS
2921   test -z "$as_dir" && as_dir=.
2922     for ac_exec_ext in '' $ac_executable_extensions; do
2923   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2924     ac_cv_prog_ac_ct_STRIP="strip"
2925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926     break 2
2927   fi
2928 done
2929   done
2930 IFS=$as_save_IFS
2931
2932 fi
2933 fi
2934 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2935 if test -n "$ac_ct_STRIP"; then
2936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2937 $as_echo "$ac_ct_STRIP" >&6; }
2938 else
2939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940 $as_echo "no" >&6; }
2941 fi
2942
2943   if test "x$ac_ct_STRIP" = x; then
2944     STRIP=":"
2945   else
2946     case $cross_compiling:$ac_tool_warned in
2947 yes:)
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2950 ac_tool_warned=yes ;;
2951 esac
2952     STRIP=$ac_ct_STRIP
2953   fi
2954 else
2955   STRIP="$ac_cv_prog_STRIP"
2956 fi
2957
2958 fi
2959 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2960
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2962 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2963 if test -z "$MKDIR_P"; then
2964   if ${ac_cv_path_mkdir+:} false; then :
2965   $as_echo_n "(cached) " >&6
2966 else
2967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2969 do
2970   IFS=$as_save_IFS
2971   test -z "$as_dir" && as_dir=.
2972     for ac_prog in mkdir gmkdir; do
2973          for ac_exec_ext in '' $ac_executable_extensions; do
2974            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2975            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2976              'mkdir (GNU coreutils) '* | \
2977              'mkdir (coreutils) '* | \
2978              'mkdir (fileutils) '4.1*)
2979                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2980                break 3;;
2981            esac
2982          done
2983        done
2984   done
2985 IFS=$as_save_IFS
2986
2987 fi
2988
2989   test -d ./--version && rmdir ./--version
2990   if test "${ac_cv_path_mkdir+set}" = set; then
2991     MKDIR_P="$ac_cv_path_mkdir -p"
2992   else
2993     # As a last resort, use the slow shell script.  Don't cache a
2994     # value for MKDIR_P within a source directory, because that will
2995     # break other packages using the cache if that directory is
2996     # removed, or if the value is a relative name.
2997     MKDIR_P="$ac_install_sh -d"
2998   fi
2999 fi
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3001 $as_echo "$MKDIR_P" >&6; }
3002
3003 for ac_prog in gawk mawk nawk awk
3004 do
3005   # Extract the first word of "$ac_prog", so it can be a program name with args.
3006 set dummy $ac_prog; ac_word=$2
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if ${ac_cv_prog_AWK+:} false; then :
3010   $as_echo_n "(cached) " >&6
3011 else
3012   if test -n "$AWK"; then
3013   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3014 else
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH
3017 do
3018   IFS=$as_save_IFS
3019   test -z "$as_dir" && as_dir=.
3020     for ac_exec_ext in '' $ac_executable_extensions; do
3021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3022     ac_cv_prog_AWK="$ac_prog"
3023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024     break 2
3025   fi
3026 done
3027   done
3028 IFS=$as_save_IFS
3029
3030 fi
3031 fi
3032 AWK=$ac_cv_prog_AWK
3033 if test -n "$AWK"; then
3034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3035 $as_echo "$AWK" >&6; }
3036 else
3037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3039 fi
3040
3041
3042   test -n "$AWK" && break
3043 done
3044
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3046 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3047 set x ${MAKE-make}
3048 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3049 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3050   $as_echo_n "(cached) " >&6
3051 else
3052   cat >conftest.make <<\_ACEOF
3053 SHELL = /bin/sh
3054 all:
3055         @echo '@@@%%%=$(MAKE)=@@@%%%'
3056 _ACEOF
3057 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3058 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3059   *@@@%%%=?*=@@@%%%*)
3060     eval ac_cv_prog_make_${ac_make}_set=yes;;
3061   *)
3062     eval ac_cv_prog_make_${ac_make}_set=no;;
3063 esac
3064 rm -f conftest.make
3065 fi
3066 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3068 $as_echo "yes" >&6; }
3069   SET_MAKE=
3070 else
3071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3073   SET_MAKE="MAKE=${MAKE-make}"
3074 fi
3075
3076 rm -rf .tst 2>/dev/null
3077 mkdir .tst 2>/dev/null
3078 if test -d .tst; then
3079   am__leading_dot=.
3080 else
3081   am__leading_dot=_
3082 fi
3083 rmdir .tst 2>/dev/null
3084
3085 # Check whether --enable-silent-rules was given.
3086 if test "${enable_silent_rules+set}" = set; then :
3087   enableval=$enable_silent_rules;
3088 fi
3089
3090 case $enable_silent_rules in # (((
3091   yes) AM_DEFAULT_VERBOSITY=0;;
3092    no) AM_DEFAULT_VERBOSITY=1;;
3093     *) AM_DEFAULT_VERBOSITY=1;;
3094 esac
3095 am_make=${MAKE-make}
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3097 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3098 if ${am_cv_make_support_nested_variables+:} false; then :
3099   $as_echo_n "(cached) " >&6
3100 else
3101   if $as_echo 'TRUE=$(BAR$(V))
3102 BAR0=false
3103 BAR1=true
3104 V=1
3105 am__doit:
3106         @$(TRUE)
3107 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3108   am_cv_make_support_nested_variables=yes
3109 else
3110   am_cv_make_support_nested_variables=no
3111 fi
3112 fi
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3114 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3115 if test $am_cv_make_support_nested_variables = yes; then
3116     AM_V='$(V)'
3117   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3118 else
3119   AM_V=$AM_DEFAULT_VERBOSITY
3120   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3121 fi
3122 AM_BACKSLASH='\'
3123
3124 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3125   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3126   # is not polluted with repeated "-I."
3127   am__isrc=' -I$(srcdir)'
3128   # test to see if srcdir already configured
3129   if test -f $srcdir/config.status; then
3130     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3131   fi
3132 fi
3133
3134 # test whether we have cygpath
3135 if test -z "$CYGPATH_W"; then
3136   if (cygpath --version) >/dev/null 2>/dev/null; then
3137     CYGPATH_W='cygpath -w'
3138   else
3139     CYGPATH_W=echo
3140   fi
3141 fi
3142
3143
3144 # Define the identity of the package.
3145  PACKAGE='protobuf'
3146  VERSION='2.6.1'
3147
3148
3149 cat >>confdefs.h <<_ACEOF
3150 #define PACKAGE "$PACKAGE"
3151 _ACEOF
3152
3153
3154 cat >>confdefs.h <<_ACEOF
3155 #define VERSION "$VERSION"
3156 _ACEOF
3157
3158 # Some tools Automake needs.
3159
3160 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3161
3162
3163 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3164
3165
3166 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3167
3168
3169 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3170
3171
3172 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3173
3174 # For better backward compatibility.  To be removed once Automake 1.9.x
3175 # dies out for good.  For more background, see:
3176 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3177 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3178 mkdir_p='$(MKDIR_P)'
3179
3180 # We need awk for the "check" target.  The system "awk" is bad on
3181 # some platforms.
3182 # Always define AMTAR for backward compatibility.  Yes, it's still used
3183 # in the wild :-(  We should find a proper way to deprecate it ...
3184 AMTAR='$${TAR-tar}'
3185
3186
3187 # We'll loop over all known methods to create a tar archive until one works.
3188 _am_tools='gnutar  pax cpio none'
3189
3190 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3191
3192
3193
3194
3195
3196
3197 # POSIX will say in a future version that running "rm -f" with no argument
3198 # is OK; and we want to be able to make that assumption in our Makefile
3199 # recipes.  So use an aggressive probe to check that the usage we want is
3200 # actually supported "in the wild" to an acceptable degree.
3201 # See automake bug#10828.
3202 # To make any issue more visible, cause the running configure to be aborted
3203 # by default if the 'rm' program in use doesn't match our expectations; the
3204 # user can still override this though.
3205 if rm -f && rm -fr && rm -rf; then : OK; else
3206   cat >&2 <<'END'
3207 Oops!
3208
3209 Your 'rm' program seems unable to run without file operands specified
3210 on the command line, even when the '-f' option is present.  This is contrary
3211 to the behaviour of most rm programs out there, and not conforming with
3212 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3213
3214 Please tell bug-automake@gnu.org about your system, including the value
3215 of your $PATH and any error possibly output before this message.  This
3216 can help us improve future automake versions.
3217
3218 END
3219   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3220     echo 'Configuration will proceed anyway, since you have set the' >&2
3221     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3222     echo >&2
3223   else
3224     cat >&2 <<'END'
3225 Aborting the configuration process, to ensure you take notice of the issue.
3226
3227 You can download and install GNU coreutils to get an 'rm' implementation
3228 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3229
3230 If you want to complete the configuration process using your problematic
3231 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3232 to "yes", and re-run configure.
3233
3234 END
3235     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3236   fi
3237 fi
3238
3239
3240 # Check whether --with-zlib was given.
3241 if test "${with_zlib+set}" = set; then :
3242   withval=$with_zlib;
3243 else
3244   with_zlib=check
3245 fi
3246
3247
3248
3249 # Check whether --with-protoc was given.
3250 if test "${with_protoc+set}" = set; then :
3251   withval=$with_protoc;
3252 else
3253   with_protoc=no
3254 fi
3255
3256
3257 # Checks for programs.
3258 ac_ext=c
3259 ac_cpp='$CPP $CPPFLAGS'
3260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3263 if test -n "$ac_tool_prefix"; then
3264   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3265 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267 $as_echo_n "checking for $ac_word... " >&6; }
3268 if ${ac_cv_prog_CC+:} false; then :
3269   $as_echo_n "(cached) " >&6
3270 else
3271   if test -n "$CC"; then
3272   ac_cv_prog_CC="$CC" # Let the user override the test.
3273 else
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 for as_dir in $PATH
3276 do
3277   IFS=$as_save_IFS
3278   test -z "$as_dir" && as_dir=.
3279     for ac_exec_ext in '' $ac_executable_extensions; do
3280   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3281     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283     break 2
3284   fi
3285 done
3286   done
3287 IFS=$as_save_IFS
3288
3289 fi
3290 fi
3291 CC=$ac_cv_prog_CC
3292 if test -n "$CC"; then
3293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3294 $as_echo "$CC" >&6; }
3295 else
3296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 $as_echo "no" >&6; }
3298 fi
3299
3300
3301 fi
3302 if test -z "$ac_cv_prog_CC"; then
3303   ac_ct_CC=$CC
3304   # Extract the first word of "gcc", so it can be a program name with args.
3305 set dummy gcc; ac_word=$2
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3309   $as_echo_n "(cached) " >&6
3310 else
3311   if test -n "$ac_ct_CC"; then
3312   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3313 else
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3316 do
3317   IFS=$as_save_IFS
3318   test -z "$as_dir" && as_dir=.
3319     for ac_exec_ext in '' $ac_executable_extensions; do
3320   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321     ac_cv_prog_ac_ct_CC="gcc"
3322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323     break 2
3324   fi
3325 done
3326   done
3327 IFS=$as_save_IFS
3328
3329 fi
3330 fi
3331 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3332 if test -n "$ac_ct_CC"; then
3333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3334 $as_echo "$ac_ct_CC" >&6; }
3335 else
3336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3338 fi
3339
3340   if test "x$ac_ct_CC" = x; then
3341     CC=""
3342   else
3343     case $cross_compiling:$ac_tool_warned in
3344 yes:)
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3347 ac_tool_warned=yes ;;
3348 esac
3349     CC=$ac_ct_CC
3350   fi
3351 else
3352   CC="$ac_cv_prog_CC"
3353 fi
3354
3355 if test -z "$CC"; then
3356           if test -n "$ac_tool_prefix"; then
3357     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3358 set dummy ${ac_tool_prefix}cc; ac_word=$2
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360 $as_echo_n "checking for $ac_word... " >&6; }
3361 if ${ac_cv_prog_CC+:} false; then :
3362   $as_echo_n "(cached) " >&6
3363 else
3364   if test -n "$CC"; then
3365   ac_cv_prog_CC="$CC" # Let the user override the test.
3366 else
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368 for as_dir in $PATH
3369 do
3370   IFS=$as_save_IFS
3371   test -z "$as_dir" && as_dir=.
3372     for ac_exec_ext in '' $ac_executable_extensions; do
3373   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3374     ac_cv_prog_CC="${ac_tool_prefix}cc"
3375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376     break 2
3377   fi
3378 done
3379   done
3380 IFS=$as_save_IFS
3381
3382 fi
3383 fi
3384 CC=$ac_cv_prog_CC
3385 if test -n "$CC"; then
3386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3387 $as_echo "$CC" >&6; }
3388 else
3389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390 $as_echo "no" >&6; }
3391 fi
3392
3393
3394   fi
3395 fi
3396 if test -z "$CC"; then
3397   # Extract the first word of "cc", so it can be a program name with args.
3398 set dummy cc; ac_word=$2
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400 $as_echo_n "checking for $ac_word... " >&6; }
3401 if ${ac_cv_prog_CC+:} false; then :
3402   $as_echo_n "(cached) " >&6
3403 else
3404   if test -n "$CC"; then
3405   ac_cv_prog_CC="$CC" # Let the user override the test.
3406 else
3407   ac_prog_rejected=no
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 for as_dir in $PATH
3410 do
3411   IFS=$as_save_IFS
3412   test -z "$as_dir" && as_dir=.
3413     for ac_exec_ext in '' $ac_executable_extensions; do
3414   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3415     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3416        ac_prog_rejected=yes
3417        continue
3418      fi
3419     ac_cv_prog_CC="cc"
3420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3421     break 2
3422   fi
3423 done
3424   done
3425 IFS=$as_save_IFS
3426
3427 if test $ac_prog_rejected = yes; then
3428   # We found a bogon in the path, so make sure we never use it.
3429   set dummy $ac_cv_prog_CC
3430   shift
3431   if test $# != 0; then
3432     # We chose a different compiler from the bogus one.
3433     # However, it has the same basename, so the bogon will be chosen
3434     # first if we set CC to just the basename; use the full file name.
3435     shift
3436     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3437   fi
3438 fi
3439 fi
3440 fi
3441 CC=$ac_cv_prog_CC
3442 if test -n "$CC"; then
3443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3444 $as_echo "$CC" >&6; }
3445 else
3446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 $as_echo "no" >&6; }
3448 fi
3449
3450
3451 fi
3452 if test -z "$CC"; then
3453   if test -n "$ac_tool_prefix"; then
3454   for ac_prog in cl.exe
3455   do
3456     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3459 $as_echo_n "checking for $ac_word... " >&6; }
3460 if ${ac_cv_prog_CC+:} false; then :
3461   $as_echo_n "(cached) " >&6
3462 else
3463   if test -n "$CC"; then
3464   ac_cv_prog_CC="$CC" # Let the user override the test.
3465 else
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3468 do
3469   IFS=$as_save_IFS
3470   test -z "$as_dir" && as_dir=.
3471     for ac_exec_ext in '' $ac_executable_extensions; do
3472   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3475     break 2
3476   fi
3477 done
3478   done
3479 IFS=$as_save_IFS
3480
3481 fi
3482 fi
3483 CC=$ac_cv_prog_CC
3484 if test -n "$CC"; then
3485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3486 $as_echo "$CC" >&6; }
3487 else
3488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489 $as_echo "no" >&6; }
3490 fi
3491
3492
3493     test -n "$CC" && break
3494   done
3495 fi
3496 if test -z "$CC"; then
3497   ac_ct_CC=$CC
3498   for ac_prog in cl.exe
3499 do
3500   # Extract the first word of "$ac_prog", so it can be a program name with args.
3501 set dummy $ac_prog; 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_ac_ct_CC+:} false; then :
3505   $as_echo_n "(cached) " >&6
3506 else
3507   if test -n "$ac_ct_CC"; then
3508   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3509 else
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3512 do
3513   IFS=$as_save_IFS
3514   test -z "$as_dir" && as_dir=.
3515     for ac_exec_ext in '' $ac_executable_extensions; do
3516   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517     ac_cv_prog_ac_ct_CC="$ac_prog"
3518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3519     break 2
3520   fi
3521 done
3522   done
3523 IFS=$as_save_IFS
3524
3525 fi
3526 fi
3527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3528 if test -n "$ac_ct_CC"; then
3529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3530 $as_echo "$ac_ct_CC" >&6; }
3531 else
3532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533 $as_echo "no" >&6; }
3534 fi
3535
3536
3537   test -n "$ac_ct_CC" && break
3538 done
3539
3540   if test "x$ac_ct_CC" = x; then
3541     CC=""
3542   else
3543     case $cross_compiling:$ac_tool_warned in
3544 yes:)
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3547 ac_tool_warned=yes ;;
3548 esac
3549     CC=$ac_ct_CC
3550   fi
3551 fi
3552
3553 fi
3554
3555
3556 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558 as_fn_error $? "no acceptable C compiler found in \$PATH
3559 See \`config.log' for more details" "$LINENO" 5; }
3560
3561 # Provide some information about the compiler.
3562 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3563 set X $ac_compile
3564 ac_compiler=$2
3565 for ac_option in --version -v -V -qversion; do
3566   { { ac_try="$ac_compiler $ac_option >&5"
3567 case "(($ac_try" in
3568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569   *) ac_try_echo=$ac_try;;
3570 esac
3571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3572 $as_echo "$ac_try_echo"; } >&5
3573   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3574   ac_status=$?
3575   if test -s conftest.err; then
3576     sed '10a\
3577 ... rest of stderr output deleted ...
3578          10q' conftest.err >conftest.er1
3579     cat conftest.er1 >&5
3580   fi
3581   rm -f conftest.er1 conftest.err
3582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3583   test $ac_status = 0; }
3584 done
3585
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h.  */
3588
3589 int
3590 main ()
3591 {
3592
3593   ;
3594   return 0;
3595 }
3596 _ACEOF
3597 ac_clean_files_save=$ac_clean_files
3598 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3599 # Try to create an executable without -o first, disregard a.out.
3600 # It will help us diagnose broken compilers, and finding out an intuition
3601 # of exeext.
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3603 $as_echo_n "checking whether the C compiler works... " >&6; }
3604 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3605
3606 # The possible output files:
3607 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3608
3609 ac_rmfiles=
3610 for ac_file in $ac_files
3611 do
3612   case $ac_file in
3613     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3614     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3615   esac
3616 done
3617 rm -f $ac_rmfiles
3618
3619 if { { ac_try="$ac_link_default"
3620 case "(($ac_try" in
3621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622   *) ac_try_echo=$ac_try;;
3623 esac
3624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625 $as_echo "$ac_try_echo"; } >&5
3626   (eval "$ac_link_default") 2>&5
3627   ac_status=$?
3628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629   test $ac_status = 0; }; then :
3630   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3631 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3632 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3633 # so that the user can short-circuit this test for compilers unknown to
3634 # Autoconf.
3635 for ac_file in $ac_files ''
3636 do
3637   test -f "$ac_file" || continue
3638   case $ac_file in
3639     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3640         ;;
3641     [ab].out )
3642         # We found the default executable, but exeext='' is most
3643         # certainly right.
3644         break;;
3645     *.* )
3646         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3647         then :; else
3648            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3649         fi
3650         # We set ac_cv_exeext here because the later test for it is not
3651         # safe: cross compilers may not add the suffix if given an `-o'
3652         # argument, so we may need to know it at that point already.
3653         # Even if this section looks crufty: it has the advantage of
3654         # actually working.
3655         break;;
3656     * )
3657         break;;
3658   esac
3659 done
3660 test "$ac_cv_exeext" = no && ac_cv_exeext=
3661
3662 else
3663   ac_file=''
3664 fi
3665 if test -z "$ac_file"; then :
3666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3667 $as_echo "no" >&6; }
3668 $as_echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3670
3671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3673 as_fn_error 77 "C compiler cannot create executables
3674 See \`config.log' for more details" "$LINENO" 5; }
3675 else
3676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3677 $as_echo "yes" >&6; }
3678 fi
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3680 $as_echo_n "checking for C compiler default output file name... " >&6; }
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3682 $as_echo "$ac_file" >&6; }
3683 ac_exeext=$ac_cv_exeext
3684
3685 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3686 ac_clean_files=$ac_clean_files_save
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3688 $as_echo_n "checking for suffix of executables... " >&6; }
3689 if { { ac_try="$ac_link"
3690 case "(($ac_try" in
3691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692   *) ac_try_echo=$ac_try;;
3693 esac
3694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3695 $as_echo "$ac_try_echo"; } >&5
3696   (eval "$ac_link") 2>&5
3697   ac_status=$?
3698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3699   test $ac_status = 0; }; then :
3700   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3701 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3702 # work properly (i.e., refer to `conftest.exe'), while it won't with
3703 # `rm'.
3704 for ac_file in conftest.exe conftest conftest.*; do
3705   test -f "$ac_file" || continue
3706   case $ac_file in
3707     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3708     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3709           break;;
3710     * ) break;;
3711   esac
3712 done
3713 else
3714   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3716 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3717 See \`config.log' for more details" "$LINENO" 5; }
3718 fi
3719 rm -f conftest conftest$ac_cv_exeext
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3721 $as_echo "$ac_cv_exeext" >&6; }
3722
3723 rm -f conftest.$ac_ext
3724 EXEEXT=$ac_cv_exeext
3725 ac_exeext=$EXEEXT
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h.  */
3728 #include <stdio.h>
3729 int
3730 main ()
3731 {
3732 FILE *f = fopen ("conftest.out", "w");
3733  return ferror (f) || fclose (f) != 0;
3734
3735   ;
3736   return 0;
3737 }
3738 _ACEOF
3739 ac_clean_files="$ac_clean_files conftest.out"
3740 # Check that the compiler produces executables we can run.  If not, either
3741 # the compiler is broken, or we cross compile.
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3743 $as_echo_n "checking whether we are cross compiling... " >&6; }
3744 if test "$cross_compiling" != yes; then
3745   { { ac_try="$ac_link"
3746 case "(($ac_try" in
3747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748   *) ac_try_echo=$ac_try;;
3749 esac
3750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751 $as_echo "$ac_try_echo"; } >&5
3752   (eval "$ac_link") 2>&5
3753   ac_status=$?
3754   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755   test $ac_status = 0; }
3756   if { ac_try='./conftest$ac_cv_exeext'
3757   { { case "(($ac_try" in
3758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759   *) ac_try_echo=$ac_try;;
3760 esac
3761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3762 $as_echo "$ac_try_echo"; } >&5
3763   (eval "$ac_try") 2>&5
3764   ac_status=$?
3765   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3766   test $ac_status = 0; }; }; then
3767     cross_compiling=no
3768   else
3769     if test "$cross_compiling" = maybe; then
3770         cross_compiling=yes
3771     else
3772         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3774 as_fn_error $? "cannot run C compiled programs.
3775 If you meant to cross compile, use \`--host'.
3776 See \`config.log' for more details" "$LINENO" 5; }
3777     fi
3778   fi
3779 fi
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3781 $as_echo "$cross_compiling" >&6; }
3782
3783 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3784 ac_clean_files=$ac_clean_files_save
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3786 $as_echo_n "checking for suffix of object files... " >&6; }
3787 if ${ac_cv_objext+:} false; then :
3788   $as_echo_n "(cached) " >&6
3789 else
3790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h.  */
3792
3793 int
3794 main ()
3795 {
3796
3797   ;
3798   return 0;
3799 }
3800 _ACEOF
3801 rm -f conftest.o conftest.obj
3802 if { { ac_try="$ac_compile"
3803 case "(($ac_try" in
3804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805   *) ac_try_echo=$ac_try;;
3806 esac
3807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3808 $as_echo "$ac_try_echo"; } >&5
3809   (eval "$ac_compile") 2>&5
3810   ac_status=$?
3811   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3812   test $ac_status = 0; }; then :
3813   for ac_file in conftest.o conftest.obj conftest.*; do
3814   test -f "$ac_file" || continue;
3815   case $ac_file in
3816     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3817     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3818        break;;
3819   esac
3820 done
3821 else
3822   $as_echo "$as_me: failed program was:" >&5
3823 sed 's/^/| /' conftest.$ac_ext >&5
3824
3825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3827 as_fn_error $? "cannot compute suffix of object files: cannot compile
3828 See \`config.log' for more details" "$LINENO" 5; }
3829 fi
3830 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3831 fi
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3833 $as_echo "$ac_cv_objext" >&6; }
3834 OBJEXT=$ac_cv_objext
3835 ac_objext=$OBJEXT
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3837 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3838 if ${ac_cv_c_compiler_gnu+:} false; then :
3839   $as_echo_n "(cached) " >&6
3840 else
3841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h.  */
3843
3844 int
3845 main ()
3846 {
3847 #ifndef __GNUC__
3848        choke me
3849 #endif
3850
3851   ;
3852   return 0;
3853 }
3854 _ACEOF
3855 if ac_fn_c_try_compile "$LINENO"; then :
3856   ac_compiler_gnu=yes
3857 else
3858   ac_compiler_gnu=no
3859 fi
3860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3861 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3862
3863 fi
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3865 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3866 if test $ac_compiler_gnu = yes; then
3867   GCC=yes
3868 else
3869   GCC=
3870 fi
3871 ac_test_CFLAGS=${CFLAGS+set}
3872 ac_save_CFLAGS=$CFLAGS
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3874 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3875 if ${ac_cv_prog_cc_g+:} false; then :
3876   $as_echo_n "(cached) " >&6
3877 else
3878   ac_save_c_werror_flag=$ac_c_werror_flag
3879    ac_c_werror_flag=yes
3880    ac_cv_prog_cc_g=no
3881    CFLAGS="-g"
3882    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h.  */
3884
3885 int
3886 main ()
3887 {
3888
3889   ;
3890   return 0;
3891 }
3892 _ACEOF
3893 if ac_fn_c_try_compile "$LINENO"; then :
3894   ac_cv_prog_cc_g=yes
3895 else
3896   CFLAGS=""
3897       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h.  */
3899
3900 int
3901 main ()
3902 {
3903
3904   ;
3905   return 0;
3906 }
3907 _ACEOF
3908 if ac_fn_c_try_compile "$LINENO"; then :
3909
3910 else
3911   ac_c_werror_flag=$ac_save_c_werror_flag
3912          CFLAGS="-g"
3913          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h.  */
3915
3916 int
3917 main ()
3918 {
3919
3920   ;
3921   return 0;
3922 }
3923 _ACEOF
3924 if ac_fn_c_try_compile "$LINENO"; then :
3925   ac_cv_prog_cc_g=yes
3926 fi
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928 fi
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930 fi
3931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932    ac_c_werror_flag=$ac_save_c_werror_flag
3933 fi
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3935 $as_echo "$ac_cv_prog_cc_g" >&6; }
3936 if test "$ac_test_CFLAGS" = set; then
3937   CFLAGS=$ac_save_CFLAGS
3938 elif test $ac_cv_prog_cc_g = yes; then
3939   if test "$GCC" = yes; then
3940     CFLAGS="-g -O2"
3941   else
3942     CFLAGS="-g"
3943   fi
3944 else
3945   if test "$GCC" = yes; then
3946     CFLAGS="-O2"
3947   else
3948     CFLAGS=
3949   fi
3950 fi
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3952 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3953 if ${ac_cv_prog_cc_c89+:} false; then :
3954   $as_echo_n "(cached) " >&6
3955 else
3956   ac_cv_prog_cc_c89=no
3957 ac_save_CC=$CC
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h.  */
3960 #include <stdarg.h>
3961 #include <stdio.h>
3962 struct stat;
3963 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3964 struct buf { int x; };
3965 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3966 static char *e (p, i)
3967      char **p;
3968      int i;
3969 {
3970   return p[i];
3971 }
3972 static char *f (char * (*g) (char **, int), char **p, ...)
3973 {
3974   char *s;
3975   va_list v;
3976   va_start (v,p);
3977   s = g (p, va_arg (v,int));
3978   va_end (v);
3979   return s;
3980 }
3981
3982 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3983    function prototypes and stuff, but not '\xHH' hex character constants.
3984    These don't provoke an error unfortunately, instead are silently treated
3985    as 'x'.  The following induces an error, until -std is added to get
3986    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3987    array size at least.  It's necessary to write '\x00'==0 to get something
3988    that's true only with -std.  */
3989 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3990
3991 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3992    inside strings and character constants.  */
3993 #define FOO(x) 'x'
3994 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3995
3996 int test (int i, double x);
3997 struct s1 {int (*f) (int a);};
3998 struct s2 {int (*f) (double a);};
3999 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4000 int argc;
4001 char **argv;
4002 int
4003 main ()
4004 {
4005 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4006   ;
4007   return 0;
4008 }
4009 _ACEOF
4010 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4011         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4012 do
4013   CC="$ac_save_CC $ac_arg"
4014   if ac_fn_c_try_compile "$LINENO"; then :
4015   ac_cv_prog_cc_c89=$ac_arg
4016 fi
4017 rm -f core conftest.err conftest.$ac_objext
4018   test "x$ac_cv_prog_cc_c89" != "xno" && break
4019 done
4020 rm -f conftest.$ac_ext
4021 CC=$ac_save_CC
4022
4023 fi
4024 # AC_CACHE_VAL
4025 case "x$ac_cv_prog_cc_c89" in
4026   x)
4027     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4028 $as_echo "none needed" >&6; } ;;
4029   xno)
4030     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4031 $as_echo "unsupported" >&6; } ;;
4032   *)
4033     CC="$CC $ac_cv_prog_cc_c89"
4034     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4035 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4036 esac
4037 if test "x$ac_cv_prog_cc_c89" != xno; then :
4038
4039 fi
4040
4041 ac_ext=c
4042 ac_cpp='$CPP $CPPFLAGS'
4043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4046
4047 ac_ext=c
4048 ac_cpp='$CPP $CPPFLAGS'
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4053 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4054 if ${am_cv_prog_cc_c_o+:} false; then :
4055   $as_echo_n "(cached) " >&6
4056 else
4057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h.  */
4059
4060 int
4061 main ()
4062 {
4063
4064   ;
4065   return 0;
4066 }
4067 _ACEOF
4068   # Make sure it works both with $CC and with simple cc.
4069   # Following AC_PROG_CC_C_O, we do the test twice because some
4070   # compilers refuse to overwrite an existing .o file with -o,
4071   # though they will create one.
4072   am_cv_prog_cc_c_o=yes
4073   for am_i in 1 2; do
4074     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4075    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4076    ac_status=$?
4077    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078    (exit $ac_status); } \
4079          && test -f conftest2.$ac_objext; then
4080       : OK
4081     else
4082       am_cv_prog_cc_c_o=no
4083       break
4084     fi
4085   done
4086   rm -f core conftest*
4087   unset am_i
4088 fi
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4090 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4091 if test "$am_cv_prog_cc_c_o" != yes; then
4092    # Losing compiler, so override with the script.
4093    # FIXME: It is wrong to rewrite CC.
4094    # But if we don't then we get into trouble of one sort or another.
4095    # A longer-term fix would be to have automake use am__CC in this case,
4096    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4097    CC="$am_aux_dir/compile $CC"
4098 fi
4099 ac_ext=c
4100 ac_cpp='$CPP $CPPFLAGS'
4101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4104
4105 DEPDIR="${am__leading_dot}deps"
4106
4107 ac_config_commands="$ac_config_commands depfiles"
4108
4109
4110 am_make=${MAKE-make}
4111 cat > confinc << 'END'
4112 am__doit:
4113         @echo this is the am__doit target
4114 .PHONY: am__doit
4115 END
4116 # If we don't find an include directive, just comment out the code.
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4118 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4119 am__include="#"
4120 am__quote=
4121 _am_result=none
4122 # First try GNU make style include.
4123 echo "include confinc" > confmf
4124 # Ignore all kinds of additional output from 'make'.
4125 case `$am_make -s -f confmf 2> /dev/null` in #(
4126 *the\ am__doit\ target*)
4127   am__include=include
4128   am__quote=
4129   _am_result=GNU
4130   ;;
4131 esac
4132 # Now try BSD make style include.
4133 if test "$am__include" = "#"; then
4134    echo '.include "confinc"' > confmf
4135    case `$am_make -s -f confmf 2> /dev/null` in #(
4136    *the\ am__doit\ target*)
4137      am__include=.include
4138      am__quote="\""
4139      _am_result=BSD
4140      ;;
4141    esac
4142 fi
4143
4144
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4146 $as_echo "$_am_result" >&6; }
4147 rm -f confinc confmf
4148
4149 # Check whether --enable-dependency-tracking was given.
4150 if test "${enable_dependency_tracking+set}" = set; then :
4151   enableval=$enable_dependency_tracking;
4152 fi
4153
4154 if test "x$enable_dependency_tracking" != xno; then
4155   am_depcomp="$ac_aux_dir/depcomp"
4156   AMDEPBACKSLASH='\'
4157   am__nodep='_no'
4158 fi
4159  if test "x$enable_dependency_tracking" != xno; then
4160   AMDEP_TRUE=
4161   AMDEP_FALSE='#'
4162 else
4163   AMDEP_TRUE='#'
4164   AMDEP_FALSE=
4165 fi
4166
4167
4168
4169 depcc="$CC"   am_compiler_list=
4170
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4172 $as_echo_n "checking dependency style of $depcc... " >&6; }
4173 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4174   $as_echo_n "(cached) " >&6
4175 else
4176   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4177   # We make a subdir and do the tests there.  Otherwise we can end up
4178   # making bogus files that we don't know about and never remove.  For
4179   # instance it was reported that on HP-UX the gcc test will end up
4180   # making a dummy file named 'D' -- because '-MD' means "put the output
4181   # in D".
4182   rm -rf conftest.dir
4183   mkdir conftest.dir
4184   # Copy depcomp to subdir because otherwise we won't find it if we're
4185   # using a relative directory.
4186   cp "$am_depcomp" conftest.dir
4187   cd conftest.dir
4188   # We will build objects and dependencies in a subdirectory because
4189   # it helps to detect inapplicable dependency modes.  For instance
4190   # both Tru64's cc and ICC support -MD to output dependencies as a
4191   # side effect of compilation, but ICC will put the dependencies in
4192   # the current directory while Tru64 will put them in the object
4193   # directory.
4194   mkdir sub
4195
4196   am_cv_CC_dependencies_compiler_type=none
4197   if test "$am_compiler_list" = ""; then
4198      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4199   fi
4200   am__universal=false
4201   case " $depcc " in #(
4202      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4203      esac
4204
4205   for depmode in $am_compiler_list; do
4206     # Setup a source with many dependencies, because some compilers
4207     # like to wrap large dependency lists on column 80 (with \), and
4208     # we should not choose a depcomp mode which is confused by this.
4209     #
4210     # We need to recreate these files for each test, as the compiler may
4211     # overwrite some of them when testing with obscure command lines.
4212     # This happens at least with the AIX C compiler.
4213     : > sub/conftest.c
4214     for i in 1 2 3 4 5 6; do
4215       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4216       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4217       # Solaris 10 /bin/sh.
4218       echo '/* dummy */' > sub/conftst$i.h
4219     done
4220     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4221
4222     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4223     # mode.  It turns out that the SunPro C++ compiler does not properly
4224     # handle '-M -o', and we need to detect this.  Also, some Intel
4225     # versions had trouble with output in subdirs.
4226     am__obj=sub/conftest.${OBJEXT-o}
4227     am__minus_obj="-o $am__obj"
4228     case $depmode in
4229     gcc)
4230       # This depmode causes a compiler race in universal mode.
4231       test "$am__universal" = false || continue
4232       ;;
4233     nosideeffect)
4234       # After this tag, mechanisms are not by side-effect, so they'll
4235       # only be used when explicitly requested.
4236       if test "x$enable_dependency_tracking" = xyes; then
4237         continue
4238       else
4239         break
4240       fi
4241       ;;
4242     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4243       # This compiler won't grok '-c -o', but also, the minuso test has
4244       # not run yet.  These depmodes are late enough in the game, and
4245       # so weak that their functioning should not be impacted.
4246       am__obj=conftest.${OBJEXT-o}
4247       am__minus_obj=
4248       ;;
4249     none) break ;;
4250     esac
4251     if depmode=$depmode \
4252        source=sub/conftest.c object=$am__obj \
4253        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4254        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4255          >/dev/null 2>conftest.err &&
4256        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4257        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4258        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4259        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4260       # icc doesn't choke on unknown options, it will just issue warnings
4261       # or remarks (even with -Werror).  So we grep stderr for any message
4262       # that says an option was ignored or not supported.
4263       # When given -MP, icc 7.0 and 7.1 complain thusly:
4264       #   icc: Command line warning: ignoring option '-M'; no argument required
4265       # The diagnosis changed in icc 8.0:
4266       #   icc: Command line remark: option '-MP' not supported
4267       if (grep 'ignoring option' conftest.err ||
4268           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4269         am_cv_CC_dependencies_compiler_type=$depmode
4270         break
4271       fi
4272     fi
4273   done
4274
4275   cd ..
4276   rm -rf conftest.dir
4277 else
4278   am_cv_CC_dependencies_compiler_type=none
4279 fi
4280
4281 fi
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4283 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4284 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4285
4286  if
4287   test "x$enable_dependency_tracking" != xno \
4288   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4289   am__fastdepCC_TRUE=
4290   am__fastdepCC_FALSE='#'
4291 else
4292   am__fastdepCC_TRUE='#'
4293   am__fastdepCC_FALSE=
4294 fi
4295
4296
4297 ac_ext=cpp
4298 ac_cpp='$CXXCPP $CPPFLAGS'
4299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4302 if test -z "$CXX"; then
4303   if test -n "$CCC"; then
4304     CXX=$CCC
4305   else
4306     if test -n "$ac_tool_prefix"; then
4307   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4308   do
4309     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312 $as_echo_n "checking for $ac_word... " >&6; }
4313 if ${ac_cv_prog_CXX+:} false; then :
4314   $as_echo_n "(cached) " >&6
4315 else
4316   if test -n "$CXX"; then
4317   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4318 else
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH
4321 do
4322   IFS=$as_save_IFS
4323   test -z "$as_dir" && as_dir=.
4324     for ac_exec_ext in '' $ac_executable_extensions; do
4325   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4326     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4328     break 2
4329   fi
4330 done
4331   done
4332 IFS=$as_save_IFS
4333
4334 fi
4335 fi
4336 CXX=$ac_cv_prog_CXX
4337 if test -n "$CXX"; then
4338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4339 $as_echo "$CXX" >&6; }
4340 else
4341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 $as_echo "no" >&6; }
4343 fi
4344
4345
4346     test -n "$CXX" && break
4347   done
4348 fi
4349 if test -z "$CXX"; then
4350   ac_ct_CXX=$CXX
4351   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4352 do
4353   # Extract the first word of "$ac_prog", so it can be a program name with args.
4354 set dummy $ac_prog; ac_word=$2
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4356 $as_echo_n "checking for $ac_word... " >&6; }
4357 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4358   $as_echo_n "(cached) " >&6
4359 else
4360   if test -n "$ac_ct_CXX"; then
4361   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4362 else
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4365 do
4366   IFS=$as_save_IFS
4367   test -z "$as_dir" && as_dir=.
4368     for ac_exec_ext in '' $ac_executable_extensions; do
4369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4370     ac_cv_prog_ac_ct_CXX="$ac_prog"
4371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4372     break 2
4373   fi
4374 done
4375   done
4376 IFS=$as_save_IFS
4377
4378 fi
4379 fi
4380 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4381 if test -n "$ac_ct_CXX"; then
4382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4383 $as_echo "$ac_ct_CXX" >&6; }
4384 else
4385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386 $as_echo "no" >&6; }
4387 fi
4388
4389
4390   test -n "$ac_ct_CXX" && break
4391 done
4392
4393   if test "x$ac_ct_CXX" = x; then
4394     CXX="g++"
4395   else
4396     case $cross_compiling:$ac_tool_warned in
4397 yes:)
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4400 ac_tool_warned=yes ;;
4401 esac
4402     CXX=$ac_ct_CXX
4403   fi
4404 fi
4405
4406   fi
4407 fi
4408 # Provide some information about the compiler.
4409 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4410 set X $ac_compile
4411 ac_compiler=$2
4412 for ac_option in --version -v -V -qversion; do
4413   { { ac_try="$ac_compiler $ac_option >&5"
4414 case "(($ac_try" in
4415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416   *) ac_try_echo=$ac_try;;
4417 esac
4418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4419 $as_echo "$ac_try_echo"; } >&5
4420   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4421   ac_status=$?
4422   if test -s conftest.err; then
4423     sed '10a\
4424 ... rest of stderr output deleted ...
4425          10q' conftest.err >conftest.er1
4426     cat conftest.er1 >&5
4427   fi
4428   rm -f conftest.er1 conftest.err
4429   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4430   test $ac_status = 0; }
4431 done
4432
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4434 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4435 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4436   $as_echo_n "(cached) " >&6
4437 else
4438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h.  */
4440
4441 int
4442 main ()
4443 {
4444 #ifndef __GNUC__
4445        choke me
4446 #endif
4447
4448   ;
4449   return 0;
4450 }
4451 _ACEOF
4452 if ac_fn_cxx_try_compile "$LINENO"; then :
4453   ac_compiler_gnu=yes
4454 else
4455   ac_compiler_gnu=no
4456 fi
4457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4458 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4459
4460 fi
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4462 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4463 if test $ac_compiler_gnu = yes; then
4464   GXX=yes
4465 else
4466   GXX=
4467 fi
4468 ac_test_CXXFLAGS=${CXXFLAGS+set}
4469 ac_save_CXXFLAGS=$CXXFLAGS
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4471 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4472 if ${ac_cv_prog_cxx_g+:} false; then :
4473   $as_echo_n "(cached) " >&6
4474 else
4475   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4476    ac_cxx_werror_flag=yes
4477    ac_cv_prog_cxx_g=no
4478    CXXFLAGS="-g"
4479    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h.  */
4481
4482 int
4483 main ()
4484 {
4485
4486   ;
4487   return 0;
4488 }
4489 _ACEOF
4490 if ac_fn_cxx_try_compile "$LINENO"; then :
4491   ac_cv_prog_cxx_g=yes
4492 else
4493   CXXFLAGS=""
4494       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h.  */
4496
4497 int
4498 main ()
4499 {
4500
4501   ;
4502   return 0;
4503 }
4504 _ACEOF
4505 if ac_fn_cxx_try_compile "$LINENO"; then :
4506
4507 else
4508   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4509          CXXFLAGS="-g"
4510          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h.  */
4512
4513 int
4514 main ()
4515 {
4516
4517   ;
4518   return 0;
4519 }
4520 _ACEOF
4521 if ac_fn_cxx_try_compile "$LINENO"; then :
4522   ac_cv_prog_cxx_g=yes
4523 fi
4524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525 fi
4526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4527 fi
4528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4530 fi
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4532 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4533 if test "$ac_test_CXXFLAGS" = set; then
4534   CXXFLAGS=$ac_save_CXXFLAGS
4535 elif test $ac_cv_prog_cxx_g = yes; then
4536   if test "$GXX" = yes; then
4537     CXXFLAGS="-g -O2"
4538   else
4539     CXXFLAGS="-g"
4540   fi
4541 else
4542   if test "$GXX" = yes; then
4543     CXXFLAGS="-O2"
4544   else
4545     CXXFLAGS=
4546   fi
4547 fi
4548 ac_ext=c
4549 ac_cpp='$CPP $CPPFLAGS'
4550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4553
4554 depcc="$CXX"  am_compiler_list=
4555
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4557 $as_echo_n "checking dependency style of $depcc... " >&6; }
4558 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4559   $as_echo_n "(cached) " >&6
4560 else
4561   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4562   # We make a subdir and do the tests there.  Otherwise we can end up
4563   # making bogus files that we don't know about and never remove.  For
4564   # instance it was reported that on HP-UX the gcc test will end up
4565   # making a dummy file named 'D' -- because '-MD' means "put the output
4566   # in D".
4567   rm -rf conftest.dir
4568   mkdir conftest.dir
4569   # Copy depcomp to subdir because otherwise we won't find it if we're
4570   # using a relative directory.
4571   cp "$am_depcomp" conftest.dir
4572   cd conftest.dir
4573   # We will build objects and dependencies in a subdirectory because
4574   # it helps to detect inapplicable dependency modes.  For instance
4575   # both Tru64's cc and ICC support -MD to output dependencies as a
4576   # side effect of compilation, but ICC will put the dependencies in
4577   # the current directory while Tru64 will put them in the object
4578   # directory.
4579   mkdir sub
4580
4581   am_cv_CXX_dependencies_compiler_type=none
4582   if test "$am_compiler_list" = ""; then
4583      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4584   fi
4585   am__universal=false
4586   case " $depcc " in #(
4587      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4588      esac
4589
4590   for depmode in $am_compiler_list; do
4591     # Setup a source with many dependencies, because some compilers
4592     # like to wrap large dependency lists on column 80 (with \), and
4593     # we should not choose a depcomp mode which is confused by this.
4594     #
4595     # We need to recreate these files for each test, as the compiler may
4596     # overwrite some of them when testing with obscure command lines.
4597     # This happens at least with the AIX C compiler.
4598     : > sub/conftest.c
4599     for i in 1 2 3 4 5 6; do
4600       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4601       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4602       # Solaris 10 /bin/sh.
4603       echo '/* dummy */' > sub/conftst$i.h
4604     done
4605     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4606
4607     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4608     # mode.  It turns out that the SunPro C++ compiler does not properly
4609     # handle '-M -o', and we need to detect this.  Also, some Intel
4610     # versions had trouble with output in subdirs.
4611     am__obj=sub/conftest.${OBJEXT-o}
4612     am__minus_obj="-o $am__obj"
4613     case $depmode in
4614     gcc)
4615       # This depmode causes a compiler race in universal mode.
4616       test "$am__universal" = false || continue
4617       ;;
4618     nosideeffect)
4619       # After this tag, mechanisms are not by side-effect, so they'll
4620       # only be used when explicitly requested.
4621       if test "x$enable_dependency_tracking" = xyes; then
4622         continue
4623       else
4624         break
4625       fi
4626       ;;
4627     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4628       # This compiler won't grok '-c -o', but also, the minuso test has
4629       # not run yet.  These depmodes are late enough in the game, and
4630       # so weak that their functioning should not be impacted.
4631       am__obj=conftest.${OBJEXT-o}
4632       am__minus_obj=
4633       ;;
4634     none) break ;;
4635     esac
4636     if depmode=$depmode \
4637        source=sub/conftest.c object=$am__obj \
4638        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4639        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4640          >/dev/null 2>conftest.err &&
4641        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4642        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4643        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4644        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4645       # icc doesn't choke on unknown options, it will just issue warnings
4646       # or remarks (even with -Werror).  So we grep stderr for any message
4647       # that says an option was ignored or not supported.
4648       # When given -MP, icc 7.0 and 7.1 complain thusly:
4649       #   icc: Command line warning: ignoring option '-M'; no argument required
4650       # The diagnosis changed in icc 8.0:
4651       #   icc: Command line remark: option '-MP' not supported
4652       if (grep 'ignoring option' conftest.err ||
4653           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4654         am_cv_CXX_dependencies_compiler_type=$depmode
4655         break
4656       fi
4657     fi
4658   done
4659
4660   cd ..
4661   rm -rf conftest.dir
4662 else
4663   am_cv_CXX_dependencies_compiler_type=none
4664 fi
4665
4666 fi
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4668 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4669 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4670
4671  if
4672   test "x$enable_dependency_tracking" != xno \
4673   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4674   am__fastdepCXX_TRUE=
4675   am__fastdepCXX_FALSE='#'
4676 else
4677   am__fastdepCXX_TRUE='#'
4678   am__fastdepCXX_FALSE=
4679 fi
4680
4681
4682 ac_ext=cpp
4683 ac_cpp='$CXXCPP $CPPFLAGS'
4684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4687
4688
4689 ac_ext=cpp
4690 ac_cpp='$CXXCPP $CPPFLAGS'
4691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4695 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4696 if test -z "$CXXCPP"; then
4697   if ${ac_cv_prog_CXXCPP+:} false; then :
4698   $as_echo_n "(cached) " >&6
4699 else
4700       # Double quotes because CXXCPP needs to be expanded
4701     for CXXCPP in "$CXX -E" "/lib/cpp"
4702     do
4703       ac_preproc_ok=false
4704 for ac_cxx_preproc_warn_flag in '' yes
4705 do
4706   # Use a header file that comes with gcc, so configuring glibc
4707   # with a fresh cross-compiler works.
4708   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4709   # <limits.h> exists even on freestanding compilers.
4710   # On the NeXT, cc -E runs the code through the compiler's parser,
4711   # not just through cpp. "Syntax error" is here to catch this case.
4712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h.  */
4714 #ifdef __STDC__
4715 # include <limits.h>
4716 #else
4717 # include <assert.h>
4718 #endif
4719                      Syntax error
4720 _ACEOF
4721 if ac_fn_cxx_try_cpp "$LINENO"; then :
4722
4723 else
4724   # Broken: fails on valid input.
4725 continue
4726 fi
4727 rm -f conftest.err conftest.i conftest.$ac_ext
4728
4729   # OK, works on sane cases.  Now check whether nonexistent headers
4730   # can be detected and how.
4731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h.  */
4733 #include <ac_nonexistent.h>
4734 _ACEOF
4735 if ac_fn_cxx_try_cpp "$LINENO"; then :
4736   # Broken: success on invalid input.
4737 continue
4738 else
4739   # Passes both tests.
4740 ac_preproc_ok=:
4741 break
4742 fi
4743 rm -f conftest.err conftest.i conftest.$ac_ext
4744
4745 done
4746 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4747 rm -f conftest.i conftest.err conftest.$ac_ext
4748 if $ac_preproc_ok; then :
4749   break
4750 fi
4751
4752     done
4753     ac_cv_prog_CXXCPP=$CXXCPP
4754
4755 fi
4756   CXXCPP=$ac_cv_prog_CXXCPP
4757 else
4758   ac_cv_prog_CXXCPP=$CXXCPP
4759 fi
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4761 $as_echo "$CXXCPP" >&6; }
4762 ac_preproc_ok=false
4763 for ac_cxx_preproc_warn_flag in '' yes
4764 do
4765   # Use a header file that comes with gcc, so configuring glibc
4766   # with a fresh cross-compiler works.
4767   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4768   # <limits.h> exists even on freestanding compilers.
4769   # On the NeXT, cc -E runs the code through the compiler's parser,
4770   # not just through cpp. "Syntax error" is here to catch this case.
4771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h.  */
4773 #ifdef __STDC__
4774 # include <limits.h>
4775 #else
4776 # include <assert.h>
4777 #endif
4778                      Syntax error
4779 _ACEOF
4780 if ac_fn_cxx_try_cpp "$LINENO"; then :
4781
4782 else
4783   # Broken: fails on valid input.
4784 continue
4785 fi
4786 rm -f conftest.err conftest.i conftest.$ac_ext
4787
4788   # OK, works on sane cases.  Now check whether nonexistent headers
4789   # can be detected and how.
4790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h.  */
4792 #include <ac_nonexistent.h>
4793 _ACEOF
4794 if ac_fn_cxx_try_cpp "$LINENO"; then :
4795   # Broken: success on invalid input.
4796 continue
4797 else
4798   # Passes both tests.
4799 ac_preproc_ok=:
4800 break
4801 fi
4802 rm -f conftest.err conftest.i conftest.$ac_ext
4803
4804 done
4805 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4806 rm -f conftest.i conftest.err conftest.$ac_ext
4807 if $ac_preproc_ok; then :
4808
4809 else
4810   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4812 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4813 See \`config.log' for more details" "$LINENO" 5; }
4814 fi
4815
4816 ac_ext=cpp
4817 ac_cpp='$CXXCPP $CPPFLAGS'
4818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4821
4822
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4824 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4825 if ${ac_cv_path_GREP+:} false; then :
4826   $as_echo_n "(cached) " >&6
4827 else
4828   if test -z "$GREP"; then
4829   ac_path_GREP_found=false
4830   # Loop through the user's path and test for each of PROGNAME-LIST
4831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4833 do
4834   IFS=$as_save_IFS
4835   test -z "$as_dir" && as_dir=.
4836     for ac_prog in grep ggrep; do
4837     for ac_exec_ext in '' $ac_executable_extensions; do
4838       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4839       as_fn_executable_p "$ac_path_GREP" || continue
4840 # Check for GNU ac_path_GREP and select it if it is found.
4841   # Check for GNU $ac_path_GREP
4842 case `"$ac_path_GREP" --version 2>&1` in
4843 *GNU*)
4844   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4845 *)
4846   ac_count=0
4847   $as_echo_n 0123456789 >"conftest.in"
4848   while :
4849   do
4850     cat "conftest.in" "conftest.in" >"conftest.tmp"
4851     mv "conftest.tmp" "conftest.in"
4852     cp "conftest.in" "conftest.nl"
4853     $as_echo 'GREP' >> "conftest.nl"
4854     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4855     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4856     as_fn_arith $ac_count + 1 && ac_count=$as_val
4857     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4858       # Best one so far, save it but keep looking for a better one
4859       ac_cv_path_GREP="$ac_path_GREP"
4860       ac_path_GREP_max=$ac_count
4861     fi
4862     # 10*(2^10) chars as input seems more than enough
4863     test $ac_count -gt 10 && break
4864   done
4865   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4866 esac
4867
4868       $ac_path_GREP_found && break 3
4869     done
4870   done
4871   done
4872 IFS=$as_save_IFS
4873   if test -z "$ac_cv_path_GREP"; then
4874     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4875   fi
4876 else
4877   ac_cv_path_GREP=$GREP
4878 fi
4879
4880 fi
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4882 $as_echo "$ac_cv_path_GREP" >&6; }
4883  GREP="$ac_cv_path_GREP"
4884
4885
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4887 $as_echo_n "checking for egrep... " >&6; }
4888 if ${ac_cv_path_EGREP+:} false; then :
4889   $as_echo_n "(cached) " >&6
4890 else
4891   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4892    then ac_cv_path_EGREP="$GREP -E"
4893    else
4894      if test -z "$EGREP"; then
4895   ac_path_EGREP_found=false
4896   # Loop through the user's path and test for each of PROGNAME-LIST
4897   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4899 do
4900   IFS=$as_save_IFS
4901   test -z "$as_dir" && as_dir=.
4902     for ac_prog in egrep; do
4903     for ac_exec_ext in '' $ac_executable_extensions; do
4904       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4905       as_fn_executable_p "$ac_path_EGREP" || continue
4906 # Check for GNU ac_path_EGREP and select it if it is found.
4907   # Check for GNU $ac_path_EGREP
4908 case `"$ac_path_EGREP" --version 2>&1` in
4909 *GNU*)
4910   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4911 *)
4912   ac_count=0
4913   $as_echo_n 0123456789 >"conftest.in"
4914   while :
4915   do
4916     cat "conftest.in" "conftest.in" >"conftest.tmp"
4917     mv "conftest.tmp" "conftest.in"
4918     cp "conftest.in" "conftest.nl"
4919     $as_echo 'EGREP' >> "conftest.nl"
4920     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4921     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4922     as_fn_arith $ac_count + 1 && ac_count=$as_val
4923     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4924       # Best one so far, save it but keep looking for a better one
4925       ac_cv_path_EGREP="$ac_path_EGREP"
4926       ac_path_EGREP_max=$ac_count
4927     fi
4928     # 10*(2^10) chars as input seems more than enough
4929     test $ac_count -gt 10 && break
4930   done
4931   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4932 esac
4933
4934       $ac_path_EGREP_found && break 3
4935     done
4936   done
4937   done
4938 IFS=$as_save_IFS
4939   if test -z "$ac_cv_path_EGREP"; then
4940     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4941   fi
4942 else
4943   ac_cv_path_EGREP=$EGREP
4944 fi
4945
4946    fi
4947 fi
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4949 $as_echo "$ac_cv_path_EGREP" >&6; }
4950  EGREP="$ac_cv_path_EGREP"
4951
4952
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4954 $as_echo_n "checking for ANSI C header files... " >&6; }
4955 if ${ac_cv_header_stdc+:} false; then :
4956   $as_echo_n "(cached) " >&6
4957 else
4958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959 /* end confdefs.h.  */
4960 #include <stdlib.h>
4961 #include <stdarg.h>
4962 #include <string.h>
4963 #include <float.h>
4964
4965 int
4966 main ()
4967 {
4968
4969   ;
4970   return 0;
4971 }
4972 _ACEOF
4973 if ac_fn_cxx_try_compile "$LINENO"; then :
4974   ac_cv_header_stdc=yes
4975 else
4976   ac_cv_header_stdc=no
4977 fi
4978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4979
4980 if test $ac_cv_header_stdc = yes; then
4981   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h.  */
4984 #include <string.h>
4985
4986 _ACEOF
4987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4988   $EGREP "memchr" >/dev/null 2>&1; then :
4989
4990 else
4991   ac_cv_header_stdc=no
4992 fi
4993 rm -f conftest*
4994
4995 fi
4996
4997 if test $ac_cv_header_stdc = yes; then
4998   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h.  */
5001 #include <stdlib.h>
5002
5003 _ACEOF
5004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5005   $EGREP "free" >/dev/null 2>&1; then :
5006
5007 else
5008   ac_cv_header_stdc=no
5009 fi
5010 rm -f conftest*
5011
5012 fi
5013
5014 if test $ac_cv_header_stdc = yes; then
5015   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5016   if test "$cross_compiling" = yes; then :
5017   :
5018 else
5019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020 /* end confdefs.h.  */
5021 #include <ctype.h>
5022 #include <stdlib.h>
5023 #if ((' ' & 0x0FF) == 0x020)
5024 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5025 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5026 #else
5027 # define ISLOWER(c) \
5028                    (('a' <= (c) && (c) <= 'i') \
5029                      || ('j' <= (c) && (c) <= 'r') \
5030                      || ('s' <= (c) && (c) <= 'z'))
5031 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5032 #endif
5033
5034 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5035 int
5036 main ()
5037 {
5038   int i;
5039   for (i = 0; i < 256; i++)
5040     if (XOR (islower (i), ISLOWER (i))
5041         || toupper (i) != TOUPPER (i))
5042       return 2;
5043   return 0;
5044 }
5045 _ACEOF
5046 if ac_fn_cxx_try_run "$LINENO"; then :
5047
5048 else
5049   ac_cv_header_stdc=no
5050 fi
5051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5052   conftest.$ac_objext conftest.beam conftest.$ac_ext
5053 fi
5054
5055 fi
5056 fi
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5058 $as_echo "$ac_cv_header_stdc" >&6; }
5059 if test $ac_cv_header_stdc = yes; then
5060
5061 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5062
5063 fi
5064
5065 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5066 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5067                   inttypes.h stdint.h unistd.h
5068 do :
5069   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5070 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5071 "
5072 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5073   cat >>confdefs.h <<_ACEOF
5074 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5075 _ACEOF
5076
5077 fi
5078
5079 done
5080
5081
5082
5083   ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5084 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5085   MINIX=yes
5086 else
5087   MINIX=
5088 fi
5089
5090
5091   if test "$MINIX" = yes; then
5092
5093 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5094
5095
5096 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5097
5098
5099 $as_echo "#define _MINIX 1" >>confdefs.h
5100
5101   fi
5102
5103
5104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5105 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5106 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5107   $as_echo_n "(cached) " >&6
5108 else
5109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h.  */
5111
5112 #         define __EXTENSIONS__ 1
5113           $ac_includes_default
5114 int
5115 main ()
5116 {
5117
5118   ;
5119   return 0;
5120 }
5121 _ACEOF
5122 if ac_fn_cxx_try_compile "$LINENO"; then :
5123   ac_cv_safe_to_define___extensions__=yes
5124 else
5125   ac_cv_safe_to_define___extensions__=no
5126 fi
5127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5128 fi
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5130 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5131   test $ac_cv_safe_to_define___extensions__ = yes &&
5132     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5133
5134   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5135
5136   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5137
5138   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5139
5140   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5141
5142
5143
5144
5145
5146
5147
5148  if test "$GCC" = yes; then
5149   GCC_TRUE=
5150   GCC_FALSE='#'
5151 else
5152   GCC_TRUE='#'
5153   GCC_FALSE=
5154 fi
5155    # let the Makefile know if we're gcc
5156
5157 # test_util.cc takes forever to compile with GCC and optimization turned on.
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler flags..." >&5
5159 $as_echo_n "checking C++ compiler flags...... " >&6; }
5160 if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then :
5161
5162   if test "$GCC" = "yes"; then :
5163
5164     PROTOBUF_OPT_FLAG="-O2"
5165     CXXFLAGS="${CXXFLAGS} -g"
5166
5167 fi
5168
5169   # Protocol Buffers contains several checks that are intended to be used only
5170   # for debugging and which might hurt performance.  Most users are probably
5171   # end users who don't want these checks, so add -DNDEBUG by default.
5172   CXXFLAGS="$CXXFLAGS -DNDEBUG"
5173
5174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: use default: $PROTOBUF_OPT_FLAG $CXXFLAGS" >&5
5175 $as_echo "use default: $PROTOBUF_OPT_FLAG $CXXFLAGS" >&6; }
5176
5177 else
5178
5179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: use user-supplied: $CXXFLAGS" >&5
5180 $as_echo "use user-supplied: $CXXFLAGS" >&6; }
5181
5182 fi
5183
5184
5185
5186
5187
5188   ac_ext=cpp
5189 ac_cpp='$CXXCPP $CPPFLAGS'
5190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5193
5194   ac_fn_cxx_check_decl "$LINENO" "__SUNPRO_CC" "ac_cv_have_decl___SUNPRO_CC" "$ac_includes_default"
5195 if test "x$ac_cv_have_decl___SUNPRO_CC" = xyes; then :
5196   SUNCC="yes"
5197 else
5198   SUNCC="no"
5199 fi
5200
5201   ac_ext=cpp
5202 ac_cpp='$CXXCPP $CPPFLAGS'
5203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5204 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5205 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5206
5207
5208
5209   # Check whether --enable-64bit-solaris was given.
5210 if test "${enable_64bit_solaris+set}" = set; then :
5211   enableval=$enable_64bit_solaris; ac_enable_64bit="$enableval"
5212 else
5213   ac_enable_64bit="yes"
5214 fi
5215
5216
5217   if test "$SUNCC" = "yes" -a "x${ac_cv_env_CXXFLAGS_set}" = "x"; then :
5218
5219             CXXFLAGS="-g0 -xO3 -xlibmil -xdepend -xbuiltin -mt -compat=5 -library=stlport4 -library=Crun -template=no%extdef ${CXXFLAGS}"
5220
5221 fi
5222
5223   case $host_os in
5224     *solaris*)
5225       for ac_prog in isainfo
5226 do
5227   # Extract the first word of "$ac_prog", so it can be a program name with args.
5228 set dummy $ac_prog; ac_word=$2
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230 $as_echo_n "checking for $ac_word... " >&6; }
5231 if ${ac_cv_prog_ISAINFO+:} false; then :
5232   $as_echo_n "(cached) " >&6
5233 else
5234   if test -n "$ISAINFO"; then
5235   ac_cv_prog_ISAINFO="$ISAINFO" # Let the user override the test.
5236 else
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 for as_dir in $PATH
5239 do
5240   IFS=$as_save_IFS
5241   test -z "$as_dir" && as_dir=.
5242     for ac_exec_ext in '' $ac_executable_extensions; do
5243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5244     ac_cv_prog_ISAINFO="$ac_prog"
5245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5246     break 2
5247   fi
5248 done
5249   done
5250 IFS=$as_save_IFS
5251
5252 fi
5253 fi
5254 ISAINFO=$ac_cv_prog_ISAINFO
5255 if test -n "$ISAINFO"; then
5256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISAINFO" >&5
5257 $as_echo "$ISAINFO" >&6; }
5258 else
5259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260 $as_echo "no" >&6; }
5261 fi
5262
5263
5264   test -n "$ISAINFO" && break
5265 done
5266 test -n "$ISAINFO" || ISAINFO="no"
5267
5268       if test "x$ISAINFO" != "xno"; then :
5269   isainfo_b=`${ISAINFO} -b`
5270 else
5271   isainfo_b="x"
5272 fi
5273
5274       if test "$isainfo_b" != "x"; then :
5275
5276
5277         isainfo_k=`${ISAINFO} -k`
5278
5279         if test "x$ac_enable_64bit" = "xyes"; then :
5280
5281
5282
5283 $as_echo "#define SOLARIS_64BIT_ENABLED 1" >>confdefs.h
5284
5285           if test "x$libdir" = "x\${exec_prefix}/lib"; then :
5286
5287                                  libdir="${libdir}/${isainfo_k}"
5288
5289 fi
5290
5291                                         if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then :
5292
5293             CXXFLAGS="${CXXFLAGS} -m64"
5294             ac_cv_env_CXXFLAGS_set=set
5295             ac_cv_env_CXXFLAGS_value='-m64'
5296
5297 fi
5298
5299           if test "x${ac_cv_env_CFLAGS_set}" = "x"; then :
5300
5301             CFLAGS="${CFLAGS} -m64"
5302             ac_cv_env_CFLAGS_set=set
5303             ac_cv_env_CFLAGS_value='-m64'
5304
5305 fi
5306
5307           if test "$target_cpu" = "sparc" -a "x$SUNCC" = "xyes" ; then :
5308
5309             CXXFLAGS="-xmemalign=8s ${CXXFLAGS}"
5310
5311 fi
5312
5313 fi
5314
5315 fi
5316     ;;
5317   esac
5318
5319
5320
5321 # Have to do libtool after SUNCC, other wise it "helpfully" adds Crun Cstd
5322 # to the link
5323 case `pwd` in
5324   *\ * | *\     *)
5325     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5326 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5327 esac
5328
5329
5330
5331 macro_version='2.4.2'
5332 macro_revision='1.3337'
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346 ltmain="$ac_aux_dir/ltmain.sh"
5347
5348 # Backslashify metacharacters that are still active within
5349 # double-quoted strings.
5350 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5351
5352 # Same as above, but do not quote variable references.
5353 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5354
5355 # Sed substitution to delay expansion of an escaped shell variable in a
5356 # double_quote_subst'ed string.
5357 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5358
5359 # Sed substitution to delay expansion of an escaped single quote.
5360 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5361
5362 # Sed substitution to avoid accidental globbing in evaled expressions
5363 no_glob_subst='s/\*/\\\*/g'
5364
5365 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5366 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5367 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5368
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5370 $as_echo_n "checking how to print strings... " >&6; }
5371 # Test print first, because it will be a builtin if present.
5372 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5373    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5374   ECHO='print -r --'
5375 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5376   ECHO='printf %s\n'
5377 else
5378   # Use this function as a fallback that always works.
5379   func_fallback_echo ()
5380   {
5381     eval 'cat <<_LTECHO_EOF
5382 $1
5383 _LTECHO_EOF'
5384   }
5385   ECHO='func_fallback_echo'
5386 fi
5387
5388 # func_echo_all arg...
5389 # Invoke $ECHO with all args, space-separated.
5390 func_echo_all ()
5391 {
5392     $ECHO ""
5393 }
5394
5395 case "$ECHO" in
5396   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5397 $as_echo "printf" >&6; } ;;
5398   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5399 $as_echo "print -r" >&6; } ;;
5400   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5401 $as_echo "cat" >&6; } ;;
5402 esac
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5418 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5419 if ${ac_cv_path_SED+:} false; then :
5420   $as_echo_n "(cached) " >&6
5421 else
5422             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5423      for ac_i in 1 2 3 4 5 6 7; do
5424        ac_script="$ac_script$as_nl$ac_script"
5425      done
5426      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5427      { ac_script=; unset ac_script;}
5428      if test -z "$SED"; then
5429   ac_path_SED_found=false
5430   # Loop through the user's path and test for each of PROGNAME-LIST
5431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 for as_dir in $PATH
5433 do
5434   IFS=$as_save_IFS
5435   test -z "$as_dir" && as_dir=.
5436     for ac_prog in sed gsed; do
5437     for ac_exec_ext in '' $ac_executable_extensions; do
5438       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5439       as_fn_executable_p "$ac_path_SED" || continue
5440 # Check for GNU ac_path_SED and select it if it is found.
5441   # Check for GNU $ac_path_SED
5442 case `"$ac_path_SED" --version 2>&1` in
5443 *GNU*)
5444   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5445 *)
5446   ac_count=0
5447   $as_echo_n 0123456789 >"conftest.in"
5448   while :
5449   do
5450     cat "conftest.in" "conftest.in" >"conftest.tmp"
5451     mv "conftest.tmp" "conftest.in"
5452     cp "conftest.in" "conftest.nl"
5453     $as_echo '' >> "conftest.nl"
5454     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5455     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5456     as_fn_arith $ac_count + 1 && ac_count=$as_val
5457     if test $ac_count -gt ${ac_path_SED_max-0}; then
5458       # Best one so far, save it but keep looking for a better one
5459       ac_cv_path_SED="$ac_path_SED"
5460       ac_path_SED_max=$ac_count
5461     fi
5462     # 10*(2^10) chars as input seems more than enough
5463     test $ac_count -gt 10 && break
5464   done
5465   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5466 esac
5467
5468       $ac_path_SED_found && break 3
5469     done
5470   done
5471   done
5472 IFS=$as_save_IFS
5473   if test -z "$ac_cv_path_SED"; then
5474     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5475   fi
5476 else
5477   ac_cv_path_SED=$SED
5478 fi
5479
5480 fi
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5482 $as_echo "$ac_cv_path_SED" >&6; }
5483  SED="$ac_cv_path_SED"
5484   rm -f conftest.sed
5485
5486 test -z "$SED" && SED=sed
5487 Xsed="$SED -e 1s/^X//"
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5500 $as_echo_n "checking for fgrep... " >&6; }
5501 if ${ac_cv_path_FGREP+:} false; then :
5502   $as_echo_n "(cached) " >&6
5503 else
5504   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5505    then ac_cv_path_FGREP="$GREP -F"
5506    else
5507      if test -z "$FGREP"; then
5508   ac_path_FGREP_found=false
5509   # Loop through the user's path and test for each of PROGNAME-LIST
5510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5512 do
5513   IFS=$as_save_IFS
5514   test -z "$as_dir" && as_dir=.
5515     for ac_prog in fgrep; do
5516     for ac_exec_ext in '' $ac_executable_extensions; do
5517       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5518       as_fn_executable_p "$ac_path_FGREP" || continue
5519 # Check for GNU ac_path_FGREP and select it if it is found.
5520   # Check for GNU $ac_path_FGREP
5521 case `"$ac_path_FGREP" --version 2>&1` in
5522 *GNU*)
5523   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5524 *)
5525   ac_count=0
5526   $as_echo_n 0123456789 >"conftest.in"
5527   while :
5528   do
5529     cat "conftest.in" "conftest.in" >"conftest.tmp"
5530     mv "conftest.tmp" "conftest.in"
5531     cp "conftest.in" "conftest.nl"
5532     $as_echo 'FGREP' >> "conftest.nl"
5533     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5534     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5535     as_fn_arith $ac_count + 1 && ac_count=$as_val
5536     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5537       # Best one so far, save it but keep looking for a better one
5538       ac_cv_path_FGREP="$ac_path_FGREP"
5539       ac_path_FGREP_max=$ac_count
5540     fi
5541     # 10*(2^10) chars as input seems more than enough
5542     test $ac_count -gt 10 && break
5543   done
5544   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5545 esac
5546
5547       $ac_path_FGREP_found && break 3
5548     done
5549   done
5550   done
5551 IFS=$as_save_IFS
5552   if test -z "$ac_cv_path_FGREP"; then
5553     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5554   fi
5555 else
5556   ac_cv_path_FGREP=$FGREP
5557 fi
5558
5559    fi
5560 fi
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5562 $as_echo "$ac_cv_path_FGREP" >&6; }
5563  FGREP="$ac_cv_path_FGREP"
5564
5565
5566 test -z "$GREP" && GREP=grep
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586 # Check whether --with-gnu-ld was given.
5587 if test "${with_gnu_ld+set}" = set; then :
5588   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5589 else
5590   with_gnu_ld=no
5591 fi
5592
5593 ac_prog=ld
5594 if test "$GCC" = yes; then
5595   # Check if gcc -print-prog-name=ld gives a path.
5596   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5597 $as_echo_n "checking for ld used by $CC... " >&6; }
5598   case $host in
5599   *-*-mingw*)
5600     # gcc leaves a trailing carriage return which upsets mingw
5601     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5602   *)
5603     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5604   esac
5605   case $ac_prog in
5606     # Accept absolute paths.
5607     [\\/]* | ?:[\\/]*)
5608       re_direlt='/[^/][^/]*/\.\./'
5609       # Canonicalize the pathname of ld
5610       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5611       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5612         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5613       done
5614       test -z "$LD" && LD="$ac_prog"
5615       ;;
5616   "")
5617     # If it fails, then pretend we aren't using GCC.
5618     ac_prog=ld
5619     ;;
5620   *)
5621     # If it is relative, then search for the first ld in PATH.
5622     with_gnu_ld=unknown
5623     ;;
5624   esac
5625 elif test "$with_gnu_ld" = yes; then
5626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5627 $as_echo_n "checking for GNU ld... " >&6; }
5628 else
5629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5630 $as_echo_n "checking for non-GNU ld... " >&6; }
5631 fi
5632 if ${lt_cv_path_LD+:} false; then :
5633   $as_echo_n "(cached) " >&6
5634 else
5635   if test -z "$LD"; then
5636   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5637   for ac_dir in $PATH; do
5638     IFS="$lt_save_ifs"
5639     test -z "$ac_dir" && ac_dir=.
5640     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5641       lt_cv_path_LD="$ac_dir/$ac_prog"
5642       # Check to see if the program is GNU ld.  I'd rather use --version,
5643       # but apparently some variants of GNU ld only accept -v.
5644       # Break only if it was the GNU/non-GNU ld that we prefer.
5645       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5646       *GNU* | *'with BFD'*)
5647         test "$with_gnu_ld" != no && break
5648         ;;
5649       *)
5650         test "$with_gnu_ld" != yes && break
5651         ;;
5652       esac
5653     fi
5654   done
5655   IFS="$lt_save_ifs"
5656 else
5657   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5658 fi
5659 fi
5660
5661 LD="$lt_cv_path_LD"
5662 if test -n "$LD"; then
5663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5664 $as_echo "$LD" >&6; }
5665 else
5666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667 $as_echo "no" >&6; }
5668 fi
5669 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5671 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5672 if ${lt_cv_prog_gnu_ld+:} false; then :
5673   $as_echo_n "(cached) " >&6
5674 else
5675   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5676 case `$LD -v 2>&1 </dev/null` in
5677 *GNU* | *'with BFD'*)
5678   lt_cv_prog_gnu_ld=yes
5679   ;;
5680 *)
5681   lt_cv_prog_gnu_ld=no
5682   ;;
5683 esac
5684 fi
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5686 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5687 with_gnu_ld=$lt_cv_prog_gnu_ld
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5698 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5699 if ${lt_cv_path_NM+:} false; then :
5700   $as_echo_n "(cached) " >&6
5701 else
5702   if test -n "$NM"; then
5703   # Let the user override the test.
5704   lt_cv_path_NM="$NM"
5705 else
5706   lt_nm_to_check="${ac_tool_prefix}nm"
5707   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5708     lt_nm_to_check="$lt_nm_to_check nm"
5709   fi
5710   for lt_tmp_nm in $lt_nm_to_check; do
5711     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5712     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5713       IFS="$lt_save_ifs"
5714       test -z "$ac_dir" && ac_dir=.
5715       tmp_nm="$ac_dir/$lt_tmp_nm"
5716       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5717         # Check to see if the nm accepts a BSD-compat flag.
5718         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5719         #   nm: unknown option "B" ignored
5720         # Tru64's nm complains that /dev/null is an invalid object file
5721         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5722         */dev/null* | *'Invalid file or object type'*)
5723           lt_cv_path_NM="$tmp_nm -B"
5724           break
5725           ;;
5726         *)
5727           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5728           */dev/null*)
5729             lt_cv_path_NM="$tmp_nm -p"
5730             break
5731             ;;
5732           *)
5733             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5734             continue # so that we can try to find one that supports BSD flags
5735             ;;
5736           esac
5737           ;;
5738         esac
5739       fi
5740     done
5741     IFS="$lt_save_ifs"
5742   done
5743   : ${lt_cv_path_NM=no}
5744 fi
5745 fi
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5747 $as_echo "$lt_cv_path_NM" >&6; }
5748 if test "$lt_cv_path_NM" != "no"; then
5749   NM="$lt_cv_path_NM"
5750 else
5751   # Didn't find any BSD compatible name lister, look for dumpbin.
5752   if test -n "$DUMPBIN"; then :
5753     # Let the user override the test.
5754   else
5755     if test -n "$ac_tool_prefix"; then
5756   for ac_prog in dumpbin "link -dump"
5757   do
5758     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5759 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5761 $as_echo_n "checking for $ac_word... " >&6; }
5762 if ${ac_cv_prog_DUMPBIN+:} false; then :
5763   $as_echo_n "(cached) " >&6
5764 else
5765   if test -n "$DUMPBIN"; then
5766   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5767 else
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 for as_dir in $PATH
5770 do
5771   IFS=$as_save_IFS
5772   test -z "$as_dir" && as_dir=.
5773     for ac_exec_ext in '' $ac_executable_extensions; do
5774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5775     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5777     break 2
5778   fi
5779 done
5780   done
5781 IFS=$as_save_IFS
5782
5783 fi
5784 fi
5785 DUMPBIN=$ac_cv_prog_DUMPBIN
5786 if test -n "$DUMPBIN"; then
5787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5788 $as_echo "$DUMPBIN" >&6; }
5789 else
5790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5791 $as_echo "no" >&6; }
5792 fi
5793
5794
5795     test -n "$DUMPBIN" && break
5796   done
5797 fi
5798 if test -z "$DUMPBIN"; then
5799   ac_ct_DUMPBIN=$DUMPBIN
5800   for ac_prog in dumpbin "link -dump"
5801 do
5802   # Extract the first word of "$ac_prog", so it can be a program name with args.
5803 set dummy $ac_prog; ac_word=$2
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5805 $as_echo_n "checking for $ac_word... " >&6; }
5806 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5807   $as_echo_n "(cached) " >&6
5808 else
5809   if test -n "$ac_ct_DUMPBIN"; then
5810   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5811 else
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5814 do
5815   IFS=$as_save_IFS
5816   test -z "$as_dir" && as_dir=.
5817     for ac_exec_ext in '' $ac_executable_extensions; do
5818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5819     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5821     break 2
5822   fi
5823 done
5824   done
5825 IFS=$as_save_IFS
5826
5827 fi
5828 fi
5829 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5830 if test -n "$ac_ct_DUMPBIN"; then
5831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5832 $as_echo "$ac_ct_DUMPBIN" >&6; }
5833 else
5834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5835 $as_echo "no" >&6; }
5836 fi
5837
5838
5839   test -n "$ac_ct_DUMPBIN" && break
5840 done
5841
5842   if test "x$ac_ct_DUMPBIN" = x; then
5843     DUMPBIN=":"
5844   else
5845     case $cross_compiling:$ac_tool_warned in
5846 yes:)
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5849 ac_tool_warned=yes ;;
5850 esac
5851     DUMPBIN=$ac_ct_DUMPBIN
5852   fi
5853 fi
5854
5855     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5856     *COFF*)
5857       DUMPBIN="$DUMPBIN -symbols"
5858       ;;
5859     *)
5860       DUMPBIN=:
5861       ;;
5862     esac
5863   fi
5864
5865   if test "$DUMPBIN" != ":"; then
5866     NM="$DUMPBIN"
5867   fi
5868 fi
5869 test -z "$NM" && NM=nm
5870
5871
5872
5873
5874
5875
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5877 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5878 if ${lt_cv_nm_interface+:} false; then :
5879   $as_echo_n "(cached) " >&6
5880 else
5881   lt_cv_nm_interface="BSD nm"
5882   echo "int some_variable = 0;" > conftest.$ac_ext
5883   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5884   (eval "$ac_compile" 2>conftest.err)
5885   cat conftest.err >&5
5886   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5887   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5888   cat conftest.err >&5
5889   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5890   cat conftest.out >&5
5891   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5892     lt_cv_nm_interface="MS dumpbin"
5893   fi
5894   rm -f conftest*
5895 fi
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5897 $as_echo "$lt_cv_nm_interface" >&6; }
5898
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5900 $as_echo_n "checking whether ln -s works... " >&6; }
5901 LN_S=$as_ln_s
5902 if test "$LN_S" = "ln -s"; then
5903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5904 $as_echo "yes" >&6; }
5905 else
5906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5907 $as_echo "no, using $LN_S" >&6; }
5908 fi
5909
5910 # find the maximum length of command line arguments
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5912 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5913 if ${lt_cv_sys_max_cmd_len+:} false; then :
5914   $as_echo_n "(cached) " >&6
5915 else
5916     i=0
5917   teststring="ABCD"
5918
5919   case $build_os in
5920   msdosdjgpp*)
5921     # On DJGPP, this test can blow up pretty badly due to problems in libc
5922     # (any single argument exceeding 2000 bytes causes a buffer overrun
5923     # during glob expansion).  Even if it were fixed, the result of this
5924     # check would be larger than it should be.
5925     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5926     ;;
5927
5928   gnu*)
5929     # Under GNU Hurd, this test is not required because there is
5930     # no limit to the length of command line arguments.
5931     # Libtool will interpret -1 as no limit whatsoever
5932     lt_cv_sys_max_cmd_len=-1;
5933     ;;
5934
5935   cygwin* | mingw* | cegcc*)
5936     # On Win9x/ME, this test blows up -- it succeeds, but takes
5937     # about 5 minutes as the teststring grows exponentially.
5938     # Worse, since 9x/ME are not pre-emptively multitasking,
5939     # you end up with a "frozen" computer, even though with patience
5940     # the test eventually succeeds (with a max line length of 256k).
5941     # Instead, let's just punt: use the minimum linelength reported by
5942     # all of the supported platforms: 8192 (on NT/2K/XP).
5943     lt_cv_sys_max_cmd_len=8192;
5944     ;;
5945
5946   mint*)
5947     # On MiNT this can take a long time and run out of memory.
5948     lt_cv_sys_max_cmd_len=8192;
5949     ;;
5950
5951   amigaos*)
5952     # On AmigaOS with pdksh, this test takes hours, literally.
5953     # So we just punt and use a minimum line length of 8192.
5954     lt_cv_sys_max_cmd_len=8192;
5955     ;;
5956
5957   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5958     # This has been around since 386BSD, at least.  Likely further.
5959     if test -x /sbin/sysctl; then
5960       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5961     elif test -x /usr/sbin/sysctl; then
5962       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5963     else
5964       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5965     fi
5966     # And add a safety zone
5967     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5968     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5969     ;;
5970
5971   interix*)
5972     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5973     lt_cv_sys_max_cmd_len=196608
5974     ;;
5975
5976   os2*)
5977     # The test takes a long time on OS/2.
5978     lt_cv_sys_max_cmd_len=8192
5979     ;;
5980
5981   osf*)
5982     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5983     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5984     # nice to cause kernel panics so lets avoid the loop below.
5985     # First set a reasonable default.
5986     lt_cv_sys_max_cmd_len=16384
5987     #
5988     if test -x /sbin/sysconfig; then
5989       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5990         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5991       esac
5992     fi
5993     ;;
5994   sco3.2v5*)
5995     lt_cv_sys_max_cmd_len=102400
5996     ;;
5997   sysv5* | sco5v6* | sysv4.2uw2*)
5998     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5999     if test -n "$kargmax"; then
6000       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6001     else
6002       lt_cv_sys_max_cmd_len=32768
6003     fi
6004     ;;
6005   *)
6006     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6007     if test -n "$lt_cv_sys_max_cmd_len" && \
6008         test undefined != "$lt_cv_sys_max_cmd_len"; then
6009       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6010       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6011     else
6012       # Make teststring a little bigger before we do anything with it.
6013       # a 1K string should be a reasonable start.
6014       for i in 1 2 3 4 5 6 7 8 ; do
6015         teststring=$teststring$teststring
6016       done
6017       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6018       # If test is not a shell built-in, we'll probably end up computing a
6019       # maximum length that is only half of the actual maximum length, but
6020       # we can't tell.
6021       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6022                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6023               test $i != 17 # 1/2 MB should be enough
6024       do
6025         i=`expr $i + 1`
6026         teststring=$teststring$teststring
6027       done
6028       # Only check the string length outside the loop.
6029       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6030       teststring=
6031       # Add a significant safety factor because C++ compilers can tack on
6032       # massive amounts of additional arguments before passing them to the
6033       # linker.  It appears as though 1/2 is a usable value.
6034       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6035     fi
6036     ;;
6037   esac
6038
6039 fi
6040
6041 if test -n $lt_cv_sys_max_cmd_len ; then
6042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6043 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6044 else
6045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6046 $as_echo "none" >&6; }
6047 fi
6048 max_cmd_len=$lt_cv_sys_max_cmd_len
6049
6050
6051
6052
6053
6054
6055 : ${CP="cp -f"}
6056 : ${MV="mv -f"}
6057 : ${RM="rm -f"}
6058
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6060 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6061 # Try some XSI features
6062 xsi_shell=no
6063 ( _lt_dummy="a/b/c"
6064   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6065       = c,a/b,b/c, \
6066     && eval 'test $(( 1 + 1 )) -eq 2 \
6067     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6068   && xsi_shell=yes
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6070 $as_echo "$xsi_shell" >&6; }
6071
6072
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6074 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6075 lt_shell_append=no
6076 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6077     >/dev/null 2>&1 \
6078   && lt_shell_append=yes
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6080 $as_echo "$lt_shell_append" >&6; }
6081
6082
6083 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6084   lt_unset=unset
6085 else
6086   lt_unset=false
6087 fi
6088
6089
6090
6091
6092
6093 # test EBCDIC or ASCII
6094 case `echo X|tr X '\101'` in
6095  A) # ASCII based system
6096     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6097   lt_SP2NL='tr \040 \012'
6098   lt_NL2SP='tr \015\012 \040\040'
6099   ;;
6100  *) # EBCDIC based system
6101   lt_SP2NL='tr \100 \n'
6102   lt_NL2SP='tr \r\n \100\100'
6103   ;;
6104 esac
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6115 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6116 if ${lt_cv_to_host_file_cmd+:} false; then :
6117   $as_echo_n "(cached) " >&6
6118 else
6119   case $host in
6120   *-*-mingw* )
6121     case $build in
6122       *-*-mingw* ) # actually msys
6123         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6124         ;;
6125       *-*-cygwin* )
6126         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6127         ;;
6128       * ) # otherwise, assume *nix
6129         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6130         ;;
6131     esac
6132     ;;
6133   *-*-cygwin* )
6134     case $build in
6135       *-*-mingw* ) # actually msys
6136         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6137         ;;
6138       *-*-cygwin* )
6139         lt_cv_to_host_file_cmd=func_convert_file_noop
6140         ;;
6141       * ) # otherwise, assume *nix
6142         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6143         ;;
6144     esac
6145     ;;
6146   * ) # unhandled hosts (and "normal" native builds)
6147     lt_cv_to_host_file_cmd=func_convert_file_noop
6148     ;;
6149 esac
6150
6151 fi
6152
6153 to_host_file_cmd=$lt_cv_to_host_file_cmd
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6155 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6156
6157
6158
6159
6160
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6162 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6163 if ${lt_cv_to_tool_file_cmd+:} false; then :
6164   $as_echo_n "(cached) " >&6
6165 else
6166   #assume ordinary cross tools, or native build.
6167 lt_cv_to_tool_file_cmd=func_convert_file_noop
6168 case $host in
6169   *-*-mingw* )
6170     case $build in
6171       *-*-mingw* ) # actually msys
6172         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6173         ;;
6174     esac
6175     ;;
6176 esac
6177
6178 fi
6179
6180 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6182 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6183
6184
6185
6186
6187
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6189 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6190 if ${lt_cv_ld_reload_flag+:} false; then :
6191   $as_echo_n "(cached) " >&6
6192 else
6193   lt_cv_ld_reload_flag='-r'
6194 fi
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6196 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6197 reload_flag=$lt_cv_ld_reload_flag
6198 case $reload_flag in
6199 "" | " "*) ;;
6200 *) reload_flag=" $reload_flag" ;;
6201 esac
6202 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6203 case $host_os in
6204   cygwin* | mingw* | pw32* | cegcc*)
6205     if test "$GCC" != yes; then
6206       reload_cmds=false
6207     fi
6208     ;;
6209   darwin*)
6210     if test "$GCC" = yes; then
6211       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6212     else
6213       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6214     fi
6215     ;;
6216 esac
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226 if test -n "$ac_tool_prefix"; then
6227   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6228 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230 $as_echo_n "checking for $ac_word... " >&6; }
6231 if ${ac_cv_prog_OBJDUMP+:} false; then :
6232   $as_echo_n "(cached) " >&6
6233 else
6234   if test -n "$OBJDUMP"; then
6235   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6236 else
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH
6239 do
6240   IFS=$as_save_IFS
6241   test -z "$as_dir" && as_dir=.
6242     for ac_exec_ext in '' $ac_executable_extensions; do
6243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6244     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6246     break 2
6247   fi
6248 done
6249   done
6250 IFS=$as_save_IFS
6251
6252 fi
6253 fi
6254 OBJDUMP=$ac_cv_prog_OBJDUMP
6255 if test -n "$OBJDUMP"; then
6256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6257 $as_echo "$OBJDUMP" >&6; }
6258 else
6259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260 $as_echo "no" >&6; }
6261 fi
6262
6263
6264 fi
6265 if test -z "$ac_cv_prog_OBJDUMP"; then
6266   ac_ct_OBJDUMP=$OBJDUMP
6267   # Extract the first word of "objdump", so it can be a program name with args.
6268 set dummy objdump; ac_word=$2
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6270 $as_echo_n "checking for $ac_word... " >&6; }
6271 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6272   $as_echo_n "(cached) " >&6
6273 else
6274   if test -n "$ac_ct_OBJDUMP"; then
6275   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6276 else
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 for as_dir in $PATH
6279 do
6280   IFS=$as_save_IFS
6281   test -z "$as_dir" && as_dir=.
6282     for ac_exec_ext in '' $ac_executable_extensions; do
6283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6284     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6286     break 2
6287   fi
6288 done
6289   done
6290 IFS=$as_save_IFS
6291
6292 fi
6293 fi
6294 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6295 if test -n "$ac_ct_OBJDUMP"; then
6296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6297 $as_echo "$ac_ct_OBJDUMP" >&6; }
6298 else
6299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 $as_echo "no" >&6; }
6301 fi
6302
6303   if test "x$ac_ct_OBJDUMP" = x; then
6304     OBJDUMP="false"
6305   else
6306     case $cross_compiling:$ac_tool_warned in
6307 yes:)
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6310 ac_tool_warned=yes ;;
6311 esac
6312     OBJDUMP=$ac_ct_OBJDUMP
6313   fi
6314 else
6315   OBJDUMP="$ac_cv_prog_OBJDUMP"
6316 fi
6317
6318 test -z "$OBJDUMP" && OBJDUMP=objdump
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6329 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6330 if ${lt_cv_deplibs_check_method+:} false; then :
6331   $as_echo_n "(cached) " >&6
6332 else
6333   lt_cv_file_magic_cmd='$MAGIC_CMD'
6334 lt_cv_file_magic_test_file=
6335 lt_cv_deplibs_check_method='unknown'
6336 # Need to set the preceding variable on all platforms that support
6337 # interlibrary dependencies.
6338 # 'none' -- dependencies not supported.
6339 # `unknown' -- same as none, but documents that we really don't know.
6340 # 'pass_all' -- all dependencies passed with no checks.
6341 # 'test_compile' -- check by making test program.
6342 # 'file_magic [[regex]]' -- check by looking for files in library path
6343 # which responds to the $file_magic_cmd with a given extended regex.
6344 # If you have `file' or equivalent on your system and you're not sure
6345 # whether `pass_all' will *always* work, you probably want this one.
6346
6347 case $host_os in
6348 aix[4-9]*)
6349   lt_cv_deplibs_check_method=pass_all
6350   ;;
6351
6352 beos*)
6353   lt_cv_deplibs_check_method=pass_all
6354   ;;
6355
6356 bsdi[45]*)
6357   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6358   lt_cv_file_magic_cmd='/usr/bin/file -L'
6359   lt_cv_file_magic_test_file=/shlib/libc.so
6360   ;;
6361
6362 cygwin*)
6363   # func_win32_libid is a shell function defined in ltmain.sh
6364   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6365   lt_cv_file_magic_cmd='func_win32_libid'
6366   ;;
6367
6368 mingw* | pw32*)
6369   # Base MSYS/MinGW do not provide the 'file' command needed by
6370   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6371   # unless we find 'file', for example because we are cross-compiling.
6372   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6373   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6374     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6375     lt_cv_file_magic_cmd='func_win32_libid'
6376   else
6377     # Keep this pattern in sync with the one in func_win32_libid.
6378     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6379     lt_cv_file_magic_cmd='$OBJDUMP -f'
6380   fi
6381   ;;
6382
6383 cegcc*)
6384   # use the weaker test based on 'objdump'. See mingw*.
6385   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6386   lt_cv_file_magic_cmd='$OBJDUMP -f'
6387   ;;
6388
6389 darwin* | rhapsody*)
6390   lt_cv_deplibs_check_method=pass_all
6391   ;;
6392
6393 freebsd* | dragonfly*)
6394   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6395     case $host_cpu in
6396     i*86 )
6397       # Not sure whether the presence of OpenBSD here was a mistake.
6398       # Let's accept both of them until this is cleared up.
6399       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6400       lt_cv_file_magic_cmd=/usr/bin/file
6401       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6402       ;;
6403     esac
6404   else
6405     lt_cv_deplibs_check_method=pass_all
6406   fi
6407   ;;
6408
6409 haiku*)
6410   lt_cv_deplibs_check_method=pass_all
6411   ;;
6412
6413 hpux10.20* | hpux11*)
6414   lt_cv_file_magic_cmd=/usr/bin/file
6415   case $host_cpu in
6416   ia64*)
6417     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6418     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6419     ;;
6420   hppa*64*)
6421     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]'
6422     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6423     ;;
6424   *)
6425     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6426     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6427     ;;
6428   esac
6429   ;;
6430
6431 interix[3-9]*)
6432   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6433   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6434   ;;
6435
6436 irix5* | irix6* | nonstopux*)
6437   case $LD in
6438   *-32|*"-32 ") libmagic=32-bit;;
6439   *-n32|*"-n32 ") libmagic=N32;;
6440   *-64|*"-64 ") libmagic=64-bit;;
6441   *) libmagic=never-match;;
6442   esac
6443   lt_cv_deplibs_check_method=pass_all
6444   ;;
6445
6446 # This must be glibc/ELF.
6447 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6448   lt_cv_deplibs_check_method=pass_all
6449   ;;
6450
6451 netbsd* | netbsdelf*-gnu)
6452   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6453     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6454   else
6455     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6456   fi
6457   ;;
6458
6459 newos6*)
6460   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6461   lt_cv_file_magic_cmd=/usr/bin/file
6462   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6463   ;;
6464
6465 *nto* | *qnx*)
6466   lt_cv_deplibs_check_method=pass_all
6467   ;;
6468
6469 openbsd*)
6470   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6471     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6472   else
6473     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6474   fi
6475   ;;
6476
6477 osf3* | osf4* | osf5*)
6478   lt_cv_deplibs_check_method=pass_all
6479   ;;
6480
6481 rdos*)
6482   lt_cv_deplibs_check_method=pass_all
6483   ;;
6484
6485 solaris*)
6486   lt_cv_deplibs_check_method=pass_all
6487   ;;
6488
6489 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6490   lt_cv_deplibs_check_method=pass_all
6491   ;;
6492
6493 sysv4 | sysv4.3*)
6494   case $host_vendor in
6495   motorola)
6496     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]'
6497     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6498     ;;
6499   ncr)
6500     lt_cv_deplibs_check_method=pass_all
6501     ;;
6502   sequent)
6503     lt_cv_file_magic_cmd='/bin/file'
6504     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6505     ;;
6506   sni)
6507     lt_cv_file_magic_cmd='/bin/file'
6508     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6509     lt_cv_file_magic_test_file=/lib/libc.so
6510     ;;
6511   siemens)
6512     lt_cv_deplibs_check_method=pass_all
6513     ;;
6514   pc)
6515     lt_cv_deplibs_check_method=pass_all
6516     ;;
6517   esac
6518   ;;
6519
6520 tpf*)
6521   lt_cv_deplibs_check_method=pass_all
6522   ;;
6523 esac
6524
6525 fi
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6527 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6528
6529 file_magic_glob=
6530 want_nocaseglob=no
6531 if test "$build" = "$host"; then
6532   case $host_os in
6533   mingw* | pw32*)
6534     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6535       want_nocaseglob=yes
6536     else
6537       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6538     fi
6539     ;;
6540   esac
6541 fi
6542
6543 file_magic_cmd=$lt_cv_file_magic_cmd
6544 deplibs_check_method=$lt_cv_deplibs_check_method
6545 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568 if test -n "$ac_tool_prefix"; then
6569   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6570 set dummy ${ac_tool_prefix}dlltool; 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_DLLTOOL+:} false; then :
6574   $as_echo_n "(cached) " >&6
6575 else
6576   if test -n "$DLLTOOL"; then
6577   ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${ac_tool_prefix}dlltool"
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 DLLTOOL=$ac_cv_prog_DLLTOOL
6597 if test -n "$DLLTOOL"; then
6598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6599 $as_echo "$DLLTOOL" >&6; }
6600 else
6601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 $as_echo "no" >&6; }
6603 fi
6604
6605
6606 fi
6607 if test -z "$ac_cv_prog_DLLTOOL"; then
6608   ac_ct_DLLTOOL=$DLLTOOL
6609   # Extract the first word of "dlltool", so it can be a program name with args.
6610 set dummy dlltool; ac_word=$2
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 $as_echo_n "checking for $ac_word... " >&6; }
6613 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6614   $as_echo_n "(cached) " >&6
6615 else
6616   if test -n "$ac_ct_DLLTOOL"; then
6617   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6618 else
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 for as_dir in $PATH
6621 do
6622   IFS=$as_save_IFS
6623   test -z "$as_dir" && as_dir=.
6624     for ac_exec_ext in '' $ac_executable_extensions; do
6625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6626     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628     break 2
6629   fi
6630 done
6631   done
6632 IFS=$as_save_IFS
6633
6634 fi
6635 fi
6636 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6637 if test -n "$ac_ct_DLLTOOL"; then
6638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6639 $as_echo "$ac_ct_DLLTOOL" >&6; }
6640 else
6641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6643 fi
6644
6645   if test "x$ac_ct_DLLTOOL" = x; then
6646     DLLTOOL="false"
6647   else
6648     case $cross_compiling:$ac_tool_warned in
6649 yes:)
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6652 ac_tool_warned=yes ;;
6653 esac
6654     DLLTOOL=$ac_ct_DLLTOOL
6655   fi
6656 else
6657   DLLTOOL="$ac_cv_prog_DLLTOOL"
6658 fi
6659
6660 test -z "$DLLTOOL" && DLLTOOL=dlltool
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6672 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6673 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6674   $as_echo_n "(cached) " >&6
6675 else
6676   lt_cv_sharedlib_from_linklib_cmd='unknown'
6677
6678 case $host_os in
6679 cygwin* | mingw* | pw32* | cegcc*)
6680   # two different shell functions defined in ltmain.sh
6681   # decide which to use based on capabilities of $DLLTOOL
6682   case `$DLLTOOL --help 2>&1` in
6683   *--identify-strict*)
6684     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6685     ;;
6686   *)
6687     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6688     ;;
6689   esac
6690   ;;
6691 *)
6692   # fallback: assume linklib IS sharedlib
6693   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6694   ;;
6695 esac
6696
6697 fi
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6699 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6700 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6701 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6702
6703
6704
6705
6706
6707
6708
6709 if test -n "$ac_tool_prefix"; then
6710   for ac_prog in ar
6711   do
6712     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6713 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715 $as_echo_n "checking for $ac_word... " >&6; }
6716 if ${ac_cv_prog_AR+:} false; then :
6717   $as_echo_n "(cached) " >&6
6718 else
6719   if test -n "$AR"; then
6720   ac_cv_prog_AR="$AR" # Let the user override the test.
6721 else
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 for as_dir in $PATH
6724 do
6725   IFS=$as_save_IFS
6726   test -z "$as_dir" && as_dir=.
6727     for ac_exec_ext in '' $ac_executable_extensions; do
6728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6729     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6731     break 2
6732   fi
6733 done
6734   done
6735 IFS=$as_save_IFS
6736
6737 fi
6738 fi
6739 AR=$ac_cv_prog_AR
6740 if test -n "$AR"; then
6741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6742 $as_echo "$AR" >&6; }
6743 else
6744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745 $as_echo "no" >&6; }
6746 fi
6747
6748
6749     test -n "$AR" && break
6750   done
6751 fi
6752 if test -z "$AR"; then
6753   ac_ct_AR=$AR
6754   for ac_prog in ar
6755 do
6756   # Extract the first word of "$ac_prog", so it can be a program name with args.
6757 set dummy $ac_prog; ac_word=$2
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759 $as_echo_n "checking for $ac_word... " >&6; }
6760 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6761   $as_echo_n "(cached) " >&6
6762 else
6763   if test -n "$ac_ct_AR"; then
6764   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6765 else
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6768 do
6769   IFS=$as_save_IFS
6770   test -z "$as_dir" && as_dir=.
6771     for ac_exec_ext in '' $ac_executable_extensions; do
6772   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6773     ac_cv_prog_ac_ct_AR="$ac_prog"
6774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6775     break 2
6776   fi
6777 done
6778   done
6779 IFS=$as_save_IFS
6780
6781 fi
6782 fi
6783 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6784 if test -n "$ac_ct_AR"; then
6785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6786 $as_echo "$ac_ct_AR" >&6; }
6787 else
6788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789 $as_echo "no" >&6; }
6790 fi
6791
6792
6793   test -n "$ac_ct_AR" && break
6794 done
6795
6796   if test "x$ac_ct_AR" = x; then
6797     AR="false"
6798   else
6799     case $cross_compiling:$ac_tool_warned in
6800 yes:)
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6803 ac_tool_warned=yes ;;
6804 esac
6805     AR=$ac_ct_AR
6806   fi
6807 fi
6808
6809 : ${AR=ar}
6810 : ${AR_FLAGS=cru}
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6823 $as_echo_n "checking for archiver @FILE support... " >&6; }
6824 if ${lt_cv_ar_at_file+:} false; then :
6825   $as_echo_n "(cached) " >&6
6826 else
6827   lt_cv_ar_at_file=no
6828    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829 /* end confdefs.h.  */
6830
6831 int
6832 main ()
6833 {
6834
6835   ;
6836   return 0;
6837 }
6838 _ACEOF
6839 if ac_fn_cxx_try_compile "$LINENO"; then :
6840   echo conftest.$ac_objext > conftest.lst
6841       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6842       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6843   (eval $lt_ar_try) 2>&5
6844   ac_status=$?
6845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6846   test $ac_status = 0; }
6847       if test "$ac_status" -eq 0; then
6848         # Ensure the archiver fails upon bogus file names.
6849         rm -f conftest.$ac_objext libconftest.a
6850         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6851   (eval $lt_ar_try) 2>&5
6852   ac_status=$?
6853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6854   test $ac_status = 0; }
6855         if test "$ac_status" -ne 0; then
6856           lt_cv_ar_at_file=@
6857         fi
6858       fi
6859       rm -f conftest.* libconftest.a
6860
6861 fi
6862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6863
6864 fi
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6866 $as_echo "$lt_cv_ar_at_file" >&6; }
6867
6868 if test "x$lt_cv_ar_at_file" = xno; then
6869   archiver_list_spec=
6870 else
6871   archiver_list_spec=$lt_cv_ar_at_file
6872 fi
6873
6874
6875
6876
6877
6878
6879
6880 if test -n "$ac_tool_prefix"; then
6881   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6882 set dummy ${ac_tool_prefix}strip; ac_word=$2
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884 $as_echo_n "checking for $ac_word... " >&6; }
6885 if ${ac_cv_prog_STRIP+:} false; then :
6886   $as_echo_n "(cached) " >&6
6887 else
6888   if test -n "$STRIP"; then
6889   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6890 else
6891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 for as_dir in $PATH
6893 do
6894   IFS=$as_save_IFS
6895   test -z "$as_dir" && as_dir=.
6896     for ac_exec_ext in '' $ac_executable_extensions; do
6897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6898     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6900     break 2
6901   fi
6902 done
6903   done
6904 IFS=$as_save_IFS
6905
6906 fi
6907 fi
6908 STRIP=$ac_cv_prog_STRIP
6909 if test -n "$STRIP"; then
6910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6911 $as_echo "$STRIP" >&6; }
6912 else
6913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914 $as_echo "no" >&6; }
6915 fi
6916
6917
6918 fi
6919 if test -z "$ac_cv_prog_STRIP"; then
6920   ac_ct_STRIP=$STRIP
6921   # Extract the first word of "strip", so it can be a program name with args.
6922 set dummy strip; ac_word=$2
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6924 $as_echo_n "checking for $ac_word... " >&6; }
6925 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6926   $as_echo_n "(cached) " >&6
6927 else
6928   if test -n "$ac_ct_STRIP"; then
6929   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6930 else
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 for as_dir in $PATH
6933 do
6934   IFS=$as_save_IFS
6935   test -z "$as_dir" && as_dir=.
6936     for ac_exec_ext in '' $ac_executable_extensions; do
6937   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6938     ac_cv_prog_ac_ct_STRIP="strip"
6939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6940     break 2
6941   fi
6942 done
6943   done
6944 IFS=$as_save_IFS
6945
6946 fi
6947 fi
6948 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6949 if test -n "$ac_ct_STRIP"; then
6950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6951 $as_echo "$ac_ct_STRIP" >&6; }
6952 else
6953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954 $as_echo "no" >&6; }
6955 fi
6956
6957   if test "x$ac_ct_STRIP" = x; then
6958     STRIP=":"
6959   else
6960     case $cross_compiling:$ac_tool_warned in
6961 yes:)
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6964 ac_tool_warned=yes ;;
6965 esac
6966     STRIP=$ac_ct_STRIP
6967   fi
6968 else
6969   STRIP="$ac_cv_prog_STRIP"
6970 fi
6971
6972 test -z "$STRIP" && STRIP=:
6973
6974
6975
6976
6977
6978
6979 if test -n "$ac_tool_prefix"; then
6980   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6981 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6983 $as_echo_n "checking for $ac_word... " >&6; }
6984 if ${ac_cv_prog_RANLIB+:} false; then :
6985   $as_echo_n "(cached) " >&6
6986 else
6987   if test -n "$RANLIB"; then
6988   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6989 else
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 for as_dir in $PATH
6992 do
6993   IFS=$as_save_IFS
6994   test -z "$as_dir" && as_dir=.
6995     for ac_exec_ext in '' $ac_executable_extensions; do
6996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6997     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6999     break 2
7000   fi
7001 done
7002   done
7003 IFS=$as_save_IFS
7004
7005 fi
7006 fi
7007 RANLIB=$ac_cv_prog_RANLIB
7008 if test -n "$RANLIB"; then
7009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7010 $as_echo "$RANLIB" >&6; }
7011 else
7012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013 $as_echo "no" >&6; }
7014 fi
7015
7016
7017 fi
7018 if test -z "$ac_cv_prog_RANLIB"; then
7019   ac_ct_RANLIB=$RANLIB
7020   # Extract the first word of "ranlib", so it can be a program name with args.
7021 set dummy ranlib; ac_word=$2
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023 $as_echo_n "checking for $ac_word... " >&6; }
7024 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7025   $as_echo_n "(cached) " >&6
7026 else
7027   if test -n "$ac_ct_RANLIB"; then
7028   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7029 else
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 for as_dir in $PATH
7032 do
7033   IFS=$as_save_IFS
7034   test -z "$as_dir" && as_dir=.
7035     for ac_exec_ext in '' $ac_executable_extensions; do
7036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7037     ac_cv_prog_ac_ct_RANLIB="ranlib"
7038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7039     break 2
7040   fi
7041 done
7042   done
7043 IFS=$as_save_IFS
7044
7045 fi
7046 fi
7047 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7048 if test -n "$ac_ct_RANLIB"; then
7049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7050 $as_echo "$ac_ct_RANLIB" >&6; }
7051 else
7052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053 $as_echo "no" >&6; }
7054 fi
7055
7056   if test "x$ac_ct_RANLIB" = x; then
7057     RANLIB=":"
7058   else
7059     case $cross_compiling:$ac_tool_warned in
7060 yes:)
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7063 ac_tool_warned=yes ;;
7064 esac
7065     RANLIB=$ac_ct_RANLIB
7066   fi
7067 else
7068   RANLIB="$ac_cv_prog_RANLIB"
7069 fi
7070
7071 test -z "$RANLIB" && RANLIB=:
7072
7073
7074
7075
7076
7077
7078 # Determine commands to create old-style static archives.
7079 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7080 old_postinstall_cmds='chmod 644 $oldlib'
7081 old_postuninstall_cmds=
7082
7083 if test -n "$RANLIB"; then
7084   case $host_os in
7085   openbsd*)
7086     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7087     ;;
7088   *)
7089     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7090     ;;
7091   esac
7092   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7093 fi
7094
7095 case $host_os in
7096   darwin*)
7097     lock_old_archive_extraction=yes ;;
7098   *)
7099     lock_old_archive_extraction=no ;;
7100 esac
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140 # If no C compiler was specified, use CC.
7141 LTCC=${LTCC-"$CC"}
7142
7143 # If no C compiler flags were specified, use CFLAGS.
7144 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7145
7146 # Allow CC to be a program name with arguments.
7147 compiler=$CC
7148
7149
7150 # Check for command to grab the raw symbol name followed by C symbol from nm.
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7152 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7153 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7154   $as_echo_n "(cached) " >&6
7155 else
7156
7157 # These are sane defaults that work on at least a few old systems.
7158 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7159
7160 # Character class describing NM global symbol codes.
7161 symcode='[BCDEGRST]'
7162
7163 # Regexp to match symbols that can be accessed directly from C.
7164 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7165
7166 # Define system-specific variables.
7167 case $host_os in
7168 aix*)
7169   symcode='[BCDT]'
7170   ;;
7171 cygwin* | mingw* | pw32* | cegcc*)
7172   symcode='[ABCDGISTW]'
7173   ;;
7174 hpux*)
7175   if test "$host_cpu" = ia64; then
7176     symcode='[ABCDEGRST]'
7177   fi
7178   ;;
7179 irix* | nonstopux*)
7180   symcode='[BCDEGRST]'
7181   ;;
7182 osf*)
7183   symcode='[BCDEGQRST]'
7184   ;;
7185 solaris*)
7186   symcode='[BDRT]'
7187   ;;
7188 sco3.2v5*)
7189   symcode='[DT]'
7190   ;;
7191 sysv4.2uw2*)
7192   symcode='[DT]'
7193   ;;
7194 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7195   symcode='[ABDT]'
7196   ;;
7197 sysv4)
7198   symcode='[DFNSTU]'
7199   ;;
7200 esac
7201
7202 # If we're using GNU nm, then use its standard symbol codes.
7203 case `$NM -V 2>&1` in
7204 *GNU* | *'with BFD'*)
7205   symcode='[ABCDGIRSTW]' ;;
7206 esac
7207
7208 # Transform an extracted symbol line into a proper C declaration.
7209 # Some systems (esp. on ia64) link data and code symbols differently,
7210 # so use this general approach.
7211 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7212
7213 # Transform an extracted symbol line into symbol name and symbol address
7214 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7215 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'"
7216
7217 # Handle CRLF in mingw tool chain
7218 opt_cr=
7219 case $build_os in
7220 mingw*)
7221   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7222   ;;
7223 esac
7224
7225 # Try without a prefix underscore, then with it.
7226 for ac_symprfx in "" "_"; do
7227
7228   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7229   symxfrm="\\1 $ac_symprfx\\2 \\2"
7230
7231   # Write the raw and C identifiers.
7232   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7233     # Fake it for dumpbin and say T for any non-static function
7234     # and D for any global variable.
7235     # Also find C++ and __fastcall symbols from MSVC++,
7236     # which start with @ or ?.
7237     lt_cv_sys_global_symbol_pipe="$AWK '"\
7238 "     {last_section=section; section=\$ 3};"\
7239 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7240 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7241 "     \$ 0!~/External *\|/{next};"\
7242 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7243 "     {if(hide[section]) next};"\
7244 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7245 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7246 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7247 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7248 "     ' prfx=^$ac_symprfx"
7249   else
7250     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7251   fi
7252   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7253
7254   # Check to see that the pipe works correctly.
7255   pipe_works=no
7256
7257   rm -f conftest*
7258   cat > conftest.$ac_ext <<_LT_EOF
7259 #ifdef __cplusplus
7260 extern "C" {
7261 #endif
7262 char nm_test_var;
7263 void nm_test_func(void);
7264 void nm_test_func(void){}
7265 #ifdef __cplusplus
7266 }
7267 #endif
7268 int main(){nm_test_var='a';nm_test_func();return(0);}
7269 _LT_EOF
7270
7271   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7272   (eval $ac_compile) 2>&5
7273   ac_status=$?
7274   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7275   test $ac_status = 0; }; then
7276     # Now try to grab the symbols.
7277     nlist=conftest.nm
7278     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7279   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7280   ac_status=$?
7281   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7282   test $ac_status = 0; } && test -s "$nlist"; then
7283       # Try sorting and uniquifying the output.
7284       if sort "$nlist" | uniq > "$nlist"T; then
7285         mv -f "$nlist"T "$nlist"
7286       else
7287         rm -f "$nlist"T
7288       fi
7289
7290       # Make sure that we snagged all the symbols we need.
7291       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7292         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7293           cat <<_LT_EOF > conftest.$ac_ext
7294 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7295 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7296 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7297    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7298 # define LT_DLSYM_CONST
7299 #elif defined(__osf__)
7300 /* This system does not cope well with relocations in const data.  */
7301 # define LT_DLSYM_CONST
7302 #else
7303 # define LT_DLSYM_CONST const
7304 #endif
7305
7306 #ifdef __cplusplus
7307 extern "C" {
7308 #endif
7309
7310 _LT_EOF
7311           # Now generate the symbol file.
7312           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7313
7314           cat <<_LT_EOF >> conftest.$ac_ext
7315
7316 /* The mapping between symbol names and symbols.  */
7317 LT_DLSYM_CONST struct {
7318   const char *name;
7319   void       *address;
7320 }
7321 lt__PROGRAM__LTX_preloaded_symbols[] =
7322 {
7323   { "@PROGRAM@", (void *) 0 },
7324 _LT_EOF
7325           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7326           cat <<\_LT_EOF >> conftest.$ac_ext
7327   {0, (void *) 0}
7328 };
7329
7330 /* This works around a problem in FreeBSD linker */
7331 #ifdef FREEBSD_WORKAROUND
7332 static const void *lt_preloaded_setup() {
7333   return lt__PROGRAM__LTX_preloaded_symbols;
7334 }
7335 #endif
7336
7337 #ifdef __cplusplus
7338 }
7339 #endif
7340 _LT_EOF
7341           # Now try linking the two files.
7342           mv conftest.$ac_objext conftstm.$ac_objext
7343           lt_globsym_save_LIBS=$LIBS
7344           lt_globsym_save_CFLAGS=$CFLAGS
7345           LIBS="conftstm.$ac_objext"
7346           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7347           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7348   (eval $ac_link) 2>&5
7349   ac_status=$?
7350   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7351   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7352             pipe_works=yes
7353           fi
7354           LIBS=$lt_globsym_save_LIBS
7355           CFLAGS=$lt_globsym_save_CFLAGS
7356         else
7357           echo "cannot find nm_test_func in $nlist" >&5
7358         fi
7359       else
7360         echo "cannot find nm_test_var in $nlist" >&5
7361       fi
7362     else
7363       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7364     fi
7365   else
7366     echo "$progname: failed program was:" >&5
7367     cat conftest.$ac_ext >&5
7368   fi
7369   rm -rf conftest* conftst*
7370
7371   # Do not use the global_symbol_pipe unless it works.
7372   if test "$pipe_works" = yes; then
7373     break
7374   else
7375     lt_cv_sys_global_symbol_pipe=
7376   fi
7377 done
7378
7379 fi
7380
7381 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7382   lt_cv_sys_global_symbol_to_cdecl=
7383 fi
7384 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7386 $as_echo "failed" >&6; }
7387 else
7388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7389 $as_echo "ok" >&6; }
7390 fi
7391
7392 # Response file support.
7393 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7394   nm_file_list_spec='@'
7395 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7396   nm_file_list_spec='@'
7397 fi
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7426 $as_echo_n "checking for sysroot... " >&6; }
7427
7428 # Check whether --with-sysroot was given.
7429 if test "${with_sysroot+set}" = set; then :
7430   withval=$with_sysroot;
7431 else
7432   with_sysroot=no
7433 fi
7434
7435
7436 lt_sysroot=
7437 case ${with_sysroot} in #(
7438  yes)
7439    if test "$GCC" = yes; then
7440      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7441    fi
7442    ;; #(
7443  /*)
7444    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7445    ;; #(
7446  no|'')
7447    ;; #(
7448  *)
7449    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7450 $as_echo "${with_sysroot}" >&6; }
7451    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7452    ;;
7453 esac
7454
7455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7456 $as_echo "${lt_sysroot:-no}" >&6; }
7457
7458
7459
7460
7461
7462
7463 # Check whether --enable-libtool-lock was given.
7464 if test "${enable_libtool_lock+set}" = set; then :
7465   enableval=$enable_libtool_lock;
7466 fi
7467
7468 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7469
7470 # Some flags need to be propagated to the compiler or linker for good
7471 # libtool support.
7472 case $host in
7473 ia64-*-hpux*)
7474   # Find out which ABI we are using.
7475   echo 'int i;' > conftest.$ac_ext
7476   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7477   (eval $ac_compile) 2>&5
7478   ac_status=$?
7479   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7480   test $ac_status = 0; }; then
7481     case `/usr/bin/file conftest.$ac_objext` in
7482       *ELF-32*)
7483         HPUX_IA64_MODE="32"
7484         ;;
7485       *ELF-64*)
7486         HPUX_IA64_MODE="64"
7487         ;;
7488     esac
7489   fi
7490   rm -rf conftest*
7491   ;;
7492 *-*-irix6*)
7493   # Find out which ABI we are using.
7494   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7495   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7496   (eval $ac_compile) 2>&5
7497   ac_status=$?
7498   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7499   test $ac_status = 0; }; then
7500     if test "$lt_cv_prog_gnu_ld" = yes; then
7501       case `/usr/bin/file conftest.$ac_objext` in
7502         *32-bit*)
7503           LD="${LD-ld} -melf32bsmip"
7504           ;;
7505         *N32*)
7506           LD="${LD-ld} -melf32bmipn32"
7507           ;;
7508         *64-bit*)
7509           LD="${LD-ld} -melf64bmip"
7510         ;;
7511       esac
7512     else
7513       case `/usr/bin/file conftest.$ac_objext` in
7514         *32-bit*)
7515           LD="${LD-ld} -32"
7516           ;;
7517         *N32*)
7518           LD="${LD-ld} -n32"
7519           ;;
7520         *64-bit*)
7521           LD="${LD-ld} -64"
7522           ;;
7523       esac
7524     fi
7525   fi
7526   rm -rf conftest*
7527   ;;
7528
7529 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7530 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7531   # Find out which ABI we are using.
7532   echo 'int i;' > conftest.$ac_ext
7533   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7534   (eval $ac_compile) 2>&5
7535   ac_status=$?
7536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7537   test $ac_status = 0; }; then
7538     case `/usr/bin/file conftest.o` in
7539       *32-bit*)
7540         case $host in
7541           x86_64-*kfreebsd*-gnu)
7542             LD="${LD-ld} -m elf_i386_fbsd"
7543             ;;
7544           x86_64-*linux*)
7545             case `/usr/bin/file conftest.o` in
7546               *x86-64*)
7547                 LD="${LD-ld} -m elf32_x86_64"
7548                 ;;
7549               *)
7550                 LD="${LD-ld} -m elf_i386"
7551                 ;;
7552             esac
7553             ;;
7554           powerpc64le-*)
7555             LD="${LD-ld} -m elf32lppclinux"
7556             ;;
7557           powerpc64-*)
7558             LD="${LD-ld} -m elf32ppclinux"
7559             ;;
7560           s390x-*linux*)
7561             LD="${LD-ld} -m elf_s390"
7562             ;;
7563           sparc64-*linux*)
7564             LD="${LD-ld} -m elf32_sparc"
7565             ;;
7566         esac
7567         ;;
7568       *64-bit*)
7569         case $host in
7570           x86_64-*kfreebsd*-gnu)
7571             LD="${LD-ld} -m elf_x86_64_fbsd"
7572             ;;
7573           x86_64-*linux*)
7574             LD="${LD-ld} -m elf_x86_64"
7575             ;;
7576           powerpcle-*)
7577             LD="${LD-ld} -m elf64lppc"
7578             ;;
7579           powerpc-*)
7580             LD="${LD-ld} -m elf64ppc"
7581             ;;
7582           s390*-*linux*|s390*-*tpf*)
7583             LD="${LD-ld} -m elf64_s390"
7584             ;;
7585           sparc*-*linux*)
7586             LD="${LD-ld} -m elf64_sparc"
7587             ;;
7588         esac
7589         ;;
7590     esac
7591   fi
7592   rm -rf conftest*
7593   ;;
7594
7595 *-*-sco3.2v5*)
7596   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7597   SAVE_CFLAGS="$CFLAGS"
7598   CFLAGS="$CFLAGS -belf"
7599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7600 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7601 if ${lt_cv_cc_needs_belf+:} false; then :
7602   $as_echo_n "(cached) " >&6
7603 else
7604   ac_ext=c
7605 ac_cpp='$CPP $CPPFLAGS'
7606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7609
7610      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7611 /* end confdefs.h.  */
7612
7613 int
7614 main ()
7615 {
7616
7617   ;
7618   return 0;
7619 }
7620 _ACEOF
7621 if ac_fn_c_try_link "$LINENO"; then :
7622   lt_cv_cc_needs_belf=yes
7623 else
7624   lt_cv_cc_needs_belf=no
7625 fi
7626 rm -f core conftest.err conftest.$ac_objext \
7627     conftest$ac_exeext conftest.$ac_ext
7628      ac_ext=c
7629 ac_cpp='$CPP $CPPFLAGS'
7630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7633
7634 fi
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7636 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7637   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7638     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7639     CFLAGS="$SAVE_CFLAGS"
7640   fi
7641   ;;
7642 *-*solaris*)
7643   # Find out which ABI we are using.
7644   echo 'int i;' > conftest.$ac_ext
7645   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7646   (eval $ac_compile) 2>&5
7647   ac_status=$?
7648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7649   test $ac_status = 0; }; then
7650     case `/usr/bin/file conftest.o` in
7651     *64-bit*)
7652       case $lt_cv_prog_gnu_ld in
7653       yes*)
7654         case $host in
7655         i?86-*-solaris*)
7656           LD="${LD-ld} -m elf_x86_64"
7657           ;;
7658         sparc*-*-solaris*)
7659           LD="${LD-ld} -m elf64_sparc"
7660           ;;
7661         esac
7662         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7663         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7664           LD="${LD-ld}_sol2"
7665         fi
7666         ;;
7667       *)
7668         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7669           LD="${LD-ld} -64"
7670         fi
7671         ;;
7672       esac
7673       ;;
7674     esac
7675   fi
7676   rm -rf conftest*
7677   ;;
7678 esac
7679
7680 need_locks="$enable_libtool_lock"
7681
7682 if test -n "$ac_tool_prefix"; then
7683   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7684 set dummy ${ac_tool_prefix}mt; ac_word=$2
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7686 $as_echo_n "checking for $ac_word... " >&6; }
7687 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7688   $as_echo_n "(cached) " >&6
7689 else
7690   if test -n "$MANIFEST_TOOL"; then
7691   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7692 else
7693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 for as_dir in $PATH
7695 do
7696   IFS=$as_save_IFS
7697   test -z "$as_dir" && as_dir=.
7698     for ac_exec_ext in '' $ac_executable_extensions; do
7699   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7700     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7702     break 2
7703   fi
7704 done
7705   done
7706 IFS=$as_save_IFS
7707
7708 fi
7709 fi
7710 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7711 if test -n "$MANIFEST_TOOL"; then
7712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7713 $as_echo "$MANIFEST_TOOL" >&6; }
7714 else
7715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716 $as_echo "no" >&6; }
7717 fi
7718
7719
7720 fi
7721 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7722   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7723   # Extract the first word of "mt", so it can be a program name with args.
7724 set dummy mt; ac_word=$2
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7726 $as_echo_n "checking for $ac_word... " >&6; }
7727 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7728   $as_echo_n "(cached) " >&6
7729 else
7730   if test -n "$ac_ct_MANIFEST_TOOL"; then
7731   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7732 else
7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734 for as_dir in $PATH
7735 do
7736   IFS=$as_save_IFS
7737   test -z "$as_dir" && as_dir=.
7738     for ac_exec_ext in '' $ac_executable_extensions; do
7739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7740     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7742     break 2
7743   fi
7744 done
7745   done
7746 IFS=$as_save_IFS
7747
7748 fi
7749 fi
7750 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7751 if test -n "$ac_ct_MANIFEST_TOOL"; then
7752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7753 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7754 else
7755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756 $as_echo "no" >&6; }
7757 fi
7758
7759   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7760     MANIFEST_TOOL=":"
7761   else
7762     case $cross_compiling:$ac_tool_warned in
7763 yes:)
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7766 ac_tool_warned=yes ;;
7767 esac
7768     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7769   fi
7770 else
7771   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7772 fi
7773
7774 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7776 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7777 if ${lt_cv_path_mainfest_tool+:} false; then :
7778   $as_echo_n "(cached) " >&6
7779 else
7780   lt_cv_path_mainfest_tool=no
7781   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7782   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7783   cat conftest.err >&5
7784   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7785     lt_cv_path_mainfest_tool=yes
7786   fi
7787   rm -f conftest*
7788 fi
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7790 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7791 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7792   MANIFEST_TOOL=:
7793 fi
7794
7795
7796
7797
7798
7799
7800   case $host_os in
7801     rhapsody* | darwin*)
7802     if test -n "$ac_tool_prefix"; then
7803   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7804 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7806 $as_echo_n "checking for $ac_word... " >&6; }
7807 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7808   $as_echo_n "(cached) " >&6
7809 else
7810   if test -n "$DSYMUTIL"; then
7811   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7812 else
7813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 for as_dir in $PATH
7815 do
7816   IFS=$as_save_IFS
7817   test -z "$as_dir" && as_dir=.
7818     for ac_exec_ext in '' $ac_executable_extensions; do
7819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7820     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7822     break 2
7823   fi
7824 done
7825   done
7826 IFS=$as_save_IFS
7827
7828 fi
7829 fi
7830 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7831 if test -n "$DSYMUTIL"; then
7832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7833 $as_echo "$DSYMUTIL" >&6; }
7834 else
7835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7836 $as_echo "no" >&6; }
7837 fi
7838
7839
7840 fi
7841 if test -z "$ac_cv_prog_DSYMUTIL"; then
7842   ac_ct_DSYMUTIL=$DSYMUTIL
7843   # Extract the first word of "dsymutil", so it can be a program name with args.
7844 set dummy dsymutil; ac_word=$2
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7846 $as_echo_n "checking for $ac_word... " >&6; }
7847 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7848   $as_echo_n "(cached) " >&6
7849 else
7850   if test -n "$ac_ct_DSYMUTIL"; then
7851   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7852 else
7853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854 for as_dir in $PATH
7855 do
7856   IFS=$as_save_IFS
7857   test -z "$as_dir" && as_dir=.
7858     for ac_exec_ext in '' $ac_executable_extensions; do
7859   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7860     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7862     break 2
7863   fi
7864 done
7865   done
7866 IFS=$as_save_IFS
7867
7868 fi
7869 fi
7870 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7871 if test -n "$ac_ct_DSYMUTIL"; then
7872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7873 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7874 else
7875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876 $as_echo "no" >&6; }
7877 fi
7878
7879   if test "x$ac_ct_DSYMUTIL" = x; then
7880     DSYMUTIL=":"
7881   else
7882     case $cross_compiling:$ac_tool_warned in
7883 yes:)
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7886 ac_tool_warned=yes ;;
7887 esac
7888     DSYMUTIL=$ac_ct_DSYMUTIL
7889   fi
7890 else
7891   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7892 fi
7893
7894     if test -n "$ac_tool_prefix"; then
7895   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7896 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7898 $as_echo_n "checking for $ac_word... " >&6; }
7899 if ${ac_cv_prog_NMEDIT+:} false; then :
7900   $as_echo_n "(cached) " >&6
7901 else
7902   if test -n "$NMEDIT"; then
7903   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7904 else
7905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906 for as_dir in $PATH
7907 do
7908   IFS=$as_save_IFS
7909   test -z "$as_dir" && as_dir=.
7910     for ac_exec_ext in '' $ac_executable_extensions; do
7911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7912     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7914     break 2
7915   fi
7916 done
7917   done
7918 IFS=$as_save_IFS
7919
7920 fi
7921 fi
7922 NMEDIT=$ac_cv_prog_NMEDIT
7923 if test -n "$NMEDIT"; then
7924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7925 $as_echo "$NMEDIT" >&6; }
7926 else
7927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7928 $as_echo "no" >&6; }
7929 fi
7930
7931
7932 fi
7933 if test -z "$ac_cv_prog_NMEDIT"; then
7934   ac_ct_NMEDIT=$NMEDIT
7935   # Extract the first word of "nmedit", so it can be a program name with args.
7936 set dummy nmedit; ac_word=$2
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7938 $as_echo_n "checking for $ac_word... " >&6; }
7939 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7940   $as_echo_n "(cached) " >&6
7941 else
7942   if test -n "$ac_ct_NMEDIT"; then
7943   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7944 else
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946 for as_dir in $PATH
7947 do
7948   IFS=$as_save_IFS
7949   test -z "$as_dir" && as_dir=.
7950     for ac_exec_ext in '' $ac_executable_extensions; do
7951   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7952     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7954     break 2
7955   fi
7956 done
7957   done
7958 IFS=$as_save_IFS
7959
7960 fi
7961 fi
7962 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7963 if test -n "$ac_ct_NMEDIT"; then
7964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7965 $as_echo "$ac_ct_NMEDIT" >&6; }
7966 else
7967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968 $as_echo "no" >&6; }
7969 fi
7970
7971   if test "x$ac_ct_NMEDIT" = x; then
7972     NMEDIT=":"
7973   else
7974     case $cross_compiling:$ac_tool_warned in
7975 yes:)
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7978 ac_tool_warned=yes ;;
7979 esac
7980     NMEDIT=$ac_ct_NMEDIT
7981   fi
7982 else
7983   NMEDIT="$ac_cv_prog_NMEDIT"
7984 fi
7985
7986     if test -n "$ac_tool_prefix"; then
7987   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7988 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7990 $as_echo_n "checking for $ac_word... " >&6; }
7991 if ${ac_cv_prog_LIPO+:} false; then :
7992   $as_echo_n "(cached) " >&6
7993 else
7994   if test -n "$LIPO"; then
7995   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7996 else
7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998 for as_dir in $PATH
7999 do
8000   IFS=$as_save_IFS
8001   test -z "$as_dir" && as_dir=.
8002     for ac_exec_ext in '' $ac_executable_extensions; do
8003   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8004     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8006     break 2
8007   fi
8008 done
8009   done
8010 IFS=$as_save_IFS
8011
8012 fi
8013 fi
8014 LIPO=$ac_cv_prog_LIPO
8015 if test -n "$LIPO"; then
8016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8017 $as_echo "$LIPO" >&6; }
8018 else
8019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8020 $as_echo "no" >&6; }
8021 fi
8022
8023
8024 fi
8025 if test -z "$ac_cv_prog_LIPO"; then
8026   ac_ct_LIPO=$LIPO
8027   # Extract the first word of "lipo", so it can be a program name with args.
8028 set dummy lipo; ac_word=$2
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8030 $as_echo_n "checking for $ac_word... " >&6; }
8031 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8032   $as_echo_n "(cached) " >&6
8033 else
8034   if test -n "$ac_ct_LIPO"; then
8035   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8036 else
8037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8038 for as_dir in $PATH
8039 do
8040   IFS=$as_save_IFS
8041   test -z "$as_dir" && as_dir=.
8042     for ac_exec_ext in '' $ac_executable_extensions; do
8043   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8044     ac_cv_prog_ac_ct_LIPO="lipo"
8045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8046     break 2
8047   fi
8048 done
8049   done
8050 IFS=$as_save_IFS
8051
8052 fi
8053 fi
8054 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8055 if test -n "$ac_ct_LIPO"; then
8056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8057 $as_echo "$ac_ct_LIPO" >&6; }
8058 else
8059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8060 $as_echo "no" >&6; }
8061 fi
8062
8063   if test "x$ac_ct_LIPO" = x; then
8064     LIPO=":"
8065   else
8066     case $cross_compiling:$ac_tool_warned in
8067 yes:)
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8070 ac_tool_warned=yes ;;
8071 esac
8072     LIPO=$ac_ct_LIPO
8073   fi
8074 else
8075   LIPO="$ac_cv_prog_LIPO"
8076 fi
8077
8078     if test -n "$ac_tool_prefix"; then
8079   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8080 set dummy ${ac_tool_prefix}otool; ac_word=$2
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082 $as_echo_n "checking for $ac_word... " >&6; }
8083 if ${ac_cv_prog_OTOOL+:} false; then :
8084   $as_echo_n "(cached) " >&6
8085 else
8086   if test -n "$OTOOL"; then
8087   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8088 else
8089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090 for as_dir in $PATH
8091 do
8092   IFS=$as_save_IFS
8093   test -z "$as_dir" && as_dir=.
8094     for ac_exec_ext in '' $ac_executable_extensions; do
8095   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8096     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8098     break 2
8099   fi
8100 done
8101   done
8102 IFS=$as_save_IFS
8103
8104 fi
8105 fi
8106 OTOOL=$ac_cv_prog_OTOOL
8107 if test -n "$OTOOL"; then
8108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8109 $as_echo "$OTOOL" >&6; }
8110 else
8111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112 $as_echo "no" >&6; }
8113 fi
8114
8115
8116 fi
8117 if test -z "$ac_cv_prog_OTOOL"; then
8118   ac_ct_OTOOL=$OTOOL
8119   # Extract the first word of "otool", so it can be a program name with args.
8120 set dummy otool; ac_word=$2
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122 $as_echo_n "checking for $ac_word... " >&6; }
8123 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8124   $as_echo_n "(cached) " >&6
8125 else
8126   if test -n "$ac_ct_OTOOL"; then
8127   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8128 else
8129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130 for as_dir in $PATH
8131 do
8132   IFS=$as_save_IFS
8133   test -z "$as_dir" && as_dir=.
8134     for ac_exec_ext in '' $ac_executable_extensions; do
8135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8136     ac_cv_prog_ac_ct_OTOOL="otool"
8137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8138     break 2
8139   fi
8140 done
8141   done
8142 IFS=$as_save_IFS
8143
8144 fi
8145 fi
8146 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8147 if test -n "$ac_ct_OTOOL"; then
8148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8149 $as_echo "$ac_ct_OTOOL" >&6; }
8150 else
8151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152 $as_echo "no" >&6; }
8153 fi
8154
8155   if test "x$ac_ct_OTOOL" = x; then
8156     OTOOL=":"
8157   else
8158     case $cross_compiling:$ac_tool_warned in
8159 yes:)
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8162 ac_tool_warned=yes ;;
8163 esac
8164     OTOOL=$ac_ct_OTOOL
8165   fi
8166 else
8167   OTOOL="$ac_cv_prog_OTOOL"
8168 fi
8169
8170     if test -n "$ac_tool_prefix"; then
8171   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8172 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174 $as_echo_n "checking for $ac_word... " >&6; }
8175 if ${ac_cv_prog_OTOOL64+:} false; then :
8176   $as_echo_n "(cached) " >&6
8177 else
8178   if test -n "$OTOOL64"; then
8179   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8180 else
8181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182 for as_dir in $PATH
8183 do
8184   IFS=$as_save_IFS
8185   test -z "$as_dir" && as_dir=.
8186     for ac_exec_ext in '' $ac_executable_extensions; do
8187   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8188     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8190     break 2
8191   fi
8192 done
8193   done
8194 IFS=$as_save_IFS
8195
8196 fi
8197 fi
8198 OTOOL64=$ac_cv_prog_OTOOL64
8199 if test -n "$OTOOL64"; then
8200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8201 $as_echo "$OTOOL64" >&6; }
8202 else
8203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204 $as_echo "no" >&6; }
8205 fi
8206
8207
8208 fi
8209 if test -z "$ac_cv_prog_OTOOL64"; then
8210   ac_ct_OTOOL64=$OTOOL64
8211   # Extract the first word of "otool64", so it can be a program name with args.
8212 set dummy otool64; ac_word=$2
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214 $as_echo_n "checking for $ac_word... " >&6; }
8215 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8216   $as_echo_n "(cached) " >&6
8217 else
8218   if test -n "$ac_ct_OTOOL64"; then
8219   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8220 else
8221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222 for as_dir in $PATH
8223 do
8224   IFS=$as_save_IFS
8225   test -z "$as_dir" && as_dir=.
8226     for ac_exec_ext in '' $ac_executable_extensions; do
8227   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8228     ac_cv_prog_ac_ct_OTOOL64="otool64"
8229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8230     break 2
8231   fi
8232 done
8233   done
8234 IFS=$as_save_IFS
8235
8236 fi
8237 fi
8238 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8239 if test -n "$ac_ct_OTOOL64"; then
8240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8241 $as_echo "$ac_ct_OTOOL64" >&6; }
8242 else
8243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244 $as_echo "no" >&6; }
8245 fi
8246
8247   if test "x$ac_ct_OTOOL64" = x; then
8248     OTOOL64=":"
8249   else
8250     case $cross_compiling:$ac_tool_warned in
8251 yes:)
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8254 ac_tool_warned=yes ;;
8255 esac
8256     OTOOL64=$ac_ct_OTOOL64
8257   fi
8258 else
8259   OTOOL64="$ac_cv_prog_OTOOL64"
8260 fi
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8289 $as_echo_n "checking for -single_module linker flag... " >&6; }
8290 if ${lt_cv_apple_cc_single_mod+:} false; then :
8291   $as_echo_n "(cached) " >&6
8292 else
8293   lt_cv_apple_cc_single_mod=no
8294       if test -z "${LT_MULTI_MODULE}"; then
8295         # By default we will add the -single_module flag. You can override
8296         # by either setting the environment variable LT_MULTI_MODULE
8297         # non-empty at configure time, or by adding -multi_module to the
8298         # link flags.
8299         rm -rf libconftest.dylib*
8300         echo "int foo(void){return 1;}" > conftest.c
8301         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8302 -dynamiclib -Wl,-single_module conftest.c" >&5
8303         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8304           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8305         _lt_result=$?
8306         # If there is a non-empty error log, and "single_module"
8307         # appears in it, assume the flag caused a linker warning
8308         if test -s conftest.err && $GREP single_module conftest.err; then
8309           cat conftest.err >&5
8310         # Otherwise, if the output was created with a 0 exit code from
8311         # the compiler, it worked.
8312         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8313           lt_cv_apple_cc_single_mod=yes
8314         else
8315           cat conftest.err >&5
8316         fi
8317         rm -rf libconftest.dylib*
8318         rm -f conftest.*
8319       fi
8320 fi
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8322 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8323
8324     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8325 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8326 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8327   $as_echo_n "(cached) " >&6
8328 else
8329   lt_cv_ld_exported_symbols_list=no
8330       save_LDFLAGS=$LDFLAGS
8331       echo "_main" > conftest.sym
8332       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8333       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8334 /* end confdefs.h.  */
8335
8336 int
8337 main ()
8338 {
8339
8340   ;
8341   return 0;
8342 }
8343 _ACEOF
8344 if ac_fn_c_try_link "$LINENO"; then :
8345   lt_cv_ld_exported_symbols_list=yes
8346 else
8347   lt_cv_ld_exported_symbols_list=no
8348 fi
8349 rm -f core conftest.err conftest.$ac_objext \
8350     conftest$ac_exeext conftest.$ac_ext
8351         LDFLAGS="$save_LDFLAGS"
8352
8353 fi
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8355 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8356
8357     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8358 $as_echo_n "checking for -force_load linker flag... " >&6; }
8359 if ${lt_cv_ld_force_load+:} false; then :
8360   $as_echo_n "(cached) " >&6
8361 else
8362   lt_cv_ld_force_load=no
8363       cat > conftest.c << _LT_EOF
8364 int forced_loaded() { return 2;}
8365 _LT_EOF
8366       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8367       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8368       echo "$AR cru libconftest.a conftest.o" >&5
8369       $AR cru libconftest.a conftest.o 2>&5
8370       echo "$RANLIB libconftest.a" >&5
8371       $RANLIB libconftest.a 2>&5
8372       cat > conftest.c << _LT_EOF
8373 int main() { return 0;}
8374 _LT_EOF
8375       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8376       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8377       _lt_result=$?
8378       if test -s conftest.err && $GREP force_load conftest.err; then
8379         cat conftest.err >&5
8380       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8381         lt_cv_ld_force_load=yes
8382       else
8383         cat conftest.err >&5
8384       fi
8385         rm -f conftest.err libconftest.a conftest conftest.c
8386         rm -rf conftest.dSYM
8387
8388 fi
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8390 $as_echo "$lt_cv_ld_force_load" >&6; }
8391     case $host_os in
8392     rhapsody* | darwin1.[012])
8393       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8394     darwin1.*)
8395       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8396     darwin*) # darwin 5.x on
8397       # if running on 10.5 or later, the deployment target defaults
8398       # to the OS version, if on x86, and 10.4, the deployment
8399       # target defaults to 10.4. Don't you love it?
8400       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8401         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8402           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8403         10.[012]*)
8404           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8405         10.*)
8406           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8407       esac
8408     ;;
8409   esac
8410     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8411       _lt_dar_single_mod='$single_module'
8412     fi
8413     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8414       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8415     else
8416       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8417     fi
8418     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8419       _lt_dsymutil='~$DSYMUTIL $lib || :'
8420     else
8421       _lt_dsymutil=
8422     fi
8423     ;;
8424   esac
8425
8426 for ac_header in dlfcn.h
8427 do :
8428   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8429 "
8430 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8431   cat >>confdefs.h <<_ACEOF
8432 #define HAVE_DLFCN_H 1
8433 _ACEOF
8434
8435 fi
8436
8437 done
8438
8439
8440
8441 func_stripname_cnf ()
8442 {
8443   case ${2} in
8444   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8445   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8446   esac
8447 } # func_stripname_cnf
8448
8449
8450
8451
8452
8453 # Set options
8454
8455
8456
8457         enable_dlopen=no
8458
8459
8460   enable_win32_dll=no
8461
8462
8463             # Check whether --enable-shared was given.
8464 if test "${enable_shared+set}" = set; then :
8465   enableval=$enable_shared; p=${PACKAGE-default}
8466     case $enableval in
8467     yes) enable_shared=yes ;;
8468     no) enable_shared=no ;;
8469     *)
8470       enable_shared=no
8471       # Look at the argument we got.  We use all the common list separators.
8472       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8473       for pkg in $enableval; do
8474         IFS="$lt_save_ifs"
8475         if test "X$pkg" = "X$p"; then
8476           enable_shared=yes
8477         fi
8478       done
8479       IFS="$lt_save_ifs"
8480       ;;
8481     esac
8482 else
8483   enable_shared=yes
8484 fi
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494   # Check whether --enable-static was given.
8495 if test "${enable_static+set}" = set; then :
8496   enableval=$enable_static; p=${PACKAGE-default}
8497     case $enableval in
8498     yes) enable_static=yes ;;
8499     no) enable_static=no ;;
8500     *)
8501      enable_static=no
8502       # Look at the argument we got.  We use all the common list separators.
8503       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8504       for pkg in $enableval; do
8505         IFS="$lt_save_ifs"
8506         if test "X$pkg" = "X$p"; then
8507           enable_static=yes
8508         fi
8509       done
8510       IFS="$lt_save_ifs"
8511       ;;
8512     esac
8513 else
8514   enable_static=yes
8515 fi
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526 # Check whether --with-pic was given.
8527 if test "${with_pic+set}" = set; then :
8528   withval=$with_pic; lt_p=${PACKAGE-default}
8529     case $withval in
8530     yes|no) pic_mode=$withval ;;
8531     *)
8532       pic_mode=default
8533       # Look at the argument we got.  We use all the common list separators.
8534       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8535       for lt_pkg in $withval; do
8536         IFS="$lt_save_ifs"
8537         if test "X$lt_pkg" = "X$lt_p"; then
8538           pic_mode=yes
8539         fi
8540       done
8541       IFS="$lt_save_ifs"
8542       ;;
8543     esac
8544 else
8545   pic_mode=default
8546 fi
8547
8548
8549 test -z "$pic_mode" && pic_mode=default
8550
8551
8552
8553
8554
8555
8556
8557   # Check whether --enable-fast-install was given.
8558 if test "${enable_fast_install+set}" = set; then :
8559   enableval=$enable_fast_install; p=${PACKAGE-default}
8560     case $enableval in
8561     yes) enable_fast_install=yes ;;
8562     no) enable_fast_install=no ;;
8563     *)
8564       enable_fast_install=no
8565       # Look at the argument we got.  We use all the common list separators.
8566       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8567       for pkg in $enableval; do
8568         IFS="$lt_save_ifs"
8569         if test "X$pkg" = "X$p"; then
8570           enable_fast_install=yes
8571         fi
8572       done
8573       IFS="$lt_save_ifs"
8574       ;;
8575     esac
8576 else
8577   enable_fast_install=yes
8578 fi
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590 # This can be used to rebuild libtool when needed
8591 LIBTOOL_DEPS="$ltmain"
8592
8593 # Always use our own libtool.
8594 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625 test -z "$LN_S" && LN_S="ln -s"
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640 if test -n "${ZSH_VERSION+set}" ; then
8641    setopt NO_GLOB_SUBST
8642 fi
8643
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8645 $as_echo_n "checking for objdir... " >&6; }
8646 if ${lt_cv_objdir+:} false; then :
8647   $as_echo_n "(cached) " >&6
8648 else
8649   rm -f .libs 2>/dev/null
8650 mkdir .libs 2>/dev/null
8651 if test -d .libs; then
8652   lt_cv_objdir=.libs
8653 else
8654   # MS-DOS does not allow filenames that begin with a dot.
8655   lt_cv_objdir=_libs
8656 fi
8657 rmdir .libs 2>/dev/null
8658 fi
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8660 $as_echo "$lt_cv_objdir" >&6; }
8661 objdir=$lt_cv_objdir
8662
8663
8664
8665
8666
8667 cat >>confdefs.h <<_ACEOF
8668 #define LT_OBJDIR "$lt_cv_objdir/"
8669 _ACEOF
8670
8671
8672
8673
8674 case $host_os in
8675 aix3*)
8676   # AIX sometimes has problems with the GCC collect2 program.  For some
8677   # reason, if we set the COLLECT_NAMES environment variable, the problems
8678   # vanish in a puff of smoke.
8679   if test "X${COLLECT_NAMES+set}" != Xset; then
8680     COLLECT_NAMES=
8681     export COLLECT_NAMES
8682   fi
8683   ;;
8684 esac
8685
8686 # Global variables:
8687 ofile=libtool
8688 can_build_shared=yes
8689
8690 # All known linkers require a `.a' archive for static linking (except MSVC,
8691 # which needs '.lib').
8692 libext=a
8693
8694 with_gnu_ld="$lt_cv_prog_gnu_ld"
8695
8696 old_CC="$CC"
8697 old_CFLAGS="$CFLAGS"
8698
8699 # Set sane defaults for various variables
8700 test -z "$CC" && CC=cc
8701 test -z "$LTCC" && LTCC=$CC
8702 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8703 test -z "$LD" && LD=ld
8704 test -z "$ac_objext" && ac_objext=o
8705
8706 for cc_temp in $compiler""; do
8707   case $cc_temp in
8708     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8709     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8710     \-*) ;;
8711     *) break;;
8712   esac
8713 done
8714 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8715
8716
8717 # Only perform the check for file, if the check method requires it
8718 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8719 case $deplibs_check_method in
8720 file_magic*)
8721   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8722     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8723 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8724 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8725   $as_echo_n "(cached) " >&6
8726 else
8727   case $MAGIC_CMD in
8728 [\\/*] |  ?:[\\/]*)
8729   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8730   ;;
8731 *)
8732   lt_save_MAGIC_CMD="$MAGIC_CMD"
8733   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8734   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8735   for ac_dir in $ac_dummy; do
8736     IFS="$lt_save_ifs"
8737     test -z "$ac_dir" && ac_dir=.
8738     if test -f $ac_dir/${ac_tool_prefix}file; then
8739       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8740       if test -n "$file_magic_test_file"; then
8741         case $deplibs_check_method in
8742         "file_magic "*)
8743           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8744           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8745           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8746             $EGREP "$file_magic_regex" > /dev/null; then
8747             :
8748           else
8749             cat <<_LT_EOF 1>&2
8750
8751 *** Warning: the command libtool uses to detect shared libraries,
8752 *** $file_magic_cmd, produces output that libtool cannot recognize.
8753 *** The result is that libtool may fail to recognize shared libraries
8754 *** as such.  This will affect the creation of libtool libraries that
8755 *** depend on shared libraries, but programs linked with such libtool
8756 *** libraries will work regardless of this problem.  Nevertheless, you
8757 *** may want to report the problem to your system manager and/or to
8758 *** bug-libtool@gnu.org
8759
8760 _LT_EOF
8761           fi ;;
8762         esac
8763       fi
8764       break
8765     fi
8766   done
8767   IFS="$lt_save_ifs"
8768   MAGIC_CMD="$lt_save_MAGIC_CMD"
8769   ;;
8770 esac
8771 fi
8772
8773 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8774 if test -n "$MAGIC_CMD"; then
8775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8776 $as_echo "$MAGIC_CMD" >&6; }
8777 else
8778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8779 $as_echo "no" >&6; }
8780 fi
8781
8782
8783
8784
8785
8786 if test -z "$lt_cv_path_MAGIC_CMD"; then
8787   if test -n "$ac_tool_prefix"; then
8788     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8789 $as_echo_n "checking for file... " >&6; }
8790 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8791   $as_echo_n "(cached) " >&6
8792 else
8793   case $MAGIC_CMD in
8794 [\\/*] |  ?:[\\/]*)
8795   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8796   ;;
8797 *)
8798   lt_save_MAGIC_CMD="$MAGIC_CMD"
8799   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8800   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8801   for ac_dir in $ac_dummy; do
8802     IFS="$lt_save_ifs"
8803     test -z "$ac_dir" && ac_dir=.
8804     if test -f $ac_dir/file; then
8805       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8806       if test -n "$file_magic_test_file"; then
8807         case $deplibs_check_method in
8808         "file_magic "*)
8809           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8810           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8811           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8812             $EGREP "$file_magic_regex" > /dev/null; then
8813             :
8814           else
8815             cat <<_LT_EOF 1>&2
8816
8817 *** Warning: the command libtool uses to detect shared libraries,
8818 *** $file_magic_cmd, produces output that libtool cannot recognize.
8819 *** The result is that libtool may fail to recognize shared libraries
8820 *** as such.  This will affect the creation of libtool libraries that
8821 *** depend on shared libraries, but programs linked with such libtool
8822 *** libraries will work regardless of this problem.  Nevertheless, you
8823 *** may want to report the problem to your system manager and/or to
8824 *** bug-libtool@gnu.org
8825
8826 _LT_EOF
8827           fi ;;
8828         esac
8829       fi
8830       break
8831     fi
8832   done
8833   IFS="$lt_save_ifs"
8834   MAGIC_CMD="$lt_save_MAGIC_CMD"
8835   ;;
8836 esac
8837 fi
8838
8839 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8840 if test -n "$MAGIC_CMD"; then
8841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8842 $as_echo "$MAGIC_CMD" >&6; }
8843 else
8844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8845 $as_echo "no" >&6; }
8846 fi
8847
8848
8849   else
8850     MAGIC_CMD=:
8851   fi
8852 fi
8853
8854   fi
8855   ;;
8856 esac
8857
8858 # Use C for the default configuration in the libtool script
8859
8860 lt_save_CC="$CC"
8861 ac_ext=c
8862 ac_cpp='$CPP $CPPFLAGS'
8863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8866
8867
8868 # Source file extension for C test sources.
8869 ac_ext=c
8870
8871 # Object file extension for compiled C test sources.
8872 objext=o
8873 objext=$objext
8874
8875 # Code to be used in simple compile tests
8876 lt_simple_compile_test_code="int some_variable = 0;"
8877
8878 # Code to be used in simple link tests
8879 lt_simple_link_test_code='int main(){return(0);}'
8880
8881
8882
8883
8884
8885
8886
8887 # If no C compiler was specified, use CC.
8888 LTCC=${LTCC-"$CC"}
8889
8890 # If no C compiler flags were specified, use CFLAGS.
8891 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8892
8893 # Allow CC to be a program name with arguments.
8894 compiler=$CC
8895
8896 # Save the default compiler, since it gets overwritten when the other
8897 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8898 compiler_DEFAULT=$CC
8899
8900 # save warnings/boilerplate of simple test code
8901 ac_outfile=conftest.$ac_objext
8902 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8903 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8904 _lt_compiler_boilerplate=`cat conftest.err`
8905 $RM conftest*
8906
8907 ac_outfile=conftest.$ac_objext
8908 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8909 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8910 _lt_linker_boilerplate=`cat conftest.err`
8911 $RM -r conftest*
8912
8913
8914 ## CAVEAT EMPTOR:
8915 ## There is no encapsulation within the following macros, do not change
8916 ## the running order or otherwise move them around unless you know exactly
8917 ## what you are doing...
8918 if test -n "$compiler"; then
8919
8920 lt_prog_compiler_no_builtin_flag=
8921
8922 if test "$GCC" = yes; then
8923   case $cc_basename in
8924   nvcc*)
8925     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8926   *)
8927     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8928   esac
8929
8930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8931 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8932 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8933   $as_echo_n "(cached) " >&6
8934 else
8935   lt_cv_prog_compiler_rtti_exceptions=no
8936    ac_outfile=conftest.$ac_objext
8937    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8938    lt_compiler_flag="-fno-rtti -fno-exceptions"
8939    # Insert the option either (1) after the last *FLAGS variable, or
8940    # (2) before a word containing "conftest.", or (3) at the end.
8941    # Note that $ac_compile itself does not contain backslashes and begins
8942    # with a dollar sign (not a hyphen), so the echo should work correctly.
8943    # The option is referenced via a variable to avoid confusing sed.
8944    lt_compile=`echo "$ac_compile" | $SED \
8945    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8946    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8947    -e 's:$: $lt_compiler_flag:'`
8948    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8949    (eval "$lt_compile" 2>conftest.err)
8950    ac_status=$?
8951    cat conftest.err >&5
8952    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953    if (exit $ac_status) && test -s "$ac_outfile"; then
8954      # The compiler can only warn and ignore the option if not recognized
8955      # So say no if there are warnings other than the usual output.
8956      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8957      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8958      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8959        lt_cv_prog_compiler_rtti_exceptions=yes
8960      fi
8961    fi
8962    $RM conftest*
8963
8964 fi
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8966 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8967
8968 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8969     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8970 else
8971     :
8972 fi
8973
8974 fi
8975
8976
8977
8978
8979
8980
8981   lt_prog_compiler_wl=
8982 lt_prog_compiler_pic=
8983 lt_prog_compiler_static=
8984
8985
8986   if test "$GCC" = yes; then
8987     lt_prog_compiler_wl='-Wl,'
8988     lt_prog_compiler_static='-static'
8989
8990     case $host_os in
8991       aix*)
8992       # All AIX code is PIC.
8993       if test "$host_cpu" = ia64; then
8994         # AIX 5 now supports IA64 processor
8995         lt_prog_compiler_static='-Bstatic'
8996       fi
8997       ;;
8998
8999     amigaos*)
9000       case $host_cpu in
9001       powerpc)
9002             # see comment about AmigaOS4 .so support
9003             lt_prog_compiler_pic='-fPIC'
9004         ;;
9005       m68k)
9006             # FIXME: we need at least 68020 code to build shared libraries, but
9007             # adding the `-m68020' flag to GCC prevents building anything better,
9008             # like `-m68040'.
9009             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9010         ;;
9011       esac
9012       ;;
9013
9014     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9015       # PIC is the default for these OSes.
9016       ;;
9017
9018     mingw* | cygwin* | pw32* | os2* | cegcc*)
9019       # This hack is so that the source file can tell whether it is being
9020       # built for inclusion in a dll (and should export symbols for example).
9021       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9022       # (--disable-auto-import) libraries
9023       lt_prog_compiler_pic='-DDLL_EXPORT'
9024       ;;
9025
9026     darwin* | rhapsody*)
9027       # PIC is the default on this platform
9028       # Common symbols not allowed in MH_DYLIB files
9029       lt_prog_compiler_pic='-fno-common'
9030       ;;
9031
9032     haiku*)
9033       # PIC is the default for Haiku.
9034       # The "-static" flag exists, but is broken.
9035       lt_prog_compiler_static=
9036       ;;
9037
9038     hpux*)
9039       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9040       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9041       # sets the default TLS model and affects inlining.
9042       case $host_cpu in
9043       hppa*64*)
9044         # +Z the default
9045         ;;
9046       *)
9047         lt_prog_compiler_pic='-fPIC'
9048         ;;
9049       esac
9050       ;;
9051
9052     interix[3-9]*)
9053       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9054       # Instead, we relocate shared libraries at runtime.
9055       ;;
9056
9057     msdosdjgpp*)
9058       # Just because we use GCC doesn't mean we suddenly get shared libraries
9059       # on systems that don't support them.
9060       lt_prog_compiler_can_build_shared=no
9061       enable_shared=no
9062       ;;
9063
9064     *nto* | *qnx*)
9065       # QNX uses GNU C++, but need to define -shared option too, otherwise
9066       # it will coredump.
9067       lt_prog_compiler_pic='-fPIC -shared'
9068       ;;
9069
9070     sysv4*MP*)
9071       if test -d /usr/nec; then
9072         lt_prog_compiler_pic=-Kconform_pic
9073       fi
9074       ;;
9075
9076     *)
9077       lt_prog_compiler_pic='-fPIC'
9078       ;;
9079     esac
9080
9081     case $cc_basename in
9082     nvcc*) # Cuda Compiler Driver 2.2
9083       lt_prog_compiler_wl='-Xlinker '
9084       if test -n "$lt_prog_compiler_pic"; then
9085         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9086       fi
9087       ;;
9088     esac
9089   else
9090     # PORTME Check for flag to pass linker flags through the system compiler.
9091     case $host_os in
9092     aix*)
9093       lt_prog_compiler_wl='-Wl,'
9094       if test "$host_cpu" = ia64; then
9095         # AIX 5 now supports IA64 processor
9096         lt_prog_compiler_static='-Bstatic'
9097       else
9098         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9099       fi
9100       ;;
9101
9102     mingw* | cygwin* | pw32* | os2* | cegcc*)
9103       # This hack is so that the source file can tell whether it is being
9104       # built for inclusion in a dll (and should export symbols for example).
9105       lt_prog_compiler_pic='-DDLL_EXPORT'
9106       ;;
9107
9108     hpux9* | hpux10* | hpux11*)
9109       lt_prog_compiler_wl='-Wl,'
9110       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9111       # not for PA HP-UX.
9112       case $host_cpu in
9113       hppa*64*|ia64*)
9114         # +Z the default
9115         ;;
9116       *)
9117         lt_prog_compiler_pic='+Z'
9118         ;;
9119       esac
9120       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9121       lt_prog_compiler_static='${wl}-a ${wl}archive'
9122       ;;
9123
9124     irix5* | irix6* | nonstopux*)
9125       lt_prog_compiler_wl='-Wl,'
9126       # PIC (with -KPIC) is the default.
9127       lt_prog_compiler_static='-non_shared'
9128       ;;
9129
9130     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9131       case $cc_basename in
9132       # old Intel for x86_64 which still supported -KPIC.
9133       ecc*)
9134         lt_prog_compiler_wl='-Wl,'
9135         lt_prog_compiler_pic='-KPIC'
9136         lt_prog_compiler_static='-static'
9137         ;;
9138       # icc used to be incompatible with GCC.
9139       # ICC 10 doesn't accept -KPIC any more.
9140       icc* | ifort*)
9141         lt_prog_compiler_wl='-Wl,'
9142         lt_prog_compiler_pic='-fPIC'
9143         lt_prog_compiler_static='-static'
9144         ;;
9145       # Lahey Fortran 8.1.
9146       lf95*)
9147         lt_prog_compiler_wl='-Wl,'
9148         lt_prog_compiler_pic='--shared'
9149         lt_prog_compiler_static='--static'
9150         ;;
9151       nagfor*)
9152         # NAG Fortran compiler
9153         lt_prog_compiler_wl='-Wl,-Wl,,'
9154         lt_prog_compiler_pic='-PIC'
9155         lt_prog_compiler_static='-Bstatic'
9156         ;;
9157       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9158         # Portland Group compilers (*not* the Pentium gcc compiler,
9159         # which looks to be a dead project)
9160         lt_prog_compiler_wl='-Wl,'
9161         lt_prog_compiler_pic='-fpic'
9162         lt_prog_compiler_static='-Bstatic'
9163         ;;
9164       ccc*)
9165         lt_prog_compiler_wl='-Wl,'
9166         # All Alpha code is PIC.
9167         lt_prog_compiler_static='-non_shared'
9168         ;;
9169       xl* | bgxl* | bgf* | mpixl*)
9170         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9171         lt_prog_compiler_wl='-Wl,'
9172         lt_prog_compiler_pic='-qpic'
9173         lt_prog_compiler_static='-qstaticlink'
9174         ;;
9175       *)
9176         case `$CC -V 2>&1 | sed 5q` in
9177         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9178           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9179           lt_prog_compiler_pic='-KPIC'
9180           lt_prog_compiler_static='-Bstatic'
9181           lt_prog_compiler_wl=''
9182           ;;
9183         *Sun\ F* | *Sun*Fortran*)
9184           lt_prog_compiler_pic='-KPIC'
9185           lt_prog_compiler_static='-Bstatic'
9186           lt_prog_compiler_wl='-Qoption ld '
9187           ;;
9188         *Sun\ C*)
9189           # Sun C 5.9
9190           lt_prog_compiler_pic='-KPIC'
9191           lt_prog_compiler_static='-Bstatic'
9192           lt_prog_compiler_wl='-Wl,'
9193           ;;
9194         *Intel*\ [CF]*Compiler*)
9195           lt_prog_compiler_wl='-Wl,'
9196           lt_prog_compiler_pic='-fPIC'
9197           lt_prog_compiler_static='-static'
9198           ;;
9199         *Portland\ Group*)
9200           lt_prog_compiler_wl='-Wl,'
9201           lt_prog_compiler_pic='-fpic'
9202           lt_prog_compiler_static='-Bstatic'
9203           ;;
9204         esac
9205         ;;
9206       esac
9207       ;;
9208
9209     newsos6)
9210       lt_prog_compiler_pic='-KPIC'
9211       lt_prog_compiler_static='-Bstatic'
9212       ;;
9213
9214     *nto* | *qnx*)
9215       # QNX uses GNU C++, but need to define -shared option too, otherwise
9216       # it will coredump.
9217       lt_prog_compiler_pic='-fPIC -shared'
9218       ;;
9219
9220     osf3* | osf4* | osf5*)
9221       lt_prog_compiler_wl='-Wl,'
9222       # All OSF/1 code is PIC.
9223       lt_prog_compiler_static='-non_shared'
9224       ;;
9225
9226     rdos*)
9227       lt_prog_compiler_static='-non_shared'
9228       ;;
9229
9230     solaris*)
9231       lt_prog_compiler_pic='-KPIC'
9232       lt_prog_compiler_static='-Bstatic'
9233       case $cc_basename in
9234       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9235         lt_prog_compiler_wl='-Qoption ld ';;
9236       *)
9237         lt_prog_compiler_wl='-Wl,';;
9238       esac
9239       ;;
9240
9241     sunos4*)
9242       lt_prog_compiler_wl='-Qoption ld '
9243       lt_prog_compiler_pic='-PIC'
9244       lt_prog_compiler_static='-Bstatic'
9245       ;;
9246
9247     sysv4 | sysv4.2uw2* | sysv4.3*)
9248       lt_prog_compiler_wl='-Wl,'
9249       lt_prog_compiler_pic='-KPIC'
9250       lt_prog_compiler_static='-Bstatic'
9251       ;;
9252
9253     sysv4*MP*)
9254       if test -d /usr/nec ;then
9255         lt_prog_compiler_pic='-Kconform_pic'
9256         lt_prog_compiler_static='-Bstatic'
9257       fi
9258       ;;
9259
9260     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9261       lt_prog_compiler_wl='-Wl,'
9262       lt_prog_compiler_pic='-KPIC'
9263       lt_prog_compiler_static='-Bstatic'
9264       ;;
9265
9266     unicos*)
9267       lt_prog_compiler_wl='-Wl,'
9268       lt_prog_compiler_can_build_shared=no
9269       ;;
9270
9271     uts4*)
9272       lt_prog_compiler_pic='-pic'
9273       lt_prog_compiler_static='-Bstatic'
9274       ;;
9275
9276     *)
9277       lt_prog_compiler_can_build_shared=no
9278       ;;
9279     esac
9280   fi
9281
9282 case $host_os in
9283   # For platforms which do not support PIC, -DPIC is meaningless:
9284   *djgpp*)
9285     lt_prog_compiler_pic=
9286     ;;
9287   *)
9288     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9289     ;;
9290 esac
9291
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9293 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9294 if ${lt_cv_prog_compiler_pic+:} false; then :
9295   $as_echo_n "(cached) " >&6
9296 else
9297   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9298 fi
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9300 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9301 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9302
9303 #
9304 # Check to make sure the PIC flag actually works.
9305 #
9306 if test -n "$lt_prog_compiler_pic"; then
9307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9308 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9309 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9310   $as_echo_n "(cached) " >&6
9311 else
9312   lt_cv_prog_compiler_pic_works=no
9313    ac_outfile=conftest.$ac_objext
9314    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9315    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9316    # Insert the option either (1) after the last *FLAGS variable, or
9317    # (2) before a word containing "conftest.", or (3) at the end.
9318    # Note that $ac_compile itself does not contain backslashes and begins
9319    # with a dollar sign (not a hyphen), so the echo should work correctly.
9320    # The option is referenced via a variable to avoid confusing sed.
9321    lt_compile=`echo "$ac_compile" | $SED \
9322    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9323    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9324    -e 's:$: $lt_compiler_flag:'`
9325    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9326    (eval "$lt_compile" 2>conftest.err)
9327    ac_status=$?
9328    cat conftest.err >&5
9329    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330    if (exit $ac_status) && test -s "$ac_outfile"; then
9331      # The compiler can only warn and ignore the option if not recognized
9332      # So say no if there are warnings other than the usual output.
9333      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9334      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9335      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9336        lt_cv_prog_compiler_pic_works=yes
9337      fi
9338    fi
9339    $RM conftest*
9340
9341 fi
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9343 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9344
9345 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9346     case $lt_prog_compiler_pic in
9347      "" | " "*) ;;
9348      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9349      esac
9350 else
9351     lt_prog_compiler_pic=
9352      lt_prog_compiler_can_build_shared=no
9353 fi
9354
9355 fi
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367 #
9368 # Check to make sure the static flag actually works.
9369 #
9370 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9372 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9373 if ${lt_cv_prog_compiler_static_works+:} false; then :
9374   $as_echo_n "(cached) " >&6
9375 else
9376   lt_cv_prog_compiler_static_works=no
9377    save_LDFLAGS="$LDFLAGS"
9378    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9379    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9380    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9381      # The linker can only warn and ignore the option if not recognized
9382      # So say no if there are warnings
9383      if test -s conftest.err; then
9384        # Append any errors to the config.log.
9385        cat conftest.err 1>&5
9386        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9387        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9388        if diff conftest.exp conftest.er2 >/dev/null; then
9389          lt_cv_prog_compiler_static_works=yes
9390        fi
9391      else
9392        lt_cv_prog_compiler_static_works=yes
9393      fi
9394    fi
9395    $RM -r conftest*
9396    LDFLAGS="$save_LDFLAGS"
9397
9398 fi
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9400 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9401
9402 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9403     :
9404 else
9405     lt_prog_compiler_static=
9406 fi
9407
9408
9409
9410
9411
9412
9413
9414   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9415 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9416 if ${lt_cv_prog_compiler_c_o+:} false; then :
9417   $as_echo_n "(cached) " >&6
9418 else
9419   lt_cv_prog_compiler_c_o=no
9420    $RM -r conftest 2>/dev/null
9421    mkdir conftest
9422    cd conftest
9423    mkdir out
9424    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9425
9426    lt_compiler_flag="-o out/conftest2.$ac_objext"
9427    # Insert the option either (1) after the last *FLAGS variable, or
9428    # (2) before a word containing "conftest.", or (3) at the end.
9429    # Note that $ac_compile itself does not contain backslashes and begins
9430    # with a dollar sign (not a hyphen), so the echo should work correctly.
9431    lt_compile=`echo "$ac_compile" | $SED \
9432    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9433    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9434    -e 's:$: $lt_compiler_flag:'`
9435    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9436    (eval "$lt_compile" 2>out/conftest.err)
9437    ac_status=$?
9438    cat out/conftest.err >&5
9439    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9441    then
9442      # The compiler can only warn and ignore the option if not recognized
9443      # So say no if there are warnings
9444      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9445      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9446      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9447        lt_cv_prog_compiler_c_o=yes
9448      fi
9449    fi
9450    chmod u+w . 2>&5
9451    $RM conftest*
9452    # SGI C++ compiler will create directory out/ii_files/ for
9453    # template instantiation
9454    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9455    $RM out/* && rmdir out
9456    cd ..
9457    $RM -r conftest
9458    $RM conftest*
9459
9460 fi
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9462 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9463
9464
9465
9466
9467
9468
9469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9470 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9471 if ${lt_cv_prog_compiler_c_o+:} false; then :
9472   $as_echo_n "(cached) " >&6
9473 else
9474   lt_cv_prog_compiler_c_o=no
9475    $RM -r conftest 2>/dev/null
9476    mkdir conftest
9477    cd conftest
9478    mkdir out
9479    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9480
9481    lt_compiler_flag="-o out/conftest2.$ac_objext"
9482    # Insert the option either (1) after the last *FLAGS variable, or
9483    # (2) before a word containing "conftest.", or (3) at the end.
9484    # Note that $ac_compile itself does not contain backslashes and begins
9485    # with a dollar sign (not a hyphen), so the echo should work correctly.
9486    lt_compile=`echo "$ac_compile" | $SED \
9487    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9488    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9489    -e 's:$: $lt_compiler_flag:'`
9490    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9491    (eval "$lt_compile" 2>out/conftest.err)
9492    ac_status=$?
9493    cat out/conftest.err >&5
9494    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9496    then
9497      # The compiler can only warn and ignore the option if not recognized
9498      # So say no if there are warnings
9499      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9500      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9501      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9502        lt_cv_prog_compiler_c_o=yes
9503      fi
9504    fi
9505    chmod u+w . 2>&5
9506    $RM conftest*
9507    # SGI C++ compiler will create directory out/ii_files/ for
9508    # template instantiation
9509    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9510    $RM out/* && rmdir out
9511    cd ..
9512    $RM -r conftest
9513    $RM conftest*
9514
9515 fi
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9517 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9518
9519
9520
9521
9522 hard_links="nottested"
9523 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9524   # do not overwrite the value of need_locks provided by the user
9525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9526 $as_echo_n "checking if we can lock with hard links... " >&6; }
9527   hard_links=yes
9528   $RM conftest*
9529   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9530   touch conftest.a
9531   ln conftest.a conftest.b 2>&5 || hard_links=no
9532   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9534 $as_echo "$hard_links" >&6; }
9535   if test "$hard_links" = no; then
9536     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9537 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9538     need_locks=warn
9539   fi
9540 else
9541   need_locks=no
9542 fi
9543
9544
9545
9546
9547
9548
9549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9550 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9551
9552   runpath_var=
9553   allow_undefined_flag=
9554   always_export_symbols=no
9555   archive_cmds=
9556   archive_expsym_cmds=
9557   compiler_needs_object=no
9558   enable_shared_with_static_runtimes=no
9559   export_dynamic_flag_spec=
9560   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9561   hardcode_automatic=no
9562   hardcode_direct=no
9563   hardcode_direct_absolute=no
9564   hardcode_libdir_flag_spec=
9565   hardcode_libdir_separator=
9566   hardcode_minus_L=no
9567   hardcode_shlibpath_var=unsupported
9568   inherit_rpath=no
9569   link_all_deplibs=unknown
9570   module_cmds=
9571   module_expsym_cmds=
9572   old_archive_from_new_cmds=
9573   old_archive_from_expsyms_cmds=
9574   thread_safe_flag_spec=
9575   whole_archive_flag_spec=
9576   # include_expsyms should be a list of space-separated symbols to be *always*
9577   # included in the symbol list
9578   include_expsyms=
9579   # exclude_expsyms can be an extended regexp of symbols to exclude
9580   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9581   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9582   # as well as any symbol that contains `d'.
9583   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9584   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9585   # platforms (ab)use it in PIC code, but their linkers get confused if
9586   # the symbol is explicitly referenced.  Since portable code cannot
9587   # rely on this symbol name, it's probably fine to never include it in
9588   # preloaded symbol tables.
9589   # Exclude shared library initialization/finalization symbols.
9590   extract_expsyms_cmds=
9591
9592   case $host_os in
9593   cygwin* | mingw* | pw32* | cegcc*)
9594     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9595     # When not using gcc, we currently assume that we are using
9596     # Microsoft Visual C++.
9597     if test "$GCC" != yes; then
9598       with_gnu_ld=no
9599     fi
9600     ;;
9601   interix*)
9602     # we just hope/assume this is gcc and not c89 (= MSVC++)
9603     with_gnu_ld=yes
9604     ;;
9605   openbsd*)
9606     with_gnu_ld=no
9607     ;;
9608   linux* | k*bsd*-gnu | gnu*)
9609     link_all_deplibs=no
9610     ;;
9611   esac
9612
9613   ld_shlibs=yes
9614
9615   # On some targets, GNU ld is compatible enough with the native linker
9616   # that we're better off using the native interface for both.
9617   lt_use_gnu_ld_interface=no
9618   if test "$with_gnu_ld" = yes; then
9619     case $host_os in
9620       aix*)
9621         # The AIX port of GNU ld has always aspired to compatibility
9622         # with the native linker.  However, as the warning in the GNU ld
9623         # block says, versions before 2.19.5* couldn't really create working
9624         # shared libraries, regardless of the interface used.
9625         case `$LD -v 2>&1` in
9626           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9627           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9628           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9629           *)
9630             lt_use_gnu_ld_interface=yes
9631             ;;
9632         esac
9633         ;;
9634       *)
9635         lt_use_gnu_ld_interface=yes
9636         ;;
9637     esac
9638   fi
9639
9640   if test "$lt_use_gnu_ld_interface" = yes; then
9641     # If archive_cmds runs LD, not CC, wlarc should be empty
9642     wlarc='${wl}'
9643
9644     # Set some defaults for GNU ld with shared library support. These
9645     # are reset later if shared libraries are not supported. Putting them
9646     # here allows them to be overridden if necessary.
9647     runpath_var=LD_RUN_PATH
9648     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9649     export_dynamic_flag_spec='${wl}--export-dynamic'
9650     # ancient GNU ld didn't support --whole-archive et. al.
9651     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9652       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9653     else
9654       whole_archive_flag_spec=
9655     fi
9656     supports_anon_versioning=no
9657     case `$LD -v 2>&1` in
9658       *GNU\ gold*) supports_anon_versioning=yes ;;
9659       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9660       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9661       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9662       *\ 2.11.*) ;; # other 2.11 versions
9663       *) supports_anon_versioning=yes ;;
9664     esac
9665
9666     # See if GNU ld supports shared libraries.
9667     case $host_os in
9668     aix[3-9]*)
9669       # On AIX/PPC, the GNU linker is very broken
9670       if test "$host_cpu" != ia64; then
9671         ld_shlibs=no
9672         cat <<_LT_EOF 1>&2
9673
9674 *** Warning: the GNU linker, at least up to release 2.19, is reported
9675 *** to be unable to reliably create shared libraries on AIX.
9676 *** Therefore, libtool is disabling shared libraries support.  If you
9677 *** really care for shared libraries, you may want to install binutils
9678 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9679 *** You will then need to restart the configuration process.
9680
9681 _LT_EOF
9682       fi
9683       ;;
9684
9685     amigaos*)
9686       case $host_cpu in
9687       powerpc)
9688             # see comment about AmigaOS4 .so support
9689             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9690             archive_expsym_cmds=''
9691         ;;
9692       m68k)
9693             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)'
9694             hardcode_libdir_flag_spec='-L$libdir'
9695             hardcode_minus_L=yes
9696         ;;
9697       esac
9698       ;;
9699
9700     beos*)
9701       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9702         allow_undefined_flag=unsupported
9703         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9704         # support --undefined.  This deserves some investigation.  FIXME
9705         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9706       else
9707         ld_shlibs=no
9708       fi
9709       ;;
9710
9711     cygwin* | mingw* | pw32* | cegcc*)
9712       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9713       # as there is no search path for DLLs.
9714       hardcode_libdir_flag_spec='-L$libdir'
9715       export_dynamic_flag_spec='${wl}--export-all-symbols'
9716       allow_undefined_flag=unsupported
9717       always_export_symbols=no
9718       enable_shared_with_static_runtimes=yes
9719       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'
9720       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9721
9722       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9723         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9724         # If the export-symbols file already is a .def file (1st line
9725         # is EXPORTS), use it as is; otherwise, prepend...
9726         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9727           cp $export_symbols $output_objdir/$soname.def;
9728         else
9729           echo EXPORTS > $output_objdir/$soname.def;
9730           cat $export_symbols >> $output_objdir/$soname.def;
9731         fi~
9732         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9733       else
9734         ld_shlibs=no
9735       fi
9736       ;;
9737
9738     haiku*)
9739       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9740       link_all_deplibs=yes
9741       ;;
9742
9743     interix[3-9]*)
9744       hardcode_direct=no
9745       hardcode_shlibpath_var=no
9746       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9747       export_dynamic_flag_spec='${wl}-E'
9748       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9749       # Instead, shared libraries are loaded at an image base (0x10000000 by
9750       # default) and relocated if they conflict, which is a slow very memory
9751       # consuming and fragmenting process.  To avoid this, we pick a random,
9752       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9753       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9754       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9755       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'
9756       ;;
9757
9758     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9759       tmp_diet=no
9760       if test "$host_os" = linux-dietlibc; then
9761         case $cc_basename in
9762           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9763         esac
9764       fi
9765       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9766          && test "$tmp_diet" = no
9767       then
9768         tmp_addflag=' $pic_flag'
9769         tmp_sharedflag='-shared'
9770         case $cc_basename,$host_cpu in
9771         pgcc*)                          # Portland Group C compiler
9772           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'
9773           tmp_addflag=' $pic_flag'
9774           ;;
9775         pgf77* | pgf90* | pgf95* | pgfortran*)
9776                                         # Portland Group f77 and f90 compilers
9777           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'
9778           tmp_addflag=' $pic_flag -Mnomain' ;;
9779         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9780           tmp_addflag=' -i_dynamic' ;;
9781         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9782           tmp_addflag=' -i_dynamic -nofor_main' ;;
9783         ifc* | ifort*)                  # Intel Fortran compiler
9784           tmp_addflag=' -nofor_main' ;;
9785         lf95*)                          # Lahey Fortran 8.1
9786           whole_archive_flag_spec=
9787           tmp_sharedflag='--shared' ;;
9788         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9789           tmp_sharedflag='-qmkshrobj'
9790           tmp_addflag= ;;
9791         nvcc*)  # Cuda Compiler Driver 2.2
9792           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'
9793           compiler_needs_object=yes
9794           ;;
9795         esac
9796         case `$CC -V 2>&1 | sed 5q` in
9797         *Sun\ C*)                       # Sun C 5.9
9798           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'
9799           compiler_needs_object=yes
9800           tmp_sharedflag='-G' ;;
9801         *Sun\ F*)                       # Sun Fortran 8.3
9802           tmp_sharedflag='-G' ;;
9803         esac
9804         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9805
9806         if test "x$supports_anon_versioning" = xyes; then
9807           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9808             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9809             echo "local: *; };" >> $output_objdir/$libname.ver~
9810             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9811         fi
9812
9813         case $cc_basename in
9814         xlf* | bgf* | bgxlf* | mpixlf*)
9815           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9816           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9817           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9818           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9819           if test "x$supports_anon_versioning" = xyes; then
9820             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9821               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9822               echo "local: *; };" >> $output_objdir/$libname.ver~
9823               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9824           fi
9825           ;;
9826         esac
9827       else
9828         ld_shlibs=no
9829       fi
9830       ;;
9831
9832     netbsd* | netbsdelf*-gnu)
9833       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9834         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9835         wlarc=
9836       else
9837         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9838         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9839       fi
9840       ;;
9841
9842     solaris*)
9843       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9844         ld_shlibs=no
9845         cat <<_LT_EOF 1>&2
9846
9847 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9848 *** create shared libraries on Solaris systems.  Therefore, libtool
9849 *** is disabling shared libraries support.  We urge you to upgrade GNU
9850 *** binutils to release 2.9.1 or newer.  Another option is to modify
9851 *** your PATH or compiler configuration so that the native linker is
9852 *** used, and then restart.
9853
9854 _LT_EOF
9855       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9856         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9857         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9858       else
9859         ld_shlibs=no
9860       fi
9861       ;;
9862
9863     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9864       case `$LD -v 2>&1` in
9865         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9866         ld_shlibs=no
9867         cat <<_LT_EOF 1>&2
9868
9869 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9870 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9871 *** is disabling shared libraries support.  We urge you to upgrade GNU
9872 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9873 *** your PATH or compiler configuration so that the native linker is
9874 *** used, and then restart.
9875
9876 _LT_EOF
9877         ;;
9878         *)
9879           # For security reasons, it is highly recommended that you always
9880           # use absolute paths for naming shared libraries, and exclude the
9881           # DT_RUNPATH tag from executables and libraries.  But doing so
9882           # requires that you compile everything twice, which is a pain.
9883           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9884             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9885             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9886             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9887           else
9888             ld_shlibs=no
9889           fi
9890         ;;
9891       esac
9892       ;;
9893
9894     sunos4*)
9895       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9896       wlarc=
9897       hardcode_direct=yes
9898       hardcode_shlibpath_var=no
9899       ;;
9900
9901     *)
9902       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9903         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9904         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9905       else
9906         ld_shlibs=no
9907       fi
9908       ;;
9909     esac
9910
9911     if test "$ld_shlibs" = no; then
9912       runpath_var=
9913       hardcode_libdir_flag_spec=
9914       export_dynamic_flag_spec=
9915       whole_archive_flag_spec=
9916     fi
9917   else
9918     # PORTME fill in a description of your system's linker (not GNU ld)
9919     case $host_os in
9920     aix3*)
9921       allow_undefined_flag=unsupported
9922       always_export_symbols=yes
9923       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'
9924       # Note: this linker hardcodes the directories in LIBPATH if there
9925       # are no directories specified by -L.
9926       hardcode_minus_L=yes
9927       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9928         # Neither direct hardcoding nor static linking is supported with a
9929         # broken collect2.
9930         hardcode_direct=unsupported
9931       fi
9932       ;;
9933
9934     aix[4-9]*)
9935       if test "$host_cpu" = ia64; then
9936         # On IA64, the linker does run time linking by default, so we don't
9937         # have to do anything special.
9938         aix_use_runtimelinking=no
9939         exp_sym_flag='-Bexport'
9940         no_entry_flag=""
9941       else
9942         # If we're using GNU nm, then we don't want the "-C" option.
9943         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9944         # Also, AIX nm treats weak defined symbols like other global
9945         # defined symbols, whereas GNU nm marks them as "W".
9946         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9947           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'
9948         else
9949           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'
9950         fi
9951         aix_use_runtimelinking=no
9952
9953         # Test if we are trying to use run time linking or normal
9954         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9955         # need to do runtime linking.
9956         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9957           for ld_flag in $LDFLAGS; do
9958           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9959             aix_use_runtimelinking=yes
9960             break
9961           fi
9962           done
9963           ;;
9964         esac
9965
9966         exp_sym_flag='-bexport'
9967         no_entry_flag='-bnoentry'
9968       fi
9969
9970       # When large executables or shared objects are built, AIX ld can
9971       # have problems creating the table of contents.  If linking a library
9972       # or program results in "error TOC overflow" add -mminimal-toc to
9973       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9974       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9975
9976       archive_cmds=''
9977       hardcode_direct=yes
9978       hardcode_direct_absolute=yes
9979       hardcode_libdir_separator=':'
9980       link_all_deplibs=yes
9981       file_list_spec='${wl}-f,'
9982
9983       if test "$GCC" = yes; then
9984         case $host_os in aix4.[012]|aix4.[012].*)
9985         # We only want to do this on AIX 4.2 and lower, the check
9986         # below for broken collect2 doesn't work under 4.3+
9987           collect2name=`${CC} -print-prog-name=collect2`
9988           if test -f "$collect2name" &&
9989            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9990           then
9991           # We have reworked collect2
9992           :
9993           else
9994           # We have old collect2
9995           hardcode_direct=unsupported
9996           # It fails to find uninstalled libraries when the uninstalled
9997           # path is not listed in the libpath.  Setting hardcode_minus_L
9998           # to unsupported forces relinking
9999           hardcode_minus_L=yes
10000           hardcode_libdir_flag_spec='-L$libdir'
10001           hardcode_libdir_separator=
10002           fi
10003           ;;
10004         esac
10005         shared_flag='-shared'
10006         if test "$aix_use_runtimelinking" = yes; then
10007           shared_flag="$shared_flag "'${wl}-G'
10008         fi
10009         link_all_deplibs=no
10010       else
10011         # not using gcc
10012         if test "$host_cpu" = ia64; then
10013         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10014         # chokes on -Wl,-G. The following line is correct:
10015           shared_flag='-G'
10016         else
10017           if test "$aix_use_runtimelinking" = yes; then
10018             shared_flag='${wl}-G'
10019           else
10020             shared_flag='${wl}-bM:SRE'
10021           fi
10022         fi
10023       fi
10024
10025       export_dynamic_flag_spec='${wl}-bexpall'
10026       # It seems that -bexpall does not export symbols beginning with
10027       # underscore (_), so it is better to generate a list of symbols to export.
10028       always_export_symbols=yes
10029       if test "$aix_use_runtimelinking" = yes; then
10030         # Warning - without using the other runtime loading flags (-brtl),
10031         # -berok will link without error, but may produce a broken library.
10032         allow_undefined_flag='-berok'
10033         # Determine the default libpath from the value encoded in an
10034         # empty executable.
10035         if test "${lt_cv_aix_libpath+set}" = set; then
10036   aix_libpath=$lt_cv_aix_libpath
10037 else
10038   if ${lt_cv_aix_libpath_+:} false; then :
10039   $as_echo_n "(cached) " >&6
10040 else
10041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10042 /* end confdefs.h.  */
10043
10044 int
10045 main ()
10046 {
10047
10048   ;
10049   return 0;
10050 }
10051 _ACEOF
10052 if ac_fn_c_try_link "$LINENO"; then :
10053
10054   lt_aix_libpath_sed='
10055       /Import File Strings/,/^$/ {
10056           /^0/ {
10057               s/^0  *\([^ ]*\) *$/\1/
10058               p
10059           }
10060       }'
10061   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10062   # Check for a 64-bit object if we didn't find anything.
10063   if test -z "$lt_cv_aix_libpath_"; then
10064     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10065   fi
10066 fi
10067 rm -f core conftest.err conftest.$ac_objext \
10068     conftest$ac_exeext conftest.$ac_ext
10069   if test -z "$lt_cv_aix_libpath_"; then
10070     lt_cv_aix_libpath_="/usr/lib:/lib"
10071   fi
10072
10073 fi
10074
10075   aix_libpath=$lt_cv_aix_libpath_
10076 fi
10077
10078         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10079         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"
10080       else
10081         if test "$host_cpu" = ia64; then
10082           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10083           allow_undefined_flag="-z nodefs"
10084           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"
10085         else
10086          # Determine the default libpath from the value encoded in an
10087          # empty executable.
10088          if test "${lt_cv_aix_libpath+set}" = set; then
10089   aix_libpath=$lt_cv_aix_libpath
10090 else
10091   if ${lt_cv_aix_libpath_+:} false; then :
10092   $as_echo_n "(cached) " >&6
10093 else
10094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10095 /* end confdefs.h.  */
10096
10097 int
10098 main ()
10099 {
10100
10101   ;
10102   return 0;
10103 }
10104 _ACEOF
10105 if ac_fn_c_try_link "$LINENO"; then :
10106
10107   lt_aix_libpath_sed='
10108       /Import File Strings/,/^$/ {
10109           /^0/ {
10110               s/^0  *\([^ ]*\) *$/\1/
10111               p
10112           }
10113       }'
10114   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10115   # Check for a 64-bit object if we didn't find anything.
10116   if test -z "$lt_cv_aix_libpath_"; then
10117     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10118   fi
10119 fi
10120 rm -f core conftest.err conftest.$ac_objext \
10121     conftest$ac_exeext conftest.$ac_ext
10122   if test -z "$lt_cv_aix_libpath_"; then
10123     lt_cv_aix_libpath_="/usr/lib:/lib"
10124   fi
10125
10126 fi
10127
10128   aix_libpath=$lt_cv_aix_libpath_
10129 fi
10130
10131          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10132           # Warning - without using the other run time loading flags,
10133           # -berok will link without error, but may produce a broken library.
10134           no_undefined_flag=' ${wl}-bernotok'
10135           allow_undefined_flag=' ${wl}-berok'
10136           if test "$with_gnu_ld" = yes; then
10137             # We only use this code for GNU lds that support --whole-archive.
10138             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10139           else
10140             # Exported symbols can be pulled into shared objects from archives
10141             whole_archive_flag_spec='$convenience'
10142           fi
10143           archive_cmds_need_lc=yes
10144           # This is similar to how AIX traditionally builds its shared libraries.
10145           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'
10146         fi
10147       fi
10148       ;;
10149
10150     amigaos*)
10151       case $host_cpu in
10152       powerpc)
10153             # see comment about AmigaOS4 .so support
10154             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10155             archive_expsym_cmds=''
10156         ;;
10157       m68k)
10158             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)'
10159             hardcode_libdir_flag_spec='-L$libdir'
10160             hardcode_minus_L=yes
10161         ;;
10162       esac
10163       ;;
10164
10165     bsdi[45]*)
10166       export_dynamic_flag_spec=-rdynamic
10167       ;;
10168
10169     cygwin* | mingw* | pw32* | cegcc*)
10170       # When not using gcc, we currently assume that we are using
10171       # Microsoft Visual C++.
10172       # hardcode_libdir_flag_spec is actually meaningless, as there is
10173       # no search path for DLLs.
10174       case $cc_basename in
10175       cl*)
10176         # Native MSVC
10177         hardcode_libdir_flag_spec=' '
10178         allow_undefined_flag=unsupported
10179         always_export_symbols=yes
10180         file_list_spec='@'
10181         # Tell ltmain to make .lib files, not .a files.
10182         libext=lib
10183         # Tell ltmain to make .dll files, not .so files.
10184         shrext_cmds=".dll"
10185         # FIXME: Setting linknames here is a bad hack.
10186         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10187         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10188             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10189           else
10190             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10191           fi~
10192           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10193           linknames='
10194         # The linker will not automatically build a static lib if we build a DLL.
10195         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10196         enable_shared_with_static_runtimes=yes
10197         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10198         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10199         # Don't use ranlib
10200         old_postinstall_cmds='chmod 644 $oldlib'
10201         postlink_cmds='lt_outputfile="@OUTPUT@"~
10202           lt_tool_outputfile="@TOOL_OUTPUT@"~
10203           case $lt_outputfile in
10204             *.exe|*.EXE) ;;
10205             *)
10206               lt_outputfile="$lt_outputfile.exe"
10207               lt_tool_outputfile="$lt_tool_outputfile.exe"
10208               ;;
10209           esac~
10210           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10211             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10212             $RM "$lt_outputfile.manifest";
10213           fi'
10214         ;;
10215       *)
10216         # Assume MSVC wrapper
10217         hardcode_libdir_flag_spec=' '
10218         allow_undefined_flag=unsupported
10219         # Tell ltmain to make .lib files, not .a files.
10220         libext=lib
10221         # Tell ltmain to make .dll files, not .so files.
10222         shrext_cmds=".dll"
10223         # FIXME: Setting linknames here is a bad hack.
10224         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10225         # The linker will automatically build a .lib file if we build a DLL.
10226         old_archive_from_new_cmds='true'
10227         # FIXME: Should let the user specify the lib program.
10228         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10229         enable_shared_with_static_runtimes=yes
10230         ;;
10231       esac
10232       ;;
10233
10234     darwin* | rhapsody*)
10235
10236
10237   archive_cmds_need_lc=no
10238   hardcode_direct=no
10239   hardcode_automatic=yes
10240   hardcode_shlibpath_var=unsupported
10241   if test "$lt_cv_ld_force_load" = "yes"; then
10242     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\"`'
10243
10244   else
10245     whole_archive_flag_spec=''
10246   fi
10247   link_all_deplibs=yes
10248   allow_undefined_flag="$_lt_dar_allow_undefined"
10249   case $cc_basename in
10250      ifort*) _lt_dar_can_shared=yes ;;
10251      *) _lt_dar_can_shared=$GCC ;;
10252   esac
10253   if test "$_lt_dar_can_shared" = "yes"; then
10254     output_verbose_link_cmd=func_echo_all
10255     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10256     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10257     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}"
10258     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}"
10259
10260   else
10261   ld_shlibs=no
10262   fi
10263
10264       ;;
10265
10266     dgux*)
10267       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10268       hardcode_libdir_flag_spec='-L$libdir'
10269       hardcode_shlibpath_var=no
10270       ;;
10271
10272     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10273     # support.  Future versions do this automatically, but an explicit c++rt0.o
10274     # does not break anything, and helps significantly (at the cost of a little
10275     # extra space).
10276     freebsd2.2*)
10277       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10278       hardcode_libdir_flag_spec='-R$libdir'
10279       hardcode_direct=yes
10280       hardcode_shlibpath_var=no
10281       ;;
10282
10283     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10284     freebsd2.*)
10285       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10286       hardcode_direct=yes
10287       hardcode_minus_L=yes
10288       hardcode_shlibpath_var=no
10289       ;;
10290
10291     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10292     freebsd* | dragonfly*)
10293       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10294       hardcode_libdir_flag_spec='-R$libdir'
10295       hardcode_direct=yes
10296       hardcode_shlibpath_var=no
10297       ;;
10298
10299     hpux9*)
10300       if test "$GCC" = yes; then
10301         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'
10302       else
10303         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'
10304       fi
10305       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10306       hardcode_libdir_separator=:
10307       hardcode_direct=yes
10308
10309       # hardcode_minus_L: Not really in the search PATH,
10310       # but as the default location of the library.
10311       hardcode_minus_L=yes
10312       export_dynamic_flag_spec='${wl}-E'
10313       ;;
10314
10315     hpux10*)
10316       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10317         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10318       else
10319         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10320       fi
10321       if test "$with_gnu_ld" = no; then
10322         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10323         hardcode_libdir_separator=:
10324         hardcode_direct=yes
10325         hardcode_direct_absolute=yes
10326         export_dynamic_flag_spec='${wl}-E'
10327         # hardcode_minus_L: Not really in the search PATH,
10328         # but as the default location of the library.
10329         hardcode_minus_L=yes
10330       fi
10331       ;;
10332
10333     hpux11*)
10334       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10335         case $host_cpu in
10336         hppa*64*)
10337           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10338           ;;
10339         ia64*)
10340           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10341           ;;
10342         *)
10343           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10344           ;;
10345         esac
10346       else
10347         case $host_cpu in
10348         hppa*64*)
10349           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10350           ;;
10351         ia64*)
10352           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10353           ;;
10354         *)
10355
10356           # Older versions of the 11.00 compiler do not understand -b yet
10357           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10358           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10359 $as_echo_n "checking if $CC understands -b... " >&6; }
10360 if ${lt_cv_prog_compiler__b+:} false; then :
10361   $as_echo_n "(cached) " >&6
10362 else
10363   lt_cv_prog_compiler__b=no
10364    save_LDFLAGS="$LDFLAGS"
10365    LDFLAGS="$LDFLAGS -b"
10366    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10367    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10368      # The linker can only warn and ignore the option if not recognized
10369      # So say no if there are warnings
10370      if test -s conftest.err; then
10371        # Append any errors to the config.log.
10372        cat conftest.err 1>&5
10373        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10374        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10375        if diff conftest.exp conftest.er2 >/dev/null; then
10376          lt_cv_prog_compiler__b=yes
10377        fi
10378      else
10379        lt_cv_prog_compiler__b=yes
10380      fi
10381    fi
10382    $RM -r conftest*
10383    LDFLAGS="$save_LDFLAGS"
10384
10385 fi
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10387 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10388
10389 if test x"$lt_cv_prog_compiler__b" = xyes; then
10390     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10391 else
10392     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10393 fi
10394
10395           ;;
10396         esac
10397       fi
10398       if test "$with_gnu_ld" = no; then
10399         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10400         hardcode_libdir_separator=:
10401
10402         case $host_cpu in
10403         hppa*64*|ia64*)
10404           hardcode_direct=no
10405           hardcode_shlibpath_var=no
10406           ;;
10407         *)
10408           hardcode_direct=yes
10409           hardcode_direct_absolute=yes
10410           export_dynamic_flag_spec='${wl}-E'
10411
10412           # hardcode_minus_L: Not really in the search PATH,
10413           # but as the default location of the library.
10414           hardcode_minus_L=yes
10415           ;;
10416         esac
10417       fi
10418       ;;
10419
10420     irix5* | irix6* | nonstopux*)
10421       if test "$GCC" = yes; then
10422         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'
10423         # Try to use the -exported_symbol ld option, if it does not
10424         # work, assume that -exports_file does not work either and
10425         # implicitly export all symbols.
10426         # This should be the same for all languages, so no per-tag cache variable.
10427         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10428 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10429 if ${lt_cv_irix_exported_symbol+:} false; then :
10430   $as_echo_n "(cached) " >&6
10431 else
10432   save_LDFLAGS="$LDFLAGS"
10433            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10434            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435 /* end confdefs.h.  */
10436 int foo (void) { return 0; }
10437 _ACEOF
10438 if ac_fn_c_try_link "$LINENO"; then :
10439   lt_cv_irix_exported_symbol=yes
10440 else
10441   lt_cv_irix_exported_symbol=no
10442 fi
10443 rm -f core conftest.err conftest.$ac_objext \
10444     conftest$ac_exeext conftest.$ac_ext
10445            LDFLAGS="$save_LDFLAGS"
10446 fi
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10448 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10449         if test "$lt_cv_irix_exported_symbol" = yes; then
10450           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'
10451         fi
10452       else
10453         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'
10454         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'
10455       fi
10456       archive_cmds_need_lc='no'
10457       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10458       hardcode_libdir_separator=:
10459       inherit_rpath=yes
10460       link_all_deplibs=yes
10461       ;;
10462
10463     netbsd* | netbsdelf*-gnu)
10464       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10465         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10466       else
10467         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10468       fi
10469       hardcode_libdir_flag_spec='-R$libdir'
10470       hardcode_direct=yes
10471       hardcode_shlibpath_var=no
10472       ;;
10473
10474     newsos6)
10475       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10476       hardcode_direct=yes
10477       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10478       hardcode_libdir_separator=:
10479       hardcode_shlibpath_var=no
10480       ;;
10481
10482     *nto* | *qnx*)
10483       ;;
10484
10485     openbsd*)
10486       if test -f /usr/libexec/ld.so; then
10487         hardcode_direct=yes
10488         hardcode_shlibpath_var=no
10489         hardcode_direct_absolute=yes
10490         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10491           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10492           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10493           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10494           export_dynamic_flag_spec='${wl}-E'
10495         else
10496           case $host_os in
10497            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10498              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10499              hardcode_libdir_flag_spec='-R$libdir'
10500              ;;
10501            *)
10502              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10503              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10504              ;;
10505           esac
10506         fi
10507       else
10508         ld_shlibs=no
10509       fi
10510       ;;
10511
10512     os2*)
10513       hardcode_libdir_flag_spec='-L$libdir'
10514       hardcode_minus_L=yes
10515       allow_undefined_flag=unsupported
10516       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'
10517       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10518       ;;
10519
10520     osf3*)
10521       if test "$GCC" = yes; then
10522         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10523         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'
10524       else
10525         allow_undefined_flag=' -expect_unresolved \*'
10526         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'
10527       fi
10528       archive_cmds_need_lc='no'
10529       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10530       hardcode_libdir_separator=:
10531       ;;
10532
10533     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10534       if test "$GCC" = yes; then
10535         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10536         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'
10537         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10538       else
10539         allow_undefined_flag=' -expect_unresolved \*'
10540         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'
10541         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~
10542         $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'
10543
10544         # Both c and cxx compiler support -rpath directly
10545         hardcode_libdir_flag_spec='-rpath $libdir'
10546       fi
10547       archive_cmds_need_lc='no'
10548       hardcode_libdir_separator=:
10549       ;;
10550
10551     solaris*)
10552       no_undefined_flag=' -z defs'
10553       if test "$GCC" = yes; then
10554         wlarc='${wl}'
10555         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10556         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10557           $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'
10558       else
10559         case `$CC -V 2>&1` in
10560         *"Compilers 5.0"*)
10561           wlarc=''
10562           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10563           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10564           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10565           ;;
10566         *)
10567           wlarc='${wl}'
10568           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10569           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10570           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10571           ;;
10572         esac
10573       fi
10574       hardcode_libdir_flag_spec='-R$libdir'
10575       hardcode_shlibpath_var=no
10576       case $host_os in
10577       solaris2.[0-5] | solaris2.[0-5].*) ;;
10578       *)
10579         # The compiler driver will combine and reorder linker options,
10580         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10581         # but is careful enough not to reorder.
10582         # Supported since Solaris 2.6 (maybe 2.5.1?)
10583         if test "$GCC" = yes; then
10584           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10585         else
10586           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10587         fi
10588         ;;
10589       esac
10590       link_all_deplibs=yes
10591       ;;
10592
10593     sunos4*)
10594       if test "x$host_vendor" = xsequent; then
10595         # Use $CC to link under sequent, because it throws in some extra .o
10596         # files that make .init and .fini sections work.
10597         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10598       else
10599         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10600       fi
10601       hardcode_libdir_flag_spec='-L$libdir'
10602       hardcode_direct=yes
10603       hardcode_minus_L=yes
10604       hardcode_shlibpath_var=no
10605       ;;
10606
10607     sysv4)
10608       case $host_vendor in
10609         sni)
10610           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10611           hardcode_direct=yes # is this really true???
10612         ;;
10613         siemens)
10614           ## LD is ld it makes a PLAMLIB
10615           ## CC just makes a GrossModule.
10616           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10617           reload_cmds='$CC -r -o $output$reload_objs'
10618           hardcode_direct=no
10619         ;;
10620         motorola)
10621           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10622           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10623         ;;
10624       esac
10625       runpath_var='LD_RUN_PATH'
10626       hardcode_shlibpath_var=no
10627       ;;
10628
10629     sysv4.3*)
10630       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10631       hardcode_shlibpath_var=no
10632       export_dynamic_flag_spec='-Bexport'
10633       ;;
10634
10635     sysv4*MP*)
10636       if test -d /usr/nec; then
10637         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10638         hardcode_shlibpath_var=no
10639         runpath_var=LD_RUN_PATH
10640         hardcode_runpath_var=yes
10641         ld_shlibs=yes
10642       fi
10643       ;;
10644
10645     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10646       no_undefined_flag='${wl}-z,text'
10647       archive_cmds_need_lc=no
10648       hardcode_shlibpath_var=no
10649       runpath_var='LD_RUN_PATH'
10650
10651       if test "$GCC" = yes; then
10652         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10653         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10654       else
10655         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10656         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10657       fi
10658       ;;
10659
10660     sysv5* | sco3.2v5* | sco5v6*)
10661       # Note: We can NOT use -z defs as we might desire, because we do not
10662       # link with -lc, and that would cause any symbols used from libc to
10663       # always be unresolved, which means just about no library would
10664       # ever link correctly.  If we're not using GNU ld we use -z text
10665       # though, which does catch some bad symbols but isn't as heavy-handed
10666       # as -z defs.
10667       no_undefined_flag='${wl}-z,text'
10668       allow_undefined_flag='${wl}-z,nodefs'
10669       archive_cmds_need_lc=no
10670       hardcode_shlibpath_var=no
10671       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10672       hardcode_libdir_separator=':'
10673       link_all_deplibs=yes
10674       export_dynamic_flag_spec='${wl}-Bexport'
10675       runpath_var='LD_RUN_PATH'
10676
10677       if test "$GCC" = yes; then
10678         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10679         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10680       else
10681         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10682         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10683       fi
10684       ;;
10685
10686     uts4*)
10687       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10688       hardcode_libdir_flag_spec='-L$libdir'
10689       hardcode_shlibpath_var=no
10690       ;;
10691
10692     *)
10693       ld_shlibs=no
10694       ;;
10695     esac
10696
10697     if test x$host_vendor = xsni; then
10698       case $host in
10699       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10700         export_dynamic_flag_spec='${wl}-Blargedynsym'
10701         ;;
10702       esac
10703     fi
10704   fi
10705
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10707 $as_echo "$ld_shlibs" >&6; }
10708 test "$ld_shlibs" = no && can_build_shared=no
10709
10710 with_gnu_ld=$with_gnu_ld
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726 #
10727 # Do we need to explicitly link libc?
10728 #
10729 case "x$archive_cmds_need_lc" in
10730 x|xyes)
10731   # Assume -lc should be added
10732   archive_cmds_need_lc=yes
10733
10734   if test "$enable_shared" = yes && test "$GCC" = yes; then
10735     case $archive_cmds in
10736     *'~'*)
10737       # FIXME: we may have to deal with multi-command sequences.
10738       ;;
10739     '$CC '*)
10740       # Test whether the compiler implicitly links with -lc since on some
10741       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10742       # to ld, don't add -lc before -lgcc.
10743       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10744 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10745 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10746   $as_echo_n "(cached) " >&6
10747 else
10748   $RM conftest*
10749         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10750
10751         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10752   (eval $ac_compile) 2>&5
10753   ac_status=$?
10754   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10755   test $ac_status = 0; } 2>conftest.err; then
10756           soname=conftest
10757           lib=conftest
10758           libobjs=conftest.$ac_objext
10759           deplibs=
10760           wl=$lt_prog_compiler_wl
10761           pic_flag=$lt_prog_compiler_pic
10762           compiler_flags=-v
10763           linker_flags=-v
10764           verstring=
10765           output_objdir=.
10766           libname=conftest
10767           lt_save_allow_undefined_flag=$allow_undefined_flag
10768           allow_undefined_flag=
10769           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10770   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10771   ac_status=$?
10772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10773   test $ac_status = 0; }
10774           then
10775             lt_cv_archive_cmds_need_lc=no
10776           else
10777             lt_cv_archive_cmds_need_lc=yes
10778           fi
10779           allow_undefined_flag=$lt_save_allow_undefined_flag
10780         else
10781           cat conftest.err 1>&5
10782         fi
10783         $RM conftest*
10784
10785 fi
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10787 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10788       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10789       ;;
10790     esac
10791   fi
10792   ;;
10793 esac
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
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10947 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10948
10949 if test "$GCC" = yes; then
10950   case $host_os in
10951     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10952     *) lt_awk_arg="/^libraries:/" ;;
10953   esac
10954   case $host_os in
10955     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10956     *) lt_sed_strip_eq="s,=/,/,g" ;;
10957   esac
10958   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10959   case $lt_search_path_spec in
10960   *\;*)
10961     # if the path contains ";" then we assume it to be the separator
10962     # otherwise default to the standard path separator (i.e. ":") - it is
10963     # assumed that no part of a normal pathname contains ";" but that should
10964     # okay in the real world where ";" in dirpaths is itself problematic.
10965     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10966     ;;
10967   *)
10968     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10969     ;;
10970   esac
10971   # Ok, now we have the path, separated by spaces, we can step through it
10972   # and add multilib dir if necessary.
10973   lt_tmp_lt_search_path_spec=
10974   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10975   for lt_sys_path in $lt_search_path_spec; do
10976     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10977       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10978     else
10979       test -d "$lt_sys_path" && \
10980         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10981     fi
10982   done
10983   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10984 BEGIN {RS=" "; FS="/|\n";} {
10985   lt_foo="";
10986   lt_count=0;
10987   for (lt_i = NF; lt_i > 0; lt_i--) {
10988     if ($lt_i != "" && $lt_i != ".") {
10989       if ($lt_i == "..") {
10990         lt_count++;
10991       } else {
10992         if (lt_count == 0) {
10993           lt_foo="/" $lt_i lt_foo;
10994         } else {
10995           lt_count--;
10996         }
10997       }
10998     }
10999   }
11000   if (lt_foo != "") { lt_freq[lt_foo]++; }
11001   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11002 }'`
11003   # AWK program above erroneously prepends '/' to C:/dos/paths
11004   # for these hosts.
11005   case $host_os in
11006     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11007       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11008   esac
11009   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11010 else
11011   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11012 fi
11013 library_names_spec=
11014 libname_spec='lib$name'
11015 soname_spec=
11016 shrext_cmds=".so"
11017 postinstall_cmds=
11018 postuninstall_cmds=
11019 finish_cmds=
11020 finish_eval=
11021 shlibpath_var=
11022 shlibpath_overrides_runpath=unknown
11023 version_type=none
11024 dynamic_linker="$host_os ld.so"
11025 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11026 need_lib_prefix=unknown
11027 hardcode_into_libs=no
11028
11029 # when you set need_version to no, make sure it does not cause -set_version
11030 # flags to be left without arguments
11031 need_version=unknown
11032
11033 case $host_os in
11034 aix3*)
11035   version_type=linux # correct to gnu/linux during the next big refactor
11036   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11037   shlibpath_var=LIBPATH
11038
11039   # AIX 3 has no versioning support, so we append a major version to the name.
11040   soname_spec='${libname}${release}${shared_ext}$major'
11041   ;;
11042
11043 aix[4-9]*)
11044   version_type=linux # correct to gnu/linux during the next big refactor
11045   need_lib_prefix=no
11046   need_version=no
11047   hardcode_into_libs=yes
11048   if test "$host_cpu" = ia64; then
11049     # AIX 5 supports IA64
11050     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11051     shlibpath_var=LD_LIBRARY_PATH
11052   else
11053     # With GCC up to 2.95.x, collect2 would create an import file
11054     # for dependence libraries.  The import file would start with
11055     # the line `#! .'.  This would cause the generated library to
11056     # depend on `.', always an invalid library.  This was fixed in
11057     # development snapshots of GCC prior to 3.0.
11058     case $host_os in
11059       aix4 | aix4.[01] | aix4.[01].*)
11060       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11061            echo ' yes '
11062            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11063         :
11064       else
11065         can_build_shared=no
11066       fi
11067       ;;
11068     esac
11069     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11070     # soname into executable. Probably we can add versioning support to
11071     # collect2, so additional links can be useful in future.
11072     if test "$aix_use_runtimelinking" = yes; then
11073       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11074       # instead of lib<name>.a to let people know that these are not
11075       # typical AIX shared libraries.
11076       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11077     else
11078       # We preserve .a as extension for shared libraries through AIX4.2
11079       # and later when we are not doing run time linking.
11080       library_names_spec='${libname}${release}.a $libname.a'
11081       soname_spec='${libname}${release}${shared_ext}$major'
11082     fi
11083     shlibpath_var=LIBPATH
11084   fi
11085   ;;
11086
11087 amigaos*)
11088   case $host_cpu in
11089   powerpc)
11090     # Since July 2007 AmigaOS4 officially supports .so libraries.
11091     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11092     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11093     ;;
11094   m68k)
11095     library_names_spec='$libname.ixlibrary $libname.a'
11096     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11097     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'
11098     ;;
11099   esac
11100   ;;
11101
11102 beos*)
11103   library_names_spec='${libname}${shared_ext}'
11104   dynamic_linker="$host_os ld.so"
11105   shlibpath_var=LIBRARY_PATH
11106   ;;
11107
11108 bsdi[45]*)
11109   version_type=linux # correct to gnu/linux during the next big refactor
11110   need_version=no
11111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11112   soname_spec='${libname}${release}${shared_ext}$major'
11113   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11114   shlibpath_var=LD_LIBRARY_PATH
11115   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11116   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11117   # the default ld.so.conf also contains /usr/contrib/lib and
11118   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11119   # libtool to hard-code these into programs
11120   ;;
11121
11122 cygwin* | mingw* | pw32* | cegcc*)
11123   version_type=windows
11124   shrext_cmds=".dll"
11125   need_version=no
11126   need_lib_prefix=no
11127
11128   case $GCC,$cc_basename in
11129   yes,*)
11130     # gcc
11131     library_names_spec='$libname.dll.a'
11132     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11133     postinstall_cmds='base_file=`basename \${file}`~
11134       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11135       dldir=$destdir/`dirname \$dlpath`~
11136       test -d \$dldir || mkdir -p \$dldir~
11137       $install_prog $dir/$dlname \$dldir/$dlname~
11138       chmod a+x \$dldir/$dlname~
11139       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11140         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11141       fi'
11142     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11143       dlpath=$dir/\$dldll~
11144        $RM \$dlpath'
11145     shlibpath_overrides_runpath=yes
11146
11147     case $host_os in
11148     cygwin*)
11149       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11150       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11151
11152       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11153       ;;
11154     mingw* | cegcc*)
11155       # MinGW DLLs use traditional 'lib' prefix
11156       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11157       ;;
11158     pw32*)
11159       # pw32 DLLs use 'pw' prefix rather than 'lib'
11160       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11161       ;;
11162     esac
11163     dynamic_linker='Win32 ld.exe'
11164     ;;
11165
11166   *,cl*)
11167     # Native MSVC
11168     libname_spec='$name'
11169     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11170     library_names_spec='${libname}.dll.lib'
11171
11172     case $build_os in
11173     mingw*)
11174       sys_lib_search_path_spec=
11175       lt_save_ifs=$IFS
11176       IFS=';'
11177       for lt_path in $LIB
11178       do
11179         IFS=$lt_save_ifs
11180         # Let DOS variable expansion print the short 8.3 style file name.
11181         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11182         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11183       done
11184       IFS=$lt_save_ifs
11185       # Convert to MSYS style.
11186       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11187       ;;
11188     cygwin*)
11189       # Convert to unix form, then to dos form, then back to unix form
11190       # but this time dos style (no spaces!) so that the unix form looks
11191       # like /cygdrive/c/PROGRA~1:/cygdr...
11192       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11193       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11194       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11195       ;;
11196     *)
11197       sys_lib_search_path_spec="$LIB"
11198       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11199         # It is most probably a Windows format PATH.
11200         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11201       else
11202         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11203       fi
11204       # FIXME: find the short name or the path components, as spaces are
11205       # common. (e.g. "Program Files" -> "PROGRA~1")
11206       ;;
11207     esac
11208
11209     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11210     postinstall_cmds='base_file=`basename \${file}`~
11211       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11212       dldir=$destdir/`dirname \$dlpath`~
11213       test -d \$dldir || mkdir -p \$dldir~
11214       $install_prog $dir/$dlname \$dldir/$dlname'
11215     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11216       dlpath=$dir/\$dldll~
11217        $RM \$dlpath'
11218     shlibpath_overrides_runpath=yes
11219     dynamic_linker='Win32 link.exe'
11220     ;;
11221
11222   *)
11223     # Assume MSVC wrapper
11224     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11225     dynamic_linker='Win32 ld.exe'
11226     ;;
11227   esac
11228   # FIXME: first we should search . and the directory the executable is in
11229   shlibpath_var=PATH
11230   ;;
11231
11232 darwin* | rhapsody*)
11233   dynamic_linker="$host_os dyld"
11234   version_type=darwin
11235   need_lib_prefix=no
11236   need_version=no
11237   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11238   soname_spec='${libname}${release}${major}$shared_ext'
11239   shlibpath_overrides_runpath=yes
11240   shlibpath_var=DYLD_LIBRARY_PATH
11241   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11242
11243   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11244   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11245   ;;
11246
11247 dgux*)
11248   version_type=linux # correct to gnu/linux during the next big refactor
11249   need_lib_prefix=no
11250   need_version=no
11251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11252   soname_spec='${libname}${release}${shared_ext}$major'
11253   shlibpath_var=LD_LIBRARY_PATH
11254   ;;
11255
11256 freebsd* | dragonfly*)
11257   # DragonFly does not have aout.  When/if they implement a new
11258   # versioning mechanism, adjust this.
11259   if test -x /usr/bin/objformat; then
11260     objformat=`/usr/bin/objformat`
11261   else
11262     case $host_os in
11263     freebsd[23].*) objformat=aout ;;
11264     *) objformat=elf ;;
11265     esac
11266   fi
11267   version_type=freebsd-$objformat
11268   case $version_type in
11269     freebsd-elf*)
11270       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11271       need_version=no
11272       need_lib_prefix=no
11273       ;;
11274     freebsd-*)
11275       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11276       need_version=yes
11277       ;;
11278   esac
11279   shlibpath_var=LD_LIBRARY_PATH
11280   case $host_os in
11281   freebsd2.*)
11282     shlibpath_overrides_runpath=yes
11283     ;;
11284   freebsd3.[01]* | freebsdelf3.[01]*)
11285     shlibpath_overrides_runpath=yes
11286     hardcode_into_libs=yes
11287     ;;
11288   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11289   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11290     shlibpath_overrides_runpath=no
11291     hardcode_into_libs=yes
11292     ;;
11293   *) # from 4.6 on, and DragonFly
11294     shlibpath_overrides_runpath=yes
11295     hardcode_into_libs=yes
11296     ;;
11297   esac
11298   ;;
11299
11300 haiku*)
11301   version_type=linux # correct to gnu/linux during the next big refactor
11302   need_lib_prefix=no
11303   need_version=no
11304   dynamic_linker="$host_os runtime_loader"
11305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11306   soname_spec='${libname}${release}${shared_ext}$major'
11307   shlibpath_var=LIBRARY_PATH
11308   shlibpath_overrides_runpath=yes
11309   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11310   hardcode_into_libs=yes
11311   ;;
11312
11313 hpux9* | hpux10* | hpux11*)
11314   # Give a soname corresponding to the major version so that dld.sl refuses to
11315   # link against other versions.
11316   version_type=sunos
11317   need_lib_prefix=no
11318   need_version=no
11319   case $host_cpu in
11320   ia64*)
11321     shrext_cmds='.so'
11322     hardcode_into_libs=yes
11323     dynamic_linker="$host_os dld.so"
11324     shlibpath_var=LD_LIBRARY_PATH
11325     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11326     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11327     soname_spec='${libname}${release}${shared_ext}$major'
11328     if test "X$HPUX_IA64_MODE" = X32; then
11329       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11330     else
11331       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11332     fi
11333     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11334     ;;
11335   hppa*64*)
11336     shrext_cmds='.sl'
11337     hardcode_into_libs=yes
11338     dynamic_linker="$host_os dld.sl"
11339     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11340     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11341     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11342     soname_spec='${libname}${release}${shared_ext}$major'
11343     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11344     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11345     ;;
11346   *)
11347     shrext_cmds='.sl'
11348     dynamic_linker="$host_os dld.sl"
11349     shlibpath_var=SHLIB_PATH
11350     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11351     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11352     soname_spec='${libname}${release}${shared_ext}$major'
11353     ;;
11354   esac
11355   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11356   postinstall_cmds='chmod 555 $lib'
11357   # or fails outright, so override atomically:
11358   install_override_mode=555
11359   ;;
11360
11361 interix[3-9]*)
11362   version_type=linux # correct to gnu/linux during the next big refactor
11363   need_lib_prefix=no
11364   need_version=no
11365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11366   soname_spec='${libname}${release}${shared_ext}$major'
11367   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11368   shlibpath_var=LD_LIBRARY_PATH
11369   shlibpath_overrides_runpath=no
11370   hardcode_into_libs=yes
11371   ;;
11372
11373 irix5* | irix6* | nonstopux*)
11374   case $host_os in
11375     nonstopux*) version_type=nonstopux ;;
11376     *)
11377         if test "$lt_cv_prog_gnu_ld" = yes; then
11378                 version_type=linux # correct to gnu/linux during the next big refactor
11379         else
11380                 version_type=irix
11381         fi ;;
11382   esac
11383   need_lib_prefix=no
11384   need_version=no
11385   soname_spec='${libname}${release}${shared_ext}$major'
11386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11387   case $host_os in
11388   irix5* | nonstopux*)
11389     libsuff= shlibsuff=
11390     ;;
11391   *)
11392     case $LD in # libtool.m4 will add one of these switches to LD
11393     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11394       libsuff= shlibsuff= libmagic=32-bit;;
11395     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11396       libsuff=32 shlibsuff=N32 libmagic=N32;;
11397     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11398       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11399     *) libsuff= shlibsuff= libmagic=never-match;;
11400     esac
11401     ;;
11402   esac
11403   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11404   shlibpath_overrides_runpath=no
11405   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11406   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11407   hardcode_into_libs=yes
11408   ;;
11409
11410 # No shared lib support for Linux oldld, aout, or coff.
11411 linux*oldld* | linux*aout* | linux*coff*)
11412   dynamic_linker=no
11413   ;;
11414
11415 # This must be glibc/ELF.
11416 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11417   version_type=linux # correct to gnu/linux during the next big refactor
11418   need_lib_prefix=no
11419   need_version=no
11420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11421   soname_spec='${libname}${release}${shared_ext}$major'
11422   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11423   shlibpath_var=LD_LIBRARY_PATH
11424   shlibpath_overrides_runpath=no
11425
11426   # Some binutils ld are patched to set DT_RUNPATH
11427   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11428   $as_echo_n "(cached) " >&6
11429 else
11430   lt_cv_shlibpath_overrides_runpath=no
11431     save_LDFLAGS=$LDFLAGS
11432     save_libdir=$libdir
11433     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11434          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11435     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11436 /* end confdefs.h.  */
11437
11438 int
11439 main ()
11440 {
11441
11442   ;
11443   return 0;
11444 }
11445 _ACEOF
11446 if ac_fn_c_try_link "$LINENO"; then :
11447   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11448   lt_cv_shlibpath_overrides_runpath=yes
11449 fi
11450 fi
11451 rm -f core conftest.err conftest.$ac_objext \
11452     conftest$ac_exeext conftest.$ac_ext
11453     LDFLAGS=$save_LDFLAGS
11454     libdir=$save_libdir
11455
11456 fi
11457
11458   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11459
11460   # This implies no fast_install, which is unacceptable.
11461   # Some rework will be needed to allow for fast_install
11462   # before this can be enabled.
11463   hardcode_into_libs=yes
11464
11465   # Append ld.so.conf contents to the search path
11466   if test -f /etc/ld.so.conf; then
11467     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' ' '`
11468     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11469   fi
11470
11471   # We used to test for /lib/ld.so.1 and disable shared libraries on
11472   # powerpc, because MkLinux only supported shared libraries with the
11473   # GNU dynamic linker.  Since this was broken with cross compilers,
11474   # most powerpc-linux boxes support dynamic linking these days and
11475   # people can always --disable-shared, the test was removed, and we
11476   # assume the GNU/Linux dynamic linker is in use.
11477   dynamic_linker='GNU/Linux ld.so'
11478   ;;
11479
11480 netbsdelf*-gnu)
11481   version_type=linux
11482   need_lib_prefix=no
11483   need_version=no
11484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11485   soname_spec='${libname}${release}${shared_ext}$major'
11486   shlibpath_var=LD_LIBRARY_PATH
11487   shlibpath_overrides_runpath=no
11488   hardcode_into_libs=yes
11489   dynamic_linker='NetBSD ld.elf_so'
11490   ;;
11491
11492 netbsd*)
11493   version_type=sunos
11494   need_lib_prefix=no
11495   need_version=no
11496   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11497     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11498     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11499     dynamic_linker='NetBSD (a.out) ld.so'
11500   else
11501     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11502     soname_spec='${libname}${release}${shared_ext}$major'
11503     dynamic_linker='NetBSD ld.elf_so'
11504   fi
11505   shlibpath_var=LD_LIBRARY_PATH
11506   shlibpath_overrides_runpath=yes
11507   hardcode_into_libs=yes
11508   ;;
11509
11510 newsos6)
11511   version_type=linux # correct to gnu/linux during the next big refactor
11512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11513   shlibpath_var=LD_LIBRARY_PATH
11514   shlibpath_overrides_runpath=yes
11515   ;;
11516
11517 *nto* | *qnx*)
11518   version_type=qnx
11519   need_lib_prefix=no
11520   need_version=no
11521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11522   soname_spec='${libname}${release}${shared_ext}$major'
11523   shlibpath_var=LD_LIBRARY_PATH
11524   shlibpath_overrides_runpath=no
11525   hardcode_into_libs=yes
11526   dynamic_linker='ldqnx.so'
11527   ;;
11528
11529 openbsd*)
11530   version_type=sunos
11531   sys_lib_dlsearch_path_spec="/usr/lib"
11532   need_lib_prefix=no
11533   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11534   case $host_os in
11535     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11536     *)                          need_version=no  ;;
11537   esac
11538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11539   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11540   shlibpath_var=LD_LIBRARY_PATH
11541   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11542     case $host_os in
11543       openbsd2.[89] | openbsd2.[89].*)
11544         shlibpath_overrides_runpath=no
11545         ;;
11546       *)
11547         shlibpath_overrides_runpath=yes
11548         ;;
11549       esac
11550   else
11551     shlibpath_overrides_runpath=yes
11552   fi
11553   ;;
11554
11555 os2*)
11556   libname_spec='$name'
11557   shrext_cmds=".dll"
11558   need_lib_prefix=no
11559   library_names_spec='$libname${shared_ext} $libname.a'
11560   dynamic_linker='OS/2 ld.exe'
11561   shlibpath_var=LIBPATH
11562   ;;
11563
11564 osf3* | osf4* | osf5*)
11565   version_type=osf
11566   need_lib_prefix=no
11567   need_version=no
11568   soname_spec='${libname}${release}${shared_ext}$major'
11569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11570   shlibpath_var=LD_LIBRARY_PATH
11571   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11572   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11573   ;;
11574
11575 rdos*)
11576   dynamic_linker=no
11577   ;;
11578
11579 solaris*)
11580   version_type=linux # correct to gnu/linux during the next big refactor
11581   need_lib_prefix=no
11582   need_version=no
11583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11584   soname_spec='${libname}${release}${shared_ext}$major'
11585   shlibpath_var=LD_LIBRARY_PATH
11586   shlibpath_overrides_runpath=yes
11587   hardcode_into_libs=yes
11588   # ldd complains unless libraries are executable
11589   postinstall_cmds='chmod +x $lib'
11590   ;;
11591
11592 sunos4*)
11593   version_type=sunos
11594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11595   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11596   shlibpath_var=LD_LIBRARY_PATH
11597   shlibpath_overrides_runpath=yes
11598   if test "$with_gnu_ld" = yes; then
11599     need_lib_prefix=no
11600   fi
11601   need_version=yes
11602   ;;
11603
11604 sysv4 | sysv4.3*)
11605   version_type=linux # correct to gnu/linux during the next big refactor
11606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11607   soname_spec='${libname}${release}${shared_ext}$major'
11608   shlibpath_var=LD_LIBRARY_PATH
11609   case $host_vendor in
11610     sni)
11611       shlibpath_overrides_runpath=no
11612       need_lib_prefix=no
11613       runpath_var=LD_RUN_PATH
11614       ;;
11615     siemens)
11616       need_lib_prefix=no
11617       ;;
11618     motorola)
11619       need_lib_prefix=no
11620       need_version=no
11621       shlibpath_overrides_runpath=no
11622       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11623       ;;
11624   esac
11625   ;;
11626
11627 sysv4*MP*)
11628   if test -d /usr/nec ;then
11629     version_type=linux # correct to gnu/linux during the next big refactor
11630     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11631     soname_spec='$libname${shared_ext}.$major'
11632     shlibpath_var=LD_LIBRARY_PATH
11633   fi
11634   ;;
11635
11636 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11637   version_type=freebsd-elf
11638   need_lib_prefix=no
11639   need_version=no
11640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11641   soname_spec='${libname}${release}${shared_ext}$major'
11642   shlibpath_var=LD_LIBRARY_PATH
11643   shlibpath_overrides_runpath=yes
11644   hardcode_into_libs=yes
11645   if test "$with_gnu_ld" = yes; then
11646     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11647   else
11648     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11649     case $host_os in
11650       sco3.2v5*)
11651         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11652         ;;
11653     esac
11654   fi
11655   sys_lib_dlsearch_path_spec='/usr/lib'
11656   ;;
11657
11658 tpf*)
11659   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11660   version_type=linux # correct to gnu/linux during the next big refactor
11661   need_lib_prefix=no
11662   need_version=no
11663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11664   shlibpath_var=LD_LIBRARY_PATH
11665   shlibpath_overrides_runpath=no
11666   hardcode_into_libs=yes
11667   ;;
11668
11669 uts4*)
11670   version_type=linux # correct to gnu/linux during the next big refactor
11671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11672   soname_spec='${libname}${release}${shared_ext}$major'
11673   shlibpath_var=LD_LIBRARY_PATH
11674   ;;
11675
11676 *)
11677   dynamic_linker=no
11678   ;;
11679 esac
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11681 $as_echo "$dynamic_linker" >&6; }
11682 test "$dynamic_linker" = no && can_build_shared=no
11683
11684 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11685 if test "$GCC" = yes; then
11686   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11687 fi
11688
11689 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11690   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11691 fi
11692 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11693   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11694 fi
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
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11788 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11789 hardcode_action=
11790 if test -n "$hardcode_libdir_flag_spec" ||
11791    test -n "$runpath_var" ||
11792    test "X$hardcode_automatic" = "Xyes" ; then
11793
11794   # We can hardcode non-existent directories.
11795   if test "$hardcode_direct" != no &&
11796      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11797      # have to relink, otherwise we might link with an installed library
11798      # when we should be linking with a yet-to-be-installed one
11799      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11800      test "$hardcode_minus_L" != no; then
11801     # Linking always hardcodes the temporary library directory.
11802     hardcode_action=relink
11803   else
11804     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11805     hardcode_action=immediate
11806   fi
11807 else
11808   # We cannot hardcode anything, or else we can only hardcode existing
11809   # directories.
11810   hardcode_action=unsupported
11811 fi
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11813 $as_echo "$hardcode_action" >&6; }
11814
11815 if test "$hardcode_action" = relink ||
11816    test "$inherit_rpath" = yes; then
11817   # Fast installation is not supported
11818   enable_fast_install=no
11819 elif test "$shlibpath_overrides_runpath" = yes ||
11820      test "$enable_shared" = no; then
11821   # Fast installation is not necessary
11822   enable_fast_install=needless
11823 fi
11824
11825
11826
11827
11828
11829
11830   if test "x$enable_dlopen" != xyes; then
11831   enable_dlopen=unknown
11832   enable_dlopen_self=unknown
11833   enable_dlopen_self_static=unknown
11834 else
11835   lt_cv_dlopen=no
11836   lt_cv_dlopen_libs=
11837
11838   case $host_os in
11839   beos*)
11840     lt_cv_dlopen="load_add_on"
11841     lt_cv_dlopen_libs=
11842     lt_cv_dlopen_self=yes
11843     ;;
11844
11845   mingw* | pw32* | cegcc*)
11846     lt_cv_dlopen="LoadLibrary"
11847     lt_cv_dlopen_libs=
11848     ;;
11849
11850   cygwin*)
11851     lt_cv_dlopen="dlopen"
11852     lt_cv_dlopen_libs=
11853     ;;
11854
11855   darwin*)
11856   # if libdl is installed we need to link against it
11857     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11858 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11859 if ${ac_cv_lib_dl_dlopen+:} false; then :
11860   $as_echo_n "(cached) " >&6
11861 else
11862   ac_check_lib_save_LIBS=$LIBS
11863 LIBS="-ldl  $LIBS"
11864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h.  */
11866
11867 /* Override any GCC internal prototype to avoid an error.
11868    Use char because int might match the return type of a GCC
11869    builtin and then its argument prototype would still apply.  */
11870 #ifdef __cplusplus
11871 extern "C"
11872 #endif
11873 char dlopen ();
11874 int
11875 main ()
11876 {
11877 return dlopen ();
11878   ;
11879   return 0;
11880 }
11881 _ACEOF
11882 if ac_fn_c_try_link "$LINENO"; then :
11883   ac_cv_lib_dl_dlopen=yes
11884 else
11885   ac_cv_lib_dl_dlopen=no
11886 fi
11887 rm -f core conftest.err conftest.$ac_objext \
11888     conftest$ac_exeext conftest.$ac_ext
11889 LIBS=$ac_check_lib_save_LIBS
11890 fi
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11892 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11893 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11894   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11895 else
11896
11897     lt_cv_dlopen="dyld"
11898     lt_cv_dlopen_libs=
11899     lt_cv_dlopen_self=yes
11900
11901 fi
11902
11903     ;;
11904
11905   *)
11906     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11907 if test "x$ac_cv_func_shl_load" = xyes; then :
11908   lt_cv_dlopen="shl_load"
11909 else
11910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11911 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11912 if ${ac_cv_lib_dld_shl_load+:} false; then :
11913   $as_echo_n "(cached) " >&6
11914 else
11915   ac_check_lib_save_LIBS=$LIBS
11916 LIBS="-ldld  $LIBS"
11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h.  */
11919
11920 /* Override any GCC internal prototype to avoid an error.
11921    Use char because int might match the return type of a GCC
11922    builtin and then its argument prototype would still apply.  */
11923 #ifdef __cplusplus
11924 extern "C"
11925 #endif
11926 char shl_load ();
11927 int
11928 main ()
11929 {
11930 return shl_load ();
11931   ;
11932   return 0;
11933 }
11934 _ACEOF
11935 if ac_fn_c_try_link "$LINENO"; then :
11936   ac_cv_lib_dld_shl_load=yes
11937 else
11938   ac_cv_lib_dld_shl_load=no
11939 fi
11940 rm -f core conftest.err conftest.$ac_objext \
11941     conftest$ac_exeext conftest.$ac_ext
11942 LIBS=$ac_check_lib_save_LIBS
11943 fi
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11945 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11946 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11947   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11948 else
11949   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11950 if test "x$ac_cv_func_dlopen" = xyes; then :
11951   lt_cv_dlopen="dlopen"
11952 else
11953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11954 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11955 if ${ac_cv_lib_dl_dlopen+:} false; then :
11956   $as_echo_n "(cached) " >&6
11957 else
11958   ac_check_lib_save_LIBS=$LIBS
11959 LIBS="-ldl  $LIBS"
11960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961 /* end confdefs.h.  */
11962
11963 /* Override any GCC internal prototype to avoid an error.
11964    Use char because int might match the return type of a GCC
11965    builtin and then its argument prototype would still apply.  */
11966 #ifdef __cplusplus
11967 extern "C"
11968 #endif
11969 char dlopen ();
11970 int
11971 main ()
11972 {
11973 return dlopen ();
11974   ;
11975   return 0;
11976 }
11977 _ACEOF
11978 if ac_fn_c_try_link "$LINENO"; then :
11979   ac_cv_lib_dl_dlopen=yes
11980 else
11981   ac_cv_lib_dl_dlopen=no
11982 fi
11983 rm -f core conftest.err conftest.$ac_objext \
11984     conftest$ac_exeext conftest.$ac_ext
11985 LIBS=$ac_check_lib_save_LIBS
11986 fi
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11988 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11989 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11990   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11991 else
11992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11993 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11994 if ${ac_cv_lib_svld_dlopen+:} false; then :
11995   $as_echo_n "(cached) " >&6
11996 else
11997   ac_check_lib_save_LIBS=$LIBS
11998 LIBS="-lsvld  $LIBS"
11999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12000 /* end confdefs.h.  */
12001
12002 /* Override any GCC internal prototype to avoid an error.
12003    Use char because int might match the return type of a GCC
12004    builtin and then its argument prototype would still apply.  */
12005 #ifdef __cplusplus
12006 extern "C"
12007 #endif
12008 char dlopen ();
12009 int
12010 main ()
12011 {
12012 return dlopen ();
12013   ;
12014   return 0;
12015 }
12016 _ACEOF
12017 if ac_fn_c_try_link "$LINENO"; then :
12018   ac_cv_lib_svld_dlopen=yes
12019 else
12020   ac_cv_lib_svld_dlopen=no
12021 fi
12022 rm -f core conftest.err conftest.$ac_objext \
12023     conftest$ac_exeext conftest.$ac_ext
12024 LIBS=$ac_check_lib_save_LIBS
12025 fi
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12027 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12028 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12029   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12030 else
12031   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12032 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12033 if ${ac_cv_lib_dld_dld_link+:} false; then :
12034   $as_echo_n "(cached) " >&6
12035 else
12036   ac_check_lib_save_LIBS=$LIBS
12037 LIBS="-ldld  $LIBS"
12038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039 /* end confdefs.h.  */
12040
12041 /* Override any GCC internal prototype to avoid an error.
12042    Use char because int might match the return type of a GCC
12043    builtin and then its argument prototype would still apply.  */
12044 #ifdef __cplusplus
12045 extern "C"
12046 #endif
12047 char dld_link ();
12048 int
12049 main ()
12050 {
12051 return dld_link ();
12052   ;
12053   return 0;
12054 }
12055 _ACEOF
12056 if ac_fn_c_try_link "$LINENO"; then :
12057   ac_cv_lib_dld_dld_link=yes
12058 else
12059   ac_cv_lib_dld_dld_link=no
12060 fi
12061 rm -f core conftest.err conftest.$ac_objext \
12062     conftest$ac_exeext conftest.$ac_ext
12063 LIBS=$ac_check_lib_save_LIBS
12064 fi
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12066 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12067 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12068   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12069 fi
12070
12071
12072 fi
12073
12074
12075 fi
12076
12077
12078 fi
12079
12080
12081 fi
12082
12083
12084 fi
12085
12086     ;;
12087   esac
12088
12089   if test "x$lt_cv_dlopen" != xno; then
12090     enable_dlopen=yes
12091   else
12092     enable_dlopen=no
12093   fi
12094
12095   case $lt_cv_dlopen in
12096   dlopen)
12097     save_CPPFLAGS="$CPPFLAGS"
12098     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12099
12100     save_LDFLAGS="$LDFLAGS"
12101     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12102
12103     save_LIBS="$LIBS"
12104     LIBS="$lt_cv_dlopen_libs $LIBS"
12105
12106     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12107 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12108 if ${lt_cv_dlopen_self+:} false; then :
12109   $as_echo_n "(cached) " >&6
12110 else
12111           if test "$cross_compiling" = yes; then :
12112   lt_cv_dlopen_self=cross
12113 else
12114   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12115   lt_status=$lt_dlunknown
12116   cat > conftest.$ac_ext <<_LT_EOF
12117 #line $LINENO "configure"
12118 #include "confdefs.h"
12119
12120 #if HAVE_DLFCN_H
12121 #include <dlfcn.h>
12122 #endif
12123
12124 #include <stdio.h>
12125
12126 #ifdef RTLD_GLOBAL
12127 #  define LT_DLGLOBAL           RTLD_GLOBAL
12128 #else
12129 #  ifdef DL_GLOBAL
12130 #    define LT_DLGLOBAL         DL_GLOBAL
12131 #  else
12132 #    define LT_DLGLOBAL         0
12133 #  endif
12134 #endif
12135
12136 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12137    find out it does not work in some platform. */
12138 #ifndef LT_DLLAZY_OR_NOW
12139 #  ifdef RTLD_LAZY
12140 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12141 #  else
12142 #    ifdef DL_LAZY
12143 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12144 #    else
12145 #      ifdef RTLD_NOW
12146 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12147 #      else
12148 #        ifdef DL_NOW
12149 #          define LT_DLLAZY_OR_NOW      DL_NOW
12150 #        else
12151 #          define LT_DLLAZY_OR_NOW      0
12152 #        endif
12153 #      endif
12154 #    endif
12155 #  endif
12156 #endif
12157
12158 /* When -fvisbility=hidden is used, assume the code has been annotated
12159    correspondingly for the symbols needed.  */
12160 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12161 int fnord () __attribute__((visibility("default")));
12162 #endif
12163
12164 int fnord () { return 42; }
12165 int main ()
12166 {
12167   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12168   int status = $lt_dlunknown;
12169
12170   if (self)
12171     {
12172       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12173       else
12174         {
12175           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12176           else puts (dlerror ());
12177         }
12178       /* dlclose (self); */
12179     }
12180   else
12181     puts (dlerror ());
12182
12183   return status;
12184 }
12185 _LT_EOF
12186   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12187   (eval $ac_link) 2>&5
12188   ac_status=$?
12189   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12190   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12191     (./conftest; exit; ) >&5 2>/dev/null
12192     lt_status=$?
12193     case x$lt_status in
12194       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12195       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12196       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12197     esac
12198   else :
12199     # compilation failed
12200     lt_cv_dlopen_self=no
12201   fi
12202 fi
12203 rm -fr conftest*
12204
12205
12206 fi
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12208 $as_echo "$lt_cv_dlopen_self" >&6; }
12209
12210     if test "x$lt_cv_dlopen_self" = xyes; then
12211       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12212       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12213 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12214 if ${lt_cv_dlopen_self_static+:} false; then :
12215   $as_echo_n "(cached) " >&6
12216 else
12217           if test "$cross_compiling" = yes; then :
12218   lt_cv_dlopen_self_static=cross
12219 else
12220   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12221   lt_status=$lt_dlunknown
12222   cat > conftest.$ac_ext <<_LT_EOF
12223 #line $LINENO "configure"
12224 #include "confdefs.h"
12225
12226 #if HAVE_DLFCN_H
12227 #include <dlfcn.h>
12228 #endif
12229
12230 #include <stdio.h>
12231
12232 #ifdef RTLD_GLOBAL
12233 #  define LT_DLGLOBAL           RTLD_GLOBAL
12234 #else
12235 #  ifdef DL_GLOBAL
12236 #    define LT_DLGLOBAL         DL_GLOBAL
12237 #  else
12238 #    define LT_DLGLOBAL         0
12239 #  endif
12240 #endif
12241
12242 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12243    find out it does not work in some platform. */
12244 #ifndef LT_DLLAZY_OR_NOW
12245 #  ifdef RTLD_LAZY
12246 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12247 #  else
12248 #    ifdef DL_LAZY
12249 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12250 #    else
12251 #      ifdef RTLD_NOW
12252 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12253 #      else
12254 #        ifdef DL_NOW
12255 #          define LT_DLLAZY_OR_NOW      DL_NOW
12256 #        else
12257 #          define LT_DLLAZY_OR_NOW      0
12258 #        endif
12259 #      endif
12260 #    endif
12261 #  endif
12262 #endif
12263
12264 /* When -fvisbility=hidden is used, assume the code has been annotated
12265    correspondingly for the symbols needed.  */
12266 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12267 int fnord () __attribute__((visibility("default")));
12268 #endif
12269
12270 int fnord () { return 42; }
12271 int main ()
12272 {
12273   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12274   int status = $lt_dlunknown;
12275
12276   if (self)
12277     {
12278       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12279       else
12280         {
12281           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12282           else puts (dlerror ());
12283         }
12284       /* dlclose (self); */
12285     }
12286   else
12287     puts (dlerror ());
12288
12289   return status;
12290 }
12291 _LT_EOF
12292   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12293   (eval $ac_link) 2>&5
12294   ac_status=$?
12295   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12296   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12297     (./conftest; exit; ) >&5 2>/dev/null
12298     lt_status=$?
12299     case x$lt_status in
12300       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12301       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12302       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12303     esac
12304   else :
12305     # compilation failed
12306     lt_cv_dlopen_self_static=no
12307   fi
12308 fi
12309 rm -fr conftest*
12310
12311
12312 fi
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12314 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12315     fi
12316
12317     CPPFLAGS="$save_CPPFLAGS"
12318     LDFLAGS="$save_LDFLAGS"
12319     LIBS="$save_LIBS"
12320     ;;
12321   esac
12322
12323   case $lt_cv_dlopen_self in
12324   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12325   *) enable_dlopen_self=unknown ;;
12326   esac
12327
12328   case $lt_cv_dlopen_self_static in
12329   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12330   *) enable_dlopen_self_static=unknown ;;
12331   esac
12332 fi
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350 striplib=
12351 old_striplib=
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12353 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12354 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12355   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12356   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12358 $as_echo "yes" >&6; }
12359 else
12360 # FIXME - insert some real tests, host_os isn't really good enough
12361   case $host_os in
12362   darwin*)
12363     if test -n "$STRIP" ; then
12364       striplib="$STRIP -x"
12365       old_striplib="$STRIP -S"
12366       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12367 $as_echo "yes" >&6; }
12368     else
12369       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12370 $as_echo "no" >&6; }
12371     fi
12372     ;;
12373   *)
12374     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12375 $as_echo "no" >&6; }
12376     ;;
12377   esac
12378 fi
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391   # Report which library types will actually be built
12392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12393 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12395 $as_echo "$can_build_shared" >&6; }
12396
12397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12398 $as_echo_n "checking whether to build shared libraries... " >&6; }
12399   test "$can_build_shared" = "no" && enable_shared=no
12400
12401   # On AIX, shared libraries and static libraries use the same namespace, and
12402   # are all built from PIC.
12403   case $host_os in
12404   aix3*)
12405     test "$enable_shared" = yes && enable_static=no
12406     if test -n "$RANLIB"; then
12407       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12408       postinstall_cmds='$RANLIB $lib'
12409     fi
12410     ;;
12411
12412   aix[4-9]*)
12413     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12414       test "$enable_shared" = yes && enable_static=no
12415     fi
12416     ;;
12417   esac
12418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12419 $as_echo "$enable_shared" >&6; }
12420
12421   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12422 $as_echo_n "checking whether to build static libraries... " >&6; }
12423   # Make sure either enable_shared or enable_static is yes.
12424   test "$enable_shared" = yes || enable_static=yes
12425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12426 $as_echo "$enable_static" >&6; }
12427
12428
12429
12430
12431 fi
12432 ac_ext=cpp
12433 ac_cpp='$CXXCPP $CPPFLAGS'
12434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12437
12438 CC="$lt_save_CC"
12439
12440       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12441     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12442     (test "X$CXX" != "Xg++"))) ; then
12443   ac_ext=cpp
12444 ac_cpp='$CXXCPP $CPPFLAGS'
12445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12449 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12450 if test -z "$CXXCPP"; then
12451   if ${ac_cv_prog_CXXCPP+:} false; then :
12452   $as_echo_n "(cached) " >&6
12453 else
12454       # Double quotes because CXXCPP needs to be expanded
12455     for CXXCPP in "$CXX -E" "/lib/cpp"
12456     do
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   break
12504 fi
12505
12506     done
12507     ac_cv_prog_CXXCPP=$CXXCPP
12508
12509 fi
12510   CXXCPP=$ac_cv_prog_CXXCPP
12511 else
12512   ac_cv_prog_CXXCPP=$CXXCPP
12513 fi
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12515 $as_echo "$CXXCPP" >&6; }
12516 ac_preproc_ok=false
12517 for ac_cxx_preproc_warn_flag in '' yes
12518 do
12519   # Use a header file that comes with gcc, so configuring glibc
12520   # with a fresh cross-compiler works.
12521   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12522   # <limits.h> exists even on freestanding compilers.
12523   # On the NeXT, cc -E runs the code through the compiler's parser,
12524   # not just through cpp. "Syntax error" is here to catch this case.
12525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h.  */
12527 #ifdef __STDC__
12528 # include <limits.h>
12529 #else
12530 # include <assert.h>
12531 #endif
12532                      Syntax error
12533 _ACEOF
12534 if ac_fn_cxx_try_cpp "$LINENO"; then :
12535
12536 else
12537   # Broken: fails on valid input.
12538 continue
12539 fi
12540 rm -f conftest.err conftest.i conftest.$ac_ext
12541
12542   # OK, works on sane cases.  Now check whether nonexistent headers
12543   # can be detected and how.
12544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12545 /* end confdefs.h.  */
12546 #include <ac_nonexistent.h>
12547 _ACEOF
12548 if ac_fn_cxx_try_cpp "$LINENO"; then :
12549   # Broken: success on invalid input.
12550 continue
12551 else
12552   # Passes both tests.
12553 ac_preproc_ok=:
12554 break
12555 fi
12556 rm -f conftest.err conftest.i conftest.$ac_ext
12557
12558 done
12559 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12560 rm -f conftest.i conftest.err conftest.$ac_ext
12561 if $ac_preproc_ok; then :
12562
12563 else
12564   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12566 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12567 See \`config.log' for more details" "$LINENO" 5; }
12568 fi
12569
12570 ac_ext=cpp
12571 ac_cpp='$CXXCPP $CPPFLAGS'
12572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12575
12576 else
12577   _lt_caught_CXX_error=yes
12578 fi
12579
12580 ac_ext=cpp
12581 ac_cpp='$CXXCPP $CPPFLAGS'
12582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12585
12586 archive_cmds_need_lc_CXX=no
12587 allow_undefined_flag_CXX=
12588 always_export_symbols_CXX=no
12589 archive_expsym_cmds_CXX=
12590 compiler_needs_object_CXX=no
12591 export_dynamic_flag_spec_CXX=
12592 hardcode_direct_CXX=no
12593 hardcode_direct_absolute_CXX=no
12594 hardcode_libdir_flag_spec_CXX=
12595 hardcode_libdir_separator_CXX=
12596 hardcode_minus_L_CXX=no
12597 hardcode_shlibpath_var_CXX=unsupported
12598 hardcode_automatic_CXX=no
12599 inherit_rpath_CXX=no
12600 module_cmds_CXX=
12601 module_expsym_cmds_CXX=
12602 link_all_deplibs_CXX=unknown
12603 old_archive_cmds_CXX=$old_archive_cmds
12604 reload_flag_CXX=$reload_flag
12605 reload_cmds_CXX=$reload_cmds
12606 no_undefined_flag_CXX=
12607 whole_archive_flag_spec_CXX=
12608 enable_shared_with_static_runtimes_CXX=no
12609
12610 # Source file extension for C++ test sources.
12611 ac_ext=cpp
12612
12613 # Object file extension for compiled C++ test sources.
12614 objext=o
12615 objext_CXX=$objext
12616
12617 # No sense in running all these tests if we already determined that
12618 # the CXX compiler isn't working.  Some variables (like enable_shared)
12619 # are currently assumed to apply to all compilers on this platform,
12620 # and will be corrupted by setting them based on a non-working compiler.
12621 if test "$_lt_caught_CXX_error" != yes; then
12622   # Code to be used in simple compile tests
12623   lt_simple_compile_test_code="int some_variable = 0;"
12624
12625   # Code to be used in simple link tests
12626   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12627
12628   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12629
12630
12631
12632
12633
12634
12635 # If no C compiler was specified, use CC.
12636 LTCC=${LTCC-"$CC"}
12637
12638 # If no C compiler flags were specified, use CFLAGS.
12639 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12640
12641 # Allow CC to be a program name with arguments.
12642 compiler=$CC
12643
12644
12645   # save warnings/boilerplate of simple test code
12646   ac_outfile=conftest.$ac_objext
12647 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12648 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12649 _lt_compiler_boilerplate=`cat conftest.err`
12650 $RM conftest*
12651
12652   ac_outfile=conftest.$ac_objext
12653 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12654 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12655 _lt_linker_boilerplate=`cat conftest.err`
12656 $RM -r conftest*
12657
12658
12659   # Allow CC to be a program name with arguments.
12660   lt_save_CC=$CC
12661   lt_save_CFLAGS=$CFLAGS
12662   lt_save_LD=$LD
12663   lt_save_GCC=$GCC
12664   GCC=$GXX
12665   lt_save_with_gnu_ld=$with_gnu_ld
12666   lt_save_path_LD=$lt_cv_path_LD
12667   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12668     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12669   else
12670     $as_unset lt_cv_prog_gnu_ld
12671   fi
12672   if test -n "${lt_cv_path_LDCXX+set}"; then
12673     lt_cv_path_LD=$lt_cv_path_LDCXX
12674   else
12675     $as_unset lt_cv_path_LD
12676   fi
12677   test -z "${LDCXX+set}" || LD=$LDCXX
12678   CC=${CXX-"c++"}
12679   CFLAGS=$CXXFLAGS
12680   compiler=$CC
12681   compiler_CXX=$CC
12682   for cc_temp in $compiler""; do
12683   case $cc_temp in
12684     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12685     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12686     \-*) ;;
12687     *) break;;
12688   esac
12689 done
12690 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12691
12692
12693   if test -n "$compiler"; then
12694     # We don't want -fno-exception when compiling C++ code, so set the
12695     # no_builtin_flag separately
12696     if test "$GXX" = yes; then
12697       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12698     else
12699       lt_prog_compiler_no_builtin_flag_CXX=
12700     fi
12701
12702     if test "$GXX" = yes; then
12703       # Set up default GNU C++ configuration
12704
12705
12706
12707 # Check whether --with-gnu-ld was given.
12708 if test "${with_gnu_ld+set}" = set; then :
12709   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12710 else
12711   with_gnu_ld=no
12712 fi
12713
12714 ac_prog=ld
12715 if test "$GCC" = yes; then
12716   # Check if gcc -print-prog-name=ld gives a path.
12717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12718 $as_echo_n "checking for ld used by $CC... " >&6; }
12719   case $host in
12720   *-*-mingw*)
12721     # gcc leaves a trailing carriage return which upsets mingw
12722     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12723   *)
12724     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12725   esac
12726   case $ac_prog in
12727     # Accept absolute paths.
12728     [\\/]* | ?:[\\/]*)
12729       re_direlt='/[^/][^/]*/\.\./'
12730       # Canonicalize the pathname of ld
12731       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12732       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12733         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12734       done
12735       test -z "$LD" && LD="$ac_prog"
12736       ;;
12737   "")
12738     # If it fails, then pretend we aren't using GCC.
12739     ac_prog=ld
12740     ;;
12741   *)
12742     # If it is relative, then search for the first ld in PATH.
12743     with_gnu_ld=unknown
12744     ;;
12745   esac
12746 elif test "$with_gnu_ld" = yes; then
12747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12748 $as_echo_n "checking for GNU ld... " >&6; }
12749 else
12750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12751 $as_echo_n "checking for non-GNU ld... " >&6; }
12752 fi
12753 if ${lt_cv_path_LD+:} false; then :
12754   $as_echo_n "(cached) " >&6
12755 else
12756   if test -z "$LD"; then
12757   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12758   for ac_dir in $PATH; do
12759     IFS="$lt_save_ifs"
12760     test -z "$ac_dir" && ac_dir=.
12761     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12762       lt_cv_path_LD="$ac_dir/$ac_prog"
12763       # Check to see if the program is GNU ld.  I'd rather use --version,
12764       # but apparently some variants of GNU ld only accept -v.
12765       # Break only if it was the GNU/non-GNU ld that we prefer.
12766       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12767       *GNU* | *'with BFD'*)
12768         test "$with_gnu_ld" != no && break
12769         ;;
12770       *)
12771         test "$with_gnu_ld" != yes && break
12772         ;;
12773       esac
12774     fi
12775   done
12776   IFS="$lt_save_ifs"
12777 else
12778   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12779 fi
12780 fi
12781
12782 LD="$lt_cv_path_LD"
12783 if test -n "$LD"; then
12784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12785 $as_echo "$LD" >&6; }
12786 else
12787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12788 $as_echo "no" >&6; }
12789 fi
12790 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12792 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12793 if ${lt_cv_prog_gnu_ld+:} false; then :
12794   $as_echo_n "(cached) " >&6
12795 else
12796   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12797 case `$LD -v 2>&1 </dev/null` in
12798 *GNU* | *'with BFD'*)
12799   lt_cv_prog_gnu_ld=yes
12800   ;;
12801 *)
12802   lt_cv_prog_gnu_ld=no
12803   ;;
12804 esac
12805 fi
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12807 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12808 with_gnu_ld=$lt_cv_prog_gnu_ld
12809
12810
12811
12812
12813
12814
12815
12816       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12817       # archiving commands below assume that GNU ld is being used.
12818       if test "$with_gnu_ld" = yes; then
12819         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12820         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'
12821
12822         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12823         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12824
12825         # If archive_cmds runs LD, not CC, wlarc should be empty
12826         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12827         #     investigate it a little bit more. (MM)
12828         wlarc='${wl}'
12829
12830         # ancient GNU ld didn't support --whole-archive et. al.
12831         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12832           $GREP 'no-whole-archive' > /dev/null; then
12833           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12834         else
12835           whole_archive_flag_spec_CXX=
12836         fi
12837       else
12838         with_gnu_ld=no
12839         wlarc=
12840
12841         # A generic and very simple default shared library creation
12842         # command for GNU C++ for the case where it uses the native
12843         # linker, instead of GNU ld.  If possible, this setting should
12844         # overridden to take advantage of the native linker features on
12845         # the platform it is being used on.
12846         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12847       fi
12848
12849       # Commands to make compiler produce verbose output that lists
12850       # what "hidden" libraries, object files and flags are used when
12851       # linking a shared library.
12852       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12853
12854     else
12855       GXX=no
12856       with_gnu_ld=no
12857       wlarc=
12858     fi
12859
12860     # PORTME: fill in a description of your system's C++ link characteristics
12861     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12862 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12863     ld_shlibs_CXX=yes
12864     case $host_os in
12865       aix3*)
12866         # FIXME: insert proper C++ library support
12867         ld_shlibs_CXX=no
12868         ;;
12869       aix[4-9]*)
12870         if test "$host_cpu" = ia64; then
12871           # On IA64, the linker does run time linking by default, so we don't
12872           # have to do anything special.
12873           aix_use_runtimelinking=no
12874           exp_sym_flag='-Bexport'
12875           no_entry_flag=""
12876         else
12877           aix_use_runtimelinking=no
12878
12879           # Test if we are trying to use run time linking or normal
12880           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12881           # need to do runtime linking.
12882           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12883             for ld_flag in $LDFLAGS; do
12884               case $ld_flag in
12885               *-brtl*)
12886                 aix_use_runtimelinking=yes
12887                 break
12888                 ;;
12889               esac
12890             done
12891             ;;
12892           esac
12893
12894           exp_sym_flag='-bexport'
12895           no_entry_flag='-bnoentry'
12896         fi
12897
12898         # When large executables or shared objects are built, AIX ld can
12899         # have problems creating the table of contents.  If linking a library
12900         # or program results in "error TOC overflow" add -mminimal-toc to
12901         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12902         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12903
12904         archive_cmds_CXX=''
12905         hardcode_direct_CXX=yes
12906         hardcode_direct_absolute_CXX=yes
12907         hardcode_libdir_separator_CXX=':'
12908         link_all_deplibs_CXX=yes
12909         file_list_spec_CXX='${wl}-f,'
12910
12911         if test "$GXX" = yes; then
12912           case $host_os in aix4.[012]|aix4.[012].*)
12913           # We only want to do this on AIX 4.2 and lower, the check
12914           # below for broken collect2 doesn't work under 4.3+
12915           collect2name=`${CC} -print-prog-name=collect2`
12916           if test -f "$collect2name" &&
12917              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12918           then
12919             # We have reworked collect2
12920             :
12921           else
12922             # We have old collect2
12923             hardcode_direct_CXX=unsupported
12924             # It fails to find uninstalled libraries when the uninstalled
12925             # path is not listed in the libpath.  Setting hardcode_minus_L
12926             # to unsupported forces relinking
12927             hardcode_minus_L_CXX=yes
12928             hardcode_libdir_flag_spec_CXX='-L$libdir'
12929             hardcode_libdir_separator_CXX=
12930           fi
12931           esac
12932           shared_flag='-shared'
12933           if test "$aix_use_runtimelinking" = yes; then
12934             shared_flag="$shared_flag "'${wl}-G'
12935           fi
12936         else
12937           # not using gcc
12938           if test "$host_cpu" = ia64; then
12939           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12940           # chokes on -Wl,-G. The following line is correct:
12941           shared_flag='-G'
12942           else
12943             if test "$aix_use_runtimelinking" = yes; then
12944               shared_flag='${wl}-G'
12945             else
12946               shared_flag='${wl}-bM:SRE'
12947             fi
12948           fi
12949         fi
12950
12951         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12952         # It seems that -bexpall does not export symbols beginning with
12953         # underscore (_), so it is better to generate a list of symbols to
12954         # export.
12955         always_export_symbols_CXX=yes
12956         if test "$aix_use_runtimelinking" = yes; then
12957           # Warning - without using the other runtime loading flags (-brtl),
12958           # -berok will link without error, but may produce a broken library.
12959           allow_undefined_flag_CXX='-berok'
12960           # Determine the default libpath from the value encoded in an empty
12961           # executable.
12962           if test "${lt_cv_aix_libpath+set}" = set; then
12963   aix_libpath=$lt_cv_aix_libpath
12964 else
12965   if ${lt_cv_aix_libpath__CXX+:} false; then :
12966   $as_echo_n "(cached) " >&6
12967 else
12968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12969 /* end confdefs.h.  */
12970
12971 int
12972 main ()
12973 {
12974
12975   ;
12976   return 0;
12977 }
12978 _ACEOF
12979 if ac_fn_cxx_try_link "$LINENO"; then :
12980
12981   lt_aix_libpath_sed='
12982       /Import File Strings/,/^$/ {
12983           /^0/ {
12984               s/^0  *\([^ ]*\) *$/\1/
12985               p
12986           }
12987       }'
12988   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12989   # Check for a 64-bit object if we didn't find anything.
12990   if test -z "$lt_cv_aix_libpath__CXX"; then
12991     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12992   fi
12993 fi
12994 rm -f core conftest.err conftest.$ac_objext \
12995     conftest$ac_exeext conftest.$ac_ext
12996   if test -z "$lt_cv_aix_libpath__CXX"; then
12997     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12998   fi
12999
13000 fi
13001
13002   aix_libpath=$lt_cv_aix_libpath__CXX
13003 fi
13004
13005           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13006
13007           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"
13008         else
13009           if test "$host_cpu" = ia64; then
13010             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13011             allow_undefined_flag_CXX="-z nodefs"
13012             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"
13013           else
13014             # Determine the default libpath from the value encoded in an
13015             # empty executable.
13016             if test "${lt_cv_aix_libpath+set}" = set; then
13017   aix_libpath=$lt_cv_aix_libpath
13018 else
13019   if ${lt_cv_aix_libpath__CXX+:} false; then :
13020   $as_echo_n "(cached) " >&6
13021 else
13022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13023 /* end confdefs.h.  */
13024
13025 int
13026 main ()
13027 {
13028
13029   ;
13030   return 0;
13031 }
13032 _ACEOF
13033 if ac_fn_cxx_try_link "$LINENO"; then :
13034
13035   lt_aix_libpath_sed='
13036       /Import File Strings/,/^$/ {
13037           /^0/ {
13038               s/^0  *\([^ ]*\) *$/\1/
13039               p
13040           }
13041       }'
13042   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13043   # Check for a 64-bit object if we didn't find anything.
13044   if test -z "$lt_cv_aix_libpath__CXX"; then
13045     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13046   fi
13047 fi
13048 rm -f core conftest.err conftest.$ac_objext \
13049     conftest$ac_exeext conftest.$ac_ext
13050   if test -z "$lt_cv_aix_libpath__CXX"; then
13051     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13052   fi
13053
13054 fi
13055
13056   aix_libpath=$lt_cv_aix_libpath__CXX
13057 fi
13058
13059             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13060             # Warning - without using the other run time loading flags,
13061             # -berok will link without error, but may produce a broken library.
13062             no_undefined_flag_CXX=' ${wl}-bernotok'
13063             allow_undefined_flag_CXX=' ${wl}-berok'
13064             if test "$with_gnu_ld" = yes; then
13065               # We only use this code for GNU lds that support --whole-archive.
13066               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13067             else
13068               # Exported symbols can be pulled into shared objects from archives
13069               whole_archive_flag_spec_CXX='$convenience'
13070             fi
13071             archive_cmds_need_lc_CXX=yes
13072             # This is similar to how AIX traditionally builds its shared
13073             # libraries.
13074             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'
13075           fi
13076         fi
13077         ;;
13078
13079       beos*)
13080         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13081           allow_undefined_flag_CXX=unsupported
13082           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13083           # support --undefined.  This deserves some investigation.  FIXME
13084           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13085         else
13086           ld_shlibs_CXX=no
13087         fi
13088         ;;
13089
13090       chorus*)
13091         case $cc_basename in
13092           *)
13093           # FIXME: insert proper C++ library support
13094           ld_shlibs_CXX=no
13095           ;;
13096         esac
13097         ;;
13098
13099       cygwin* | mingw* | pw32* | cegcc*)
13100         case $GXX,$cc_basename in
13101         ,cl* | no,cl*)
13102           # Native MSVC
13103           # hardcode_libdir_flag_spec is actually meaningless, as there is
13104           # no search path for DLLs.
13105           hardcode_libdir_flag_spec_CXX=' '
13106           allow_undefined_flag_CXX=unsupported
13107           always_export_symbols_CXX=yes
13108           file_list_spec_CXX='@'
13109           # Tell ltmain to make .lib files, not .a files.
13110           libext=lib
13111           # Tell ltmain to make .dll files, not .so files.
13112           shrext_cmds=".dll"
13113           # FIXME: Setting linknames here is a bad hack.
13114           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13115           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13116               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13117             else
13118               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13119             fi~
13120             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13121             linknames='
13122           # The linker will not automatically build a static lib if we build a DLL.
13123           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13124           enable_shared_with_static_runtimes_CXX=yes
13125           # Don't use ranlib
13126           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13127           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13128             lt_tool_outputfile="@TOOL_OUTPUT@"~
13129             case $lt_outputfile in
13130               *.exe|*.EXE) ;;
13131               *)
13132                 lt_outputfile="$lt_outputfile.exe"
13133                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13134                 ;;
13135             esac~
13136             func_to_tool_file "$lt_outputfile"~
13137             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13138               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13139               $RM "$lt_outputfile.manifest";
13140             fi'
13141           ;;
13142         *)
13143           # g++
13144           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13145           # as there is no search path for DLLs.
13146           hardcode_libdir_flag_spec_CXX='-L$libdir'
13147           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13148           allow_undefined_flag_CXX=unsupported
13149           always_export_symbols_CXX=no
13150           enable_shared_with_static_runtimes_CXX=yes
13151
13152           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13153             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'
13154             # If the export-symbols file already is a .def file (1st line
13155             # is EXPORTS), use it as is; otherwise, prepend...
13156             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13157               cp $export_symbols $output_objdir/$soname.def;
13158             else
13159               echo EXPORTS > $output_objdir/$soname.def;
13160               cat $export_symbols >> $output_objdir/$soname.def;
13161             fi~
13162             $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'
13163           else
13164             ld_shlibs_CXX=no
13165           fi
13166           ;;
13167         esac
13168         ;;
13169       darwin* | rhapsody*)
13170
13171
13172   archive_cmds_need_lc_CXX=no
13173   hardcode_direct_CXX=no
13174   hardcode_automatic_CXX=yes
13175   hardcode_shlibpath_var_CXX=unsupported
13176   if test "$lt_cv_ld_force_load" = "yes"; then
13177     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\"`'
13178
13179   else
13180     whole_archive_flag_spec_CXX=''
13181   fi
13182   link_all_deplibs_CXX=yes
13183   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13184   case $cc_basename in
13185      ifort*) _lt_dar_can_shared=yes ;;
13186      *) _lt_dar_can_shared=$GCC ;;
13187   esac
13188   if test "$_lt_dar_can_shared" = "yes"; then
13189     output_verbose_link_cmd=func_echo_all
13190     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}"
13191     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13192     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}"
13193     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}"
13194        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13195       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}"
13196       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}"
13197     fi
13198
13199   else
13200   ld_shlibs_CXX=no
13201   fi
13202
13203         ;;
13204
13205       dgux*)
13206         case $cc_basename in
13207           ec++*)
13208             # FIXME: insert proper C++ library support
13209             ld_shlibs_CXX=no
13210             ;;
13211           ghcx*)
13212             # Green Hills C++ Compiler
13213             # FIXME: insert proper C++ library support
13214             ld_shlibs_CXX=no
13215             ;;
13216           *)
13217             # FIXME: insert proper C++ library support
13218             ld_shlibs_CXX=no
13219             ;;
13220         esac
13221         ;;
13222
13223       freebsd2.*)
13224         # C++ shared libraries reported to be fairly broken before
13225         # switch to ELF
13226         ld_shlibs_CXX=no
13227         ;;
13228
13229       freebsd-elf*)
13230         archive_cmds_need_lc_CXX=no
13231         ;;
13232
13233       freebsd* | dragonfly*)
13234         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13235         # conventions
13236         ld_shlibs_CXX=yes
13237         ;;
13238
13239       haiku*)
13240         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13241         link_all_deplibs_CXX=yes
13242         ;;
13243
13244       hpux9*)
13245         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13246         hardcode_libdir_separator_CXX=:
13247         export_dynamic_flag_spec_CXX='${wl}-E'
13248         hardcode_direct_CXX=yes
13249         hardcode_minus_L_CXX=yes # Not in the search PATH,
13250                                              # but as the default
13251                                              # location of the library.
13252
13253         case $cc_basename in
13254           CC*)
13255             # FIXME: insert proper C++ library support
13256             ld_shlibs_CXX=no
13257             ;;
13258           aCC*)
13259             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'
13260             # Commands to make compiler produce verbose output that lists
13261             # what "hidden" libraries, object files and flags are used when
13262             # linking a shared library.
13263             #
13264             # There doesn't appear to be a way to prevent this compiler from
13265             # explicitly linking system object files so we need to strip them
13266             # from the output so that they don't get included in the library
13267             # dependencies.
13268             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"'
13269             ;;
13270           *)
13271             if test "$GXX" = yes; then
13272               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'
13273             else
13274               # FIXME: insert proper C++ library support
13275               ld_shlibs_CXX=no
13276             fi
13277             ;;
13278         esac
13279         ;;
13280
13281       hpux10*|hpux11*)
13282         if test $with_gnu_ld = no; then
13283           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13284           hardcode_libdir_separator_CXX=:
13285
13286           case $host_cpu in
13287             hppa*64*|ia64*)
13288               ;;
13289             *)
13290               export_dynamic_flag_spec_CXX='${wl}-E'
13291               ;;
13292           esac
13293         fi
13294         case $host_cpu in
13295           hppa*64*|ia64*)
13296             hardcode_direct_CXX=no
13297             hardcode_shlibpath_var_CXX=no
13298             ;;
13299           *)
13300             hardcode_direct_CXX=yes
13301             hardcode_direct_absolute_CXX=yes
13302             hardcode_minus_L_CXX=yes # Not in the search PATH,
13303                                                  # but as the default
13304                                                  # location of the library.
13305             ;;
13306         esac
13307
13308         case $cc_basename in
13309           CC*)
13310             # FIXME: insert proper C++ library support
13311             ld_shlibs_CXX=no
13312             ;;
13313           aCC*)
13314             case $host_cpu in
13315               hppa*64*)
13316                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13317                 ;;
13318               ia64*)
13319                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13320                 ;;
13321               *)
13322                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13323                 ;;
13324             esac
13325             # Commands to make compiler produce verbose output that lists
13326             # what "hidden" libraries, object files and flags are used when
13327             # linking a shared library.
13328             #
13329             # There doesn't appear to be a way to prevent this compiler from
13330             # explicitly linking system object files so we need to strip them
13331             # from the output so that they don't get included in the library
13332             # dependencies.
13333             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"'
13334             ;;
13335           *)
13336             if test "$GXX" = yes; then
13337               if test $with_gnu_ld = no; then
13338                 case $host_cpu in
13339                   hppa*64*)
13340                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13341                     ;;
13342                   ia64*)
13343                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13344                     ;;
13345                   *)
13346                     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'
13347                     ;;
13348                 esac
13349               fi
13350             else
13351               # FIXME: insert proper C++ library support
13352               ld_shlibs_CXX=no
13353             fi
13354             ;;
13355         esac
13356         ;;
13357
13358       interix[3-9]*)
13359         hardcode_direct_CXX=no
13360         hardcode_shlibpath_var_CXX=no
13361         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13362         export_dynamic_flag_spec_CXX='${wl}-E'
13363         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13364         # Instead, shared libraries are loaded at an image base (0x10000000 by
13365         # default) and relocated if they conflict, which is a slow very memory
13366         # consuming and fragmenting process.  To avoid this, we pick a random,
13367         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13368         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13369         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'
13370         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'
13371         ;;
13372       irix5* | irix6*)
13373         case $cc_basename in
13374           CC*)
13375             # SGI C++
13376             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'
13377
13378             # Archives containing C++ object files must be created using
13379             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13380             # necessary to make sure instantiated templates are included
13381             # in the archive.
13382             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13383             ;;
13384           *)
13385             if test "$GXX" = yes; then
13386               if test "$with_gnu_ld" = no; then
13387                 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'
13388               else
13389                 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'
13390               fi
13391             fi
13392             link_all_deplibs_CXX=yes
13393             ;;
13394         esac
13395         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13396         hardcode_libdir_separator_CXX=:
13397         inherit_rpath_CXX=yes
13398         ;;
13399
13400       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13401         case $cc_basename in
13402           KCC*)
13403             # Kuck and Associates, Inc. (KAI) C++ Compiler
13404
13405             # KCC will only create a shared library if the output file
13406             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13407             # to its proper name (with version) after linking.
13408             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'
13409             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'
13410             # Commands to make compiler produce verbose output that lists
13411             # what "hidden" libraries, object files and flags are used when
13412             # linking a shared library.
13413             #
13414             # There doesn't appear to be a way to prevent this compiler from
13415             # explicitly linking system object files so we need to strip them
13416             # from the output so that they don't get included in the library
13417             # dependencies.
13418             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"'
13419
13420             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13421             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13422
13423             # Archives containing C++ object files must be created using
13424             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13425             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13426             ;;
13427           icpc* | ecpc* )
13428             # Intel C++
13429             with_gnu_ld=yes
13430             # version 8.0 and above of icpc choke on multiply defined symbols
13431             # if we add $predep_objects and $postdep_objects, however 7.1 and
13432             # earlier do not add the objects themselves.
13433             case `$CC -V 2>&1` in
13434               *"Version 7."*)
13435                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13436                 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'
13437                 ;;
13438               *)  # Version 8.0 or newer
13439                 tmp_idyn=
13440                 case $host_cpu in
13441                   ia64*) tmp_idyn=' -i_dynamic';;
13442                 esac
13443                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13444                 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'
13445                 ;;
13446             esac
13447             archive_cmds_need_lc_CXX=no
13448             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13449             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13450             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13451             ;;
13452           pgCC* | pgcpp*)
13453             # Portland Group C++ compiler
13454             case `$CC -V` in
13455             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13456               prelink_cmds_CXX='tpldir=Template.dir~
13457                 rm -rf $tpldir~
13458                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13459                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13460               old_archive_cmds_CXX='tpldir=Template.dir~
13461                 rm -rf $tpldir~
13462                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13463                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13464                 $RANLIB $oldlib'
13465               archive_cmds_CXX='tpldir=Template.dir~
13466                 rm -rf $tpldir~
13467                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13468                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13469               archive_expsym_cmds_CXX='tpldir=Template.dir~
13470                 rm -rf $tpldir~
13471                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13472                 $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'
13473               ;;
13474             *) # Version 6 and above use weak symbols
13475               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13476               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'
13477               ;;
13478             esac
13479
13480             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13481             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13482             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'
13483             ;;
13484           cxx*)
13485             # Compaq C++
13486             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13487             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'
13488
13489             runpath_var=LD_RUN_PATH
13490             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13491             hardcode_libdir_separator_CXX=:
13492
13493             # Commands to make compiler produce verbose output that lists
13494             # what "hidden" libraries, object files and flags are used when
13495             # linking a shared library.
13496             #
13497             # There doesn't appear to be a way to prevent this compiler from
13498             # explicitly linking system object files so we need to strip them
13499             # from the output so that they don't get included in the library
13500             # dependencies.
13501             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'
13502             ;;
13503           xl* | mpixl* | bgxl*)
13504             # IBM XL 8.0 on PPC, with GNU ld
13505             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13506             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13507             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13508             if test "x$supports_anon_versioning" = xyes; then
13509               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13510                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13511                 echo "local: *; };" >> $output_objdir/$libname.ver~
13512                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13513             fi
13514             ;;
13515           *)
13516             case `$CC -V 2>&1 | sed 5q` in
13517             *Sun\ C*)
13518               # Sun C++ 5.9
13519               no_undefined_flag_CXX=' -zdefs'
13520               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13521               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'
13522               hardcode_libdir_flag_spec_CXX='-R$libdir'
13523               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'
13524               compiler_needs_object_CXX=yes
13525
13526               # Not sure whether something based on
13527               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13528               # would be better.
13529               output_verbose_link_cmd='func_echo_all'
13530
13531               # Archives containing C++ object files must be created using
13532               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13533               # necessary to make sure instantiated templates are included
13534               # in the archive.
13535               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13536               ;;
13537             esac
13538             ;;
13539         esac
13540         ;;
13541
13542       lynxos*)
13543         # FIXME: insert proper C++ library support
13544         ld_shlibs_CXX=no
13545         ;;
13546
13547       m88k*)
13548         # FIXME: insert proper C++ library support
13549         ld_shlibs_CXX=no
13550         ;;
13551
13552       mvs*)
13553         case $cc_basename in
13554           cxx*)
13555             # FIXME: insert proper C++ library support
13556             ld_shlibs_CXX=no
13557             ;;
13558           *)
13559             # FIXME: insert proper C++ library support
13560             ld_shlibs_CXX=no
13561             ;;
13562         esac
13563         ;;
13564
13565       netbsd*)
13566         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13567           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13568           wlarc=
13569           hardcode_libdir_flag_spec_CXX='-R$libdir'
13570           hardcode_direct_CXX=yes
13571           hardcode_shlibpath_var_CXX=no
13572         fi
13573         # Workaround some broken pre-1.5 toolchains
13574         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13575         ;;
13576
13577       *nto* | *qnx*)
13578         ld_shlibs_CXX=yes
13579         ;;
13580
13581       openbsd2*)
13582         # C++ shared libraries are fairly broken
13583         ld_shlibs_CXX=no
13584         ;;
13585
13586       openbsd*)
13587         if test -f /usr/libexec/ld.so; then
13588           hardcode_direct_CXX=yes
13589           hardcode_shlibpath_var_CXX=no
13590           hardcode_direct_absolute_CXX=yes
13591           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13592           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13593           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13594             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13595             export_dynamic_flag_spec_CXX='${wl}-E'
13596             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13597           fi
13598           output_verbose_link_cmd=func_echo_all
13599         else
13600           ld_shlibs_CXX=no
13601         fi
13602         ;;
13603
13604       osf3* | osf4* | osf5*)
13605         case $cc_basename in
13606           KCC*)
13607             # Kuck and Associates, Inc. (KAI) C++ Compiler
13608
13609             # KCC will only create a shared library if the output file
13610             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13611             # to its proper name (with version) after linking.
13612             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'
13613
13614             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13615             hardcode_libdir_separator_CXX=:
13616
13617             # Archives containing C++ object files must be created using
13618             # the KAI C++ compiler.
13619             case $host in
13620               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13621               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13622             esac
13623             ;;
13624           RCC*)
13625             # Rational C++ 2.4.1
13626             # FIXME: insert proper C++ library support
13627             ld_shlibs_CXX=no
13628             ;;
13629           cxx*)
13630             case $host in
13631               osf3*)
13632                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13633                 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'
13634                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13635                 ;;
13636               *)
13637                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13638                 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'
13639                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13640                   echo "-hidden">> $lib.exp~
13641                   $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~
13642                   $RM $lib.exp'
13643                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13644                 ;;
13645             esac
13646
13647             hardcode_libdir_separator_CXX=:
13648
13649             # Commands to make compiler produce verbose output that lists
13650             # what "hidden" libraries, object files and flags are used when
13651             # linking a shared library.
13652             #
13653             # There doesn't appear to be a way to prevent this compiler from
13654             # explicitly linking system object files so we need to strip them
13655             # from the output so that they don't get included in the library
13656             # dependencies.
13657             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"'
13658             ;;
13659           *)
13660             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13661               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13662               case $host in
13663                 osf3*)
13664                   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'
13665                   ;;
13666                 *)
13667                   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'
13668                   ;;
13669               esac
13670
13671               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13672               hardcode_libdir_separator_CXX=:
13673
13674               # Commands to make compiler produce verbose output that lists
13675               # what "hidden" libraries, object files and flags are used when
13676               # linking a shared library.
13677               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13678
13679             else
13680               # FIXME: insert proper C++ library support
13681               ld_shlibs_CXX=no
13682             fi
13683             ;;
13684         esac
13685         ;;
13686
13687       psos*)
13688         # FIXME: insert proper C++ library support
13689         ld_shlibs_CXX=no
13690         ;;
13691
13692       sunos4*)
13693         case $cc_basename in
13694           CC*)
13695             # Sun C++ 4.x
13696             # FIXME: insert proper C++ library support
13697             ld_shlibs_CXX=no
13698             ;;
13699           lcc*)
13700             # Lucid
13701             # FIXME: insert proper C++ library support
13702             ld_shlibs_CXX=no
13703             ;;
13704           *)
13705             # FIXME: insert proper C++ library support
13706             ld_shlibs_CXX=no
13707             ;;
13708         esac
13709         ;;
13710
13711       solaris*)
13712         case $cc_basename in
13713           CC* | sunCC*)
13714             # Sun C++ 4.2, 5.x and Centerline C++
13715             archive_cmds_need_lc_CXX=yes
13716             no_undefined_flag_CXX=' -zdefs'
13717             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13718             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13719               $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'
13720
13721             hardcode_libdir_flag_spec_CXX='-R$libdir'
13722             hardcode_shlibpath_var_CXX=no
13723             case $host_os in
13724               solaris2.[0-5] | solaris2.[0-5].*) ;;
13725               *)
13726                 # The compiler driver will combine and reorder linker options,
13727                 # but understands `-z linker_flag'.
13728                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13729                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13730                 ;;
13731             esac
13732             link_all_deplibs_CXX=yes
13733
13734             output_verbose_link_cmd='func_echo_all'
13735
13736             # Archives containing C++ object files must be created using
13737             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13738             # necessary to make sure instantiated templates are included
13739             # in the archive.
13740             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13741             ;;
13742           gcx*)
13743             # Green Hills C++ Compiler
13744             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13745
13746             # The C++ compiler must be used to create the archive.
13747             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13748             ;;
13749           *)
13750             # GNU C++ compiler with Solaris linker
13751             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13752               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13753               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13754                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13755                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13756                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13757
13758                 # Commands to make compiler produce verbose output that lists
13759                 # what "hidden" libraries, object files and flags are used when
13760                 # linking a shared library.
13761                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13762               else
13763                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13764                 # platform.
13765                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13766                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13767                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13768
13769                 # Commands to make compiler produce verbose output that lists
13770                 # what "hidden" libraries, object files and flags are used when
13771                 # linking a shared library.
13772                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13773               fi
13774
13775               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13776               case $host_os in
13777                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13778                 *)
13779                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13780                   ;;
13781               esac
13782             fi
13783             ;;
13784         esac
13785         ;;
13786
13787     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13788       no_undefined_flag_CXX='${wl}-z,text'
13789       archive_cmds_need_lc_CXX=no
13790       hardcode_shlibpath_var_CXX=no
13791       runpath_var='LD_RUN_PATH'
13792
13793       case $cc_basename in
13794         CC*)
13795           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13796           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13797           ;;
13798         *)
13799           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13800           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13801           ;;
13802       esac
13803       ;;
13804
13805       sysv5* | sco3.2v5* | sco5v6*)
13806         # Note: We can NOT use -z defs as we might desire, because we do not
13807         # link with -lc, and that would cause any symbols used from libc to
13808         # always be unresolved, which means just about no library would
13809         # ever link correctly.  If we're not using GNU ld we use -z text
13810         # though, which does catch some bad symbols but isn't as heavy-handed
13811         # as -z defs.
13812         no_undefined_flag_CXX='${wl}-z,text'
13813         allow_undefined_flag_CXX='${wl}-z,nodefs'
13814         archive_cmds_need_lc_CXX=no
13815         hardcode_shlibpath_var_CXX=no
13816         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13817         hardcode_libdir_separator_CXX=':'
13818         link_all_deplibs_CXX=yes
13819         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13820         runpath_var='LD_RUN_PATH'
13821
13822         case $cc_basename in
13823           CC*)
13824             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13825             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13826             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13827               '"$old_archive_cmds_CXX"
13828             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13829               '"$reload_cmds_CXX"
13830             ;;
13831           *)
13832             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13833             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13834             ;;
13835         esac
13836       ;;
13837
13838       tandem*)
13839         case $cc_basename in
13840           NCC*)
13841             # NonStop-UX NCC 3.20
13842             # FIXME: insert proper C++ library support
13843             ld_shlibs_CXX=no
13844             ;;
13845           *)
13846             # FIXME: insert proper C++ library support
13847             ld_shlibs_CXX=no
13848             ;;
13849         esac
13850         ;;
13851
13852       vxworks*)
13853         # FIXME: insert proper C++ library support
13854         ld_shlibs_CXX=no
13855         ;;
13856
13857       *)
13858         # FIXME: insert proper C++ library support
13859         ld_shlibs_CXX=no
13860         ;;
13861     esac
13862
13863     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13864 $as_echo "$ld_shlibs_CXX" >&6; }
13865     test "$ld_shlibs_CXX" = no && can_build_shared=no
13866
13867     GCC_CXX="$GXX"
13868     LD_CXX="$LD"
13869
13870     ## CAVEAT EMPTOR:
13871     ## There is no encapsulation within the following macros, do not change
13872     ## the running order or otherwise move them around unless you know exactly
13873     ## what you are doing...
13874     # Dependencies to place before and after the object being linked:
13875 predep_objects_CXX=
13876 postdep_objects_CXX=
13877 predeps_CXX=
13878 postdeps_CXX=
13879 compiler_lib_search_path_CXX=
13880
13881 cat > conftest.$ac_ext <<_LT_EOF
13882 class Foo
13883 {
13884 public:
13885   Foo (void) { a = 0; }
13886 private:
13887   int a;
13888 };
13889 _LT_EOF
13890
13891
13892 _lt_libdeps_save_CFLAGS=$CFLAGS
13893 case "$CC $CFLAGS " in #(
13894 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13895 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13896 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13897 esac
13898
13899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13900   (eval $ac_compile) 2>&5
13901   ac_status=$?
13902   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13903   test $ac_status = 0; }; then
13904   # Parse the compiler output and extract the necessary
13905   # objects, libraries and library flags.
13906
13907   # Sentinel used to keep track of whether or not we are before
13908   # the conftest object file.
13909   pre_test_object_deps_done=no
13910
13911   for p in `eval "$output_verbose_link_cmd"`; do
13912     case ${prev}${p} in
13913
13914     -L* | -R* | -l*)
13915        # Some compilers place space between "-{L,R}" and the path.
13916        # Remove the space.
13917        if test $p = "-L" ||
13918           test $p = "-R"; then
13919          prev=$p
13920          continue
13921        fi
13922
13923        # Expand the sysroot to ease extracting the directories later.
13924        if test -z "$prev"; then
13925          case $p in
13926          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13927          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13928          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13929          esac
13930        fi
13931        case $p in
13932        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13933        esac
13934        if test "$pre_test_object_deps_done" = no; then
13935          case ${prev} in
13936          -L | -R)
13937            # Internal compiler library paths should come after those
13938            # provided the user.  The postdeps already come after the
13939            # user supplied libs so there is no need to process them.
13940            if test -z "$compiler_lib_search_path_CXX"; then
13941              compiler_lib_search_path_CXX="${prev}${p}"
13942            else
13943              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13944            fi
13945            ;;
13946          # The "-l" case would never come before the object being
13947          # linked, so don't bother handling this case.
13948          esac
13949        else
13950          if test -z "$postdeps_CXX"; then
13951            postdeps_CXX="${prev}${p}"
13952          else
13953            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13954          fi
13955        fi
13956        prev=
13957        ;;
13958
13959     *.lto.$objext) ;; # Ignore GCC LTO objects
13960     *.$objext)
13961        # This assumes that the test object file only shows up
13962        # once in the compiler output.
13963        if test "$p" = "conftest.$objext"; then
13964          pre_test_object_deps_done=yes
13965          continue
13966        fi
13967
13968        if test "$pre_test_object_deps_done" = no; then
13969          if test -z "$predep_objects_CXX"; then
13970            predep_objects_CXX="$p"
13971          else
13972            predep_objects_CXX="$predep_objects_CXX $p"
13973          fi
13974        else
13975          if test -z "$postdep_objects_CXX"; then
13976            postdep_objects_CXX="$p"
13977          else
13978            postdep_objects_CXX="$postdep_objects_CXX $p"
13979          fi
13980        fi
13981        ;;
13982
13983     *) ;; # Ignore the rest.
13984
13985     esac
13986   done
13987
13988   # Clean up.
13989   rm -f a.out a.exe
13990 else
13991   echo "libtool.m4: error: problem compiling CXX test program"
13992 fi
13993
13994 $RM -f confest.$objext
13995 CFLAGS=$_lt_libdeps_save_CFLAGS
13996
13997 # PORTME: override above test on systems where it is broken
13998 case $host_os in
13999 interix[3-9]*)
14000   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14001   # hack all around it, let's just trust "g++" to DTRT.
14002   predep_objects_CXX=
14003   postdep_objects_CXX=
14004   postdeps_CXX=
14005   ;;
14006
14007 linux*)
14008   case `$CC -V 2>&1 | sed 5q` in
14009   *Sun\ C*)
14010     # Sun C++ 5.9
14011
14012     # The more standards-conforming stlport4 library is
14013     # incompatible with the Cstd library. Avoid specifying
14014     # it if it's in CXXFLAGS. Ignore libCrun as
14015     # -library=stlport4 depends on it.
14016     case " $CXX $CXXFLAGS " in
14017     *" -library=stlport4 "*)
14018       solaris_use_stlport4=yes
14019       ;;
14020     esac
14021
14022     if test "$solaris_use_stlport4" != yes; then
14023       postdeps_CXX='-library=Cstd -library=Crun'
14024     fi
14025     ;;
14026   esac
14027   ;;
14028
14029 solaris*)
14030   case $cc_basename in
14031   CC* | sunCC*)
14032     # The more standards-conforming stlport4 library is
14033     # incompatible with the Cstd library. Avoid specifying
14034     # it if it's in CXXFLAGS. Ignore libCrun as
14035     # -library=stlport4 depends on it.
14036     case " $CXX $CXXFLAGS " in
14037     *" -library=stlport4 "*)
14038       solaris_use_stlport4=yes
14039       ;;
14040     esac
14041
14042     # Adding this requires a known-good setup of shared libraries for
14043     # Sun compiler versions before 5.6, else PIC objects from an old
14044     # archive will be linked into the output, leading to subtle bugs.
14045     if test "$solaris_use_stlport4" != yes; then
14046       postdeps_CXX='-library=Cstd -library=Crun'
14047     fi
14048     ;;
14049   esac
14050   ;;
14051 esac
14052
14053
14054 case " $postdeps_CXX " in
14055 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14056 esac
14057  compiler_lib_search_dirs_CXX=
14058 if test -n "${compiler_lib_search_path_CXX}"; then
14059  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14060 fi
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092     lt_prog_compiler_wl_CXX=
14093 lt_prog_compiler_pic_CXX=
14094 lt_prog_compiler_static_CXX=
14095
14096
14097   # C++ specific cases for pic, static, wl, etc.
14098   if test "$GXX" = yes; then
14099     lt_prog_compiler_wl_CXX='-Wl,'
14100     lt_prog_compiler_static_CXX='-static'
14101
14102     case $host_os in
14103     aix*)
14104       # All AIX code is PIC.
14105       if test "$host_cpu" = ia64; then
14106         # AIX 5 now supports IA64 processor
14107         lt_prog_compiler_static_CXX='-Bstatic'
14108       fi
14109       ;;
14110
14111     amigaos*)
14112       case $host_cpu in
14113       powerpc)
14114             # see comment about AmigaOS4 .so support
14115             lt_prog_compiler_pic_CXX='-fPIC'
14116         ;;
14117       m68k)
14118             # FIXME: we need at least 68020 code to build shared libraries, but
14119             # adding the `-m68020' flag to GCC prevents building anything better,
14120             # like `-m68040'.
14121             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14122         ;;
14123       esac
14124       ;;
14125
14126     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14127       # PIC is the default for these OSes.
14128       ;;
14129     mingw* | cygwin* | os2* | pw32* | cegcc*)
14130       # This hack is so that the source file can tell whether it is being
14131       # built for inclusion in a dll (and should export symbols for example).
14132       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14133       # (--disable-auto-import) libraries
14134       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14135       ;;
14136     darwin* | rhapsody*)
14137       # PIC is the default on this platform
14138       # Common symbols not allowed in MH_DYLIB files
14139       lt_prog_compiler_pic_CXX='-fno-common'
14140       ;;
14141     *djgpp*)
14142       # DJGPP does not support shared libraries at all
14143       lt_prog_compiler_pic_CXX=
14144       ;;
14145     haiku*)
14146       # PIC is the default for Haiku.
14147       # The "-static" flag exists, but is broken.
14148       lt_prog_compiler_static_CXX=
14149       ;;
14150     interix[3-9]*)
14151       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14152       # Instead, we relocate shared libraries at runtime.
14153       ;;
14154     sysv4*MP*)
14155       if test -d /usr/nec; then
14156         lt_prog_compiler_pic_CXX=-Kconform_pic
14157       fi
14158       ;;
14159     hpux*)
14160       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14161       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14162       # sets the default TLS model and affects inlining.
14163       case $host_cpu in
14164       hppa*64*)
14165         ;;
14166       *)
14167         lt_prog_compiler_pic_CXX='-fPIC'
14168         ;;
14169       esac
14170       ;;
14171     *qnx* | *nto*)
14172       # QNX uses GNU C++, but need to define -shared option too, otherwise
14173       # it will coredump.
14174       lt_prog_compiler_pic_CXX='-fPIC -shared'
14175       ;;
14176     *)
14177       lt_prog_compiler_pic_CXX='-fPIC'
14178       ;;
14179     esac
14180   else
14181     case $host_os in
14182       aix[4-9]*)
14183         # All AIX code is PIC.
14184         if test "$host_cpu" = ia64; then
14185           # AIX 5 now supports IA64 processor
14186           lt_prog_compiler_static_CXX='-Bstatic'
14187         else
14188           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14189         fi
14190         ;;
14191       chorus*)
14192         case $cc_basename in
14193         cxch68*)
14194           # Green Hills C++ Compiler
14195           # _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"
14196           ;;
14197         esac
14198         ;;
14199       mingw* | cygwin* | os2* | pw32* | cegcc*)
14200         # This hack is so that the source file can tell whether it is being
14201         # built for inclusion in a dll (and should export symbols for example).
14202         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14203         ;;
14204       dgux*)
14205         case $cc_basename in
14206           ec++*)
14207             lt_prog_compiler_pic_CXX='-KPIC'
14208             ;;
14209           ghcx*)
14210             # Green Hills C++ Compiler
14211             lt_prog_compiler_pic_CXX='-pic'
14212             ;;
14213           *)
14214             ;;
14215         esac
14216         ;;
14217       freebsd* | dragonfly*)
14218         # FreeBSD uses GNU C++
14219         ;;
14220       hpux9* | hpux10* | hpux11*)
14221         case $cc_basename in
14222           CC*)
14223             lt_prog_compiler_wl_CXX='-Wl,'
14224             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14225             if test "$host_cpu" != ia64; then
14226               lt_prog_compiler_pic_CXX='+Z'
14227             fi
14228             ;;
14229           aCC*)
14230             lt_prog_compiler_wl_CXX='-Wl,'
14231             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14232             case $host_cpu in
14233             hppa*64*|ia64*)
14234               # +Z the default
14235               ;;
14236             *)
14237               lt_prog_compiler_pic_CXX='+Z'
14238               ;;
14239             esac
14240             ;;
14241           *)
14242             ;;
14243         esac
14244         ;;
14245       interix*)
14246         # This is c89, which is MS Visual C++ (no shared libs)
14247         # Anyone wants to do a port?
14248         ;;
14249       irix5* | irix6* | nonstopux*)
14250         case $cc_basename in
14251           CC*)
14252             lt_prog_compiler_wl_CXX='-Wl,'
14253             lt_prog_compiler_static_CXX='-non_shared'
14254             # CC pic flag -KPIC is the default.
14255             ;;
14256           *)
14257             ;;
14258         esac
14259         ;;
14260       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14261         case $cc_basename in
14262           KCC*)
14263             # KAI C++ Compiler
14264             lt_prog_compiler_wl_CXX='--backend -Wl,'
14265             lt_prog_compiler_pic_CXX='-fPIC'
14266             ;;
14267           ecpc* )
14268             # old Intel C++ for x86_64 which still supported -KPIC.
14269             lt_prog_compiler_wl_CXX='-Wl,'
14270             lt_prog_compiler_pic_CXX='-KPIC'
14271             lt_prog_compiler_static_CXX='-static'
14272             ;;
14273           icpc* )
14274             # Intel C++, used to be incompatible with GCC.
14275             # ICC 10 doesn't accept -KPIC any more.
14276             lt_prog_compiler_wl_CXX='-Wl,'
14277             lt_prog_compiler_pic_CXX='-fPIC'
14278             lt_prog_compiler_static_CXX='-static'
14279             ;;
14280           pgCC* | pgcpp*)
14281             # Portland Group C++ compiler
14282             lt_prog_compiler_wl_CXX='-Wl,'
14283             lt_prog_compiler_pic_CXX='-fpic'
14284             lt_prog_compiler_static_CXX='-Bstatic'
14285             ;;
14286           cxx*)
14287             # Compaq C++
14288             # Make sure the PIC flag is empty.  It appears that all Alpha
14289             # Linux and Compaq Tru64 Unix objects are PIC.
14290             lt_prog_compiler_pic_CXX=
14291             lt_prog_compiler_static_CXX='-non_shared'
14292             ;;
14293           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14294             # IBM XL 8.0, 9.0 on PPC and BlueGene
14295             lt_prog_compiler_wl_CXX='-Wl,'
14296             lt_prog_compiler_pic_CXX='-qpic'
14297             lt_prog_compiler_static_CXX='-qstaticlink'
14298             ;;
14299           *)
14300             case `$CC -V 2>&1 | sed 5q` in
14301             *Sun\ C*)
14302               # Sun C++ 5.9
14303               lt_prog_compiler_pic_CXX='-KPIC'
14304               lt_prog_compiler_static_CXX='-Bstatic'
14305               lt_prog_compiler_wl_CXX='-Qoption ld '
14306               ;;
14307             esac
14308             ;;
14309         esac
14310         ;;
14311       lynxos*)
14312         ;;
14313       m88k*)
14314         ;;
14315       mvs*)
14316         case $cc_basename in
14317           cxx*)
14318             lt_prog_compiler_pic_CXX='-W c,exportall'
14319             ;;
14320           *)
14321             ;;
14322         esac
14323         ;;
14324       netbsd* | netbsdelf*-gnu)
14325         ;;
14326       *qnx* | *nto*)
14327         # QNX uses GNU C++, but need to define -shared option too, otherwise
14328         # it will coredump.
14329         lt_prog_compiler_pic_CXX='-fPIC -shared'
14330         ;;
14331       osf3* | osf4* | osf5*)
14332         case $cc_basename in
14333           KCC*)
14334             lt_prog_compiler_wl_CXX='--backend -Wl,'
14335             ;;
14336           RCC*)
14337             # Rational C++ 2.4.1
14338             lt_prog_compiler_pic_CXX='-pic'
14339             ;;
14340           cxx*)
14341             # Digital/Compaq C++
14342             lt_prog_compiler_wl_CXX='-Wl,'
14343             # Make sure the PIC flag is empty.  It appears that all Alpha
14344             # Linux and Compaq Tru64 Unix objects are PIC.
14345             lt_prog_compiler_pic_CXX=
14346             lt_prog_compiler_static_CXX='-non_shared'
14347             ;;
14348           *)
14349             ;;
14350         esac
14351         ;;
14352       psos*)
14353         ;;
14354       solaris*)
14355         case $cc_basename in
14356           CC* | sunCC*)
14357             # Sun C++ 4.2, 5.x and Centerline C++
14358             lt_prog_compiler_pic_CXX='-KPIC'
14359             lt_prog_compiler_static_CXX='-Bstatic'
14360             lt_prog_compiler_wl_CXX='-Qoption ld '
14361             ;;
14362           gcx*)
14363             # Green Hills C++ Compiler
14364             lt_prog_compiler_pic_CXX='-PIC'
14365             ;;
14366           *)
14367             ;;
14368         esac
14369         ;;
14370       sunos4*)
14371         case $cc_basename in
14372           CC*)
14373             # Sun C++ 4.x
14374             lt_prog_compiler_pic_CXX='-pic'
14375             lt_prog_compiler_static_CXX='-Bstatic'
14376             ;;
14377           lcc*)
14378             # Lucid
14379             lt_prog_compiler_pic_CXX='-pic'
14380             ;;
14381           *)
14382             ;;
14383         esac
14384         ;;
14385       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14386         case $cc_basename in
14387           CC*)
14388             lt_prog_compiler_wl_CXX='-Wl,'
14389             lt_prog_compiler_pic_CXX='-KPIC'
14390             lt_prog_compiler_static_CXX='-Bstatic'
14391             ;;
14392         esac
14393         ;;
14394       tandem*)
14395         case $cc_basename in
14396           NCC*)
14397             # NonStop-UX NCC 3.20
14398             lt_prog_compiler_pic_CXX='-KPIC'
14399             ;;
14400           *)
14401             ;;
14402         esac
14403         ;;
14404       vxworks*)
14405         ;;
14406       *)
14407         lt_prog_compiler_can_build_shared_CXX=no
14408         ;;
14409     esac
14410   fi
14411
14412 case $host_os in
14413   # For platforms which do not support PIC, -DPIC is meaningless:
14414   *djgpp*)
14415     lt_prog_compiler_pic_CXX=
14416     ;;
14417   *)
14418     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14419     ;;
14420 esac
14421
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14423 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14424 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14425   $as_echo_n "(cached) " >&6
14426 else
14427   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14428 fi
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14430 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14431 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14432
14433 #
14434 # Check to make sure the PIC flag actually works.
14435 #
14436 if test -n "$lt_prog_compiler_pic_CXX"; then
14437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14438 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14439 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14440   $as_echo_n "(cached) " >&6
14441 else
14442   lt_cv_prog_compiler_pic_works_CXX=no
14443    ac_outfile=conftest.$ac_objext
14444    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14445    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14446    # Insert the option either (1) after the last *FLAGS variable, or
14447    # (2) before a word containing "conftest.", or (3) at the end.
14448    # Note that $ac_compile itself does not contain backslashes and begins
14449    # with a dollar sign (not a hyphen), so the echo should work correctly.
14450    # The option is referenced via a variable to avoid confusing sed.
14451    lt_compile=`echo "$ac_compile" | $SED \
14452    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14453    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14454    -e 's:$: $lt_compiler_flag:'`
14455    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14456    (eval "$lt_compile" 2>conftest.err)
14457    ac_status=$?
14458    cat conftest.err >&5
14459    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460    if (exit $ac_status) && test -s "$ac_outfile"; then
14461      # The compiler can only warn and ignore the option if not recognized
14462      # So say no if there are warnings other than the usual output.
14463      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14464      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14465      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14466        lt_cv_prog_compiler_pic_works_CXX=yes
14467      fi
14468    fi
14469    $RM conftest*
14470
14471 fi
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14473 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14474
14475 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14476     case $lt_prog_compiler_pic_CXX in
14477      "" | " "*) ;;
14478      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14479      esac
14480 else
14481     lt_prog_compiler_pic_CXX=
14482      lt_prog_compiler_can_build_shared_CXX=no
14483 fi
14484
14485 fi
14486
14487
14488
14489
14490
14491 #
14492 # Check to make sure the static flag actually works.
14493 #
14494 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14496 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14497 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14498   $as_echo_n "(cached) " >&6
14499 else
14500   lt_cv_prog_compiler_static_works_CXX=no
14501    save_LDFLAGS="$LDFLAGS"
14502    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14503    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14504    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14505      # The linker can only warn and ignore the option if not recognized
14506      # So say no if there are warnings
14507      if test -s conftest.err; then
14508        # Append any errors to the config.log.
14509        cat conftest.err 1>&5
14510        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14511        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14512        if diff conftest.exp conftest.er2 >/dev/null; then
14513          lt_cv_prog_compiler_static_works_CXX=yes
14514        fi
14515      else
14516        lt_cv_prog_compiler_static_works_CXX=yes
14517      fi
14518    fi
14519    $RM -r conftest*
14520    LDFLAGS="$save_LDFLAGS"
14521
14522 fi
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14524 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14525
14526 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14527     :
14528 else
14529     lt_prog_compiler_static_CXX=
14530 fi
14531
14532
14533
14534
14535     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14536 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14537 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14538   $as_echo_n "(cached) " >&6
14539 else
14540   lt_cv_prog_compiler_c_o_CXX=no
14541    $RM -r conftest 2>/dev/null
14542    mkdir conftest
14543    cd conftest
14544    mkdir out
14545    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14546
14547    lt_compiler_flag="-o out/conftest2.$ac_objext"
14548    # Insert the option either (1) after the last *FLAGS variable, or
14549    # (2) before a word containing "conftest.", or (3) at the end.
14550    # Note that $ac_compile itself does not contain backslashes and begins
14551    # with a dollar sign (not a hyphen), so the echo should work correctly.
14552    lt_compile=`echo "$ac_compile" | $SED \
14553    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14554    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14555    -e 's:$: $lt_compiler_flag:'`
14556    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14557    (eval "$lt_compile" 2>out/conftest.err)
14558    ac_status=$?
14559    cat out/conftest.err >&5
14560    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14562    then
14563      # The compiler can only warn and ignore the option if not recognized
14564      # So say no if there are warnings
14565      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14566      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14567      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14568        lt_cv_prog_compiler_c_o_CXX=yes
14569      fi
14570    fi
14571    chmod u+w . 2>&5
14572    $RM conftest*
14573    # SGI C++ compiler will create directory out/ii_files/ for
14574    # template instantiation
14575    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14576    $RM out/* && rmdir out
14577    cd ..
14578    $RM -r conftest
14579    $RM conftest*
14580
14581 fi
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14583 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14584
14585
14586
14587     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14588 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14589 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14590   $as_echo_n "(cached) " >&6
14591 else
14592   lt_cv_prog_compiler_c_o_CXX=no
14593    $RM -r conftest 2>/dev/null
14594    mkdir conftest
14595    cd conftest
14596    mkdir out
14597    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14598
14599    lt_compiler_flag="-o out/conftest2.$ac_objext"
14600    # Insert the option either (1) after the last *FLAGS variable, or
14601    # (2) before a word containing "conftest.", or (3) at the end.
14602    # Note that $ac_compile itself does not contain backslashes and begins
14603    # with a dollar sign (not a hyphen), so the echo should work correctly.
14604    lt_compile=`echo "$ac_compile" | $SED \
14605    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14606    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14607    -e 's:$: $lt_compiler_flag:'`
14608    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14609    (eval "$lt_compile" 2>out/conftest.err)
14610    ac_status=$?
14611    cat out/conftest.err >&5
14612    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14614    then
14615      # The compiler can only warn and ignore the option if not recognized
14616      # So say no if there are warnings
14617      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14618      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14619      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14620        lt_cv_prog_compiler_c_o_CXX=yes
14621      fi
14622    fi
14623    chmod u+w . 2>&5
14624    $RM conftest*
14625    # SGI C++ compiler will create directory out/ii_files/ for
14626    # template instantiation
14627    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14628    $RM out/* && rmdir out
14629    cd ..
14630    $RM -r conftest
14631    $RM conftest*
14632
14633 fi
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14635 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14636
14637
14638
14639
14640 hard_links="nottested"
14641 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14642   # do not overwrite the value of need_locks provided by the user
14643   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14644 $as_echo_n "checking if we can lock with hard links... " >&6; }
14645   hard_links=yes
14646   $RM conftest*
14647   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14648   touch conftest.a
14649   ln conftest.a conftest.b 2>&5 || hard_links=no
14650   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14652 $as_echo "$hard_links" >&6; }
14653   if test "$hard_links" = no; then
14654     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14655 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14656     need_locks=warn
14657   fi
14658 else
14659   need_locks=no
14660 fi
14661
14662
14663
14664     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14665 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14666
14667   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14668   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14669   case $host_os in
14670   aix[4-9]*)
14671     # If we're using GNU nm, then we don't want the "-C" option.
14672     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14673     # Also, AIX nm treats weak defined symbols like other global defined
14674     # symbols, whereas GNU nm marks them as "W".
14675     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14676       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'
14677     else
14678       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'
14679     fi
14680     ;;
14681   pw32*)
14682     export_symbols_cmds_CXX="$ltdll_cmds"
14683     ;;
14684   cygwin* | mingw* | cegcc*)
14685     case $cc_basename in
14686     cl*)
14687       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14688       ;;
14689     *)
14690       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'
14691       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14692       ;;
14693     esac
14694     ;;
14695   linux* | k*bsd*-gnu | gnu*)
14696     link_all_deplibs_CXX=no
14697     ;;
14698   *)
14699     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14700     ;;
14701   esac
14702
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14704 $as_echo "$ld_shlibs_CXX" >&6; }
14705 test "$ld_shlibs_CXX" = no && can_build_shared=no
14706
14707 with_gnu_ld_CXX=$with_gnu_ld
14708
14709
14710
14711
14712
14713
14714 #
14715 # Do we need to explicitly link libc?
14716 #
14717 case "x$archive_cmds_need_lc_CXX" in
14718 x|xyes)
14719   # Assume -lc should be added
14720   archive_cmds_need_lc_CXX=yes
14721
14722   if test "$enable_shared" = yes && test "$GCC" = yes; then
14723     case $archive_cmds_CXX in
14724     *'~'*)
14725       # FIXME: we may have to deal with multi-command sequences.
14726       ;;
14727     '$CC '*)
14728       # Test whether the compiler implicitly links with -lc since on some
14729       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14730       # to ld, don't add -lc before -lgcc.
14731       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14732 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14733 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14734   $as_echo_n "(cached) " >&6
14735 else
14736   $RM conftest*
14737         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14738
14739         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14740   (eval $ac_compile) 2>&5
14741   ac_status=$?
14742   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14743   test $ac_status = 0; } 2>conftest.err; then
14744           soname=conftest
14745           lib=conftest
14746           libobjs=conftest.$ac_objext
14747           deplibs=
14748           wl=$lt_prog_compiler_wl_CXX
14749           pic_flag=$lt_prog_compiler_pic_CXX
14750           compiler_flags=-v
14751           linker_flags=-v
14752           verstring=
14753           output_objdir=.
14754           libname=conftest
14755           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14756           allow_undefined_flag_CXX=
14757           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14758   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14759   ac_status=$?
14760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14761   test $ac_status = 0; }
14762           then
14763             lt_cv_archive_cmds_need_lc_CXX=no
14764           else
14765             lt_cv_archive_cmds_need_lc_CXX=yes
14766           fi
14767           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14768         else
14769           cat conftest.err 1>&5
14770         fi
14771         $RM conftest*
14772
14773 fi
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14775 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14776       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14777       ;;
14778     esac
14779   fi
14780   ;;
14781 esac
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14845 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14846
14847 library_names_spec=
14848 libname_spec='lib$name'
14849 soname_spec=
14850 shrext_cmds=".so"
14851 postinstall_cmds=
14852 postuninstall_cmds=
14853 finish_cmds=
14854 finish_eval=
14855 shlibpath_var=
14856 shlibpath_overrides_runpath=unknown
14857 version_type=none
14858 dynamic_linker="$host_os ld.so"
14859 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14860 need_lib_prefix=unknown
14861 hardcode_into_libs=no
14862
14863 # when you set need_version to no, make sure it does not cause -set_version
14864 # flags to be left without arguments
14865 need_version=unknown
14866
14867 case $host_os in
14868 aix3*)
14869   version_type=linux # correct to gnu/linux during the next big refactor
14870   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14871   shlibpath_var=LIBPATH
14872
14873   # AIX 3 has no versioning support, so we append a major version to the name.
14874   soname_spec='${libname}${release}${shared_ext}$major'
14875   ;;
14876
14877 aix[4-9]*)
14878   version_type=linux # correct to gnu/linux during the next big refactor
14879   need_lib_prefix=no
14880   need_version=no
14881   hardcode_into_libs=yes
14882   if test "$host_cpu" = ia64; then
14883     # AIX 5 supports IA64
14884     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14885     shlibpath_var=LD_LIBRARY_PATH
14886   else
14887     # With GCC up to 2.95.x, collect2 would create an import file
14888     # for dependence libraries.  The import file would start with
14889     # the line `#! .'.  This would cause the generated library to
14890     # depend on `.', always an invalid library.  This was fixed in
14891     # development snapshots of GCC prior to 3.0.
14892     case $host_os in
14893       aix4 | aix4.[01] | aix4.[01].*)
14894       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14895            echo ' yes '
14896            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14897         :
14898       else
14899         can_build_shared=no
14900       fi
14901       ;;
14902     esac
14903     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14904     # soname into executable. Probably we can add versioning support to
14905     # collect2, so additional links can be useful in future.
14906     if test "$aix_use_runtimelinking" = yes; then
14907       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14908       # instead of lib<name>.a to let people know that these are not
14909       # typical AIX shared libraries.
14910       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14911     else
14912       # We preserve .a as extension for shared libraries through AIX4.2
14913       # and later when we are not doing run time linking.
14914       library_names_spec='${libname}${release}.a $libname.a'
14915       soname_spec='${libname}${release}${shared_ext}$major'
14916     fi
14917     shlibpath_var=LIBPATH
14918   fi
14919   ;;
14920
14921 amigaos*)
14922   case $host_cpu in
14923   powerpc)
14924     # Since July 2007 AmigaOS4 officially supports .so libraries.
14925     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14926     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14927     ;;
14928   m68k)
14929     library_names_spec='$libname.ixlibrary $libname.a'
14930     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14931     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'
14932     ;;
14933   esac
14934   ;;
14935
14936 beos*)
14937   library_names_spec='${libname}${shared_ext}'
14938   dynamic_linker="$host_os ld.so"
14939   shlibpath_var=LIBRARY_PATH
14940   ;;
14941
14942 bsdi[45]*)
14943   version_type=linux # correct to gnu/linux during the next big refactor
14944   need_version=no
14945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14946   soname_spec='${libname}${release}${shared_ext}$major'
14947   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14948   shlibpath_var=LD_LIBRARY_PATH
14949   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14950   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14951   # the default ld.so.conf also contains /usr/contrib/lib and
14952   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14953   # libtool to hard-code these into programs
14954   ;;
14955
14956 cygwin* | mingw* | pw32* | cegcc*)
14957   version_type=windows
14958   shrext_cmds=".dll"
14959   need_version=no
14960   need_lib_prefix=no
14961
14962   case $GCC,$cc_basename in
14963   yes,*)
14964     # gcc
14965     library_names_spec='$libname.dll.a'
14966     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14967     postinstall_cmds='base_file=`basename \${file}`~
14968       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14969       dldir=$destdir/`dirname \$dlpath`~
14970       test -d \$dldir || mkdir -p \$dldir~
14971       $install_prog $dir/$dlname \$dldir/$dlname~
14972       chmod a+x \$dldir/$dlname~
14973       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14974         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14975       fi'
14976     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14977       dlpath=$dir/\$dldll~
14978        $RM \$dlpath'
14979     shlibpath_overrides_runpath=yes
14980
14981     case $host_os in
14982     cygwin*)
14983       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14984       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14985
14986       ;;
14987     mingw* | cegcc*)
14988       # MinGW DLLs use traditional 'lib' prefix
14989       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14990       ;;
14991     pw32*)
14992       # pw32 DLLs use 'pw' prefix rather than 'lib'
14993       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14994       ;;
14995     esac
14996     dynamic_linker='Win32 ld.exe'
14997     ;;
14998
14999   *,cl*)
15000     # Native MSVC
15001     libname_spec='$name'
15002     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15003     library_names_spec='${libname}.dll.lib'
15004
15005     case $build_os in
15006     mingw*)
15007       sys_lib_search_path_spec=
15008       lt_save_ifs=$IFS
15009       IFS=';'
15010       for lt_path in $LIB
15011       do
15012         IFS=$lt_save_ifs
15013         # Let DOS variable expansion print the short 8.3 style file name.
15014         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15015         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15016       done
15017       IFS=$lt_save_ifs
15018       # Convert to MSYS style.
15019       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15020       ;;
15021     cygwin*)
15022       # Convert to unix form, then to dos form, then back to unix form
15023       # but this time dos style (no spaces!) so that the unix form looks
15024       # like /cygdrive/c/PROGRA~1:/cygdr...
15025       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15026       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15027       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15028       ;;
15029     *)
15030       sys_lib_search_path_spec="$LIB"
15031       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15032         # It is most probably a Windows format PATH.
15033         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15034       else
15035         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15036       fi
15037       # FIXME: find the short name or the path components, as spaces are
15038       # common. (e.g. "Program Files" -> "PROGRA~1")
15039       ;;
15040     esac
15041
15042     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15043     postinstall_cmds='base_file=`basename \${file}`~
15044       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15045       dldir=$destdir/`dirname \$dlpath`~
15046       test -d \$dldir || mkdir -p \$dldir~
15047       $install_prog $dir/$dlname \$dldir/$dlname'
15048     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15049       dlpath=$dir/\$dldll~
15050        $RM \$dlpath'
15051     shlibpath_overrides_runpath=yes
15052     dynamic_linker='Win32 link.exe'
15053     ;;
15054
15055   *)
15056     # Assume MSVC wrapper
15057     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15058     dynamic_linker='Win32 ld.exe'
15059     ;;
15060   esac
15061   # FIXME: first we should search . and the directory the executable is in
15062   shlibpath_var=PATH
15063   ;;
15064
15065 darwin* | rhapsody*)
15066   dynamic_linker="$host_os dyld"
15067   version_type=darwin
15068   need_lib_prefix=no
15069   need_version=no
15070   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15071   soname_spec='${libname}${release}${major}$shared_ext'
15072   shlibpath_overrides_runpath=yes
15073   shlibpath_var=DYLD_LIBRARY_PATH
15074   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15075
15076   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15077   ;;
15078
15079 dgux*)
15080   version_type=linux # correct to gnu/linux during the next big refactor
15081   need_lib_prefix=no
15082   need_version=no
15083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15084   soname_spec='${libname}${release}${shared_ext}$major'
15085   shlibpath_var=LD_LIBRARY_PATH
15086   ;;
15087
15088 freebsd* | dragonfly*)
15089   # DragonFly does not have aout.  When/if they implement a new
15090   # versioning mechanism, adjust this.
15091   if test -x /usr/bin/objformat; then
15092     objformat=`/usr/bin/objformat`
15093   else
15094     case $host_os in
15095     freebsd[23].*) objformat=aout ;;
15096     *) objformat=elf ;;
15097     esac
15098   fi
15099   version_type=freebsd-$objformat
15100   case $version_type in
15101     freebsd-elf*)
15102       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15103       need_version=no
15104       need_lib_prefix=no
15105       ;;
15106     freebsd-*)
15107       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15108       need_version=yes
15109       ;;
15110   esac
15111   shlibpath_var=LD_LIBRARY_PATH
15112   case $host_os in
15113   freebsd2.*)
15114     shlibpath_overrides_runpath=yes
15115     ;;
15116   freebsd3.[01]* | freebsdelf3.[01]*)
15117     shlibpath_overrides_runpath=yes
15118     hardcode_into_libs=yes
15119     ;;
15120   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15121   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15122     shlibpath_overrides_runpath=no
15123     hardcode_into_libs=yes
15124     ;;
15125   *) # from 4.6 on, and DragonFly
15126     shlibpath_overrides_runpath=yes
15127     hardcode_into_libs=yes
15128     ;;
15129   esac
15130   ;;
15131
15132 haiku*)
15133   version_type=linux # correct to gnu/linux during the next big refactor
15134   need_lib_prefix=no
15135   need_version=no
15136   dynamic_linker="$host_os runtime_loader"
15137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15138   soname_spec='${libname}${release}${shared_ext}$major'
15139   shlibpath_var=LIBRARY_PATH
15140   shlibpath_overrides_runpath=yes
15141   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15142   hardcode_into_libs=yes
15143   ;;
15144
15145 hpux9* | hpux10* | hpux11*)
15146   # Give a soname corresponding to the major version so that dld.sl refuses to
15147   # link against other versions.
15148   version_type=sunos
15149   need_lib_prefix=no
15150   need_version=no
15151   case $host_cpu in
15152   ia64*)
15153     shrext_cmds='.so'
15154     hardcode_into_libs=yes
15155     dynamic_linker="$host_os dld.so"
15156     shlibpath_var=LD_LIBRARY_PATH
15157     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15158     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15159     soname_spec='${libname}${release}${shared_ext}$major'
15160     if test "X$HPUX_IA64_MODE" = X32; then
15161       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15162     else
15163       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15164     fi
15165     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15166     ;;
15167   hppa*64*)
15168     shrext_cmds='.sl'
15169     hardcode_into_libs=yes
15170     dynamic_linker="$host_os dld.sl"
15171     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15172     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15173     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15174     soname_spec='${libname}${release}${shared_ext}$major'
15175     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15176     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15177     ;;
15178   *)
15179     shrext_cmds='.sl'
15180     dynamic_linker="$host_os dld.sl"
15181     shlibpath_var=SHLIB_PATH
15182     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15183     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15184     soname_spec='${libname}${release}${shared_ext}$major'
15185     ;;
15186   esac
15187   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15188   postinstall_cmds='chmod 555 $lib'
15189   # or fails outright, so override atomically:
15190   install_override_mode=555
15191   ;;
15192
15193 interix[3-9]*)
15194   version_type=linux # correct to gnu/linux during the next big refactor
15195   need_lib_prefix=no
15196   need_version=no
15197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15198   soname_spec='${libname}${release}${shared_ext}$major'
15199   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15200   shlibpath_var=LD_LIBRARY_PATH
15201   shlibpath_overrides_runpath=no
15202   hardcode_into_libs=yes
15203   ;;
15204
15205 irix5* | irix6* | nonstopux*)
15206   case $host_os in
15207     nonstopux*) version_type=nonstopux ;;
15208     *)
15209         if test "$lt_cv_prog_gnu_ld" = yes; then
15210                 version_type=linux # correct to gnu/linux during the next big refactor
15211         else
15212                 version_type=irix
15213         fi ;;
15214   esac
15215   need_lib_prefix=no
15216   need_version=no
15217   soname_spec='${libname}${release}${shared_ext}$major'
15218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15219   case $host_os in
15220   irix5* | nonstopux*)
15221     libsuff= shlibsuff=
15222     ;;
15223   *)
15224     case $LD in # libtool.m4 will add one of these switches to LD
15225     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15226       libsuff= shlibsuff= libmagic=32-bit;;
15227     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15228       libsuff=32 shlibsuff=N32 libmagic=N32;;
15229     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15230       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15231     *) libsuff= shlibsuff= libmagic=never-match;;
15232     esac
15233     ;;
15234   esac
15235   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15236   shlibpath_overrides_runpath=no
15237   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15238   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15239   hardcode_into_libs=yes
15240   ;;
15241
15242 # No shared lib support for Linux oldld, aout, or coff.
15243 linux*oldld* | linux*aout* | linux*coff*)
15244   dynamic_linker=no
15245   ;;
15246
15247 # This must be glibc/ELF.
15248 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15249   version_type=linux # correct to gnu/linux during the next big refactor
15250   need_lib_prefix=no
15251   need_version=no
15252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15253   soname_spec='${libname}${release}${shared_ext}$major'
15254   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15255   shlibpath_var=LD_LIBRARY_PATH
15256   shlibpath_overrides_runpath=no
15257
15258   # Some binutils ld are patched to set DT_RUNPATH
15259   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15260   $as_echo_n "(cached) " >&6
15261 else
15262   lt_cv_shlibpath_overrides_runpath=no
15263     save_LDFLAGS=$LDFLAGS
15264     save_libdir=$libdir
15265     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15266          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15267     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15268 /* end confdefs.h.  */
15269
15270 int
15271 main ()
15272 {
15273
15274   ;
15275   return 0;
15276 }
15277 _ACEOF
15278 if ac_fn_cxx_try_link "$LINENO"; then :
15279   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15280   lt_cv_shlibpath_overrides_runpath=yes
15281 fi
15282 fi
15283 rm -f core conftest.err conftest.$ac_objext \
15284     conftest$ac_exeext conftest.$ac_ext
15285     LDFLAGS=$save_LDFLAGS
15286     libdir=$save_libdir
15287
15288 fi
15289
15290   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15291
15292   # This implies no fast_install, which is unacceptable.
15293   # Some rework will be needed to allow for fast_install
15294   # before this can be enabled.
15295   hardcode_into_libs=yes
15296
15297   # Append ld.so.conf contents to the search path
15298   if test -f /etc/ld.so.conf; then
15299     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' ' '`
15300     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15301   fi
15302
15303   # We used to test for /lib/ld.so.1 and disable shared libraries on
15304   # powerpc, because MkLinux only supported shared libraries with the
15305   # GNU dynamic linker.  Since this was broken with cross compilers,
15306   # most powerpc-linux boxes support dynamic linking these days and
15307   # people can always --disable-shared, the test was removed, and we
15308   # assume the GNU/Linux dynamic linker is in use.
15309   dynamic_linker='GNU/Linux ld.so'
15310   ;;
15311
15312 netbsdelf*-gnu)
15313   version_type=linux
15314   need_lib_prefix=no
15315   need_version=no
15316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15317   soname_spec='${libname}${release}${shared_ext}$major'
15318   shlibpath_var=LD_LIBRARY_PATH
15319   shlibpath_overrides_runpath=no
15320   hardcode_into_libs=yes
15321   dynamic_linker='NetBSD ld.elf_so'
15322   ;;
15323
15324 netbsd*)
15325   version_type=sunos
15326   need_lib_prefix=no
15327   need_version=no
15328   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15329     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15330     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15331     dynamic_linker='NetBSD (a.out) ld.so'
15332   else
15333     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15334     soname_spec='${libname}${release}${shared_ext}$major'
15335     dynamic_linker='NetBSD ld.elf_so'
15336   fi
15337   shlibpath_var=LD_LIBRARY_PATH
15338   shlibpath_overrides_runpath=yes
15339   hardcode_into_libs=yes
15340   ;;
15341
15342 newsos6)
15343   version_type=linux # correct to gnu/linux during the next big refactor
15344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15345   shlibpath_var=LD_LIBRARY_PATH
15346   shlibpath_overrides_runpath=yes
15347   ;;
15348
15349 *nto* | *qnx*)
15350   version_type=qnx
15351   need_lib_prefix=no
15352   need_version=no
15353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15354   soname_spec='${libname}${release}${shared_ext}$major'
15355   shlibpath_var=LD_LIBRARY_PATH
15356   shlibpath_overrides_runpath=no
15357   hardcode_into_libs=yes
15358   dynamic_linker='ldqnx.so'
15359   ;;
15360
15361 openbsd*)
15362   version_type=sunos
15363   sys_lib_dlsearch_path_spec="/usr/lib"
15364   need_lib_prefix=no
15365   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15366   case $host_os in
15367     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15368     *)                          need_version=no  ;;
15369   esac
15370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15371   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15372   shlibpath_var=LD_LIBRARY_PATH
15373   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15374     case $host_os in
15375       openbsd2.[89] | openbsd2.[89].*)
15376         shlibpath_overrides_runpath=no
15377         ;;
15378       *)
15379         shlibpath_overrides_runpath=yes
15380         ;;
15381       esac
15382   else
15383     shlibpath_overrides_runpath=yes
15384   fi
15385   ;;
15386
15387 os2*)
15388   libname_spec='$name'
15389   shrext_cmds=".dll"
15390   need_lib_prefix=no
15391   library_names_spec='$libname${shared_ext} $libname.a'
15392   dynamic_linker='OS/2 ld.exe'
15393   shlibpath_var=LIBPATH
15394   ;;
15395
15396 osf3* | osf4* | osf5*)
15397   version_type=osf
15398   need_lib_prefix=no
15399   need_version=no
15400   soname_spec='${libname}${release}${shared_ext}$major'
15401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15402   shlibpath_var=LD_LIBRARY_PATH
15403   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15404   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15405   ;;
15406
15407 rdos*)
15408   dynamic_linker=no
15409   ;;
15410
15411 solaris*)
15412   version_type=linux # correct to gnu/linux during the next big refactor
15413   need_lib_prefix=no
15414   need_version=no
15415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15416   soname_spec='${libname}${release}${shared_ext}$major'
15417   shlibpath_var=LD_LIBRARY_PATH
15418   shlibpath_overrides_runpath=yes
15419   hardcode_into_libs=yes
15420   # ldd complains unless libraries are executable
15421   postinstall_cmds='chmod +x $lib'
15422   ;;
15423
15424 sunos4*)
15425   version_type=sunos
15426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15427   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15428   shlibpath_var=LD_LIBRARY_PATH
15429   shlibpath_overrides_runpath=yes
15430   if test "$with_gnu_ld" = yes; then
15431     need_lib_prefix=no
15432   fi
15433   need_version=yes
15434   ;;
15435
15436 sysv4 | sysv4.3*)
15437   version_type=linux # correct to gnu/linux during the next big refactor
15438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15439   soname_spec='${libname}${release}${shared_ext}$major'
15440   shlibpath_var=LD_LIBRARY_PATH
15441   case $host_vendor in
15442     sni)
15443       shlibpath_overrides_runpath=no
15444       need_lib_prefix=no
15445       runpath_var=LD_RUN_PATH
15446       ;;
15447     siemens)
15448       need_lib_prefix=no
15449       ;;
15450     motorola)
15451       need_lib_prefix=no
15452       need_version=no
15453       shlibpath_overrides_runpath=no
15454       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15455       ;;
15456   esac
15457   ;;
15458
15459 sysv4*MP*)
15460   if test -d /usr/nec ;then
15461     version_type=linux # correct to gnu/linux during the next big refactor
15462     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15463     soname_spec='$libname${shared_ext}.$major'
15464     shlibpath_var=LD_LIBRARY_PATH
15465   fi
15466   ;;
15467
15468 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15469   version_type=freebsd-elf
15470   need_lib_prefix=no
15471   need_version=no
15472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15473   soname_spec='${libname}${release}${shared_ext}$major'
15474   shlibpath_var=LD_LIBRARY_PATH
15475   shlibpath_overrides_runpath=yes
15476   hardcode_into_libs=yes
15477   if test "$with_gnu_ld" = yes; then
15478     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15479   else
15480     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15481     case $host_os in
15482       sco3.2v5*)
15483         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15484         ;;
15485     esac
15486   fi
15487   sys_lib_dlsearch_path_spec='/usr/lib'
15488   ;;
15489
15490 tpf*)
15491   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15492   version_type=linux # correct to gnu/linux during the next big refactor
15493   need_lib_prefix=no
15494   need_version=no
15495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15496   shlibpath_var=LD_LIBRARY_PATH
15497   shlibpath_overrides_runpath=no
15498   hardcode_into_libs=yes
15499   ;;
15500
15501 uts4*)
15502   version_type=linux # correct to gnu/linux during the next big refactor
15503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15504   soname_spec='${libname}${release}${shared_ext}$major'
15505   shlibpath_var=LD_LIBRARY_PATH
15506   ;;
15507
15508 *)
15509   dynamic_linker=no
15510   ;;
15511 esac
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15513 $as_echo "$dynamic_linker" >&6; }
15514 test "$dynamic_linker" = no && can_build_shared=no
15515
15516 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15517 if test "$GCC" = yes; then
15518   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15519 fi
15520
15521 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15522   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15523 fi
15524 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15525   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15526 fi
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15566 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15567 hardcode_action_CXX=
15568 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15569    test -n "$runpath_var_CXX" ||
15570    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15571
15572   # We can hardcode non-existent directories.
15573   if test "$hardcode_direct_CXX" != no &&
15574      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15575      # have to relink, otherwise we might link with an installed library
15576      # when we should be linking with a yet-to-be-installed one
15577      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15578      test "$hardcode_minus_L_CXX" != no; then
15579     # Linking always hardcodes the temporary library directory.
15580     hardcode_action_CXX=relink
15581   else
15582     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15583     hardcode_action_CXX=immediate
15584   fi
15585 else
15586   # We cannot hardcode anything, or else we can only hardcode existing
15587   # directories.
15588   hardcode_action_CXX=unsupported
15589 fi
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15591 $as_echo "$hardcode_action_CXX" >&6; }
15592
15593 if test "$hardcode_action_CXX" = relink ||
15594    test "$inherit_rpath_CXX" = yes; then
15595   # Fast installation is not supported
15596   enable_fast_install=no
15597 elif test "$shlibpath_overrides_runpath" = yes ||
15598      test "$enable_shared" = no; then
15599   # Fast installation is not necessary
15600   enable_fast_install=needless
15601 fi
15602
15603
15604
15605
15606
15607
15608
15609   fi # test -n "$compiler"
15610
15611   CC=$lt_save_CC
15612   CFLAGS=$lt_save_CFLAGS
15613   LDCXX=$LD
15614   LD=$lt_save_LD
15615   GCC=$lt_save_GCC
15616   with_gnu_ld=$lt_save_with_gnu_ld
15617   lt_cv_path_LDCXX=$lt_cv_path_LD
15618   lt_cv_path_LD=$lt_save_path_LD
15619   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15620   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15621 fi # test "$_lt_caught_CXX_error" != yes
15622
15623 ac_ext=cpp
15624 ac_cpp='$CXXCPP $CPPFLAGS'
15625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643         ac_config_commands="$ac_config_commands libtool"
15644
15645
15646
15647
15648 # Only expand once:
15649
15650
15651
15652 # Checks for header files.
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15654 $as_echo_n "checking for ANSI C header files... " >&6; }
15655 if ${ac_cv_header_stdc+:} false; then :
15656   $as_echo_n "(cached) " >&6
15657 else
15658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15659 /* end confdefs.h.  */
15660 #include <stdlib.h>
15661 #include <stdarg.h>
15662 #include <string.h>
15663 #include <float.h>
15664
15665 int
15666 main ()
15667 {
15668
15669   ;
15670   return 0;
15671 }
15672 _ACEOF
15673 if ac_fn_cxx_try_compile "$LINENO"; then :
15674   ac_cv_header_stdc=yes
15675 else
15676   ac_cv_header_stdc=no
15677 fi
15678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15679
15680 if test $ac_cv_header_stdc = yes; then
15681   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15683 /* end confdefs.h.  */
15684 #include <string.h>
15685
15686 _ACEOF
15687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15688   $EGREP "memchr" >/dev/null 2>&1; then :
15689
15690 else
15691   ac_cv_header_stdc=no
15692 fi
15693 rm -f conftest*
15694
15695 fi
15696
15697 if test $ac_cv_header_stdc = yes; then
15698   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15700 /* end confdefs.h.  */
15701 #include <stdlib.h>
15702
15703 _ACEOF
15704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15705   $EGREP "free" >/dev/null 2>&1; then :
15706
15707 else
15708   ac_cv_header_stdc=no
15709 fi
15710 rm -f conftest*
15711
15712 fi
15713
15714 if test $ac_cv_header_stdc = yes; then
15715   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15716   if test "$cross_compiling" = yes; then :
15717   :
15718 else
15719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720 /* end confdefs.h.  */
15721 #include <ctype.h>
15722 #include <stdlib.h>
15723 #if ((' ' & 0x0FF) == 0x020)
15724 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15725 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15726 #else
15727 # define ISLOWER(c) \
15728                    (('a' <= (c) && (c) <= 'i') \
15729                      || ('j' <= (c) && (c) <= 'r') \
15730                      || ('s' <= (c) && (c) <= 'z'))
15731 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15732 #endif
15733
15734 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15735 int
15736 main ()
15737 {
15738   int i;
15739   for (i = 0; i < 256; i++)
15740     if (XOR (islower (i), ISLOWER (i))
15741         || toupper (i) != TOUPPER (i))
15742       return 2;
15743   return 0;
15744 }
15745 _ACEOF
15746 if ac_fn_cxx_try_run "$LINENO"; then :
15747
15748 else
15749   ac_cv_header_stdc=no
15750 fi
15751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15752   conftest.$ac_objext conftest.beam conftest.$ac_ext
15753 fi
15754
15755 fi
15756 fi
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15758 $as_echo "$ac_cv_header_stdc" >&6; }
15759 if test $ac_cv_header_stdc = yes; then
15760
15761 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15762
15763 fi
15764
15765 for ac_header in fcntl.h inttypes.h limits.h stdlib.h unistd.h
15766 do :
15767   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15768 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15769 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15770   cat >>confdefs.h <<_ACEOF
15771 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15772 _ACEOF
15773
15774 fi
15775
15776 done
15777
15778
15779 # Checks for library functions.
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
15781 $as_echo_n "checking for working memcmp... " >&6; }
15782 if ${ac_cv_func_memcmp_working+:} false; then :
15783   $as_echo_n "(cached) " >&6
15784 else
15785   if test "$cross_compiling" = yes; then :
15786   ac_cv_func_memcmp_working=no
15787 else
15788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15789 /* end confdefs.h.  */
15790 $ac_includes_default
15791 int
15792 main ()
15793 {
15794
15795   /* Some versions of memcmp are not 8-bit clean.  */
15796   char c0 = '\100', c1 = '\200', c2 = '\201';
15797   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
15798     return 1;
15799
15800   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
15801      or more and with at least one buffer not starting on a 4-byte boundary.
15802      William Lewis provided this test program.   */
15803   {
15804     char foo[21];
15805     char bar[21];
15806     int i;
15807     for (i = 0; i < 4; i++)
15808       {
15809         char *a = foo + i;
15810         char *b = bar + i;
15811         strcpy (a, "--------01111111");
15812         strcpy (b, "--------10000000");
15813         if (memcmp (a, b, 16) >= 0)
15814           return 1;
15815       }
15816     return 0;
15817   }
15818
15819   ;
15820   return 0;
15821 }
15822 _ACEOF
15823 if ac_fn_cxx_try_run "$LINENO"; then :
15824   ac_cv_func_memcmp_working=yes
15825 else
15826   ac_cv_func_memcmp_working=no
15827 fi
15828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15829   conftest.$ac_objext conftest.beam conftest.$ac_ext
15830 fi
15831
15832 fi
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
15834 $as_echo "$ac_cv_func_memcmp_working" >&6; }
15835 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
15836   *" memcmp.$ac_objext "* ) ;;
15837   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
15838  ;;
15839 esac
15840
15841
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
15843 $as_echo_n "checking for working strtod... " >&6; }
15844 if ${ac_cv_func_strtod+:} false; then :
15845   $as_echo_n "(cached) " >&6
15846 else
15847   if test "$cross_compiling" = yes; then :
15848   ac_cv_func_strtod=no
15849 else
15850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15851 /* end confdefs.h.  */
15852
15853 $ac_includes_default
15854 #ifndef strtod
15855 double strtod ();
15856 #endif
15857 int
15858 main()
15859 {
15860   {
15861     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
15862     char *string = " +69";
15863     char *term;
15864     double value;
15865     value = strtod (string, &term);
15866     if (value != 69 || term != (string + 4))
15867       return 1;
15868   }
15869
15870   {
15871     /* Under Solaris 2.4, strtod returns the wrong value for the
15872        terminating character under some conditions.  */
15873     char *string = "NaN";
15874     char *term;
15875     strtod (string, &term);
15876     if (term != string && *(term - 1) == 0)
15877       return 1;
15878   }
15879   return 0;
15880 }
15881
15882 _ACEOF
15883 if ac_fn_cxx_try_run "$LINENO"; then :
15884   ac_cv_func_strtod=yes
15885 else
15886   ac_cv_func_strtod=no
15887 fi
15888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15889   conftest.$ac_objext conftest.beam conftest.$ac_ext
15890 fi
15891
15892 fi
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
15894 $as_echo "$ac_cv_func_strtod" >&6; }
15895 if test $ac_cv_func_strtod = no; then
15896   case " $LIBOBJS " in
15897   *" strtod.$ac_objext "* ) ;;
15898   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
15899  ;;
15900 esac
15901
15902 ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
15903 if test "x$ac_cv_func_pow" = xyes; then :
15904
15905 fi
15906
15907 if test $ac_cv_func_pow = no; then
15908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
15909 $as_echo_n "checking for pow in -lm... " >&6; }
15910 if ${ac_cv_lib_m_pow+:} false; then :
15911   $as_echo_n "(cached) " >&6
15912 else
15913   ac_check_lib_save_LIBS=$LIBS
15914 LIBS="-lm  $LIBS"
15915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15916 /* end confdefs.h.  */
15917
15918 /* Override any GCC internal prototype to avoid an error.
15919    Use char because int might match the return type of a GCC
15920    builtin and then its argument prototype would still apply.  */
15921 #ifdef __cplusplus
15922 extern "C"
15923 #endif
15924 char pow ();
15925 int
15926 main ()
15927 {
15928 return pow ();
15929   ;
15930   return 0;
15931 }
15932 _ACEOF
15933 if ac_fn_cxx_try_link "$LINENO"; then :
15934   ac_cv_lib_m_pow=yes
15935 else
15936   ac_cv_lib_m_pow=no
15937 fi
15938 rm -f core conftest.err conftest.$ac_objext \
15939     conftest$ac_exeext conftest.$ac_ext
15940 LIBS=$ac_check_lib_save_LIBS
15941 fi
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
15943 $as_echo "$ac_cv_lib_m_pow" >&6; }
15944 if test "x$ac_cv_lib_m_pow" = xyes; then :
15945   POW_LIB=-lm
15946 else
15947   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
15948 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
15949 fi
15950
15951 fi
15952
15953 fi
15954
15955 for ac_func in ftruncate memset mkdir strchr strerror strtol
15956 do :
15957   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15958 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
15959 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15960   cat >>confdefs.h <<_ACEOF
15961 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15962 _ACEOF
15963
15964 fi
15965 done
15966
15967
15968 # Check for zlib.
15969 HAVE_ZLIB=0
15970 if test "$with_zlib" != no; then :
15971
15972   { $as_echo "$as_me:${as_lineno-$LINENO}: checking zlib version" >&5
15973 $as_echo_n "checking zlib version... " >&6; }
15974
15975   # First check the zlib header version.
15976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15977 /* end confdefs.h.  */
15978
15979         #include <zlib.h>
15980         #if !defined(ZLIB_VERNUM) || (ZLIB_VERNUM < 0x1204)
15981         # error zlib version too old
15982         #endif
15983
15984 int
15985 main ()
15986 {
15987
15988   ;
15989   return 0;
15990 }
15991 _ACEOF
15992 if ac_fn_cxx_try_compile "$LINENO"; then :
15993
15994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (1.2.0.4 or later)" >&5
15995 $as_echo "ok (1.2.0.4 or later)" >&6; }
15996
15997     # Also need to add -lz to the linker flags and make sure this succeeds.
15998     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
15999 $as_echo_n "checking for library containing zlibVersion... " >&6; }
16000 if ${ac_cv_search_zlibVersion+:} false; then :
16001   $as_echo_n "(cached) " >&6
16002 else
16003   ac_func_search_save_LIBS=$LIBS
16004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16005 /* end confdefs.h.  */
16006
16007 /* Override any GCC internal prototype to avoid an error.
16008    Use char because int might match the return type of a GCC
16009    builtin and then its argument prototype would still apply.  */
16010 #ifdef __cplusplus
16011 extern "C"
16012 #endif
16013 char zlibVersion ();
16014 int
16015 main ()
16016 {
16017 return zlibVersion ();
16018   ;
16019   return 0;
16020 }
16021 _ACEOF
16022 for ac_lib in '' z; do
16023   if test -z "$ac_lib"; then
16024     ac_res="none required"
16025   else
16026     ac_res=-l$ac_lib
16027     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16028   fi
16029   if ac_fn_cxx_try_link "$LINENO"; then :
16030   ac_cv_search_zlibVersion=$ac_res
16031 fi
16032 rm -f core conftest.err conftest.$ac_objext \
16033     conftest$ac_exeext
16034   if ${ac_cv_search_zlibVersion+:} false; then :
16035   break
16036 fi
16037 done
16038 if ${ac_cv_search_zlibVersion+:} false; then :
16039
16040 else
16041   ac_cv_search_zlibVersion=no
16042 fi
16043 rm conftest.$ac_ext
16044 LIBS=$ac_func_search_save_LIBS
16045 fi
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
16047 $as_echo "$ac_cv_search_zlibVersion" >&6; }
16048 ac_res=$ac_cv_search_zlibVersion
16049 if test "$ac_res" != no; then :
16050   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16051
16052
16053 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
16054
16055       HAVE_ZLIB=1
16056
16057 else
16058
16059       if test "$with_zlib" != check; then :
16060
16061         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16063 as_fn_error $? "--with-zlib was given, but no working zlib library was found
16064 See \`config.log' for more details" "$LINENO" 5; }
16065
16066 fi
16067
16068 fi
16069
16070
16071 else
16072
16073     if test "$with_zlib" = check; then :
16074
16075       { $as_echo "$as_me:${as_lineno-$LINENO}: result: headers missing or too old (requires 1.2.0.4)" >&5
16076 $as_echo "headers missing or too old (requires 1.2.0.4)" >&6; }
16077
16078 else
16079
16080       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16082 as_fn_error $? "--with-zlib was given, but zlib headers were not present or were too old (requires 1.2.0.4)
16083 See \`config.log' for more details" "$LINENO" 5; }
16084
16085 fi
16086
16087 fi
16088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16089
16090 fi
16091  if test $HAVE_ZLIB = 1; then
16092   HAVE_ZLIB_TRUE=
16093   HAVE_ZLIB_FALSE='#'
16094 else
16095   HAVE_ZLIB_TRUE='#'
16096   HAVE_ZLIB_FALSE=
16097 fi
16098
16099
16100 if test "$with_protoc" != "no"; then :
16101
16102   PROTOC=$with_protoc
16103   if test "$with_protoc" = "yes"; then :
16104
16105     # No argument given.  Use system protoc.
16106     PROTOC=protoc
16107
16108 fi
16109   if echo "$PROTOC" | grep -q '^[^/].*/'; then :
16110
16111     # Does not start with a slash, but contains a slash.  So, it's a relative
16112     # path (as opposed to an absolute path or an executable in $PATH).
16113     # Since it will actually be executed from the src directory, prefix with
16114     # the current directory.  We also insert $ac_top_build_prefix in case this
16115     # is a nested package and --with-protoc was actually given on the outer
16116     # package's configure script.
16117     PROTOC=`pwd`/${ac_top_build_prefix}$PROTOC
16118
16119 fi
16120
16121
16122 fi
16123  if test "$with_protoc" != "no"; then
16124   USE_EXTERNAL_PROTOC_TRUE=
16125   USE_EXTERNAL_PROTOC_FALSE='#'
16126 else
16127   USE_EXTERNAL_PROTOC_TRUE='#'
16128   USE_EXTERNAL_PROTOC_FALSE=
16129 fi
16130
16131
16132
16133
16134
16135 ac_ext=c
16136 ac_cpp='$CPP $CPPFLAGS'
16137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16140
16141 acx_pthread_ok=no
16142
16143 # We used to check for pthread.h first, but this fails if pthread.h
16144 # requires special compiler flags (e.g. on True64 or Sequent).
16145 # It gets checked for in the link test anyway.
16146
16147 # First of all, check if the user has set any of the PTHREAD_LIBS,
16148 # etcetera environment variables, and if threads linking works using
16149 # them:
16150 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16151         save_CFLAGS="$CFLAGS"
16152         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16153         save_LIBS="$LIBS"
16154         LIBS="$PTHREAD_LIBS $LIBS"
16155         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16156 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16157         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16158 /* end confdefs.h.  */
16159
16160 /* Override any GCC internal prototype to avoid an error.
16161    Use char because int might match the return type of a GCC
16162    builtin and then its argument prototype would still apply.  */
16163 #ifdef __cplusplus
16164 extern "C"
16165 #endif
16166 char pthread_join ();
16167 int
16168 main ()
16169 {
16170 return pthread_join ();
16171   ;
16172   return 0;
16173 }
16174 _ACEOF
16175 if ac_fn_c_try_link "$LINENO"; then :
16176   acx_pthread_ok=yes
16177 fi
16178 rm -f core conftest.err conftest.$ac_objext \
16179     conftest$ac_exeext conftest.$ac_ext
16180         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16181 $as_echo "$acx_pthread_ok" >&6; }
16182         if test x"$acx_pthread_ok" = xno; then
16183                 PTHREAD_LIBS=""
16184                 PTHREAD_CFLAGS=""
16185         fi
16186         LIBS="$save_LIBS"
16187         CFLAGS="$save_CFLAGS"
16188 fi
16189
16190 # We must check for the threads library under a number of different
16191 # names; the ordering is very important because some systems
16192 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16193 # libraries is broken (non-POSIX).
16194
16195 # Create a list of thread flags to try.  Items starting with a "-" are
16196 # C compiler flags, and other items are library names, except for "none"
16197 # which indicates that we try without any flags at all, and "pthread-config"
16198 # which is a program returning the flags for the Pth emulation library.
16199
16200 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16201
16202 # The ordering *is* (sometimes) important.  Some notes on the
16203 # individual items follow:
16204
16205 # pthreads: AIX (must check this before -lpthread)
16206 # none: in case threads are in libc; should be tried before -Kthread and
16207 #       other compiler flags to prevent continual compiler warnings
16208 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16209 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16210 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16211 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16212 # -pthreads: Solaris/gcc
16213 # -mthreads: Mingw32/gcc, Lynx/gcc
16214 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16215 #      doesn't hurt to check since this sometimes defines pthreads too;
16216 #      also defines -D_REENTRANT)
16217 #      ... -mt is also the pthreads flag for HP/aCC
16218 # pthread: Linux, etcetera
16219 # --thread-safe: KAI C++
16220 # pthread-config: use pthread-config program (for GNU Pth library)
16221
16222 case "${host_cpu}-${host_os}" in
16223         *solaris*)
16224
16225         # On Solaris (at least, for some versions), libc contains stubbed
16226         # (non-functional) versions of the pthreads routines, so link-based
16227         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
16228         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
16229         # a function called by this macro, so we could check for that, but
16230         # who knows whether they'll stub that too in a future libc.)  So,
16231         # we'll just look for -pthreads and -lpthread first:
16232
16233         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
16234         ;;
16235 esac
16236
16237 if test x"$acx_pthread_ok" = xno; then
16238 for flag in $acx_pthread_flags; do
16239
16240         case $flag in
16241                 none)
16242                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16243 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16244                 ;;
16245
16246                 -*)
16247                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16248 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16249                 PTHREAD_CFLAGS="$flag"
16250                 ;;
16251
16252                 pthread-config)
16253                 # Extract the first word of "pthread-config", so it can be a program name with args.
16254 set dummy pthread-config; ac_word=$2
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16256 $as_echo_n "checking for $ac_word... " >&6; }
16257 if ${ac_cv_prog_acx_pthread_config+:} false; then :
16258   $as_echo_n "(cached) " >&6
16259 else
16260   if test -n "$acx_pthread_config"; then
16261   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16262 else
16263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16264 for as_dir in $PATH
16265 do
16266   IFS=$as_save_IFS
16267   test -z "$as_dir" && as_dir=.
16268     for ac_exec_ext in '' $ac_executable_extensions; do
16269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16270     ac_cv_prog_acx_pthread_config="yes"
16271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16272     break 2
16273   fi
16274 done
16275   done
16276 IFS=$as_save_IFS
16277
16278   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16279 fi
16280 fi
16281 acx_pthread_config=$ac_cv_prog_acx_pthread_config
16282 if test -n "$acx_pthread_config"; then
16283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
16284 $as_echo "$acx_pthread_config" >&6; }
16285 else
16286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16287 $as_echo "no" >&6; }
16288 fi
16289
16290
16291                 if test x"$acx_pthread_config" = xno; then continue; fi
16292                 PTHREAD_CFLAGS="`pthread-config --cflags`"
16293                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16294                 ;;
16295
16296                 *)
16297                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16298 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16299                 PTHREAD_LIBS="-l$flag"
16300                 ;;
16301         esac
16302
16303         save_LIBS="$LIBS"
16304         save_CFLAGS="$CFLAGS"
16305         LIBS="$PTHREAD_LIBS $LIBS"
16306         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16307
16308         # Check for various functions.  We must include pthread.h,
16309         # since some functions may be macros.  (On the Sequent, we
16310         # need a special flag -Kthread to make this header compile.)
16311         # We check for pthread_join because it is in -lpthread on IRIX
16312         # while pthread_create is in libc.  We check for pthread_attr_init
16313         # due to DEC craziness with -lpthreads.  We check for
16314         # pthread_cleanup_push because it is one of the few pthread
16315         # functions on Solaris that doesn't have a non-functional libc stub.
16316         # We try pthread_create on general principles.
16317         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16318 /* end confdefs.h.  */
16319 #include <pthread.h>
16320 int
16321 main ()
16322 {
16323 pthread_t th; pthread_join(th, 0);
16324                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
16325                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16326   ;
16327   return 0;
16328 }
16329 _ACEOF
16330 if ac_fn_c_try_link "$LINENO"; then :
16331   acx_pthread_ok=yes
16332 fi
16333 rm -f core conftest.err conftest.$ac_objext \
16334     conftest$ac_exeext conftest.$ac_ext
16335
16336         LIBS="$save_LIBS"
16337         CFLAGS="$save_CFLAGS"
16338
16339         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16340 $as_echo "$acx_pthread_ok" >&6; }
16341         if test "x$acx_pthread_ok" = xyes; then
16342                 break;
16343         fi
16344
16345         PTHREAD_LIBS=""
16346         PTHREAD_CFLAGS=""
16347 done
16348 fi
16349
16350 # Various other checks:
16351 if test "x$acx_pthread_ok" = xyes; then
16352         save_LIBS="$LIBS"
16353         LIBS="$PTHREAD_LIBS $LIBS"
16354         save_CFLAGS="$CFLAGS"
16355         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16356
16357         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16358         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16359 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16360         attr_name=unknown
16361         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16362             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16363 /* end confdefs.h.  */
16364 #include <pthread.h>
16365 int
16366 main ()
16367 {
16368 int attr=$attr; return attr;
16369   ;
16370   return 0;
16371 }
16372 _ACEOF
16373 if ac_fn_c_try_link "$LINENO"; then :
16374   attr_name=$attr; break
16375 fi
16376 rm -f core conftest.err conftest.$ac_objext \
16377     conftest$ac_exeext conftest.$ac_ext
16378         done
16379         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16380 $as_echo "$attr_name" >&6; }
16381         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16382
16383 cat >>confdefs.h <<_ACEOF
16384 #define PTHREAD_CREATE_JOINABLE $attr_name
16385 _ACEOF
16386
16387         fi
16388
16389         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16390 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16391         flag=no
16392         case "${host_cpu}-${host_os}" in
16393             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16394             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16395         esac
16396         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
16397 $as_echo "${flag}" >&6; }
16398         if test "x$flag" != xno; then
16399             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16400         fi
16401
16402         LIBS="$save_LIBS"
16403         CFLAGS="$save_CFLAGS"
16404         # More AIX lossage: must compile with xlc_r or cc_r
16405         if test x"$GCC" != xyes; then
16406           for ac_prog in xlc_r cc_r
16407 do
16408   # Extract the first word of "$ac_prog", so it can be a program name with args.
16409 set dummy $ac_prog; ac_word=$2
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16411 $as_echo_n "checking for $ac_word... " >&6; }
16412 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16413   $as_echo_n "(cached) " >&6
16414 else
16415   if test -n "$PTHREAD_CC"; then
16416   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16417 else
16418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16419 for as_dir in $PATH
16420 do
16421   IFS=$as_save_IFS
16422   test -z "$as_dir" && as_dir=.
16423     for ac_exec_ext in '' $ac_executable_extensions; do
16424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16425     ac_cv_prog_PTHREAD_CC="$ac_prog"
16426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16427     break 2
16428   fi
16429 done
16430   done
16431 IFS=$as_save_IFS
16432
16433 fi
16434 fi
16435 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16436 if test -n "$PTHREAD_CC"; then
16437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16438 $as_echo "$PTHREAD_CC" >&6; }
16439 else
16440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16441 $as_echo "no" >&6; }
16442 fi
16443
16444
16445   test -n "$PTHREAD_CC" && break
16446 done
16447 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
16448
16449         else
16450           PTHREAD_CC=$CC
16451         fi
16452
16453         # The next part tries to detect GCC inconsistency with -shared on some
16454         # architectures and systems. The problem is that in certain
16455         # configurations, when -shared is specified, GCC "forgets" to
16456         # internally use various flags which are still necessary.
16457
16458         #
16459         # Prepare the flags
16460         #
16461         save_CFLAGS="$CFLAGS"
16462         save_LIBS="$LIBS"
16463         save_CC="$CC"
16464
16465         # Try with the flags determined by the earlier checks.
16466         #
16467         # -Wl,-z,defs forces link-time symbol resolution, so that the
16468         # linking checks with -shared actually have any value
16469         #
16470         # FIXME: -fPIC is required for -shared on many architectures,
16471         # so we specify it here, but the right way would probably be to
16472         # properly detect whether it is actually required.
16473         CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
16474         LIBS="$PTHREAD_LIBS $LIBS"
16475         CC="$PTHREAD_CC"
16476
16477         # In order not to create several levels of indentation, we test
16478         # the value of "$done" until we find the cure or run out of ideas.
16479         done="no"
16480
16481         # First, make sure the CFLAGS we added are actually accepted by our
16482         # compiler.  If not (and OS X's ld, for instance, does not accept -z),
16483         # then we can't do this test.
16484         if test x"$done" = xno; then
16485            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
16486 $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
16487            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16488 /* end confdefs.h.  */
16489
16490 int
16491 main ()
16492 {
16493
16494   ;
16495   return 0;
16496 }
16497 _ACEOF
16498 if ac_fn_c_try_link "$LINENO"; then :
16499
16500 else
16501   done=yes
16502 fi
16503 rm -f core conftest.err conftest.$ac_objext \
16504     conftest$ac_exeext conftest.$ac_ext
16505
16506            if test "x$done" = xyes ; then
16507               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16508 $as_echo "no" >&6; }
16509            else
16510               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16511 $as_echo "yes" >&6; }
16512            fi
16513         fi
16514
16515         if test x"$done" = xno; then
16516            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
16517 $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
16518            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16519 /* end confdefs.h.  */
16520 #include <pthread.h>
16521 int
16522 main ()
16523 {
16524 pthread_t th; pthread_join(th, 0);
16525               pthread_attr_init(0); pthread_cleanup_push(0, 0);
16526               pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16527   ;
16528   return 0;
16529 }
16530 _ACEOF
16531 if ac_fn_c_try_link "$LINENO"; then :
16532   done=yes
16533 fi
16534 rm -f core conftest.err conftest.$ac_objext \
16535     conftest$ac_exeext conftest.$ac_ext
16536
16537            if test "x$done" = xyes; then
16538               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16539 $as_echo "yes" >&6; }
16540            else
16541               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16542 $as_echo "no" >&6; }
16543            fi
16544         fi
16545
16546         #
16547         # Linux gcc on some architectures such as mips/mipsel forgets
16548         # about -lpthread
16549         #
16550         if test x"$done" = xno; then
16551            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
16552 $as_echo_n "checking whether -lpthread fixes that... " >&6; }
16553            LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
16554            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16555 /* end confdefs.h.  */
16556 #include <pthread.h>
16557 int
16558 main ()
16559 {
16560 pthread_t th; pthread_join(th, 0);
16561               pthread_attr_init(0); pthread_cleanup_push(0, 0);
16562               pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16563   ;
16564   return 0;
16565 }
16566 _ACEOF
16567 if ac_fn_c_try_link "$LINENO"; then :
16568   done=yes
16569 fi
16570 rm -f core conftest.err conftest.$ac_objext \
16571     conftest$ac_exeext conftest.$ac_ext
16572
16573            if test "x$done" = xyes; then
16574               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16575 $as_echo "yes" >&6; }
16576               PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
16577            else
16578               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16579 $as_echo "no" >&6; }
16580            fi
16581         fi
16582         #
16583         # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
16584         #
16585         if test x"$done" = xno; then
16586            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
16587 $as_echo_n "checking whether -lc_r fixes that... " >&6; }
16588            LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
16589            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16590 /* end confdefs.h.  */
16591 #include <pthread.h>
16592 int
16593 main ()
16594 {
16595 pthread_t th; pthread_join(th, 0);
16596                 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16597                 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16598   ;
16599   return 0;
16600 }
16601 _ACEOF
16602 if ac_fn_c_try_link "$LINENO"; then :
16603   done=yes
16604 fi
16605 rm -f core conftest.err conftest.$ac_objext \
16606     conftest$ac_exeext conftest.$ac_ext
16607
16608            if test "x$done" = xyes; then
16609               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16610 $as_echo "yes" >&6; }
16611               PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
16612            else
16613               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16614 $as_echo "no" >&6; }
16615            fi
16616         fi
16617         if test x"$done" = xno; then
16618            # OK, we have run out of ideas
16619            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
16620 $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
16621
16622            # so it's not safe to assume that we may use pthreads
16623            acx_pthread_ok=no
16624         fi
16625
16626         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether what we have so far is sufficient with -nostdlib" >&5
16627 $as_echo_n "checking whether what we have so far is sufficient with -nostdlib... " >&6; }
16628         CFLAGS="-nostdlib $CFLAGS"
16629         # we need c with nostdlib
16630         LIBS="$LIBS -lc"
16631         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16632 /* end confdefs.h.  */
16633 #include <pthread.h>
16634 int
16635 main ()
16636 {
16637 pthread_t th; pthread_join(th, 0);
16638                pthread_attr_init(0); pthread_cleanup_push(0, 0);
16639                pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16640   ;
16641   return 0;
16642 }
16643 _ACEOF
16644 if ac_fn_c_try_link "$LINENO"; then :
16645   done=yes
16646 else
16647   done=no
16648 fi
16649 rm -f core conftest.err conftest.$ac_objext \
16650     conftest$ac_exeext conftest.$ac_ext
16651
16652         if test "x$done" = xyes; then
16653            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16654 $as_echo "yes" >&6; }
16655         else
16656            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16657 $as_echo "no" >&6; }
16658         fi
16659
16660         if test x"$done" = xno; then
16661            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread saves the day" >&5
16662 $as_echo_n "checking whether -lpthread saves the day... " >&6; }
16663            LIBS="-lpthread $LIBS"
16664            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16665 /* end confdefs.h.  */
16666 #include <pthread.h>
16667 int
16668 main ()
16669 {
16670 pthread_t th; pthread_join(th, 0);
16671                pthread_attr_init(0); pthread_cleanup_push(0, 0);
16672                pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16673   ;
16674   return 0;
16675 }
16676 _ACEOF
16677 if ac_fn_c_try_link "$LINENO"; then :
16678   done=yes
16679 else
16680   done=no
16681 fi
16682 rm -f core conftest.err conftest.$ac_objext \
16683     conftest$ac_exeext conftest.$ac_ext
16684
16685            if test "x$done" = xyes; then
16686               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16687 $as_echo "yes" >&6; }
16688               PTHREAD_LIBS="$PTHREAD_LIBS -lpthread"
16689            else
16690               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16691 $as_echo "no" >&6; }
16692               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&5
16693 $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&2;}
16694            fi
16695         fi
16696
16697         CFLAGS="$save_CFLAGS"
16698         LIBS="$save_LIBS"
16699         CC="$save_CC"
16700 else
16701         PTHREAD_CC="$CC"
16702 fi
16703
16704
16705
16706
16707
16708 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16709 if test x"$acx_pthread_ok" = xyes; then
16710
16711 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16712
16713         :
16714 else
16715         acx_pthread_ok=no
16716
16717 fi
16718 ac_ext=cpp
16719 ac_cpp='$CXXCPP $CPPFLAGS'
16720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16723
16724
16725
16726    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the location of hash_map" >&5
16727 $as_echo_n "checking the location of hash_map... " >&6; }
16728
16729    ac_ext=cpp
16730 ac_cpp='$CXXCPP $CPPFLAGS'
16731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16734
16735    ac_cv_cxx_hash_map=""
16736    # First try unordered_map, but not on gcc's before 4.2 -- I've
16737    # seen unexplainable unordered_map bugs with -O2 on older gcc's.
16738    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16739 /* end confdefs.h.  */
16740 #if defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 2))
16741                    # error GCC too old for unordered_map
16742                    #endif
16743
16744 int
16745 main ()
16746 {
16747 /* no program body necessary */
16748   ;
16749   return 0;
16750 }
16751 _ACEOF
16752 if ac_fn_cxx_try_compile "$LINENO"; then :
16753   stl_hash_old_gcc=no
16754 else
16755   stl_hash_old_gcc=yes
16756 fi
16757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16758    for location in unordered_map tr1/unordered_map; do
16759      for namespace in std std::tr1; do
16760        if test -z "$ac_cv_cxx_hash_map" -a "$stl_hash_old_gcc" != yes; then
16761          # Some older gcc's have a buggy tr1, so test a bit of code.
16762          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16763 /* end confdefs.h.  */
16764 #include <$location>
16765 int
16766 main ()
16767 {
16768 const ${namespace}::unordered_map<int, int> t;
16769                          return t.find(5) == t.end();
16770   ;
16771   return 0;
16772 }
16773 _ACEOF
16774 if ac_fn_cxx_try_compile "$LINENO"; then :
16775   ac_cv_cxx_hash_map="<$location>";
16776                          ac_cv_cxx_hash_namespace="$namespace";
16777                          ac_cv_cxx_hash_map_class="unordered_map";
16778 fi
16779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16780        fi
16781      done
16782    done
16783    # Now try hash_map
16784    for location in ext/hash_map hash_map; do
16785      for namespace in __gnu_cxx "" std stdext; do
16786        if test -z "$ac_cv_cxx_hash_map"; then
16787          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16788 /* end confdefs.h.  */
16789 #include <$location>
16790 int
16791 main ()
16792 {
16793 ${namespace}::hash_map<int, int> t
16794   ;
16795   return 0;
16796 }
16797 _ACEOF
16798 if ac_fn_cxx_try_compile "$LINENO"; then :
16799   ac_cv_cxx_hash_map="<$location>";
16800                          ac_cv_cxx_hash_namespace="$namespace";
16801                          ac_cv_cxx_hash_map_class="hash_map";
16802 fi
16803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16804        fi
16805      done
16806    done
16807    ac_cv_cxx_hash_set=`echo "$ac_cv_cxx_hash_map" | sed s/map/set/`;
16808    ac_cv_cxx_hash_set_class=`echo "$ac_cv_cxx_hash_map_class" | sed s/map/set/`;
16809    if test -n "$ac_cv_cxx_hash_map"; then
16810
16811 $as_echo "#define HAVE_HASH_MAP 1" >>confdefs.h
16812
16813
16814 $as_echo "#define HAVE_HASH_SET 1" >>confdefs.h
16815
16816
16817 cat >>confdefs.h <<_ACEOF
16818 #define HASH_MAP_H $ac_cv_cxx_hash_map
16819 _ACEOF
16820
16821
16822 cat >>confdefs.h <<_ACEOF
16823 #define HASH_SET_H $ac_cv_cxx_hash_set
16824 _ACEOF
16825
16826
16827 cat >>confdefs.h <<_ACEOF
16828 #define HASH_NAMESPACE $ac_cv_cxx_hash_namespace
16829 _ACEOF
16830
16831
16832 cat >>confdefs.h <<_ACEOF
16833 #define HASH_MAP_CLASS $ac_cv_cxx_hash_map_class
16834 _ACEOF
16835
16836
16837 cat >>confdefs.h <<_ACEOF
16838 #define HASH_SET_CLASS $ac_cv_cxx_hash_set_class
16839 _ACEOF
16840
16841       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_hash_map" >&5
16842 $as_echo "$ac_cv_cxx_hash_map" >&6; }
16843    else
16844       { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16845 $as_echo "" >&6; }
16846       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find an STL hash_map" >&5
16847 $as_echo "$as_me: WARNING: could not find an STL hash_map" >&2;}
16848    fi
16849
16850
16851 case "$target_os" in
16852   mingw* | cygwin* | win*)
16853     ;;
16854   *)
16855     # Need to link against rt on Solaris
16856     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
16857 $as_echo_n "checking for library containing sched_yield... " >&6; }
16858 if ${ac_cv_search_sched_yield+:} false; then :
16859   $as_echo_n "(cached) " >&6
16860 else
16861   ac_func_search_save_LIBS=$LIBS
16862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16863 /* end confdefs.h.  */
16864
16865 /* Override any GCC internal prototype to avoid an error.
16866    Use char because int might match the return type of a GCC
16867    builtin and then its argument prototype would still apply.  */
16868 #ifdef __cplusplus
16869 extern "C"
16870 #endif
16871 char sched_yield ();
16872 int
16873 main ()
16874 {
16875 return sched_yield ();
16876   ;
16877   return 0;
16878 }
16879 _ACEOF
16880 for ac_lib in '' rt; do
16881   if test -z "$ac_lib"; then
16882     ac_res="none required"
16883   else
16884     ac_res=-l$ac_lib
16885     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16886   fi
16887   if ac_fn_cxx_try_link "$LINENO"; then :
16888   ac_cv_search_sched_yield=$ac_res
16889 fi
16890 rm -f core conftest.err conftest.$ac_objext \
16891     conftest$ac_exeext
16892   if ${ac_cv_search_sched_yield+:} false; then :
16893   break
16894 fi
16895 done
16896 if ${ac_cv_search_sched_yield+:} false; then :
16897
16898 else
16899   ac_cv_search_sched_yield=no
16900 fi
16901 rm conftest.$ac_ext
16902 LIBS=$ac_func_search_save_LIBS
16903 fi
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
16905 $as_echo "$ac_cv_search_sched_yield" >&6; }
16906 ac_res=$ac_cv_search_sched_yield
16907 if test "$ac_res" != no; then :
16908   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16909
16910 else
16911   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16913 as_fn_error $? "sched_yield was not found on your system
16914 See \`config.log' for more details" "$LINENO" 5; }
16915 fi
16916
16917     ;;
16918 esac
16919
16920 # HACK:  Make gtest's configure script pick up our copy of CFLAGS and CXXFLAGS,
16921 #   since the flags added by ACX_CHECK_SUNCC must be used when compiling gtest
16922 #   too.
16923 export CFLAGS
16924 export CXXFLAGS
16925
16926
16927 subdirs="$subdirs gtest"
16928
16929
16930 ac_config_files="$ac_config_files Makefile src/Makefile protobuf.pc protobuf-lite.pc"
16931
16932 cat >confcache <<\_ACEOF
16933 # This file is a shell script that caches the results of configure
16934 # tests run on this system so they can be shared between configure
16935 # scripts and configure runs, see configure's option --config-cache.
16936 # It is not useful on other systems.  If it contains results you don't
16937 # want to keep, you may remove or edit it.
16938 #
16939 # config.status only pays attention to the cache file if you give it
16940 # the --recheck option to rerun configure.
16941 #
16942 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16943 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16944 # following values.
16945
16946 _ACEOF
16947
16948 # The following way of writing the cache mishandles newlines in values,
16949 # but we know of no workaround that is simple, portable, and efficient.
16950 # So, we kill variables containing newlines.
16951 # Ultrix sh set writes to stderr and can't be redirected directly,
16952 # and sets the high bit in the cache file unless we assign to the vars.
16953 (
16954   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16955     eval ac_val=\$$ac_var
16956     case $ac_val in #(
16957     *${as_nl}*)
16958       case $ac_var in #(
16959       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16960 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16961       esac
16962       case $ac_var in #(
16963       _ | IFS | as_nl) ;; #(
16964       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16965       *) { eval $ac_var=; unset $ac_var;} ;;
16966       esac ;;
16967     esac
16968   done
16969
16970   (set) 2>&1 |
16971     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16972     *${as_nl}ac_space=\ *)
16973       # `set' does not quote correctly, so add quotes: double-quote
16974       # substitution turns \\\\ into \\, and sed turns \\ into \.
16975       sed -n \
16976         "s/'/'\\\\''/g;
16977           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16978       ;; #(
16979     *)
16980       # `set' quotes correctly as required by POSIX, so do not add quotes.
16981       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16982       ;;
16983     esac |
16984     sort
16985 ) |
16986   sed '
16987      /^ac_cv_env_/b end
16988      t clear
16989      :clear
16990      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16991      t end
16992      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16993      :end' >>confcache
16994 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16995   if test -w "$cache_file"; then
16996     if test "x$cache_file" != "x/dev/null"; then
16997       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16998 $as_echo "$as_me: updating cache $cache_file" >&6;}
16999       if test ! -f "$cache_file" || test -h "$cache_file"; then
17000         cat confcache >"$cache_file"
17001       else
17002         case $cache_file in #(
17003         */* | ?:*)
17004           mv -f confcache "$cache_file"$$ &&
17005           mv -f "$cache_file"$$ "$cache_file" ;; #(
17006         *)
17007           mv -f confcache "$cache_file" ;;
17008         esac
17009       fi
17010     fi
17011   else
17012     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17013 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17014   fi
17015 fi
17016 rm -f confcache
17017
17018 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17019 # Let make expand exec_prefix.
17020 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17021
17022 DEFS=-DHAVE_CONFIG_H
17023
17024 ac_libobjs=
17025 ac_ltlibobjs=
17026 U=
17027 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17028   # 1. Remove the extension, and $U if already installed.
17029   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17030   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17031   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17032   #    will be set to the directory where LIBOBJS objects are built.
17033   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17034   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17035 done
17036 LIBOBJS=$ac_libobjs
17037
17038 LTLIBOBJS=$ac_ltlibobjs
17039
17040
17041 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17042   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17044 fi
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17046 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17047    if test -n "$am_sleep_pid"; then
17048      # Hide warnings about reused PIDs.
17049      wait $am_sleep_pid 2>/dev/null
17050    fi
17051    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17052 $as_echo "done" >&6; }
17053  if test -n "$EXEEXT"; then
17054   am__EXEEXT_TRUE=
17055   am__EXEEXT_FALSE='#'
17056 else
17057   am__EXEEXT_TRUE='#'
17058   am__EXEEXT_FALSE=
17059 fi
17060
17061 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17062   as_fn_error $? "conditional \"AMDEP\" was never defined.
17063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17064 fi
17065 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17066   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17068 fi
17069 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17070   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17072 fi
17073 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
17074   as_fn_error $? "conditional \"GCC\" was never defined.
17075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17076 fi
17077 if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
17078   as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined.
17079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17080 fi
17081 if test -z "${USE_EXTERNAL_PROTOC_TRUE}" && test -z "${USE_EXTERNAL_PROTOC_FALSE}"; then
17082   as_fn_error $? "conditional \"USE_EXTERNAL_PROTOC\" was never defined.
17083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17084 fi
17085
17086 : "${CONFIG_STATUS=./config.status}"
17087 ac_write_fail=0
17088 ac_clean_files_save=$ac_clean_files
17089 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17091 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17092 as_write_fail=0
17093 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17094 #! $SHELL
17095 # Generated by $as_me.
17096 # Run this file to recreate the current configuration.
17097 # Compiler output produced by configure, useful for debugging
17098 # configure, is in config.log if it exists.
17099
17100 debug=false
17101 ac_cs_recheck=false
17102 ac_cs_silent=false
17103
17104 SHELL=\${CONFIG_SHELL-$SHELL}
17105 export SHELL
17106 _ASEOF
17107 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17108 ## -------------------- ##
17109 ## M4sh Initialization. ##
17110 ## -------------------- ##
17111
17112 # Be more Bourne compatible
17113 DUALCASE=1; export DUALCASE # for MKS sh
17114 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17115   emulate sh
17116   NULLCMD=:
17117   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17118   # is contrary to our usage.  Disable this feature.
17119   alias -g '${1+"$@"}'='"$@"'
17120   setopt NO_GLOB_SUBST
17121 else
17122   case `(set -o) 2>/dev/null` in #(
17123   *posix*) :
17124     set -o posix ;; #(
17125   *) :
17126      ;;
17127 esac
17128 fi
17129
17130
17131 as_nl='
17132 '
17133 export as_nl
17134 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17135 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17136 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17137 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17138 # Prefer a ksh shell builtin over an external printf program on Solaris,
17139 # but without wasting forks for bash or zsh.
17140 if test -z "$BASH_VERSION$ZSH_VERSION" \
17141     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17142   as_echo='print -r --'
17143   as_echo_n='print -rn --'
17144 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17145   as_echo='printf %s\n'
17146   as_echo_n='printf %s'
17147 else
17148   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17149     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17150     as_echo_n='/usr/ucb/echo -n'
17151   else
17152     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17153     as_echo_n_body='eval
17154       arg=$1;
17155       case $arg in #(
17156       *"$as_nl"*)
17157         expr "X$arg" : "X\\(.*\\)$as_nl";
17158         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17159       esac;
17160       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17161     '
17162     export as_echo_n_body
17163     as_echo_n='sh -c $as_echo_n_body as_echo'
17164   fi
17165   export as_echo_body
17166   as_echo='sh -c $as_echo_body as_echo'
17167 fi
17168
17169 # The user is always right.
17170 if test "${PATH_SEPARATOR+set}" != set; then
17171   PATH_SEPARATOR=:
17172   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17173     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17174       PATH_SEPARATOR=';'
17175   }
17176 fi
17177
17178
17179 # IFS
17180 # We need space, tab and new line, in precisely that order.  Quoting is
17181 # there to prevent editors from complaining about space-tab.
17182 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17183 # splitting by setting IFS to empty value.)
17184 IFS=" ""        $as_nl"
17185
17186 # Find who we are.  Look in the path if we contain no directory separator.
17187 as_myself=
17188 case $0 in #((
17189   *[\\/]* ) as_myself=$0 ;;
17190   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17191 for as_dir in $PATH
17192 do
17193   IFS=$as_save_IFS
17194   test -z "$as_dir" && as_dir=.
17195     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17196   done
17197 IFS=$as_save_IFS
17198
17199      ;;
17200 esac
17201 # We did not find ourselves, most probably we were run as `sh COMMAND'
17202 # in which case we are not to be found in the path.
17203 if test "x$as_myself" = x; then
17204   as_myself=$0
17205 fi
17206 if test ! -f "$as_myself"; then
17207   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17208   exit 1
17209 fi
17210
17211 # Unset variables that we do not need and which cause bugs (e.g. in
17212 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17213 # suppresses any "Segmentation fault" message there.  '((' could
17214 # trigger a bug in pdksh 5.2.14.
17215 for as_var in BASH_ENV ENV MAIL MAILPATH
17216 do eval test x\${$as_var+set} = xset \
17217   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17218 done
17219 PS1='$ '
17220 PS2='> '
17221 PS4='+ '
17222
17223 # NLS nuisances.
17224 LC_ALL=C
17225 export LC_ALL
17226 LANGUAGE=C
17227 export LANGUAGE
17228
17229 # CDPATH.
17230 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17231
17232
17233 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17234 # ----------------------------------------
17235 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17236 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17237 # script with STATUS, using 1 if that was 0.
17238 as_fn_error ()
17239 {
17240   as_status=$1; test $as_status -eq 0 && as_status=1
17241   if test "$4"; then
17242     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17243     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17244   fi
17245   $as_echo "$as_me: error: $2" >&2
17246   as_fn_exit $as_status
17247 } # as_fn_error
17248
17249
17250 # as_fn_set_status STATUS
17251 # -----------------------
17252 # Set $? to STATUS, without forking.
17253 as_fn_set_status ()
17254 {
17255   return $1
17256 } # as_fn_set_status
17257
17258 # as_fn_exit STATUS
17259 # -----------------
17260 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17261 as_fn_exit ()
17262 {
17263   set +e
17264   as_fn_set_status $1
17265   exit $1
17266 } # as_fn_exit
17267
17268 # as_fn_unset VAR
17269 # ---------------
17270 # Portably unset VAR.
17271 as_fn_unset ()
17272 {
17273   { eval $1=; unset $1;}
17274 }
17275 as_unset=as_fn_unset
17276 # as_fn_append VAR VALUE
17277 # ----------------------
17278 # Append the text in VALUE to the end of the definition contained in VAR. Take
17279 # advantage of any shell optimizations that allow amortized linear growth over
17280 # repeated appends, instead of the typical quadratic growth present in naive
17281 # implementations.
17282 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17283   eval 'as_fn_append ()
17284   {
17285     eval $1+=\$2
17286   }'
17287 else
17288   as_fn_append ()
17289   {
17290     eval $1=\$$1\$2
17291   }
17292 fi # as_fn_append
17293
17294 # as_fn_arith ARG...
17295 # ------------------
17296 # Perform arithmetic evaluation on the ARGs, and store the result in the
17297 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17298 # must be portable across $(()) and expr.
17299 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17300   eval 'as_fn_arith ()
17301   {
17302     as_val=$(( $* ))
17303   }'
17304 else
17305   as_fn_arith ()
17306   {
17307     as_val=`expr "$@" || test $? -eq 1`
17308   }
17309 fi # as_fn_arith
17310
17311
17312 if expr a : '\(a\)' >/dev/null 2>&1 &&
17313    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17314   as_expr=expr
17315 else
17316   as_expr=false
17317 fi
17318
17319 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17320   as_basename=basename
17321 else
17322   as_basename=false
17323 fi
17324
17325 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17326   as_dirname=dirname
17327 else
17328   as_dirname=false
17329 fi
17330
17331 as_me=`$as_basename -- "$0" ||
17332 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17333          X"$0" : 'X\(//\)$' \| \
17334          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17335 $as_echo X/"$0" |
17336     sed '/^.*\/\([^/][^/]*\)\/*$/{
17337             s//\1/
17338             q
17339           }
17340           /^X\/\(\/\/\)$/{
17341             s//\1/
17342             q
17343           }
17344           /^X\/\(\/\).*/{
17345             s//\1/
17346             q
17347           }
17348           s/.*/./; q'`
17349
17350 # Avoid depending upon Character Ranges.
17351 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17352 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17353 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17354 as_cr_digits='0123456789'
17355 as_cr_alnum=$as_cr_Letters$as_cr_digits
17356
17357 ECHO_C= ECHO_N= ECHO_T=
17358 case `echo -n x` in #(((((
17359 -n*)
17360   case `echo 'xy\c'` in
17361   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17362   xy)  ECHO_C='\c';;
17363   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17364        ECHO_T=' ';;
17365   esac;;
17366 *)
17367   ECHO_N='-n';;
17368 esac
17369
17370 rm -f conf$$ conf$$.exe conf$$.file
17371 if test -d conf$$.dir; then
17372   rm -f conf$$.dir/conf$$.file
17373 else
17374   rm -f conf$$.dir
17375   mkdir conf$$.dir 2>/dev/null
17376 fi
17377 if (echo >conf$$.file) 2>/dev/null; then
17378   if ln -s conf$$.file conf$$ 2>/dev/null; then
17379     as_ln_s='ln -s'
17380     # ... but there are two gotchas:
17381     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17382     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17383     # In both cases, we have to default to `cp -pR'.
17384     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17385       as_ln_s='cp -pR'
17386   elif ln conf$$.file conf$$ 2>/dev/null; then
17387     as_ln_s=ln
17388   else
17389     as_ln_s='cp -pR'
17390   fi
17391 else
17392   as_ln_s='cp -pR'
17393 fi
17394 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17395 rmdir conf$$.dir 2>/dev/null
17396
17397
17398 # as_fn_mkdir_p
17399 # -------------
17400 # Create "$as_dir" as a directory, including parents if necessary.
17401 as_fn_mkdir_p ()
17402 {
17403
17404   case $as_dir in #(
17405   -*) as_dir=./$as_dir;;
17406   esac
17407   test -d "$as_dir" || eval $as_mkdir_p || {
17408     as_dirs=
17409     while :; do
17410       case $as_dir in #(
17411       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17412       *) as_qdir=$as_dir;;
17413       esac
17414       as_dirs="'$as_qdir' $as_dirs"
17415       as_dir=`$as_dirname -- "$as_dir" ||
17416 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17417          X"$as_dir" : 'X\(//\)[^/]' \| \
17418          X"$as_dir" : 'X\(//\)$' \| \
17419          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17420 $as_echo X"$as_dir" |
17421     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17422             s//\1/
17423             q
17424           }
17425           /^X\(\/\/\)[^/].*/{
17426             s//\1/
17427             q
17428           }
17429           /^X\(\/\/\)$/{
17430             s//\1/
17431             q
17432           }
17433           /^X\(\/\).*/{
17434             s//\1/
17435             q
17436           }
17437           s/.*/./; q'`
17438       test -d "$as_dir" && break
17439     done
17440     test -z "$as_dirs" || eval "mkdir $as_dirs"
17441   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17442
17443
17444 } # as_fn_mkdir_p
17445 if mkdir -p . 2>/dev/null; then
17446   as_mkdir_p='mkdir -p "$as_dir"'
17447 else
17448   test -d ./-p && rmdir ./-p
17449   as_mkdir_p=false
17450 fi
17451
17452
17453 # as_fn_executable_p FILE
17454 # -----------------------
17455 # Test if FILE is an executable regular file.
17456 as_fn_executable_p ()
17457 {
17458   test -f "$1" && test -x "$1"
17459 } # as_fn_executable_p
17460 as_test_x='test -x'
17461 as_executable_p=as_fn_executable_p
17462
17463 # Sed expression to map a string onto a valid CPP name.
17464 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17465
17466 # Sed expression to map a string onto a valid variable name.
17467 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17468
17469
17470 exec 6>&1
17471 ## ----------------------------------- ##
17472 ## Main body of $CONFIG_STATUS script. ##
17473 ## ----------------------------------- ##
17474 _ASEOF
17475 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17476
17477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17478 # Save the log message, to keep $0 and so on meaningful, and to
17479 # report actual input values of CONFIG_FILES etc. instead of their
17480 # values after options handling.
17481 ac_log="
17482 This file was extended by Protocol Buffers $as_me 2.6.1, which was
17483 generated by GNU Autoconf 2.69.  Invocation command line was
17484
17485   CONFIG_FILES    = $CONFIG_FILES
17486   CONFIG_HEADERS  = $CONFIG_HEADERS
17487   CONFIG_LINKS    = $CONFIG_LINKS
17488   CONFIG_COMMANDS = $CONFIG_COMMANDS
17489   $ $0 $@
17490
17491 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17492 "
17493
17494 _ACEOF
17495
17496 case $ac_config_files in *"
17497 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17498 esac
17499
17500 case $ac_config_headers in *"
17501 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17502 esac
17503
17504
17505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17506 # Files that config.status was made for.
17507 config_files="$ac_config_files"
17508 config_headers="$ac_config_headers"
17509 config_commands="$ac_config_commands"
17510
17511 _ACEOF
17512
17513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17514 ac_cs_usage="\
17515 \`$as_me' instantiates files and other configuration actions
17516 from templates according to the current configuration.  Unless the files
17517 and actions are specified as TAGs, all are instantiated by default.
17518
17519 Usage: $0 [OPTION]... [TAG]...
17520
17521   -h, --help       print this help, then exit
17522   -V, --version    print version number and configuration settings, then exit
17523       --config     print configuration, then exit
17524   -q, --quiet, --silent
17525                    do not print progress messages
17526   -d, --debug      don't remove temporary files
17527       --recheck    update $as_me by reconfiguring in the same conditions
17528       --file=FILE[:TEMPLATE]
17529                    instantiate the configuration file FILE
17530       --header=FILE[:TEMPLATE]
17531                    instantiate the configuration header FILE
17532
17533 Configuration files:
17534 $config_files
17535
17536 Configuration headers:
17537 $config_headers
17538
17539 Configuration commands:
17540 $config_commands
17541
17542 Report bugs to <protobuf@googlegroups.com>."
17543
17544 _ACEOF
17545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17546 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17547 ac_cs_version="\\
17548 Protocol Buffers config.status 2.6.1
17549 configured by $0, generated by GNU Autoconf 2.69,
17550   with options \\"\$ac_cs_config\\"
17551
17552 Copyright (C) 2012 Free Software Foundation, Inc.
17553 This config.status script is free software; the Free Software Foundation
17554 gives unlimited permission to copy, distribute and modify it."
17555
17556 ac_pwd='$ac_pwd'
17557 srcdir='$srcdir'
17558 INSTALL='$INSTALL'
17559 MKDIR_P='$MKDIR_P'
17560 AWK='$AWK'
17561 test -n "\$AWK" || AWK=awk
17562 _ACEOF
17563
17564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17565 # The default lists apply if the user does not specify any file.
17566 ac_need_defaults=:
17567 while test $# != 0
17568 do
17569   case $1 in
17570   --*=?*)
17571     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17572     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17573     ac_shift=:
17574     ;;
17575   --*=)
17576     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17577     ac_optarg=
17578     ac_shift=:
17579     ;;
17580   *)
17581     ac_option=$1
17582     ac_optarg=$2
17583     ac_shift=shift
17584     ;;
17585   esac
17586
17587   case $ac_option in
17588   # Handling of the options.
17589   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17590     ac_cs_recheck=: ;;
17591   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17592     $as_echo "$ac_cs_version"; exit ;;
17593   --config | --confi | --conf | --con | --co | --c )
17594     $as_echo "$ac_cs_config"; exit ;;
17595   --debug | --debu | --deb | --de | --d | -d )
17596     debug=: ;;
17597   --file | --fil | --fi | --f )
17598     $ac_shift
17599     case $ac_optarg in
17600     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17601     '') as_fn_error $? "missing file argument" ;;
17602     esac
17603     as_fn_append CONFIG_FILES " '$ac_optarg'"
17604     ac_need_defaults=false;;
17605   --header | --heade | --head | --hea )
17606     $ac_shift
17607     case $ac_optarg in
17608     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17609     esac
17610     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17611     ac_need_defaults=false;;
17612   --he | --h)
17613     # Conflict between --help and --header
17614     as_fn_error $? "ambiguous option: \`$1'
17615 Try \`$0 --help' for more information.";;
17616   --help | --hel | -h )
17617     $as_echo "$ac_cs_usage"; exit ;;
17618   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17619   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17620     ac_cs_silent=: ;;
17621
17622   # This is an error.
17623   -*) as_fn_error $? "unrecognized option: \`$1'
17624 Try \`$0 --help' for more information." ;;
17625
17626   *) as_fn_append ac_config_targets " $1"
17627      ac_need_defaults=false ;;
17628
17629   esac
17630   shift
17631 done
17632
17633 ac_configure_extra_args=
17634
17635 if $ac_cs_silent; then
17636   exec 6>/dev/null
17637   ac_configure_extra_args="$ac_configure_extra_args --silent"
17638 fi
17639
17640 _ACEOF
17641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17642 if \$ac_cs_recheck; then
17643   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17644   shift
17645   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17646   CONFIG_SHELL='$SHELL'
17647   export CONFIG_SHELL
17648   exec "\$@"
17649 fi
17650
17651 _ACEOF
17652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17653 exec 5>>config.log
17654 {
17655   echo
17656   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17657 ## Running $as_me. ##
17658 _ASBOX
17659   $as_echo "$ac_log"
17660 } >&5
17661
17662 _ACEOF
17663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17664 #
17665 # INIT-COMMANDS
17666 #
17667 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17668
17669
17670 # The HP-UX ksh and POSIX shell print the target directory to stdout
17671 # if CDPATH is set.
17672 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17673
17674 sed_quote_subst='$sed_quote_subst'
17675 double_quote_subst='$double_quote_subst'
17676 delay_variable_subst='$delay_variable_subst'
17677 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17678 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17679 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17680 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17681 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17682 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17683 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17684 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17685 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17686 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17687 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17688 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17689 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17690 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17691 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17692 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17693 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17694 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17695 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17696 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17697 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17698 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17699 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17700 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17701 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17702 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17703 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17704 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17705 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17706 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17707 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17708 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17709 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17710 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17711 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17712 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17713 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17714 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17715 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17716 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17717 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17718 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17719 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17720 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17721 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17722 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17723 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17724 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17725 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17726 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17727 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17728 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17729 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17730 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17731 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17732 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17733 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"`'
17734 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17735 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17736 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17737 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17738 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17739 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17740 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17741 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17742 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17743 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17744 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17745 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17746 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17747 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17748 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17749 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17750 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17751 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17752 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17753 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17754 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17755 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17756 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17757 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17758 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17759 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17760 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17761 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17762 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17763 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17764 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17765 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17766 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17767 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17768 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17769 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17770 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17771 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17772 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17773 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17774 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17775 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17776 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17777 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17778 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17779 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17780 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17781 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17782 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17783 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17784 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17785 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17786 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17787 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17788 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17789 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17790 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17791 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17792 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17793 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17794 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17795 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17796 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17797 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17798 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17799 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17800 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17801 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17802 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17803 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17804 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17805 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17806 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17807 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17808 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17809 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17810 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17811 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17812 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17813 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17814 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17815 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17816 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17817 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17818 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17819 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17820 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17821 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17822 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17823 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17824 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17825 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17826 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17827 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17828 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17829 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17830 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17831 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17832 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17833 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17834 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17835 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17836 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17837 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17838 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17839 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17840 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17841 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17842 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17843 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17844 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17845 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17846 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17847 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17848 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17849 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17850 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17851 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17852 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17853 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17854 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17855 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17856 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17857 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17858 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17859 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17860 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17861
17862 LTCC='$LTCC'
17863 LTCFLAGS='$LTCFLAGS'
17864 compiler='$compiler_DEFAULT'
17865
17866 # A function that is used when there is no print builtin or printf.
17867 func_fallback_echo ()
17868 {
17869   eval 'cat <<_LTECHO_EOF
17870 \$1
17871 _LTECHO_EOF'
17872 }
17873
17874 # Quote evaled strings.
17875 for var in SHELL \
17876 ECHO \
17877 PATH_SEPARATOR \
17878 SED \
17879 GREP \
17880 EGREP \
17881 FGREP \
17882 LD \
17883 NM \
17884 LN_S \
17885 lt_SP2NL \
17886 lt_NL2SP \
17887 reload_flag \
17888 OBJDUMP \
17889 deplibs_check_method \
17890 file_magic_cmd \
17891 file_magic_glob \
17892 want_nocaseglob \
17893 DLLTOOL \
17894 sharedlib_from_linklib_cmd \
17895 AR \
17896 AR_FLAGS \
17897 archiver_list_spec \
17898 STRIP \
17899 RANLIB \
17900 CC \
17901 CFLAGS \
17902 compiler \
17903 lt_cv_sys_global_symbol_pipe \
17904 lt_cv_sys_global_symbol_to_cdecl \
17905 lt_cv_sys_global_symbol_to_c_name_address \
17906 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17907 nm_file_list_spec \
17908 lt_prog_compiler_no_builtin_flag \
17909 lt_prog_compiler_pic \
17910 lt_prog_compiler_wl \
17911 lt_prog_compiler_static \
17912 lt_cv_prog_compiler_c_o \
17913 need_locks \
17914 MANIFEST_TOOL \
17915 DSYMUTIL \
17916 NMEDIT \
17917 LIPO \
17918 OTOOL \
17919 OTOOL64 \
17920 shrext_cmds \
17921 export_dynamic_flag_spec \
17922 whole_archive_flag_spec \
17923 compiler_needs_object \
17924 with_gnu_ld \
17925 allow_undefined_flag \
17926 no_undefined_flag \
17927 hardcode_libdir_flag_spec \
17928 hardcode_libdir_separator \
17929 exclude_expsyms \
17930 include_expsyms \
17931 file_list_spec \
17932 variables_saved_for_relink \
17933 libname_spec \
17934 library_names_spec \
17935 soname_spec \
17936 install_override_mode \
17937 finish_eval \
17938 old_striplib \
17939 striplib \
17940 compiler_lib_search_dirs \
17941 predep_objects \
17942 postdep_objects \
17943 predeps \
17944 postdeps \
17945 compiler_lib_search_path \
17946 LD_CXX \
17947 reload_flag_CXX \
17948 compiler_CXX \
17949 lt_prog_compiler_no_builtin_flag_CXX \
17950 lt_prog_compiler_pic_CXX \
17951 lt_prog_compiler_wl_CXX \
17952 lt_prog_compiler_static_CXX \
17953 lt_cv_prog_compiler_c_o_CXX \
17954 export_dynamic_flag_spec_CXX \
17955 whole_archive_flag_spec_CXX \
17956 compiler_needs_object_CXX \
17957 with_gnu_ld_CXX \
17958 allow_undefined_flag_CXX \
17959 no_undefined_flag_CXX \
17960 hardcode_libdir_flag_spec_CXX \
17961 hardcode_libdir_separator_CXX \
17962 exclude_expsyms_CXX \
17963 include_expsyms_CXX \
17964 file_list_spec_CXX \
17965 compiler_lib_search_dirs_CXX \
17966 predep_objects_CXX \
17967 postdep_objects_CXX \
17968 predeps_CXX \
17969 postdeps_CXX \
17970 compiler_lib_search_path_CXX; do
17971     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17972     *[\\\\\\\`\\"\\\$]*)
17973       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17974       ;;
17975     *)
17976       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17977       ;;
17978     esac
17979 done
17980
17981 # Double-quote double-evaled strings.
17982 for var in reload_cmds \
17983 old_postinstall_cmds \
17984 old_postuninstall_cmds \
17985 old_archive_cmds \
17986 extract_expsyms_cmds \
17987 old_archive_from_new_cmds \
17988 old_archive_from_expsyms_cmds \
17989 archive_cmds \
17990 archive_expsym_cmds \
17991 module_cmds \
17992 module_expsym_cmds \
17993 export_symbols_cmds \
17994 prelink_cmds \
17995 postlink_cmds \
17996 postinstall_cmds \
17997 postuninstall_cmds \
17998 finish_cmds \
17999 sys_lib_search_path_spec \
18000 sys_lib_dlsearch_path_spec \
18001 reload_cmds_CXX \
18002 old_archive_cmds_CXX \
18003 old_archive_from_new_cmds_CXX \
18004 old_archive_from_expsyms_cmds_CXX \
18005 archive_cmds_CXX \
18006 archive_expsym_cmds_CXX \
18007 module_cmds_CXX \
18008 module_expsym_cmds_CXX \
18009 export_symbols_cmds_CXX \
18010 prelink_cmds_CXX \
18011 postlink_cmds_CXX; do
18012     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18013     *[\\\\\\\`\\"\\\$]*)
18014       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18015       ;;
18016     *)
18017       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18018       ;;
18019     esac
18020 done
18021
18022 ac_aux_dir='$ac_aux_dir'
18023 xsi_shell='$xsi_shell'
18024 lt_shell_append='$lt_shell_append'
18025
18026 # See if we are running on zsh, and set the options which allow our
18027 # commands through without removal of \ escapes INIT.
18028 if test -n "\${ZSH_VERSION+set}" ; then
18029    setopt NO_GLOB_SUBST
18030 fi
18031
18032
18033     PACKAGE='$PACKAGE'
18034     VERSION='$VERSION'
18035     TIMESTAMP='$TIMESTAMP'
18036     RM='$RM'
18037     ofile='$ofile'
18038
18039
18040
18041
18042
18043
18044 _ACEOF
18045
18046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18047
18048 # Handling of arguments.
18049 for ac_config_target in $ac_config_targets
18050 do
18051   case $ac_config_target in
18052     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18053     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18054     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18055     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18056     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18057     "protobuf.pc") CONFIG_FILES="$CONFIG_FILES protobuf.pc" ;;
18058     "protobuf-lite.pc") CONFIG_FILES="$CONFIG_FILES protobuf-lite.pc" ;;
18059
18060   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18061   esac
18062 done
18063
18064
18065 # If the user did not use the arguments to specify the items to instantiate,
18066 # then the envvar interface is used.  Set only those that are not.
18067 # We use the long form for the default assignment because of an extremely
18068 # bizarre bug on SunOS 4.1.3.
18069 if $ac_need_defaults; then
18070   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18071   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18072   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18073 fi
18074
18075 # Have a temporary directory for convenience.  Make it in the build tree
18076 # simply because there is no reason against having it here, and in addition,
18077 # creating and moving files from /tmp can sometimes cause problems.
18078 # Hook for its removal unless debugging.
18079 # Note that there is a small window in which the directory will not be cleaned:
18080 # after its creation but before its name has been assigned to `$tmp'.
18081 $debug ||
18082 {
18083   tmp= ac_tmp=
18084   trap 'exit_status=$?
18085   : "${ac_tmp:=$tmp}"
18086   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18087 ' 0
18088   trap 'as_fn_exit 1' 1 2 13 15
18089 }
18090 # Create a (secure) tmp directory for tmp files.
18091
18092 {
18093   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18094   test -d "$tmp"
18095 }  ||
18096 {
18097   tmp=./conf$$-$RANDOM
18098   (umask 077 && mkdir "$tmp")
18099 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18100 ac_tmp=$tmp
18101
18102 # Set up the scripts for CONFIG_FILES section.
18103 # No need to generate them if there are no CONFIG_FILES.
18104 # This happens for instance with `./config.status config.h'.
18105 if test -n "$CONFIG_FILES"; then
18106
18107
18108 ac_cr=`echo X | tr X '\015'`
18109 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18110 # But we know of no other shell where ac_cr would be empty at this
18111 # point, so we can use a bashism as a fallback.
18112 if test "x$ac_cr" = x; then
18113   eval ac_cr=\$\'\\r\'
18114 fi
18115 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18116 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18117   ac_cs_awk_cr='\\r'
18118 else
18119   ac_cs_awk_cr=$ac_cr
18120 fi
18121
18122 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18123 _ACEOF
18124
18125
18126 {
18127   echo "cat >conf$$subs.awk <<_ACEOF" &&
18128   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18129   echo "_ACEOF"
18130 } >conf$$subs.sh ||
18131   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18132 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18133 ac_delim='%!_!# '
18134 for ac_last_try in false false false false false :; do
18135   . ./conf$$subs.sh ||
18136     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18137
18138   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18139   if test $ac_delim_n = $ac_delim_num; then
18140     break
18141   elif $ac_last_try; then
18142     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18143   else
18144     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18145   fi
18146 done
18147 rm -f conf$$subs.sh
18148
18149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18150 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18151 _ACEOF
18152 sed -n '
18153 h
18154 s/^/S["/; s/!.*/"]=/
18155 p
18156 g
18157 s/^[^!]*!//
18158 :repl
18159 t repl
18160 s/'"$ac_delim"'$//
18161 t delim
18162 :nl
18163 h
18164 s/\(.\{148\}\)..*/\1/
18165 t more1
18166 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18167 p
18168 n
18169 b repl
18170 :more1
18171 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18172 p
18173 g
18174 s/.\{148\}//
18175 t nl
18176 :delim
18177 h
18178 s/\(.\{148\}\)..*/\1/
18179 t more2
18180 s/["\\]/\\&/g; s/^/"/; s/$/"/
18181 p
18182 b
18183 :more2
18184 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18185 p
18186 g
18187 s/.\{148\}//
18188 t delim
18189 ' <conf$$subs.awk | sed '
18190 /^[^""]/{
18191   N
18192   s/\n//
18193 }
18194 ' >>$CONFIG_STATUS || ac_write_fail=1
18195 rm -f conf$$subs.awk
18196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18197 _ACAWK
18198 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18199   for (key in S) S_is_set[key] = 1
18200   FS = "\a"
18201
18202 }
18203 {
18204   line = $ 0
18205   nfields = split(line, field, "@")
18206   substed = 0
18207   len = length(field[1])
18208   for (i = 2; i < nfields; i++) {
18209     key = field[i]
18210     keylen = length(key)
18211     if (S_is_set[key]) {
18212       value = S[key]
18213       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18214       len += length(value) + length(field[++i])
18215       substed = 1
18216     } else
18217       len += 1 + keylen
18218   }
18219
18220   print line
18221 }
18222
18223 _ACAWK
18224 _ACEOF
18225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18226 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18227   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18228 else
18229   cat
18230 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18231   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18232 _ACEOF
18233
18234 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18235 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18236 # trailing colons and then remove the whole line if VPATH becomes empty
18237 # (actually we leave an empty line to preserve line numbers).
18238 if test "x$srcdir" = x.; then
18239   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18240 h
18241 s///
18242 s/^/:/
18243 s/[      ]*$/:/
18244 s/:\$(srcdir):/:/g
18245 s/:\${srcdir}:/:/g
18246 s/:@srcdir@:/:/g
18247 s/^:*//
18248 s/:*$//
18249 x
18250 s/\(=[   ]*\).*/\1/
18251 G
18252 s/\n//
18253 s/^[^=]*=[       ]*$//
18254 }'
18255 fi
18256
18257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18258 fi # test -n "$CONFIG_FILES"
18259
18260 # Set up the scripts for CONFIG_HEADERS section.
18261 # No need to generate them if there are no CONFIG_HEADERS.
18262 # This happens for instance with `./config.status Makefile'.
18263 if test -n "$CONFIG_HEADERS"; then
18264 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18265 BEGIN {
18266 _ACEOF
18267
18268 # Transform confdefs.h into an awk script `defines.awk', embedded as
18269 # here-document in config.status, that substitutes the proper values into
18270 # config.h.in to produce config.h.
18271
18272 # Create a delimiter string that does not exist in confdefs.h, to ease
18273 # handling of long lines.
18274 ac_delim='%!_!# '
18275 for ac_last_try in false false :; do
18276   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18277   if test -z "$ac_tt"; then
18278     break
18279   elif $ac_last_try; then
18280     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18281   else
18282     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18283   fi
18284 done
18285
18286 # For the awk script, D is an array of macro values keyed by name,
18287 # likewise P contains macro parameters if any.  Preserve backslash
18288 # newline sequences.
18289
18290 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18291 sed -n '
18292 s/.\{148\}/&'"$ac_delim"'/g
18293 t rset
18294 :rset
18295 s/^[     ]*#[    ]*define[       ][      ]*/ /
18296 t def
18297 d
18298 :def
18299 s/\\$//
18300 t bsnl
18301 s/["\\]/\\&/g
18302 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18303 D["\1"]=" \3"/p
18304 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18305 d
18306 :bsnl
18307 s/["\\]/\\&/g
18308 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18309 D["\1"]=" \3\\\\\\n"\\/p
18310 t cont
18311 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18312 t cont
18313 d
18314 :cont
18315 n
18316 s/.\{148\}/&'"$ac_delim"'/g
18317 t clear
18318 :clear
18319 s/\\$//
18320 t bsnlc
18321 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18322 d
18323 :bsnlc
18324 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18325 b cont
18326 ' <confdefs.h | sed '
18327 s/'"$ac_delim"'/"\\\
18328 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18329
18330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18331   for (key in D) D_is_set[key] = 1
18332   FS = "\a"
18333 }
18334 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18335   line = \$ 0
18336   split(line, arg, " ")
18337   if (arg[1] == "#") {
18338     defundef = arg[2]
18339     mac1 = arg[3]
18340   } else {
18341     defundef = substr(arg[1], 2)
18342     mac1 = arg[2]
18343   }
18344   split(mac1, mac2, "(") #)
18345   macro = mac2[1]
18346   prefix = substr(line, 1, index(line, defundef) - 1)
18347   if (D_is_set[macro]) {
18348     # Preserve the white space surrounding the "#".
18349     print prefix "define", macro P[macro] D[macro]
18350     next
18351   } else {
18352     # Replace #undef with comments.  This is necessary, for example,
18353     # in the case of _POSIX_SOURCE, which is predefined and required
18354     # on some systems where configure will not decide to define it.
18355     if (defundef == "undef") {
18356       print "/*", prefix defundef, macro, "*/"
18357       next
18358     }
18359   }
18360 }
18361 { print }
18362 _ACAWK
18363 _ACEOF
18364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18365   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18366 fi # test -n "$CONFIG_HEADERS"
18367
18368
18369 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18370 shift
18371 for ac_tag
18372 do
18373   case $ac_tag in
18374   :[FHLC]) ac_mode=$ac_tag; continue;;
18375   esac
18376   case $ac_mode$ac_tag in
18377   :[FHL]*:*);;
18378   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18379   :[FH]-) ac_tag=-:-;;
18380   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18381   esac
18382   ac_save_IFS=$IFS
18383   IFS=:
18384   set x $ac_tag
18385   IFS=$ac_save_IFS
18386   shift
18387   ac_file=$1
18388   shift
18389
18390   case $ac_mode in
18391   :L) ac_source=$1;;
18392   :[FH])
18393     ac_file_inputs=
18394     for ac_f
18395     do
18396       case $ac_f in
18397       -) ac_f="$ac_tmp/stdin";;
18398       *) # Look for the file first in the build tree, then in the source tree
18399          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18400          # because $ac_f cannot contain `:'.
18401          test -f "$ac_f" ||
18402            case $ac_f in
18403            [\\/$]*) false;;
18404            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18405            esac ||
18406            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18407       esac
18408       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18409       as_fn_append ac_file_inputs " '$ac_f'"
18410     done
18411
18412     # Let's still pretend it is `configure' which instantiates (i.e., don't
18413     # use $as_me), people would be surprised to read:
18414     #    /* config.h.  Generated by config.status.  */
18415     configure_input='Generated from '`
18416           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18417         `' by configure.'
18418     if test x"$ac_file" != x-; then
18419       configure_input="$ac_file.  $configure_input"
18420       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18421 $as_echo "$as_me: creating $ac_file" >&6;}
18422     fi
18423     # Neutralize special characters interpreted by sed in replacement strings.
18424     case $configure_input in #(
18425     *\&* | *\|* | *\\* )
18426        ac_sed_conf_input=`$as_echo "$configure_input" |
18427        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18428     *) ac_sed_conf_input=$configure_input;;
18429     esac
18430
18431     case $ac_tag in
18432     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18433       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18434     esac
18435     ;;
18436   esac
18437
18438   ac_dir=`$as_dirname -- "$ac_file" ||
18439 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18440          X"$ac_file" : 'X\(//\)[^/]' \| \
18441          X"$ac_file" : 'X\(//\)$' \| \
18442          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18443 $as_echo X"$ac_file" |
18444     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18445             s//\1/
18446             q
18447           }
18448           /^X\(\/\/\)[^/].*/{
18449             s//\1/
18450             q
18451           }
18452           /^X\(\/\/\)$/{
18453             s//\1/
18454             q
18455           }
18456           /^X\(\/\).*/{
18457             s//\1/
18458             q
18459           }
18460           s/.*/./; q'`
18461   as_dir="$ac_dir"; as_fn_mkdir_p
18462   ac_builddir=.
18463
18464 case "$ac_dir" in
18465 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18466 *)
18467   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18468   # A ".." for each directory in $ac_dir_suffix.
18469   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18470   case $ac_top_builddir_sub in
18471   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18472   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18473   esac ;;
18474 esac
18475 ac_abs_top_builddir=$ac_pwd
18476 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18477 # for backward compatibility:
18478 ac_top_builddir=$ac_top_build_prefix
18479
18480 case $srcdir in
18481   .)  # We are building in place.
18482     ac_srcdir=.
18483     ac_top_srcdir=$ac_top_builddir_sub
18484     ac_abs_top_srcdir=$ac_pwd ;;
18485   [\\/]* | ?:[\\/]* )  # Absolute name.
18486     ac_srcdir=$srcdir$ac_dir_suffix;
18487     ac_top_srcdir=$srcdir
18488     ac_abs_top_srcdir=$srcdir ;;
18489   *) # Relative name.
18490     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18491     ac_top_srcdir=$ac_top_build_prefix$srcdir
18492     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18493 esac
18494 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18495
18496
18497   case $ac_mode in
18498   :F)
18499   #
18500   # CONFIG_FILE
18501   #
18502
18503   case $INSTALL in
18504   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18505   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18506   esac
18507   ac_MKDIR_P=$MKDIR_P
18508   case $MKDIR_P in
18509   [\\/$]* | ?:[\\/]* ) ;;
18510   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18511   esac
18512 _ACEOF
18513
18514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18515 # If the template does not know about datarootdir, expand it.
18516 # FIXME: This hack should be removed a few years after 2.60.
18517 ac_datarootdir_hack=; ac_datarootdir_seen=
18518 ac_sed_dataroot='
18519 /datarootdir/ {
18520   p
18521   q
18522 }
18523 /@datadir@/p
18524 /@docdir@/p
18525 /@infodir@/p
18526 /@localedir@/p
18527 /@mandir@/p'
18528 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18529 *datarootdir*) ac_datarootdir_seen=yes;;
18530 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18531   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18532 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18533 _ACEOF
18534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18535   ac_datarootdir_hack='
18536   s&@datadir@&$datadir&g
18537   s&@docdir@&$docdir&g
18538   s&@infodir@&$infodir&g
18539   s&@localedir@&$localedir&g
18540   s&@mandir@&$mandir&g
18541   s&\\\${datarootdir}&$datarootdir&g' ;;
18542 esac
18543 _ACEOF
18544
18545 # Neutralize VPATH when `$srcdir' = `.'.
18546 # Shell code in configure.ac might set extrasub.
18547 # FIXME: do we really want to maintain this feature?
18548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18549 ac_sed_extra="$ac_vpsub
18550 $extrasub
18551 _ACEOF
18552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18553 :t
18554 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18555 s|@configure_input@|$ac_sed_conf_input|;t t
18556 s&@top_builddir@&$ac_top_builddir_sub&;t t
18557 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18558 s&@srcdir@&$ac_srcdir&;t t
18559 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18560 s&@top_srcdir@&$ac_top_srcdir&;t t
18561 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18562 s&@builddir@&$ac_builddir&;t t
18563 s&@abs_builddir@&$ac_abs_builddir&;t t
18564 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18565 s&@INSTALL@&$ac_INSTALL&;t t
18566 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18567 $ac_datarootdir_hack
18568 "
18569 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18570   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18571
18572 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18573   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18574   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18575       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18576   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18577 which seems to be undefined.  Please make sure it is defined" >&5
18578 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18579 which seems to be undefined.  Please make sure it is defined" >&2;}
18580
18581   rm -f "$ac_tmp/stdin"
18582   case $ac_file in
18583   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18584   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18585   esac \
18586   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18587  ;;
18588   :H)
18589   #
18590   # CONFIG_HEADER
18591   #
18592   if test x"$ac_file" != x-; then
18593     {
18594       $as_echo "/* $configure_input  */" \
18595       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18596     } >"$ac_tmp/config.h" \
18597       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18598     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18599       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18600 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18601     else
18602       rm -f "$ac_file"
18603       mv "$ac_tmp/config.h" "$ac_file" \
18604         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18605     fi
18606   else
18607     $as_echo "/* $configure_input  */" \
18608       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18609       || as_fn_error $? "could not create -" "$LINENO" 5
18610   fi
18611 # Compute "$ac_file"'s index in $config_headers.
18612 _am_arg="$ac_file"
18613 _am_stamp_count=1
18614 for _am_header in $config_headers :; do
18615   case $_am_header in
18616     $_am_arg | $_am_arg:* )
18617       break ;;
18618     * )
18619       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18620   esac
18621 done
18622 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18623 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18624          X"$_am_arg" : 'X\(//\)[^/]' \| \
18625          X"$_am_arg" : 'X\(//\)$' \| \
18626          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18627 $as_echo X"$_am_arg" |
18628     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18629             s//\1/
18630             q
18631           }
18632           /^X\(\/\/\)[^/].*/{
18633             s//\1/
18634             q
18635           }
18636           /^X\(\/\/\)$/{
18637             s//\1/
18638             q
18639           }
18640           /^X\(\/\).*/{
18641             s//\1/
18642             q
18643           }
18644           s/.*/./; q'`/stamp-h$_am_stamp_count
18645  ;;
18646
18647   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18648 $as_echo "$as_me: executing $ac_file commands" >&6;}
18649  ;;
18650   esac
18651
18652
18653   case $ac_file$ac_mode in
18654     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18655   # Older Autoconf quotes --file arguments for eval, but not when files
18656   # are listed without --file.  Let's play safe and only enable the eval
18657   # if we detect the quoting.
18658   case $CONFIG_FILES in
18659   *\'*) eval set x "$CONFIG_FILES" ;;
18660   *)   set x $CONFIG_FILES ;;
18661   esac
18662   shift
18663   for mf
18664   do
18665     # Strip MF so we end up with the name of the file.
18666     mf=`echo "$mf" | sed -e 's/:.*$//'`
18667     # Check whether this is an Automake generated Makefile or not.
18668     # We used to match only the files named 'Makefile.in', but
18669     # some people rename them; so instead we look at the file content.
18670     # Grep'ing the first line is not enough: some people post-process
18671     # each Makefile.in and add a new line on top of each file to say so.
18672     # Grep'ing the whole file is not good either: AIX grep has a line
18673     # limit of 2048, but all sed's we know have understand at least 4000.
18674     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18675       dirpart=`$as_dirname -- "$mf" ||
18676 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18677          X"$mf" : 'X\(//\)[^/]' \| \
18678          X"$mf" : 'X\(//\)$' \| \
18679          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18680 $as_echo X"$mf" |
18681     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18682             s//\1/
18683             q
18684           }
18685           /^X\(\/\/\)[^/].*/{
18686             s//\1/
18687             q
18688           }
18689           /^X\(\/\/\)$/{
18690             s//\1/
18691             q
18692           }
18693           /^X\(\/\).*/{
18694             s//\1/
18695             q
18696           }
18697           s/.*/./; q'`
18698     else
18699       continue
18700     fi
18701     # Extract the definition of DEPDIR, am__include, and am__quote
18702     # from the Makefile without running 'make'.
18703     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18704     test -z "$DEPDIR" && continue
18705     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18706     test -z "$am__include" && continue
18707     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18708     # Find all dependency output files, they are included files with
18709     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18710     # simplest approach to changing $(DEPDIR) to its actual value in the
18711     # expansion.
18712     for file in `sed -n "
18713       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18714          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18715       # Make sure the directory exists.
18716       test -f "$dirpart/$file" && continue
18717       fdir=`$as_dirname -- "$file" ||
18718 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18719          X"$file" : 'X\(//\)[^/]' \| \
18720          X"$file" : 'X\(//\)$' \| \
18721          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18722 $as_echo X"$file" |
18723     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18724             s//\1/
18725             q
18726           }
18727           /^X\(\/\/\)[^/].*/{
18728             s//\1/
18729             q
18730           }
18731           /^X\(\/\/\)$/{
18732             s//\1/
18733             q
18734           }
18735           /^X\(\/\).*/{
18736             s//\1/
18737             q
18738           }
18739           s/.*/./; q'`
18740       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18741       # echo "creating $dirpart/$file"
18742       echo '# dummy' > "$dirpart/$file"
18743     done
18744   done
18745 }
18746  ;;
18747     "libtool":C)
18748
18749     # See if we are running on zsh, and set the options which allow our
18750     # commands through without removal of \ escapes.
18751     if test -n "${ZSH_VERSION+set}" ; then
18752       setopt NO_GLOB_SUBST
18753     fi
18754
18755     cfgfile="${ofile}T"
18756     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18757     $RM "$cfgfile"
18758
18759     cat <<_LT_EOF >> "$cfgfile"
18760 #! $SHELL
18761
18762 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18763 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18764 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18765 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18766 #
18767 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18768 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18769 #                 Foundation, Inc.
18770 #   Written by Gordon Matzigkeit, 1996
18771 #
18772 #   This file is part of GNU Libtool.
18773 #
18774 # GNU Libtool is free software; you can redistribute it and/or
18775 # modify it under the terms of the GNU General Public License as
18776 # published by the Free Software Foundation; either version 2 of
18777 # the License, or (at your option) any later version.
18778 #
18779 # As a special exception to the GNU General Public License,
18780 # if you distribute this file as part of a program or library that
18781 # is built using GNU Libtool, you may include this file under the
18782 # same distribution terms that you use for the rest of that program.
18783 #
18784 # GNU Libtool is distributed in the hope that it will be useful,
18785 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18786 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18787 # GNU General Public License for more details.
18788 #
18789 # You should have received a copy of the GNU General Public License
18790 # along with GNU Libtool; see the file COPYING.  If not, a copy
18791 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18792 # obtained by writing to the Free Software Foundation, Inc.,
18793 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18794
18795
18796 # The names of the tagged configurations supported by this script.
18797 available_tags="CXX "
18798
18799 # ### BEGIN LIBTOOL CONFIG
18800
18801 # Which release of libtool.m4 was used?
18802 macro_version=$macro_version
18803 macro_revision=$macro_revision
18804
18805 # Whether or not to build shared libraries.
18806 build_libtool_libs=$enable_shared
18807
18808 # Whether or not to build static libraries.
18809 build_old_libs=$enable_static
18810
18811 # What type of objects to build.
18812 pic_mode=$pic_mode
18813
18814 # Whether or not to optimize for fast installation.
18815 fast_install=$enable_fast_install
18816
18817 # Shell to use when invoking shell scripts.
18818 SHELL=$lt_SHELL
18819
18820 # An echo program that protects backslashes.
18821 ECHO=$lt_ECHO
18822
18823 # The PATH separator for the build system.
18824 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18825
18826 # The host system.
18827 host_alias=$host_alias
18828 host=$host
18829 host_os=$host_os
18830
18831 # The build system.
18832 build_alias=$build_alias
18833 build=$build
18834 build_os=$build_os
18835
18836 # A sed program that does not truncate output.
18837 SED=$lt_SED
18838
18839 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18840 Xsed="\$SED -e 1s/^X//"
18841
18842 # A grep program that handles long lines.
18843 GREP=$lt_GREP
18844
18845 # An ERE matcher.
18846 EGREP=$lt_EGREP
18847
18848 # A literal string matcher.
18849 FGREP=$lt_FGREP
18850
18851 # A BSD- or MS-compatible name lister.
18852 NM=$lt_NM
18853
18854 # Whether we need soft or hard links.
18855 LN_S=$lt_LN_S
18856
18857 # What is the maximum length of a command?
18858 max_cmd_len=$max_cmd_len
18859
18860 # Object file suffix (normally "o").
18861 objext=$ac_objext
18862
18863 # Executable file suffix (normally "").
18864 exeext=$exeext
18865
18866 # whether the shell understands "unset".
18867 lt_unset=$lt_unset
18868
18869 # turn spaces into newlines.
18870 SP2NL=$lt_lt_SP2NL
18871
18872 # turn newlines into spaces.
18873 NL2SP=$lt_lt_NL2SP
18874
18875 # convert \$build file names to \$host format.
18876 to_host_file_cmd=$lt_cv_to_host_file_cmd
18877
18878 # convert \$build files to toolchain format.
18879 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18880
18881 # An object symbol dumper.
18882 OBJDUMP=$lt_OBJDUMP
18883
18884 # Method to check whether dependent libraries are shared objects.
18885 deplibs_check_method=$lt_deplibs_check_method
18886
18887 # Command to use when deplibs_check_method = "file_magic".
18888 file_magic_cmd=$lt_file_magic_cmd
18889
18890 # How to find potential files when deplibs_check_method = "file_magic".
18891 file_magic_glob=$lt_file_magic_glob
18892
18893 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18894 want_nocaseglob=$lt_want_nocaseglob
18895
18896 # DLL creation program.
18897 DLLTOOL=$lt_DLLTOOL
18898
18899 # Command to associate shared and link libraries.
18900 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18901
18902 # The archiver.
18903 AR=$lt_AR
18904
18905 # Flags to create an archive.
18906 AR_FLAGS=$lt_AR_FLAGS
18907
18908 # How to feed a file listing to the archiver.
18909 archiver_list_spec=$lt_archiver_list_spec
18910
18911 # A symbol stripping program.
18912 STRIP=$lt_STRIP
18913
18914 # Commands used to install an old-style archive.
18915 RANLIB=$lt_RANLIB
18916 old_postinstall_cmds=$lt_old_postinstall_cmds
18917 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18918
18919 # Whether to use a lock for old archive extraction.
18920 lock_old_archive_extraction=$lock_old_archive_extraction
18921
18922 # A C compiler.
18923 LTCC=$lt_CC
18924
18925 # LTCC compiler flags.
18926 LTCFLAGS=$lt_CFLAGS
18927
18928 # Take the output of nm and produce a listing of raw symbols and C names.
18929 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18930
18931 # Transform the output of nm in a proper C declaration.
18932 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18933
18934 # Transform the output of nm in a C name address pair.
18935 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18936
18937 # Transform the output of nm in a C name address pair when lib prefix is needed.
18938 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18939
18940 # Specify filename containing input files for \$NM.
18941 nm_file_list_spec=$lt_nm_file_list_spec
18942
18943 # The root where to search for dependent libraries,and in which our libraries should be installed.
18944 lt_sysroot=$lt_sysroot
18945
18946 # The name of the directory that contains temporary libtool files.
18947 objdir=$objdir
18948
18949 # Used to examine libraries when file_magic_cmd begins with "file".
18950 MAGIC_CMD=$MAGIC_CMD
18951
18952 # Must we lock files when doing compilation?
18953 need_locks=$lt_need_locks
18954
18955 # Manifest tool.
18956 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18957
18958 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18959 DSYMUTIL=$lt_DSYMUTIL
18960
18961 # Tool to change global to local symbols on Mac OS X.
18962 NMEDIT=$lt_NMEDIT
18963
18964 # Tool to manipulate fat objects and archives on Mac OS X.
18965 LIPO=$lt_LIPO
18966
18967 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18968 OTOOL=$lt_OTOOL
18969
18970 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18971 OTOOL64=$lt_OTOOL64
18972
18973 # Old archive suffix (normally "a").
18974 libext=$libext
18975
18976 # Shared library suffix (normally ".so").
18977 shrext_cmds=$lt_shrext_cmds
18978
18979 # The commands to extract the exported symbol list from a shared archive.
18980 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18981
18982 # Variables whose values should be saved in libtool wrapper scripts and
18983 # restored at link time.
18984 variables_saved_for_relink=$lt_variables_saved_for_relink
18985
18986 # Do we need the "lib" prefix for modules?
18987 need_lib_prefix=$need_lib_prefix
18988
18989 # Do we need a version for libraries?
18990 need_version=$need_version
18991
18992 # Library versioning type.
18993 version_type=$version_type
18994
18995 # Shared library runtime path variable.
18996 runpath_var=$runpath_var
18997
18998 # Shared library path variable.
18999 shlibpath_var=$shlibpath_var
19000
19001 # Is shlibpath searched before the hard-coded library search path?
19002 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19003
19004 # Format of library name prefix.
19005 libname_spec=$lt_libname_spec
19006
19007 # List of archive names.  First name is the real one, the rest are links.
19008 # The last name is the one that the linker finds with -lNAME
19009 library_names_spec=$lt_library_names_spec
19010
19011 # The coded name of the library, if different from the real name.
19012 soname_spec=$lt_soname_spec
19013
19014 # Permission mode override for installation of shared libraries.
19015 install_override_mode=$lt_install_override_mode
19016
19017 # Command to use after installation of a shared archive.
19018 postinstall_cmds=$lt_postinstall_cmds
19019
19020 # Command to use after uninstallation of a shared archive.
19021 postuninstall_cmds=$lt_postuninstall_cmds
19022
19023 # Commands used to finish a libtool library installation in a directory.
19024 finish_cmds=$lt_finish_cmds
19025
19026 # As "finish_cmds", except a single script fragment to be evaled but
19027 # not shown.
19028 finish_eval=$lt_finish_eval
19029
19030 # Whether we should hardcode library paths into libraries.
19031 hardcode_into_libs=$hardcode_into_libs
19032
19033 # Compile-time system search path for libraries.
19034 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19035
19036 # Run-time system search path for libraries.
19037 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19038
19039 # Whether dlopen is supported.
19040 dlopen_support=$enable_dlopen
19041
19042 # Whether dlopen of programs is supported.
19043 dlopen_self=$enable_dlopen_self
19044
19045 # Whether dlopen of statically linked programs is supported.
19046 dlopen_self_static=$enable_dlopen_self_static
19047
19048 # Commands to strip libraries.
19049 old_striplib=$lt_old_striplib
19050 striplib=$lt_striplib
19051
19052
19053 # The linker used to build libraries.
19054 LD=$lt_LD
19055
19056 # How to create reloadable object files.
19057 reload_flag=$lt_reload_flag
19058 reload_cmds=$lt_reload_cmds
19059
19060 # Commands used to build an old-style archive.
19061 old_archive_cmds=$lt_old_archive_cmds
19062
19063 # A language specific compiler.
19064 CC=$lt_compiler
19065
19066 # Is the compiler the GNU compiler?
19067 with_gcc=$GCC
19068
19069 # Compiler flag to turn off builtin functions.
19070 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19071
19072 # Additional compiler flags for building library objects.
19073 pic_flag=$lt_lt_prog_compiler_pic
19074
19075 # How to pass a linker flag through the compiler.
19076 wl=$lt_lt_prog_compiler_wl
19077
19078 # Compiler flag to prevent dynamic linking.
19079 link_static_flag=$lt_lt_prog_compiler_static
19080
19081 # Does compiler simultaneously support -c and -o options?
19082 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19083
19084 # Whether or not to add -lc for building shared libraries.
19085 build_libtool_need_lc=$archive_cmds_need_lc
19086
19087 # Whether or not to disallow shared libs when runtime libs are static.
19088 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19089
19090 # Compiler flag to allow reflexive dlopens.
19091 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19092
19093 # Compiler flag to generate shared objects directly from archives.
19094 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19095
19096 # Whether the compiler copes with passing no objects directly.
19097 compiler_needs_object=$lt_compiler_needs_object
19098
19099 # Create an old-style archive from a shared archive.
19100 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19101
19102 # Create a temporary old-style archive to link instead of a shared archive.
19103 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19104
19105 # Commands used to build a shared archive.
19106 archive_cmds=$lt_archive_cmds
19107 archive_expsym_cmds=$lt_archive_expsym_cmds
19108
19109 # Commands used to build a loadable module if different from building
19110 # a shared archive.
19111 module_cmds=$lt_module_cmds
19112 module_expsym_cmds=$lt_module_expsym_cmds
19113
19114 # Whether we are building with GNU ld or not.
19115 with_gnu_ld=$lt_with_gnu_ld
19116
19117 # Flag that allows shared libraries with undefined symbols to be built.
19118 allow_undefined_flag=$lt_allow_undefined_flag
19119
19120 # Flag that enforces no undefined symbols.
19121 no_undefined_flag=$lt_no_undefined_flag
19122
19123 # Flag to hardcode \$libdir into a binary during linking.
19124 # This must work even if \$libdir does not exist
19125 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19126
19127 # Whether we need a single "-rpath" flag with a separated argument.
19128 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19129
19130 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19131 # DIR into the resulting binary.
19132 hardcode_direct=$hardcode_direct
19133
19134 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19135 # DIR into the resulting binary and the resulting library dependency is
19136 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19137 # library is relocated.
19138 hardcode_direct_absolute=$hardcode_direct_absolute
19139
19140 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19141 # into the resulting binary.
19142 hardcode_minus_L=$hardcode_minus_L
19143
19144 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19145 # into the resulting binary.
19146 hardcode_shlibpath_var=$hardcode_shlibpath_var
19147
19148 # Set to "yes" if building a shared library automatically hardcodes DIR
19149 # into the library and all subsequent libraries and executables linked
19150 # against it.
19151 hardcode_automatic=$hardcode_automatic
19152
19153 # Set to yes if linker adds runtime paths of dependent libraries
19154 # to runtime path list.
19155 inherit_rpath=$inherit_rpath
19156
19157 # Whether libtool must link a program against all its dependency libraries.
19158 link_all_deplibs=$link_all_deplibs
19159
19160 # Set to "yes" if exported symbols are required.
19161 always_export_symbols=$always_export_symbols
19162
19163 # The commands to list exported symbols.
19164 export_symbols_cmds=$lt_export_symbols_cmds
19165
19166 # Symbols that should not be listed in the preloaded symbols.
19167 exclude_expsyms=$lt_exclude_expsyms
19168
19169 # Symbols that must always be exported.
19170 include_expsyms=$lt_include_expsyms
19171
19172 # Commands necessary for linking programs (against libraries) with templates.
19173 prelink_cmds=$lt_prelink_cmds
19174
19175 # Commands necessary for finishing linking programs.
19176 postlink_cmds=$lt_postlink_cmds
19177
19178 # Specify filename containing input files.
19179 file_list_spec=$lt_file_list_spec
19180
19181 # How to hardcode a shared library path into an executable.
19182 hardcode_action=$hardcode_action
19183
19184 # The directories searched by this compiler when creating a shared library.
19185 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19186
19187 # Dependencies to place before and after the objects being linked to
19188 # create a shared library.
19189 predep_objects=$lt_predep_objects
19190 postdep_objects=$lt_postdep_objects
19191 predeps=$lt_predeps
19192 postdeps=$lt_postdeps
19193
19194 # The library search path used internally by the compiler when linking
19195 # a shared library.
19196 compiler_lib_search_path=$lt_compiler_lib_search_path
19197
19198 # ### END LIBTOOL CONFIG
19199
19200 _LT_EOF
19201
19202   case $host_os in
19203   aix3*)
19204     cat <<\_LT_EOF >> "$cfgfile"
19205 # AIX sometimes has problems with the GCC collect2 program.  For some
19206 # reason, if we set the COLLECT_NAMES environment variable, the problems
19207 # vanish in a puff of smoke.
19208 if test "X${COLLECT_NAMES+set}" != Xset; then
19209   COLLECT_NAMES=
19210   export COLLECT_NAMES
19211 fi
19212 _LT_EOF
19213     ;;
19214   esac
19215
19216
19217 ltmain="$ac_aux_dir/ltmain.sh"
19218
19219
19220   # We use sed instead of cat because bash on DJGPP gets confused if
19221   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19222   # text mode, it properly converts lines to CR/LF.  This bash problem
19223   # is reportedly fixed, but why not run on old versions too?
19224   sed '$q' "$ltmain" >> "$cfgfile" \
19225      || (rm -f "$cfgfile"; exit 1)
19226
19227   if test x"$xsi_shell" = xyes; then
19228   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19229 func_dirname ()\
19230 {\
19231 \    case ${1} in\
19232 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19233 \      *  ) func_dirname_result="${3}" ;;\
19234 \    esac\
19235 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19236   && mv -f "$cfgfile.tmp" "$cfgfile" \
19237     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19238 test 0 -eq $? || _lt_function_replace_fail=:
19239
19240
19241   sed -e '/^func_basename ()$/,/^} # func_basename /c\
19242 func_basename ()\
19243 {\
19244 \    func_basename_result="${1##*/}"\
19245 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19246   && mv -f "$cfgfile.tmp" "$cfgfile" \
19247     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19248 test 0 -eq $? || _lt_function_replace_fail=:
19249
19250
19251   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19252 func_dirname_and_basename ()\
19253 {\
19254 \    case ${1} in\
19255 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19256 \      *  ) func_dirname_result="${3}" ;;\
19257 \    esac\
19258 \    func_basename_result="${1##*/}"\
19259 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19260   && mv -f "$cfgfile.tmp" "$cfgfile" \
19261     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19262 test 0 -eq $? || _lt_function_replace_fail=:
19263
19264
19265   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19266 func_stripname ()\
19267 {\
19268 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19269 \    # positional parameters, so assign one to ordinary parameter first.\
19270 \    func_stripname_result=${3}\
19271 \    func_stripname_result=${func_stripname_result#"${1}"}\
19272 \    func_stripname_result=${func_stripname_result%"${2}"}\
19273 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19274   && mv -f "$cfgfile.tmp" "$cfgfile" \
19275     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19276 test 0 -eq $? || _lt_function_replace_fail=:
19277
19278
19279   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19280 func_split_long_opt ()\
19281 {\
19282 \    func_split_long_opt_name=${1%%=*}\
19283 \    func_split_long_opt_arg=${1#*=}\
19284 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19285   && mv -f "$cfgfile.tmp" "$cfgfile" \
19286     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19287 test 0 -eq $? || _lt_function_replace_fail=:
19288
19289
19290   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19291 func_split_short_opt ()\
19292 {\
19293 \    func_split_short_opt_arg=${1#??}\
19294 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19295 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19296   && mv -f "$cfgfile.tmp" "$cfgfile" \
19297     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19298 test 0 -eq $? || _lt_function_replace_fail=:
19299
19300
19301   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19302 func_lo2o ()\
19303 {\
19304 \    case ${1} in\
19305 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19306 \      *)    func_lo2o_result=${1} ;;\
19307 \    esac\
19308 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19309   && mv -f "$cfgfile.tmp" "$cfgfile" \
19310     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19311 test 0 -eq $? || _lt_function_replace_fail=:
19312
19313
19314   sed -e '/^func_xform ()$/,/^} # func_xform /c\
19315 func_xform ()\
19316 {\
19317     func_xform_result=${1%.*}.lo\
19318 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19319   && mv -f "$cfgfile.tmp" "$cfgfile" \
19320     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19321 test 0 -eq $? || _lt_function_replace_fail=:
19322
19323
19324   sed -e '/^func_arith ()$/,/^} # func_arith /c\
19325 func_arith ()\
19326 {\
19327     func_arith_result=$(( $* ))\
19328 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19329   && mv -f "$cfgfile.tmp" "$cfgfile" \
19330     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19331 test 0 -eq $? || _lt_function_replace_fail=:
19332
19333
19334   sed -e '/^func_len ()$/,/^} # func_len /c\
19335 func_len ()\
19336 {\
19337     func_len_result=${#1}\
19338 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19339   && mv -f "$cfgfile.tmp" "$cfgfile" \
19340     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19341 test 0 -eq $? || _lt_function_replace_fail=:
19342
19343 fi
19344
19345 if test x"$lt_shell_append" = xyes; then
19346   sed -e '/^func_append ()$/,/^} # func_append /c\
19347 func_append ()\
19348 {\
19349     eval "${1}+=\\${2}"\
19350 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19351   && mv -f "$cfgfile.tmp" "$cfgfile" \
19352     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19353 test 0 -eq $? || _lt_function_replace_fail=:
19354
19355
19356   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19357 func_append_quoted ()\
19358 {\
19359 \    func_quote_for_eval "${2}"\
19360 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19361 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19362   && mv -f "$cfgfile.tmp" "$cfgfile" \
19363     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19364 test 0 -eq $? || _lt_function_replace_fail=:
19365
19366
19367   # Save a `func_append' function call where possible by direct use of '+='
19368   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19369     && mv -f "$cfgfile.tmp" "$cfgfile" \
19370       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19371   test 0 -eq $? || _lt_function_replace_fail=:
19372 else
19373   # Save a `func_append' function call even when '+=' is not available
19374   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19375     && mv -f "$cfgfile.tmp" "$cfgfile" \
19376       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19377   test 0 -eq $? || _lt_function_replace_fail=:
19378 fi
19379
19380 if test x"$_lt_function_replace_fail" = x":"; then
19381   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19382 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19383 fi
19384
19385
19386    mv -f "$cfgfile" "$ofile" ||
19387     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19388   chmod +x "$ofile"
19389
19390
19391     cat <<_LT_EOF >> "$ofile"
19392
19393 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19394
19395 # The linker used to build libraries.
19396 LD=$lt_LD_CXX
19397
19398 # How to create reloadable object files.
19399 reload_flag=$lt_reload_flag_CXX
19400 reload_cmds=$lt_reload_cmds_CXX
19401
19402 # Commands used to build an old-style archive.
19403 old_archive_cmds=$lt_old_archive_cmds_CXX
19404
19405 # A language specific compiler.
19406 CC=$lt_compiler_CXX
19407
19408 # Is the compiler the GNU compiler?
19409 with_gcc=$GCC_CXX
19410
19411 # Compiler flag to turn off builtin functions.
19412 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19413
19414 # Additional compiler flags for building library objects.
19415 pic_flag=$lt_lt_prog_compiler_pic_CXX
19416
19417 # How to pass a linker flag through the compiler.
19418 wl=$lt_lt_prog_compiler_wl_CXX
19419
19420 # Compiler flag to prevent dynamic linking.
19421 link_static_flag=$lt_lt_prog_compiler_static_CXX
19422
19423 # Does compiler simultaneously support -c and -o options?
19424 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19425
19426 # Whether or not to add -lc for building shared libraries.
19427 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19428
19429 # Whether or not to disallow shared libs when runtime libs are static.
19430 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19431
19432 # Compiler flag to allow reflexive dlopens.
19433 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19434
19435 # Compiler flag to generate shared objects directly from archives.
19436 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19437
19438 # Whether the compiler copes with passing no objects directly.
19439 compiler_needs_object=$lt_compiler_needs_object_CXX
19440
19441 # Create an old-style archive from a shared archive.
19442 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19443
19444 # Create a temporary old-style archive to link instead of a shared archive.
19445 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19446
19447 # Commands used to build a shared archive.
19448 archive_cmds=$lt_archive_cmds_CXX
19449 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19450
19451 # Commands used to build a loadable module if different from building
19452 # a shared archive.
19453 module_cmds=$lt_module_cmds_CXX
19454 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19455
19456 # Whether we are building with GNU ld or not.
19457 with_gnu_ld=$lt_with_gnu_ld_CXX
19458
19459 # Flag that allows shared libraries with undefined symbols to be built.
19460 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19461
19462 # Flag that enforces no undefined symbols.
19463 no_undefined_flag=$lt_no_undefined_flag_CXX
19464
19465 # Flag to hardcode \$libdir into a binary during linking.
19466 # This must work even if \$libdir does not exist
19467 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19468
19469 # Whether we need a single "-rpath" flag with a separated argument.
19470 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19471
19472 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19473 # DIR into the resulting binary.
19474 hardcode_direct=$hardcode_direct_CXX
19475
19476 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19477 # DIR into the resulting binary and the resulting library dependency is
19478 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19479 # library is relocated.
19480 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19481
19482 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19483 # into the resulting binary.
19484 hardcode_minus_L=$hardcode_minus_L_CXX
19485
19486 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19487 # into the resulting binary.
19488 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19489
19490 # Set to "yes" if building a shared library automatically hardcodes DIR
19491 # into the library and all subsequent libraries and executables linked
19492 # against it.
19493 hardcode_automatic=$hardcode_automatic_CXX
19494
19495 # Set to yes if linker adds runtime paths of dependent libraries
19496 # to runtime path list.
19497 inherit_rpath=$inherit_rpath_CXX
19498
19499 # Whether libtool must link a program against all its dependency libraries.
19500 link_all_deplibs=$link_all_deplibs_CXX
19501
19502 # Set to "yes" if exported symbols are required.
19503 always_export_symbols=$always_export_symbols_CXX
19504
19505 # The commands to list exported symbols.
19506 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19507
19508 # Symbols that should not be listed in the preloaded symbols.
19509 exclude_expsyms=$lt_exclude_expsyms_CXX
19510
19511 # Symbols that must always be exported.
19512 include_expsyms=$lt_include_expsyms_CXX
19513
19514 # Commands necessary for linking programs (against libraries) with templates.
19515 prelink_cmds=$lt_prelink_cmds_CXX
19516
19517 # Commands necessary for finishing linking programs.
19518 postlink_cmds=$lt_postlink_cmds_CXX
19519
19520 # Specify filename containing input files.
19521 file_list_spec=$lt_file_list_spec_CXX
19522
19523 # How to hardcode a shared library path into an executable.
19524 hardcode_action=$hardcode_action_CXX
19525
19526 # The directories searched by this compiler when creating a shared library.
19527 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19528
19529 # Dependencies to place before and after the objects being linked to
19530 # create a shared library.
19531 predep_objects=$lt_predep_objects_CXX
19532 postdep_objects=$lt_postdep_objects_CXX
19533 predeps=$lt_predeps_CXX
19534 postdeps=$lt_postdeps_CXX
19535
19536 # The library search path used internally by the compiler when linking
19537 # a shared library.
19538 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19539
19540 # ### END LIBTOOL TAG CONFIG: CXX
19541 _LT_EOF
19542
19543  ;;
19544
19545   esac
19546 done # for ac_tag
19547
19548
19549 as_fn_exit 0
19550 _ACEOF
19551 ac_clean_files=$ac_clean_files_save
19552
19553 test $ac_write_fail = 0 ||
19554   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19555
19556
19557 # configure is writing to config.log, and then calls config.status.
19558 # config.status does its own redirection, appending to config.log.
19559 # Unfortunately, on DOS this fails, as config.log is still kept open
19560 # by configure, so config.status won't be able to write to it; its
19561 # output is simply discarded.  So we exec the FD to /dev/null,
19562 # effectively closing config.log, so it can be properly (re)opened and
19563 # appended to by config.status.  When coming back to configure, we
19564 # need to make the FD available again.
19565 if test "$no_create" != yes; then
19566   ac_cs_success=:
19567   ac_config_status_args=
19568   test "$silent" = yes &&
19569     ac_config_status_args="$ac_config_status_args --quiet"
19570   exec 5>/dev/null
19571   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19572   exec 5>>config.log
19573   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19574   # would make configure fail if this is the last instruction.
19575   $ac_cs_success || as_fn_exit 1
19576 fi
19577
19578 #
19579 # CONFIG_SUBDIRS section.
19580 #
19581 if test "$no_recursion" != yes; then
19582
19583   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19584   # so they do not pile up.
19585   ac_sub_configure_args=
19586   ac_prev=
19587   eval "set x $ac_configure_args"
19588   shift
19589   for ac_arg
19590   do
19591     if test -n "$ac_prev"; then
19592       ac_prev=
19593       continue
19594     fi
19595     case $ac_arg in
19596     -cache-file | --cache-file | --cache-fil | --cache-fi \
19597     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19598       ac_prev=cache_file ;;
19599     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19600     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19601     | --c=*)
19602       ;;
19603     --config-cache | -C)
19604       ;;
19605     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19606       ac_prev=srcdir ;;
19607     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19608       ;;
19609     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19610       ac_prev=prefix ;;
19611     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19612       ;;
19613     --disable-option-checking)
19614       ;;
19615     *)
19616       case $ac_arg in
19617       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19618       esac
19619       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19620     esac
19621   done
19622
19623   # Always prepend --prefix to ensure using the same prefix
19624   # in subdir configurations.
19625   ac_arg="--prefix=$prefix"
19626   case $ac_arg in
19627   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19628   esac
19629   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19630
19631   # Pass --silent
19632   if test "$silent" = yes; then
19633     ac_sub_configure_args="--silent $ac_sub_configure_args"
19634   fi
19635
19636   # Always prepend --disable-option-checking to silence warnings, since
19637   # different subdirs can have different --enable and --with options.
19638   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19639
19640   ac_popdir=`pwd`
19641   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19642
19643     # Do not complain, so a configure script can configure whichever
19644     # parts of a large source tree are present.
19645     test -d "$srcdir/$ac_dir" || continue
19646
19647     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19648     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19649     $as_echo "$ac_msg" >&6
19650     as_dir="$ac_dir"; as_fn_mkdir_p
19651     ac_builddir=.
19652
19653 case "$ac_dir" in
19654 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19655 *)
19656   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19657   # A ".." for each directory in $ac_dir_suffix.
19658   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19659   case $ac_top_builddir_sub in
19660   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19661   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19662   esac ;;
19663 esac
19664 ac_abs_top_builddir=$ac_pwd
19665 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19666 # for backward compatibility:
19667 ac_top_builddir=$ac_top_build_prefix
19668
19669 case $srcdir in
19670   .)  # We are building in place.
19671     ac_srcdir=.
19672     ac_top_srcdir=$ac_top_builddir_sub
19673     ac_abs_top_srcdir=$ac_pwd ;;
19674   [\\/]* | ?:[\\/]* )  # Absolute name.
19675     ac_srcdir=$srcdir$ac_dir_suffix;
19676     ac_top_srcdir=$srcdir
19677     ac_abs_top_srcdir=$srcdir ;;
19678   *) # Relative name.
19679     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19680     ac_top_srcdir=$ac_top_build_prefix$srcdir
19681     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19682 esac
19683 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19684
19685
19686     cd "$ac_dir"
19687
19688     # Check for guested configure; otherwise get Cygnus style configure.
19689     if test -f "$ac_srcdir/configure.gnu"; then
19690       ac_sub_configure=$ac_srcdir/configure.gnu
19691     elif test -f "$ac_srcdir/configure"; then
19692       ac_sub_configure=$ac_srcdir/configure
19693     elif test -f "$ac_srcdir/configure.in"; then
19694       # This should be Cygnus configure.
19695       ac_sub_configure=$ac_aux_dir/configure
19696     else
19697       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19698 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19699       ac_sub_configure=
19700     fi
19701
19702     # The recursion is here.
19703     if test -n "$ac_sub_configure"; then
19704       # Make the cache file name correct relative to the subdirectory.
19705       case $cache_file in
19706       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19707       *) # Relative name.
19708         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19709       esac
19710
19711       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19712 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19713       # The eval makes quoting arguments work.
19714       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19715            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19716         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19717     fi
19718
19719     cd "$ac_popdir"
19720   done
19721 fi
19722 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19723   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19724 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19725 fi
19726