First commit of release 0.1
[sockstream.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libsockstream 0.1.
4 #
5 # Report bugs to <arjen@andromeda.nl>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and arjen@andromeda.nl
250 $0: about your system, including any error possibly output
251 $0: before this message. Then install a modern shell, or
252 $0: manually run the script under such a shell if you do
253 $0: have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='libsockstream'
572 PACKAGE_TARNAME='libsockstream'
573 PACKAGE_VERSION='0.1'
574 PACKAGE_STRING='libsockstream 0.1'
575 PACKAGE_BUGREPORT='arjen@andromeda.nl'
576 PACKAGE_URL=''
577
578 ac_unique_file="src/socket.cpp"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 #  include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #  include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 LIBOBJS
619 CXXCPP
620 CPP
621 OTOOL64
622 OTOOL
623 LIPO
624 NMEDIT
625 DSYMUTIL
626 MANIFEST_TOOL
627 RANLIB
628 ac_ct_AR
629 AR
630 DLLTOOL
631 OBJDUMP
632 LN_S
633 NM
634 ac_ct_DUMPBIN
635 DUMPBIN
636 LD
637 FGREP
638 EGREP
639 GREP
640 SED
641 host_os
642 host_vendor
643 host_cpu
644 host
645 build_os
646 build_vendor
647 build_cpu
648 build
649 LIBTOOL
650 am__fastdepCC_FALSE
651 am__fastdepCC_TRUE
652 CCDEPMODE
653 ac_ct_CC
654 CFLAGS
655 CC
656 am__fastdepCXX_FALSE
657 am__fastdepCXX_TRUE
658 CXXDEPMODE
659 AMDEPBACKSLASH
660 AMDEP_FALSE
661 AMDEP_TRUE
662 am__quote
663 am__include
664 DEPDIR
665 OBJEXT
666 EXEEXT
667 ac_ct_CXX
668 CPPFLAGS
669 LDFLAGS
670 CXXFLAGS
671 CXX
672 am__untar
673 am__tar
674 AMTAR
675 am__leading_dot
676 SET_MAKE
677 AWK
678 mkdir_p
679 MKDIR_P
680 INSTALL_STRIP_PROGRAM
681 STRIP
682 install_sh
683 MAKEINFO
684 AUTOHEADER
685 AUTOMAKE
686 AUTOCONF
687 ACLOCAL
688 VERSION
689 PACKAGE
690 CYGPATH_W
691 am__isrc
692 INSTALL_DATA
693 INSTALL_SCRIPT
694 INSTALL_PROGRAM
695 target_alias
696 host_alias
697 build_alias
698 LIBS
699 ECHO_T
700 ECHO_N
701 ECHO_C
702 DEFS
703 mandir
704 localedir
705 libdir
706 psdir
707 pdfdir
708 dvidir
709 htmldir
710 infodir
711 docdir
712 oldincludedir
713 includedir
714 localstatedir
715 sharedstatedir
716 sysconfdir
717 datadir
718 datarootdir
719 libexecdir
720 sbindir
721 bindir
722 program_transform_name
723 prefix
724 exec_prefix
725 PACKAGE_URL
726 PACKAGE_BUGREPORT
727 PACKAGE_STRING
728 PACKAGE_VERSION
729 PACKAGE_TARNAME
730 PACKAGE_NAME
731 PATH_SEPARATOR
732 SHELL'
733 ac_subst_files=''
734 ac_user_opts='
735 enable_option_checking
736 enable_dependency_tracking
737 enable_shared
738 enable_static
739 with_pic
740 enable_fast_install
741 with_gnu_ld
742 with_sysroot
743 enable_libtool_lock
744 '
745       ac_precious_vars='build_alias
746 host_alias
747 target_alias
748 CXX
749 CXXFLAGS
750 LDFLAGS
751 LIBS
752 CPPFLAGS
753 CCC
754 CC
755 CFLAGS
756 CPP
757 CXXCPP'
758
759
760 # Initialize some variables set by options.
761 ac_init_help=
762 ac_init_version=false
763 ac_unrecognized_opts=
764 ac_unrecognized_sep=
765 # The variables have the same names as the options, with
766 # dashes changed to underlines.
767 cache_file=/dev/null
768 exec_prefix=NONE
769 no_create=
770 no_recursion=
771 prefix=NONE
772 program_prefix=NONE
773 program_suffix=NONE
774 program_transform_name=s,x,x,
775 silent=
776 site=
777 srcdir=
778 verbose=
779 x_includes=NONE
780 x_libraries=NONE
781
782 # Installation directory options.
783 # These are left unexpanded so users can "make install exec_prefix=/foo"
784 # and all the variables that are supposed to be based on exec_prefix
785 # by default will actually change.
786 # Use braces instead of parens because sh, perl, etc. also accept them.
787 # (The list follows the same order as the GNU Coding Standards.)
788 bindir='${exec_prefix}/bin'
789 sbindir='${exec_prefix}/sbin'
790 libexecdir='${exec_prefix}/libexec'
791 datarootdir='${prefix}/share'
792 datadir='${datarootdir}'
793 sysconfdir='${prefix}/etc'
794 sharedstatedir='${prefix}/com'
795 localstatedir='${prefix}/var'
796 includedir='${prefix}/include'
797 oldincludedir='/usr/include'
798 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
799 infodir='${datarootdir}/info'
800 htmldir='${docdir}'
801 dvidir='${docdir}'
802 pdfdir='${docdir}'
803 psdir='${docdir}'
804 libdir='${exec_prefix}/lib'
805 localedir='${datarootdir}/locale'
806 mandir='${datarootdir}/man'
807
808 ac_prev=
809 ac_dashdash=
810 for ac_option
811 do
812   # If the previous option needs an argument, assign it.
813   if test -n "$ac_prev"; then
814     eval $ac_prev=\$ac_option
815     ac_prev=
816     continue
817   fi
818
819   case $ac_option in
820   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
821   *=)   ac_optarg= ;;
822   *)    ac_optarg=yes ;;
823   esac
824
825   # Accept the important Cygnus configure options, so we can diagnose typos.
826
827   case $ac_dashdash$ac_option in
828   --)
829     ac_dashdash=yes ;;
830
831   -bindir | --bindir | --bindi | --bind | --bin | --bi)
832     ac_prev=bindir ;;
833   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
834     bindir=$ac_optarg ;;
835
836   -build | --build | --buil | --bui | --bu)
837     ac_prev=build_alias ;;
838   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
839     build_alias=$ac_optarg ;;
840
841   -cache-file | --cache-file | --cache-fil | --cache-fi \
842   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
843     ac_prev=cache_file ;;
844   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
845   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
846     cache_file=$ac_optarg ;;
847
848   --config-cache | -C)
849     cache_file=config.cache ;;
850
851   -datadir | --datadir | --datadi | --datad)
852     ac_prev=datadir ;;
853   -datadir=* | --datadir=* | --datadi=* | --datad=*)
854     datadir=$ac_optarg ;;
855
856   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
857   | --dataroo | --dataro | --datar)
858     ac_prev=datarootdir ;;
859   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
860   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
861     datarootdir=$ac_optarg ;;
862
863   -disable-* | --disable-*)
864     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
865     # Reject names that are not valid shell variable names.
866     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
867       as_fn_error $? "invalid feature name: $ac_useropt"
868     ac_useropt_orig=$ac_useropt
869     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
870     case $ac_user_opts in
871       *"
872 "enable_$ac_useropt"
873 "*) ;;
874       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
875          ac_unrecognized_sep=', ';;
876     esac
877     eval enable_$ac_useropt=no ;;
878
879   -docdir | --docdir | --docdi | --doc | --do)
880     ac_prev=docdir ;;
881   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
882     docdir=$ac_optarg ;;
883
884   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
885     ac_prev=dvidir ;;
886   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
887     dvidir=$ac_optarg ;;
888
889   -enable-* | --enable-*)
890     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
891     # Reject names that are not valid shell variable names.
892     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893       as_fn_error $? "invalid feature name: $ac_useropt"
894     ac_useropt_orig=$ac_useropt
895     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896     case $ac_user_opts in
897       *"
898 "enable_$ac_useropt"
899 "*) ;;
900       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
901          ac_unrecognized_sep=', ';;
902     esac
903     eval enable_$ac_useropt=\$ac_optarg ;;
904
905   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
906   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
907   | --exec | --exe | --ex)
908     ac_prev=exec_prefix ;;
909   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
910   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
911   | --exec=* | --exe=* | --ex=*)
912     exec_prefix=$ac_optarg ;;
913
914   -gas | --gas | --ga | --g)
915     # Obsolete; use --with-gas.
916     with_gas=yes ;;
917
918   -help | --help | --hel | --he | -h)
919     ac_init_help=long ;;
920   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
921     ac_init_help=recursive ;;
922   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
923     ac_init_help=short ;;
924
925   -host | --host | --hos | --ho)
926     ac_prev=host_alias ;;
927   -host=* | --host=* | --hos=* | --ho=*)
928     host_alias=$ac_optarg ;;
929
930   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
931     ac_prev=htmldir ;;
932   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
933   | --ht=*)
934     htmldir=$ac_optarg ;;
935
936   -includedir | --includedir | --includedi | --included | --include \
937   | --includ | --inclu | --incl | --inc)
938     ac_prev=includedir ;;
939   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
940   | --includ=* | --inclu=* | --incl=* | --inc=*)
941     includedir=$ac_optarg ;;
942
943   -infodir | --infodir | --infodi | --infod | --info | --inf)
944     ac_prev=infodir ;;
945   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
946     infodir=$ac_optarg ;;
947
948   -libdir | --libdir | --libdi | --libd)
949     ac_prev=libdir ;;
950   -libdir=* | --libdir=* | --libdi=* | --libd=*)
951     libdir=$ac_optarg ;;
952
953   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
954   | --libexe | --libex | --libe)
955     ac_prev=libexecdir ;;
956   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
957   | --libexe=* | --libex=* | --libe=*)
958     libexecdir=$ac_optarg ;;
959
960   -localedir | --localedir | --localedi | --localed | --locale)
961     ac_prev=localedir ;;
962   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
963     localedir=$ac_optarg ;;
964
965   -localstatedir | --localstatedir | --localstatedi | --localstated \
966   | --localstate | --localstat | --localsta | --localst | --locals)
967     ac_prev=localstatedir ;;
968   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
969   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
970     localstatedir=$ac_optarg ;;
971
972   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
973     ac_prev=mandir ;;
974   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
975     mandir=$ac_optarg ;;
976
977   -nfp | --nfp | --nf)
978     # Obsolete; use --without-fp.
979     with_fp=no ;;
980
981   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
982   | --no-cr | --no-c | -n)
983     no_create=yes ;;
984
985   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
986   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
987     no_recursion=yes ;;
988
989   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
990   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
991   | --oldin | --oldi | --old | --ol | --o)
992     ac_prev=oldincludedir ;;
993   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
994   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
995   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
996     oldincludedir=$ac_optarg ;;
997
998   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
999     ac_prev=prefix ;;
1000   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1001     prefix=$ac_optarg ;;
1002
1003   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1004   | --program-pre | --program-pr | --program-p)
1005     ac_prev=program_prefix ;;
1006   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1007   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1008     program_prefix=$ac_optarg ;;
1009
1010   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1011   | --program-suf | --program-su | --program-s)
1012     ac_prev=program_suffix ;;
1013   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1014   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1015     program_suffix=$ac_optarg ;;
1016
1017   -program-transform-name | --program-transform-name \
1018   | --program-transform-nam | --program-transform-na \
1019   | --program-transform-n | --program-transform- \
1020   | --program-transform | --program-transfor \
1021   | --program-transfo | --program-transf \
1022   | --program-trans | --program-tran \
1023   | --progr-tra | --program-tr | --program-t)
1024     ac_prev=program_transform_name ;;
1025   -program-transform-name=* | --program-transform-name=* \
1026   | --program-transform-nam=* | --program-transform-na=* \
1027   | --program-transform-n=* | --program-transform-=* \
1028   | --program-transform=* | --program-transfor=* \
1029   | --program-transfo=* | --program-transf=* \
1030   | --program-trans=* | --program-tran=* \
1031   | --progr-tra=* | --program-tr=* | --program-t=*)
1032     program_transform_name=$ac_optarg ;;
1033
1034   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1035     ac_prev=pdfdir ;;
1036   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1037     pdfdir=$ac_optarg ;;
1038
1039   -psdir | --psdir | --psdi | --psd | --ps)
1040     ac_prev=psdir ;;
1041   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1042     psdir=$ac_optarg ;;
1043
1044   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045   | -silent | --silent | --silen | --sile | --sil)
1046     silent=yes ;;
1047
1048   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1049     ac_prev=sbindir ;;
1050   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1051   | --sbi=* | --sb=*)
1052     sbindir=$ac_optarg ;;
1053
1054   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1055   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1056   | --sharedst | --shareds | --shared | --share | --shar \
1057   | --sha | --sh)
1058     ac_prev=sharedstatedir ;;
1059   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1060   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1061   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1062   | --sha=* | --sh=*)
1063     sharedstatedir=$ac_optarg ;;
1064
1065   -site | --site | --sit)
1066     ac_prev=site ;;
1067   -site=* | --site=* | --sit=*)
1068     site=$ac_optarg ;;
1069
1070   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1071     ac_prev=srcdir ;;
1072   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1073     srcdir=$ac_optarg ;;
1074
1075   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1076   | --syscon | --sysco | --sysc | --sys | --sy)
1077     ac_prev=sysconfdir ;;
1078   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1079   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1080     sysconfdir=$ac_optarg ;;
1081
1082   -target | --target | --targe | --targ | --tar | --ta | --t)
1083     ac_prev=target_alias ;;
1084   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1085     target_alias=$ac_optarg ;;
1086
1087   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1088     verbose=yes ;;
1089
1090   -version | --version | --versio | --versi | --vers | -V)
1091     ac_init_version=: ;;
1092
1093   -with-* | --with-*)
1094     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1095     # Reject names that are not valid shell variable names.
1096     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097       as_fn_error $? "invalid package name: $ac_useropt"
1098     ac_useropt_orig=$ac_useropt
1099     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100     case $ac_user_opts in
1101       *"
1102 "with_$ac_useropt"
1103 "*) ;;
1104       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1105          ac_unrecognized_sep=', ';;
1106     esac
1107     eval with_$ac_useropt=\$ac_optarg ;;
1108
1109   -without-* | --without-*)
1110     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1111     # Reject names that are not valid shell variable names.
1112     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113       as_fn_error $? "invalid package name: $ac_useropt"
1114     ac_useropt_orig=$ac_useropt
1115     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116     case $ac_user_opts in
1117       *"
1118 "with_$ac_useropt"
1119 "*) ;;
1120       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1121          ac_unrecognized_sep=', ';;
1122     esac
1123     eval with_$ac_useropt=no ;;
1124
1125   --x)
1126     # Obsolete; use --with-x.
1127     with_x=yes ;;
1128
1129   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1130   | --x-incl | --x-inc | --x-in | --x-i)
1131     ac_prev=x_includes ;;
1132   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1133   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1134     x_includes=$ac_optarg ;;
1135
1136   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1137   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1138     ac_prev=x_libraries ;;
1139   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1140   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1141     x_libraries=$ac_optarg ;;
1142
1143   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1144 Try \`$0 --help' for more information"
1145     ;;
1146
1147   *=*)
1148     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1149     # Reject names that are not valid shell variable names.
1150     case $ac_envvar in #(
1151       '' | [0-9]* | *[!_$as_cr_alnum]* )
1152       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1153     esac
1154     eval $ac_envvar=\$ac_optarg
1155     export $ac_envvar ;;
1156
1157   *)
1158     # FIXME: should be removed in autoconf 3.0.
1159     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1160     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1161       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1162     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1163     ;;
1164
1165   esac
1166 done
1167
1168 if test -n "$ac_prev"; then
1169   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1170   as_fn_error $? "missing argument to $ac_option"
1171 fi
1172
1173 if test -n "$ac_unrecognized_opts"; then
1174   case $enable_option_checking in
1175     no) ;;
1176     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1177     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1178   esac
1179 fi
1180
1181 # Check all directory arguments for consistency.
1182 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1183                 datadir sysconfdir sharedstatedir localstatedir includedir \
1184                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1185                 libdir localedir mandir
1186 do
1187   eval ac_val=\$$ac_var
1188   # Remove trailing slashes.
1189   case $ac_val in
1190     */ )
1191       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1192       eval $ac_var=\$ac_val;;
1193   esac
1194   # Be sure to have absolute directory names.
1195   case $ac_val in
1196     [\\/$]* | ?:[\\/]* )  continue;;
1197     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1198   esac
1199   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1200 done
1201
1202 # There might be people who depend on the old broken behavior: `$host'
1203 # used to hold the argument of --host etc.
1204 # FIXME: To remove some day.
1205 build=$build_alias
1206 host=$host_alias
1207 target=$target_alias
1208
1209 # FIXME: To remove some day.
1210 if test "x$host_alias" != x; then
1211   if test "x$build_alias" = x; then
1212     cross_compiling=maybe
1213     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1214     If a cross compiler is detected then cross compile mode will be used" >&2
1215   elif test "x$build_alias" != "x$host_alias"; then
1216     cross_compiling=yes
1217   fi
1218 fi
1219
1220 ac_tool_prefix=
1221 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1222
1223 test "$silent" = yes && exec 6>/dev/null
1224
1225
1226 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1227 ac_ls_di=`ls -di .` &&
1228 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1229   as_fn_error $? "working directory cannot be determined"
1230 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1231   as_fn_error $? "pwd does not report name of working directory"
1232
1233
1234 # Find the source files, if location was not specified.
1235 if test -z "$srcdir"; then
1236   ac_srcdir_defaulted=yes
1237   # Try the directory containing this script, then the parent directory.
1238   ac_confdir=`$as_dirname -- "$as_myself" ||
1239 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1240          X"$as_myself" : 'X\(//\)[^/]' \| \
1241          X"$as_myself" : 'X\(//\)$' \| \
1242          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1243 $as_echo X"$as_myself" |
1244     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1245             s//\1/
1246             q
1247           }
1248           /^X\(\/\/\)[^/].*/{
1249             s//\1/
1250             q
1251           }
1252           /^X\(\/\/\)$/{
1253             s//\1/
1254             q
1255           }
1256           /^X\(\/\).*/{
1257             s//\1/
1258             q
1259           }
1260           s/.*/./; q'`
1261   srcdir=$ac_confdir
1262   if test ! -r "$srcdir/$ac_unique_file"; then
1263     srcdir=..
1264   fi
1265 else
1266   ac_srcdir_defaulted=no
1267 fi
1268 if test ! -r "$srcdir/$ac_unique_file"; then
1269   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1270   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1271 fi
1272 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1273 ac_abs_confdir=`(
1274         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1275         pwd)`
1276 # When building in place, set srcdir=.
1277 if test "$ac_abs_confdir" = "$ac_pwd"; then
1278   srcdir=.
1279 fi
1280 # Remove unnecessary trailing slashes from srcdir.
1281 # Double slashes in file names in object file debugging info
1282 # mess up M-x gdb in Emacs.
1283 case $srcdir in
1284 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1285 esac
1286 for ac_var in $ac_precious_vars; do
1287   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1288   eval ac_env_${ac_var}_value=\$${ac_var}
1289   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1290   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1291 done
1292
1293 #
1294 # Report the --help message.
1295 #
1296 if test "$ac_init_help" = "long"; then
1297   # Omit some internal or obsolete options to make the list less imposing.
1298   # This message is too long to be a string in the A/UX 3.1 sh.
1299   cat <<_ACEOF
1300 \`configure' configures libsockstream 0.1 to adapt to many kinds of systems.
1301
1302 Usage: $0 [OPTION]... [VAR=VALUE]...
1303
1304 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1305 VAR=VALUE.  See below for descriptions of some of the useful variables.
1306
1307 Defaults for the options are specified in brackets.
1308
1309 Configuration:
1310   -h, --help              display this help and exit
1311       --help=short        display options specific to this package
1312       --help=recursive    display the short help of all the included packages
1313   -V, --version           display version information and exit
1314   -q, --quiet, --silent   do not print \`checking ...' messages
1315       --cache-file=FILE   cache test results in FILE [disabled]
1316   -C, --config-cache      alias for \`--cache-file=config.cache'
1317   -n, --no-create         do not create output files
1318       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1319
1320 Installation directories:
1321   --prefix=PREFIX         install architecture-independent files in PREFIX
1322                           [$ac_default_prefix]
1323   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1324                           [PREFIX]
1325
1326 By default, \`make install' will install all the files in
1327 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1328 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1329 for instance \`--prefix=\$HOME'.
1330
1331 For better control, use the options below.
1332
1333 Fine tuning of the installation directories:
1334   --bindir=DIR            user executables [EPREFIX/bin]
1335   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1336   --libexecdir=DIR        program executables [EPREFIX/libexec]
1337   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1338   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1339   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1340   --libdir=DIR            object code libraries [EPREFIX/lib]
1341   --includedir=DIR        C header files [PREFIX/include]
1342   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1343   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1344   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1345   --infodir=DIR           info documentation [DATAROOTDIR/info]
1346   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1347   --mandir=DIR            man documentation [DATAROOTDIR/man]
1348   --docdir=DIR            documentation root [DATAROOTDIR/doc/libsockstream]
1349   --htmldir=DIR           html documentation [DOCDIR]
1350   --dvidir=DIR            dvi documentation [DOCDIR]
1351   --pdfdir=DIR            pdf documentation [DOCDIR]
1352   --psdir=DIR             ps documentation [DOCDIR]
1353 _ACEOF
1354
1355   cat <<\_ACEOF
1356
1357 Program names:
1358   --program-prefix=PREFIX            prepend PREFIX to installed program names
1359   --program-suffix=SUFFIX            append SUFFIX to installed program names
1360   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1361
1362 System types:
1363   --build=BUILD     configure for building on BUILD [guessed]
1364   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1365 _ACEOF
1366 fi
1367
1368 if test -n "$ac_init_help"; then
1369   case $ac_init_help in
1370      short | recursive ) echo "Configuration of libsockstream 0.1:";;
1371    esac
1372   cat <<\_ACEOF
1373
1374 Optional Features:
1375   --disable-option-checking  ignore unrecognized --enable/--with options
1376   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1377   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1378   --disable-dependency-tracking  speeds up one-time build
1379   --enable-dependency-tracking   do not reject slow dependency extractors
1380   --enable-shared[=PKGS]  build shared libraries [default=yes]
1381   --enable-static[=PKGS]  build static libraries [default=yes]
1382   --enable-fast-install[=PKGS]
1383                           optimize for fast installation [default=yes]
1384   --disable-libtool-lock  avoid locking (might break parallel builds)
1385
1386 Optional Packages:
1387   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1388   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1389   --with-pic              try to use only PIC/non-PIC objects [default=use
1390                           both]
1391   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1392   --with-sysroot=DIR Search for dependent libraries within DIR
1393                         (or the compiler's sysroot if not specified).
1394
1395 Some influential environment variables:
1396   CXX         C++ compiler command
1397   CXXFLAGS    C++ compiler flags
1398   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1399               nonstandard directory <lib dir>
1400   LIBS        libraries to pass to the linker, e.g. -l<library>
1401   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1402               you have headers in a nonstandard directory <include dir>
1403   CC          C compiler command
1404   CFLAGS      C compiler flags
1405   CPP         C preprocessor
1406   CXXCPP      C++ preprocessor
1407
1408 Use these variables to override the choices made by `configure' or to help
1409 it to find libraries and programs with nonstandard names/locations.
1410
1411 Report bugs to <arjen@andromeda.nl>.
1412 _ACEOF
1413 ac_status=$?
1414 fi
1415
1416 if test "$ac_init_help" = "recursive"; then
1417   # If there are subdirs, report their specific --help.
1418   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1419     test -d "$ac_dir" ||
1420       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1421       continue
1422     ac_builddir=.
1423
1424 case "$ac_dir" in
1425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426 *)
1427   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1428   # A ".." for each directory in $ac_dir_suffix.
1429   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1430   case $ac_top_builddir_sub in
1431   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1433   esac ;;
1434 esac
1435 ac_abs_top_builddir=$ac_pwd
1436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1437 # for backward compatibility:
1438 ac_top_builddir=$ac_top_build_prefix
1439
1440 case $srcdir in
1441   .)  # We are building in place.
1442     ac_srcdir=.
1443     ac_top_srcdir=$ac_top_builddir_sub
1444     ac_abs_top_srcdir=$ac_pwd ;;
1445   [\\/]* | ?:[\\/]* )  # Absolute name.
1446     ac_srcdir=$srcdir$ac_dir_suffix;
1447     ac_top_srcdir=$srcdir
1448     ac_abs_top_srcdir=$srcdir ;;
1449   *) # Relative name.
1450     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1451     ac_top_srcdir=$ac_top_build_prefix$srcdir
1452     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1453 esac
1454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1455
1456     cd "$ac_dir" || { ac_status=$?; continue; }
1457     # Check for guested configure.
1458     if test -f "$ac_srcdir/configure.gnu"; then
1459       echo &&
1460       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1461     elif test -f "$ac_srcdir/configure"; then
1462       echo &&
1463       $SHELL "$ac_srcdir/configure" --help=recursive
1464     else
1465       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1466     fi || ac_status=$?
1467     cd "$ac_pwd" || { ac_status=$?; break; }
1468   done
1469 fi
1470
1471 test -n "$ac_init_help" && exit $ac_status
1472 if $ac_init_version; then
1473   cat <<\_ACEOF
1474 libsockstream configure 0.1
1475 generated by GNU Autoconf 2.68
1476
1477 Copyright (C) 2010 Free Software Foundation, Inc.
1478 This configure script is free software; the Free Software Foundation
1479 gives unlimited permission to copy, distribute and modify it.
1480 _ACEOF
1481   exit
1482 fi
1483
1484 ## ------------------------ ##
1485 ## Autoconf initialization. ##
1486 ## ------------------------ ##
1487
1488 # ac_fn_cxx_try_compile LINENO
1489 # ----------------------------
1490 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1491 ac_fn_cxx_try_compile ()
1492 {
1493   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1494   rm -f conftest.$ac_objext
1495   if { { ac_try="$ac_compile"
1496 case "(($ac_try" in
1497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1498   *) ac_try_echo=$ac_try;;
1499 esac
1500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1501 $as_echo "$ac_try_echo"; } >&5
1502   (eval "$ac_compile") 2>conftest.err
1503   ac_status=$?
1504   if test -s conftest.err; then
1505     grep -v '^ *+' conftest.err >conftest.er1
1506     cat conftest.er1 >&5
1507     mv -f conftest.er1 conftest.err
1508   fi
1509   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1510   test $ac_status = 0; } && {
1511          test -z "$ac_cxx_werror_flag" ||
1512          test ! -s conftest.err
1513        } && test -s conftest.$ac_objext; then :
1514   ac_retval=0
1515 else
1516   $as_echo "$as_me: failed program was:" >&5
1517 sed 's/^/| /' conftest.$ac_ext >&5
1518
1519         ac_retval=1
1520 fi
1521   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1522   as_fn_set_status $ac_retval
1523
1524 } # ac_fn_cxx_try_compile
1525
1526 # ac_fn_c_try_compile LINENO
1527 # --------------------------
1528 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1529 ac_fn_c_try_compile ()
1530 {
1531   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532   rm -f conftest.$ac_objext
1533   if { { ac_try="$ac_compile"
1534 case "(($ac_try" in
1535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536   *) ac_try_echo=$ac_try;;
1537 esac
1538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539 $as_echo "$ac_try_echo"; } >&5
1540   (eval "$ac_compile") 2>conftest.err
1541   ac_status=$?
1542   if test -s conftest.err; then
1543     grep -v '^ *+' conftest.err >conftest.er1
1544     cat conftest.er1 >&5
1545     mv -f conftest.er1 conftest.err
1546   fi
1547   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548   test $ac_status = 0; } && {
1549          test -z "$ac_c_werror_flag" ||
1550          test ! -s conftest.err
1551        } && test -s conftest.$ac_objext; then :
1552   ac_retval=0
1553 else
1554   $as_echo "$as_me: failed program was:" >&5
1555 sed 's/^/| /' conftest.$ac_ext >&5
1556
1557         ac_retval=1
1558 fi
1559   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1560   as_fn_set_status $ac_retval
1561
1562 } # ac_fn_c_try_compile
1563
1564 # ac_fn_c_try_link LINENO
1565 # -----------------------
1566 # Try to link conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_c_try_link ()
1568 {
1569   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570   rm -f conftest.$ac_objext conftest$ac_exeext
1571   if { { ac_try="$ac_link"
1572 case "(($ac_try" in
1573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574   *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578   (eval "$ac_link") 2>conftest.err
1579   ac_status=$?
1580   if test -s conftest.err; then
1581     grep -v '^ *+' conftest.err >conftest.er1
1582     cat conftest.er1 >&5
1583     mv -f conftest.er1 conftest.err
1584   fi
1585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586   test $ac_status = 0; } && {
1587          test -z "$ac_c_werror_flag" ||
1588          test ! -s conftest.err
1589        } && test -s conftest$ac_exeext && {
1590          test "$cross_compiling" = yes ||
1591          $as_test_x conftest$ac_exeext
1592        }; then :
1593   ac_retval=0
1594 else
1595   $as_echo "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.$ac_ext >&5
1597
1598         ac_retval=1
1599 fi
1600   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1601   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1602   # interfere with the next link command; also delete a directory that is
1603   # left behind by Apple's compiler.  We do this before executing the actions.
1604   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1605   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606   as_fn_set_status $ac_retval
1607
1608 } # ac_fn_c_try_link
1609
1610 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1611 # -------------------------------------------------------
1612 # Tests whether HEADER exists and can be compiled using the include files in
1613 # INCLUDES, setting the cache variable VAR accordingly.
1614 ac_fn_c_check_header_compile ()
1615 {
1616   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1618 $as_echo_n "checking for $2... " >&6; }
1619 if eval \${$3+:} false; then :
1620   $as_echo_n "(cached) " >&6
1621 else
1622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1623 /* end confdefs.h.  */
1624 $4
1625 #include <$2>
1626 _ACEOF
1627 if ac_fn_c_try_compile "$LINENO"; then :
1628   eval "$3=yes"
1629 else
1630   eval "$3=no"
1631 fi
1632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1633 fi
1634 eval ac_res=\$$3
1635                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1636 $as_echo "$ac_res" >&6; }
1637   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638
1639 } # ac_fn_c_check_header_compile
1640
1641 # ac_fn_c_try_cpp LINENO
1642 # ----------------------
1643 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1644 ac_fn_c_try_cpp ()
1645 {
1646   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647   if { { ac_try="$ac_cpp conftest.$ac_ext"
1648 case "(($ac_try" in
1649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650   *) ac_try_echo=$ac_try;;
1651 esac
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 $as_echo "$ac_try_echo"; } >&5
1654   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1655   ac_status=$?
1656   if test -s conftest.err; then
1657     grep -v '^ *+' conftest.err >conftest.er1
1658     cat conftest.er1 >&5
1659     mv -f conftest.er1 conftest.err
1660   fi
1661   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662   test $ac_status = 0; } > conftest.i && {
1663          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1664          test ! -s conftest.err
1665        }; then :
1666   ac_retval=0
1667 else
1668   $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1670
1671     ac_retval=1
1672 fi
1673   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674   as_fn_set_status $ac_retval
1675
1676 } # ac_fn_c_try_cpp
1677
1678 # ac_fn_c_try_run LINENO
1679 # ----------------------
1680 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1681 # that executables *can* be run.
1682 ac_fn_c_try_run ()
1683 {
1684   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685   if { { ac_try="$ac_link"
1686 case "(($ac_try" in
1687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688   *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692   (eval "$ac_link") 2>&5
1693   ac_status=$?
1694   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1696   { { case "(($ac_try" in
1697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698   *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702   (eval "$ac_try") 2>&5
1703   ac_status=$?
1704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705   test $ac_status = 0; }; }; then :
1706   ac_retval=0
1707 else
1708   $as_echo "$as_me: program exited with status $ac_status" >&5
1709        $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1711
1712        ac_retval=$ac_status
1713 fi
1714   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716   as_fn_set_status $ac_retval
1717
1718 } # ac_fn_c_try_run
1719
1720 # ac_fn_c_check_func LINENO FUNC VAR
1721 # ----------------------------------
1722 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1723 ac_fn_c_check_func ()
1724 {
1725   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727 $as_echo_n "checking for $2... " >&6; }
1728 if eval \${$3+:} false; then :
1729   $as_echo_n "(cached) " >&6
1730 else
1731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732 /* end confdefs.h.  */
1733 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1735 #define $2 innocuous_$2
1736
1737 /* System header to define __stub macros and hopefully few prototypes,
1738     which can conflict with char $2 (); below.
1739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1740     <limits.h> exists even on freestanding compilers.  */
1741
1742 #ifdef __STDC__
1743 # include <limits.h>
1744 #else
1745 # include <assert.h>
1746 #endif
1747
1748 #undef $2
1749
1750 /* Override any GCC internal prototype to avoid an error.
1751    Use char because int might match the return type of a GCC
1752    builtin and then its argument prototype would still apply.  */
1753 #ifdef __cplusplus
1754 extern "C"
1755 #endif
1756 char $2 ();
1757 /* The GNU C library defines this for functions which it implements
1758     to always fail with ENOSYS.  Some functions are actually named
1759     something starting with __ and the normal name is an alias.  */
1760 #if defined __stub_$2 || defined __stub___$2
1761 choke me
1762 #endif
1763
1764 int
1765 main ()
1766 {
1767 return $2 ();
1768   ;
1769   return 0;
1770 }
1771 _ACEOF
1772 if ac_fn_c_try_link "$LINENO"; then :
1773   eval "$3=yes"
1774 else
1775   eval "$3=no"
1776 fi
1777 rm -f core conftest.err conftest.$ac_objext \
1778     conftest$ac_exeext conftest.$ac_ext
1779 fi
1780 eval ac_res=\$$3
1781                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 $as_echo "$ac_res" >&6; }
1783   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784
1785 } # ac_fn_c_check_func
1786
1787 # ac_fn_cxx_try_cpp LINENO
1788 # ------------------------
1789 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1790 ac_fn_cxx_try_cpp ()
1791 {
1792   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793   if { { ac_try="$ac_cpp conftest.$ac_ext"
1794 case "(($ac_try" in
1795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796   *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1801   ac_status=$?
1802   if test -s conftest.err; then
1803     grep -v '^ *+' conftest.err >conftest.er1
1804     cat conftest.er1 >&5
1805     mv -f conftest.er1 conftest.err
1806   fi
1807   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808   test $ac_status = 0; } > conftest.i && {
1809          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1810          test ! -s conftest.err
1811        }; then :
1812   ac_retval=0
1813 else
1814   $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1816
1817     ac_retval=1
1818 fi
1819   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820   as_fn_set_status $ac_retval
1821
1822 } # ac_fn_cxx_try_cpp
1823
1824 # ac_fn_cxx_try_link LINENO
1825 # -------------------------
1826 # Try to link conftest.$ac_ext, and return whether this succeeded.
1827 ac_fn_cxx_try_link ()
1828 {
1829   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830   rm -f conftest.$ac_objext conftest$ac_exeext
1831   if { { ac_try="$ac_link"
1832 case "(($ac_try" in
1833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834   *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838   (eval "$ac_link") 2>conftest.err
1839   ac_status=$?
1840   if test -s conftest.err; then
1841     grep -v '^ *+' conftest.err >conftest.er1
1842     cat conftest.er1 >&5
1843     mv -f conftest.er1 conftest.err
1844   fi
1845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846   test $ac_status = 0; } && {
1847          test -z "$ac_cxx_werror_flag" ||
1848          test ! -s conftest.err
1849        } && test -s conftest$ac_exeext && {
1850          test "$cross_compiling" = yes ||
1851          $as_test_x conftest$ac_exeext
1852        }; then :
1853   ac_retval=0
1854 else
1855   $as_echo "$as_me: failed program was:" >&5
1856 sed 's/^/| /' conftest.$ac_ext >&5
1857
1858         ac_retval=1
1859 fi
1860   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1861   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1862   # interfere with the next link command; also delete a directory that is
1863   # left behind by Apple's compiler.  We do this before executing the actions.
1864   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1865   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866   as_fn_set_status $ac_retval
1867
1868 } # ac_fn_cxx_try_link
1869
1870 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1871 # ---------------------------------------------------------
1872 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1873 # the include files in INCLUDES and setting the cache variable VAR
1874 # accordingly.
1875 ac_fn_cxx_check_header_mongrel ()
1876 {
1877   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878   if eval \${$3+:} false; then :
1879   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880 $as_echo_n "checking for $2... " >&6; }
1881 if eval \${$3+:} false; then :
1882   $as_echo_n "(cached) " >&6
1883 fi
1884 eval ac_res=\$$3
1885                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1887 else
1888   # Is the header compilable?
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1890 $as_echo_n "checking $2 usability... " >&6; }
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h.  */
1893 $4
1894 #include <$2>
1895 _ACEOF
1896 if ac_fn_cxx_try_compile "$LINENO"; then :
1897   ac_header_compiler=yes
1898 else
1899   ac_header_compiler=no
1900 fi
1901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1903 $as_echo "$ac_header_compiler" >&6; }
1904
1905 # Is the header present?
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1907 $as_echo_n "checking $2 presence... " >&6; }
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h.  */
1910 #include <$2>
1911 _ACEOF
1912 if ac_fn_cxx_try_cpp "$LINENO"; then :
1913   ac_header_preproc=yes
1914 else
1915   ac_header_preproc=no
1916 fi
1917 rm -f conftest.err conftest.i conftest.$ac_ext
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1919 $as_echo "$ac_header_preproc" >&6; }
1920
1921 # So?  What about this header?
1922 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1923   yes:no: )
1924     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1925 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1926     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1927 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1928     ;;
1929   no:yes:* )
1930     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1931 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1932     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1933 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1934     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1935 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1936     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1937 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1938     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1939 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1940 ( $as_echo "## --------------------------------- ##
1941 ## Report this to arjen@andromeda.nl ##
1942 ## --------------------------------- ##"
1943      ) | sed "s/^/$as_me: WARNING:     /" >&2
1944     ;;
1945 esac
1946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if eval \${$3+:} false; then :
1949   $as_echo_n "(cached) " >&6
1950 else
1951   eval "$3=\$ac_header_compiler"
1952 fi
1953 eval ac_res=\$$3
1954                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1956 fi
1957   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958
1959 } # ac_fn_cxx_check_header_mongrel
1960
1961 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1962 # ---------------------------------------------
1963 # Tests whether TYPE exists after having included INCLUDES, setting cache
1964 # variable VAR accordingly.
1965 ac_fn_cxx_check_type ()
1966 {
1967   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 $as_echo_n "checking for $2... " >&6; }
1970 if eval \${$3+:} false; then :
1971   $as_echo_n "(cached) " >&6
1972 else
1973   eval "$3=no"
1974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h.  */
1976 $4
1977 int
1978 main ()
1979 {
1980 if (sizeof ($2))
1981          return 0;
1982   ;
1983   return 0;
1984 }
1985 _ACEOF
1986 if ac_fn_cxx_try_compile "$LINENO"; then :
1987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h.  */
1989 $4
1990 int
1991 main ()
1992 {
1993 if (sizeof (($2)))
1994             return 0;
1995   ;
1996   return 0;
1997 }
1998 _ACEOF
1999 if ac_fn_cxx_try_compile "$LINENO"; then :
2000
2001 else
2002   eval "$3=yes"
2003 fi
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005 fi
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 fi
2008 eval ac_res=\$$3
2009                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012
2013 } # ac_fn_cxx_check_type
2014
2015 # ac_fn_cxx_check_func LINENO FUNC VAR
2016 # ------------------------------------
2017 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2018 ac_fn_cxx_check_func ()
2019 {
2020   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if eval \${$3+:} false; then :
2024   $as_echo_n "(cached) " >&6
2025 else
2026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h.  */
2028 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2029    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2030 #define $2 innocuous_$2
2031
2032 /* System header to define __stub macros and hopefully few prototypes,
2033     which can conflict with char $2 (); below.
2034     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2035     <limits.h> exists even on freestanding compilers.  */
2036
2037 #ifdef __STDC__
2038 # include <limits.h>
2039 #else
2040 # include <assert.h>
2041 #endif
2042
2043 #undef $2
2044
2045 /* Override any GCC internal prototype to avoid an error.
2046    Use char because int might match the return type of a GCC
2047    builtin and then its argument prototype would still apply.  */
2048 #ifdef __cplusplus
2049 extern "C"
2050 #endif
2051 char $2 ();
2052 /* The GNU C library defines this for functions which it implements
2053     to always fail with ENOSYS.  Some functions are actually named
2054     something starting with __ and the normal name is an alias.  */
2055 #if defined __stub_$2 || defined __stub___$2
2056 choke me
2057 #endif
2058
2059 int
2060 main ()
2061 {
2062 return $2 ();
2063   ;
2064   return 0;
2065 }
2066 _ACEOF
2067 if ac_fn_cxx_try_link "$LINENO"; then :
2068   eval "$3=yes"
2069 else
2070   eval "$3=no"
2071 fi
2072 rm -f core conftest.err conftest.$ac_objext \
2073     conftest$ac_exeext conftest.$ac_ext
2074 fi
2075 eval ac_res=\$$3
2076                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2077 $as_echo "$ac_res" >&6; }
2078   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079
2080 } # ac_fn_cxx_check_func
2081 cat >config.log <<_ACEOF
2082 This file contains any messages produced by compilers while
2083 running configure, to aid debugging if configure makes a mistake.
2084
2085 It was created by libsockstream $as_me 0.1, which was
2086 generated by GNU Autoconf 2.68.  Invocation command line was
2087
2088   $ $0 $@
2089
2090 _ACEOF
2091 exec 5>>config.log
2092 {
2093 cat <<_ASUNAME
2094 ## --------- ##
2095 ## Platform. ##
2096 ## --------- ##
2097
2098 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2099 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2100 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2101 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2102 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2103
2104 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2105 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2106
2107 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2108 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2109 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2110 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2111 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2112 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2113 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2114
2115 _ASUNAME
2116
2117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118 for as_dir in $PATH
2119 do
2120   IFS=$as_save_IFS
2121   test -z "$as_dir" && as_dir=.
2122     $as_echo "PATH: $as_dir"
2123   done
2124 IFS=$as_save_IFS
2125
2126 } >&5
2127
2128 cat >&5 <<_ACEOF
2129
2130
2131 ## ----------- ##
2132 ## Core tests. ##
2133 ## ----------- ##
2134
2135 _ACEOF
2136
2137
2138 # Keep a trace of the command line.
2139 # Strip out --no-create and --no-recursion so they do not pile up.
2140 # Strip out --silent because we don't want to record it for future runs.
2141 # Also quote any args containing shell meta-characters.
2142 # Make two passes to allow for proper duplicate-argument suppression.
2143 ac_configure_args=
2144 ac_configure_args0=
2145 ac_configure_args1=
2146 ac_must_keep_next=false
2147 for ac_pass in 1 2
2148 do
2149   for ac_arg
2150   do
2151     case $ac_arg in
2152     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2153     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2154     | -silent | --silent | --silen | --sile | --sil)
2155       continue ;;
2156     *\'*)
2157       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2158     esac
2159     case $ac_pass in
2160     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2161     2)
2162       as_fn_append ac_configure_args1 " '$ac_arg'"
2163       if test $ac_must_keep_next = true; then
2164         ac_must_keep_next=false # Got value, back to normal.
2165       else
2166         case $ac_arg in
2167           *=* | --config-cache | -C | -disable-* | --disable-* \
2168           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2169           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2170           | -with-* | --with-* | -without-* | --without-* | --x)
2171             case "$ac_configure_args0 " in
2172               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2173             esac
2174             ;;
2175           -* ) ac_must_keep_next=true ;;
2176         esac
2177       fi
2178       as_fn_append ac_configure_args " '$ac_arg'"
2179       ;;
2180     esac
2181   done
2182 done
2183 { ac_configure_args0=; unset ac_configure_args0;}
2184 { ac_configure_args1=; unset ac_configure_args1;}
2185
2186 # When interrupted or exit'd, cleanup temporary files, and complete
2187 # config.log.  We remove comments because anyway the quotes in there
2188 # would cause problems or look ugly.
2189 # WARNING: Use '\'' to represent an apostrophe within the trap.
2190 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2191 trap 'exit_status=$?
2192   # Save into config.log some information that might help in debugging.
2193   {
2194     echo
2195
2196     $as_echo "## ---------------- ##
2197 ## Cache variables. ##
2198 ## ---------------- ##"
2199     echo
2200     # The following way of writing the cache mishandles newlines in values,
2201 (
2202   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2203     eval ac_val=\$$ac_var
2204     case $ac_val in #(
2205     *${as_nl}*)
2206       case $ac_var in #(
2207       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2208 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2209       esac
2210       case $ac_var in #(
2211       _ | IFS | as_nl) ;; #(
2212       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2213       *) { eval $ac_var=; unset $ac_var;} ;;
2214       esac ;;
2215     esac
2216   done
2217   (set) 2>&1 |
2218     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2219     *${as_nl}ac_space=\ *)
2220       sed -n \
2221         "s/'\''/'\''\\\\'\'''\''/g;
2222           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2223       ;; #(
2224     *)
2225       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2226       ;;
2227     esac |
2228     sort
2229 )
2230     echo
2231
2232     $as_echo "## ----------------- ##
2233 ## Output variables. ##
2234 ## ----------------- ##"
2235     echo
2236     for ac_var in $ac_subst_vars
2237     do
2238       eval ac_val=\$$ac_var
2239       case $ac_val in
2240       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2241       esac
2242       $as_echo "$ac_var='\''$ac_val'\''"
2243     done | sort
2244     echo
2245
2246     if test -n "$ac_subst_files"; then
2247       $as_echo "## ------------------- ##
2248 ## File substitutions. ##
2249 ## ------------------- ##"
2250       echo
2251       for ac_var in $ac_subst_files
2252       do
2253         eval ac_val=\$$ac_var
2254         case $ac_val in
2255         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2256         esac
2257         $as_echo "$ac_var='\''$ac_val'\''"
2258       done | sort
2259       echo
2260     fi
2261
2262     if test -s confdefs.h; then
2263       $as_echo "## ----------- ##
2264 ## confdefs.h. ##
2265 ## ----------- ##"
2266       echo
2267       cat confdefs.h
2268       echo
2269     fi
2270     test "$ac_signal" != 0 &&
2271       $as_echo "$as_me: caught signal $ac_signal"
2272     $as_echo "$as_me: exit $exit_status"
2273   } >&5
2274   rm -f core *.core core.conftest.* &&
2275     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2276     exit $exit_status
2277 ' 0
2278 for ac_signal in 1 2 13 15; do
2279   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2280 done
2281 ac_signal=0
2282
2283 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2284 rm -f -r conftest* confdefs.h
2285
2286 $as_echo "/* confdefs.h */" > confdefs.h
2287
2288 # Predefined preprocessor variables.
2289
2290 cat >>confdefs.h <<_ACEOF
2291 #define PACKAGE_NAME "$PACKAGE_NAME"
2292 _ACEOF
2293
2294 cat >>confdefs.h <<_ACEOF
2295 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2296 _ACEOF
2297
2298 cat >>confdefs.h <<_ACEOF
2299 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2300 _ACEOF
2301
2302 cat >>confdefs.h <<_ACEOF
2303 #define PACKAGE_STRING "$PACKAGE_STRING"
2304 _ACEOF
2305
2306 cat >>confdefs.h <<_ACEOF
2307 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2308 _ACEOF
2309
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_URL "$PACKAGE_URL"
2312 _ACEOF
2313
2314
2315 # Let the site file select an alternate cache file if it wants to.
2316 # Prefer an explicitly selected file to automatically selected ones.
2317 ac_site_file1=NONE
2318 ac_site_file2=NONE
2319 if test -n "$CONFIG_SITE"; then
2320   # We do not want a PATH search for config.site.
2321   case $CONFIG_SITE in #((
2322     -*)  ac_site_file1=./$CONFIG_SITE;;
2323     */*) ac_site_file1=$CONFIG_SITE;;
2324     *)   ac_site_file1=./$CONFIG_SITE;;
2325   esac
2326 elif test "x$prefix" != xNONE; then
2327   ac_site_file1=$prefix/share/config.site
2328   ac_site_file2=$prefix/etc/config.site
2329 else
2330   ac_site_file1=$ac_default_prefix/share/config.site
2331   ac_site_file2=$ac_default_prefix/etc/config.site
2332 fi
2333 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2334 do
2335   test "x$ac_site_file" = xNONE && continue
2336   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2337     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2338 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2339     sed 's/^/| /' "$ac_site_file" >&5
2340     . "$ac_site_file" \
2341       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2343 as_fn_error $? "failed to load site script $ac_site_file
2344 See \`config.log' for more details" "$LINENO" 5; }
2345   fi
2346 done
2347
2348 if test -r "$cache_file"; then
2349   # Some versions of bash will fail to source /dev/null (special files
2350   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2351   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2352     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2353 $as_echo "$as_me: loading cache $cache_file" >&6;}
2354     case $cache_file in
2355       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2356       *)                      . "./$cache_file";;
2357     esac
2358   fi
2359 else
2360   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2361 $as_echo "$as_me: creating cache $cache_file" >&6;}
2362   >$cache_file
2363 fi
2364
2365 # Check that the precious variables saved in the cache have kept the same
2366 # value.
2367 ac_cache_corrupted=false
2368 for ac_var in $ac_precious_vars; do
2369   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2370   eval ac_new_set=\$ac_env_${ac_var}_set
2371   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2372   eval ac_new_val=\$ac_env_${ac_var}_value
2373   case $ac_old_set,$ac_new_set in
2374     set,)
2375       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2376 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2377       ac_cache_corrupted=: ;;
2378     ,set)
2379       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2380 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2381       ac_cache_corrupted=: ;;
2382     ,);;
2383     *)
2384       if test "x$ac_old_val" != "x$ac_new_val"; then
2385         # differences in whitespace do not lead to failure.
2386         ac_old_val_w=`echo x $ac_old_val`
2387         ac_new_val_w=`echo x $ac_new_val`
2388         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2389           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2390 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2391           ac_cache_corrupted=:
2392         else
2393           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2394 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2395           eval $ac_var=\$ac_old_val
2396         fi
2397         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2398 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2399         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2400 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2401       fi;;
2402   esac
2403   # Pass precious variables to config.status.
2404   if test "$ac_new_set" = set; then
2405     case $ac_new_val in
2406     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2407     *) ac_arg=$ac_var=$ac_new_val ;;
2408     esac
2409     case " $ac_configure_args " in
2410       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2411       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2412     esac
2413   fi
2414 done
2415 if $ac_cache_corrupted; then
2416   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2418   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2419 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2420   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2421 fi
2422 ## -------------------- ##
2423 ## Main body of script. ##
2424 ## -------------------- ##
2425
2426 ac_ext=c
2427 ac_cpp='$CPP $CPPFLAGS'
2428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2431
2432
2433 am__api_version='1.11'
2434
2435 ac_aux_dir=
2436 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2437   if test -f "$ac_dir/install-sh"; then
2438     ac_aux_dir=$ac_dir
2439     ac_install_sh="$ac_aux_dir/install-sh -c"
2440     break
2441   elif test -f "$ac_dir/install.sh"; then
2442     ac_aux_dir=$ac_dir
2443     ac_install_sh="$ac_aux_dir/install.sh -c"
2444     break
2445   elif test -f "$ac_dir/shtool"; then
2446     ac_aux_dir=$ac_dir
2447     ac_install_sh="$ac_aux_dir/shtool install -c"
2448     break
2449   fi
2450 done
2451 if test -z "$ac_aux_dir"; then
2452   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2453 fi
2454
2455 # These three variables are undocumented and unsupported,
2456 # and are intended to be withdrawn in a future Autoconf release.
2457 # They can cause serious problems if a builder's source tree is in a directory
2458 # whose full name contains unusual characters.
2459 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2460 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2461 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2462
2463
2464 # Find a good install program.  We prefer a C program (faster),
2465 # so one script is as good as another.  But avoid the broken or
2466 # incompatible versions:
2467 # SysV /etc/install, /usr/sbin/install
2468 # SunOS /usr/etc/install
2469 # IRIX /sbin/install
2470 # AIX /bin/install
2471 # AmigaOS /C/install, which installs bootblocks on floppy discs
2472 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2473 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2474 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2475 # OS/2's system install, which has a completely different semantic
2476 # ./install, which can be erroneously created by make from ./install.sh.
2477 # Reject install programs that cannot install multiple files.
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2479 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2480 if test -z "$INSTALL"; then
2481 if ${ac_cv_path_install+:} false; then :
2482   $as_echo_n "(cached) " >&6
2483 else
2484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 for as_dir in $PATH
2486 do
2487   IFS=$as_save_IFS
2488   test -z "$as_dir" && as_dir=.
2489     # Account for people who put trailing slashes in PATH elements.
2490 case $as_dir/ in #((
2491   ./ | .// | /[cC]/* | \
2492   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2493   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2494   /usr/ucb/* ) ;;
2495   *)
2496     # OSF1 and SCO ODT 3.0 have their own names for install.
2497     # Don't use installbsd from OSF since it installs stuff as root
2498     # by default.
2499     for ac_prog in ginstall scoinst install; do
2500       for ac_exec_ext in '' $ac_executable_extensions; do
2501         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2502           if test $ac_prog = install &&
2503             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2504             # AIX install.  It has an incompatible calling convention.
2505             :
2506           elif test $ac_prog = install &&
2507             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2508             # program-specific install script used by HP pwplus--don't use.
2509             :
2510           else
2511             rm -rf conftest.one conftest.two conftest.dir
2512             echo one > conftest.one
2513             echo two > conftest.two
2514             mkdir conftest.dir
2515             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2516               test -s conftest.one && test -s conftest.two &&
2517               test -s conftest.dir/conftest.one &&
2518               test -s conftest.dir/conftest.two
2519             then
2520               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2521               break 3
2522             fi
2523           fi
2524         fi
2525       done
2526     done
2527     ;;
2528 esac
2529
2530   done
2531 IFS=$as_save_IFS
2532
2533 rm -rf conftest.one conftest.two conftest.dir
2534
2535 fi
2536   if test "${ac_cv_path_install+set}" = set; then
2537     INSTALL=$ac_cv_path_install
2538   else
2539     # As a last resort, use the slow shell script.  Don't cache a
2540     # value for INSTALL within a source directory, because that will
2541     # break other packages using the cache if that directory is
2542     # removed, or if the value is a relative name.
2543     INSTALL=$ac_install_sh
2544   fi
2545 fi
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2547 $as_echo "$INSTALL" >&6; }
2548
2549 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2550 # It thinks the first close brace ends the variable substitution.
2551 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2552
2553 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2554
2555 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2556
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2558 $as_echo_n "checking whether build environment is sane... " >&6; }
2559 # Just in case
2560 sleep 1
2561 echo timestamp > conftest.file
2562 # Reject unsafe characters in $srcdir or the absolute working directory
2563 # name.  Accept space and tab only in the latter.
2564 am_lf='
2565 '
2566 case `pwd` in
2567   *[\\\"\#\$\&\'\`$am_lf]*)
2568     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2569 esac
2570 case $srcdir in
2571   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2572     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2573 esac
2574
2575 # Do `set' in a subshell so we don't clobber the current shell's
2576 # arguments.  Must try -L first in case configure is actually a
2577 # symlink; some systems play weird games with the mod time of symlinks
2578 # (eg FreeBSD returns the mod time of the symlink's containing
2579 # directory).
2580 if (
2581    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2582    if test "$*" = "X"; then
2583       # -L didn't work.
2584       set X `ls -t "$srcdir/configure" conftest.file`
2585    fi
2586    rm -f conftest.file
2587    if test "$*" != "X $srcdir/configure conftest.file" \
2588       && test "$*" != "X conftest.file $srcdir/configure"; then
2589
2590       # If neither matched, then we have a broken ls.  This can happen
2591       # if, for instance, CONFIG_SHELL is bash and it inherits a
2592       # broken ls alias from the environment.  This has actually
2593       # happened.  Such a system could not be considered "sane".
2594       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2595 alias in your environment" "$LINENO" 5
2596    fi
2597
2598    test "$2" = conftest.file
2599    )
2600 then
2601    # Ok.
2602    :
2603 else
2604    as_fn_error $? "newly created file is older than distributed files!
2605 Check your system clock" "$LINENO" 5
2606 fi
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2608 $as_echo "yes" >&6; }
2609 test "$program_prefix" != NONE &&
2610   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2611 # Use a double $ so make ignores it.
2612 test "$program_suffix" != NONE &&
2613   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2614 # Double any \ or $.
2615 # By default was `s,x,x', remove it if useless.
2616 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2617 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2618
2619 # expand $ac_aux_dir to an absolute path
2620 am_aux_dir=`cd $ac_aux_dir && pwd`
2621
2622 if test x"${MISSING+set}" != xset; then
2623   case $am_aux_dir in
2624   *\ * | *\     *)
2625     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2626   *)
2627     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2628   esac
2629 fi
2630 # Use eval to expand $SHELL
2631 if eval "$MISSING --run true"; then
2632   am_missing_run="$MISSING --run "
2633 else
2634   am_missing_run=
2635   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2636 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2637 fi
2638
2639 if test x"${install_sh}" != xset; then
2640   case $am_aux_dir in
2641   *\ * | *\     *)
2642     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2643   *)
2644     install_sh="\${SHELL} $am_aux_dir/install-sh"
2645   esac
2646 fi
2647
2648 # Installed binaries are usually stripped using `strip' when the user
2649 # run `make install-strip'.  However `strip' might not be the right
2650 # tool to use in cross-compilation environments, therefore Automake
2651 # will honor the `STRIP' environment variable to overrule this program.
2652 if test "$cross_compiling" != no; then
2653   if test -n "$ac_tool_prefix"; then
2654   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2655 set dummy ${ac_tool_prefix}strip; ac_word=$2
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2657 $as_echo_n "checking for $ac_word... " >&6; }
2658 if ${ac_cv_prog_STRIP+:} false; then :
2659   $as_echo_n "(cached) " >&6
2660 else
2661   if test -n "$STRIP"; then
2662   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2663 else
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2666 do
2667   IFS=$as_save_IFS
2668   test -z "$as_dir" && as_dir=.
2669     for ac_exec_ext in '' $ac_executable_extensions; do
2670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2671     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2673     break 2
2674   fi
2675 done
2676   done
2677 IFS=$as_save_IFS
2678
2679 fi
2680 fi
2681 STRIP=$ac_cv_prog_STRIP
2682 if test -n "$STRIP"; then
2683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2684 $as_echo "$STRIP" >&6; }
2685 else
2686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687 $as_echo "no" >&6; }
2688 fi
2689
2690
2691 fi
2692 if test -z "$ac_cv_prog_STRIP"; then
2693   ac_ct_STRIP=$STRIP
2694   # Extract the first word of "strip", so it can be a program name with args.
2695 set dummy strip; ac_word=$2
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2697 $as_echo_n "checking for $ac_word... " >&6; }
2698 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2699   $as_echo_n "(cached) " >&6
2700 else
2701   if test -n "$ac_ct_STRIP"; then
2702   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2703 else
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 for as_dir in $PATH
2706 do
2707   IFS=$as_save_IFS
2708   test -z "$as_dir" && as_dir=.
2709     for ac_exec_ext in '' $ac_executable_extensions; do
2710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2711     ac_cv_prog_ac_ct_STRIP="strip"
2712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2713     break 2
2714   fi
2715 done
2716   done
2717 IFS=$as_save_IFS
2718
2719 fi
2720 fi
2721 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2722 if test -n "$ac_ct_STRIP"; then
2723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2724 $as_echo "$ac_ct_STRIP" >&6; }
2725 else
2726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2727 $as_echo "no" >&6; }
2728 fi
2729
2730   if test "x$ac_ct_STRIP" = x; then
2731     STRIP=":"
2732   else
2733     case $cross_compiling:$ac_tool_warned in
2734 yes:)
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2737 ac_tool_warned=yes ;;
2738 esac
2739     STRIP=$ac_ct_STRIP
2740   fi
2741 else
2742   STRIP="$ac_cv_prog_STRIP"
2743 fi
2744
2745 fi
2746 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2747
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2749 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2750 if test -z "$MKDIR_P"; then
2751   if ${ac_cv_path_mkdir+:} false; then :
2752   $as_echo_n "(cached) " >&6
2753 else
2754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2756 do
2757   IFS=$as_save_IFS
2758   test -z "$as_dir" && as_dir=.
2759     for ac_prog in mkdir gmkdir; do
2760          for ac_exec_ext in '' $ac_executable_extensions; do
2761            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2762            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2763              'mkdir (GNU coreutils) '* | \
2764              'mkdir (coreutils) '* | \
2765              'mkdir (fileutils) '4.1*)
2766                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2767                break 3;;
2768            esac
2769          done
2770        done
2771   done
2772 IFS=$as_save_IFS
2773
2774 fi
2775
2776   test -d ./--version && rmdir ./--version
2777   if test "${ac_cv_path_mkdir+set}" = set; then
2778     MKDIR_P="$ac_cv_path_mkdir -p"
2779   else
2780     # As a last resort, use the slow shell script.  Don't cache a
2781     # value for MKDIR_P within a source directory, because that will
2782     # break other packages using the cache if that directory is
2783     # removed, or if the value is a relative name.
2784     MKDIR_P="$ac_install_sh -d"
2785   fi
2786 fi
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2788 $as_echo "$MKDIR_P" >&6; }
2789
2790 mkdir_p="$MKDIR_P"
2791 case $mkdir_p in
2792   [\\/$]* | ?:[\\/]*) ;;
2793   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2794 esac
2795
2796 for ac_prog in gawk mawk nawk awk
2797 do
2798   # Extract the first word of "$ac_prog", so it can be a program name with args.
2799 set dummy $ac_prog; ac_word=$2
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801 $as_echo_n "checking for $ac_word... " >&6; }
2802 if ${ac_cv_prog_AWK+:} false; then :
2803   $as_echo_n "(cached) " >&6
2804 else
2805   if test -n "$AWK"; then
2806   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2807 else
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 for as_dir in $PATH
2810 do
2811   IFS=$as_save_IFS
2812   test -z "$as_dir" && as_dir=.
2813     for ac_exec_ext in '' $ac_executable_extensions; do
2814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815     ac_cv_prog_AWK="$ac_prog"
2816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2817     break 2
2818   fi
2819 done
2820   done
2821 IFS=$as_save_IFS
2822
2823 fi
2824 fi
2825 AWK=$ac_cv_prog_AWK
2826 if test -n "$AWK"; then
2827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2828 $as_echo "$AWK" >&6; }
2829 else
2830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831 $as_echo "no" >&6; }
2832 fi
2833
2834
2835   test -n "$AWK" && break
2836 done
2837
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2839 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2840 set x ${MAKE-make}
2841 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2842 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2843   $as_echo_n "(cached) " >&6
2844 else
2845   cat >conftest.make <<\_ACEOF
2846 SHELL = /bin/sh
2847 all:
2848         @echo '@@@%%%=$(MAKE)=@@@%%%'
2849 _ACEOF
2850 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2851 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2852   *@@@%%%=?*=@@@%%%*)
2853     eval ac_cv_prog_make_${ac_make}_set=yes;;
2854   *)
2855     eval ac_cv_prog_make_${ac_make}_set=no;;
2856 esac
2857 rm -f conftest.make
2858 fi
2859 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2861 $as_echo "yes" >&6; }
2862   SET_MAKE=
2863 else
2864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865 $as_echo "no" >&6; }
2866   SET_MAKE="MAKE=${MAKE-make}"
2867 fi
2868
2869 rm -rf .tst 2>/dev/null
2870 mkdir .tst 2>/dev/null
2871 if test -d .tst; then
2872   am__leading_dot=.
2873 else
2874   am__leading_dot=_
2875 fi
2876 rmdir .tst 2>/dev/null
2877
2878 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2879   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2880   # is not polluted with repeated "-I."
2881   am__isrc=' -I$(srcdir)'
2882   # test to see if srcdir already configured
2883   if test -f $srcdir/config.status; then
2884     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2885   fi
2886 fi
2887
2888 # test whether we have cygpath
2889 if test -z "$CYGPATH_W"; then
2890   if (cygpath --version) >/dev/null 2>/dev/null; then
2891     CYGPATH_W='cygpath -w'
2892   else
2893     CYGPATH_W=echo
2894   fi
2895 fi
2896
2897
2898 # Define the identity of the package.
2899  PACKAGE='libsockstream'
2900  VERSION='0.1'
2901
2902
2903 cat >>confdefs.h <<_ACEOF
2904 #define PACKAGE "$PACKAGE"
2905 _ACEOF
2906
2907
2908 cat >>confdefs.h <<_ACEOF
2909 #define VERSION "$VERSION"
2910 _ACEOF
2911
2912 # Some tools Automake needs.
2913
2914 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2915
2916
2917 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2918
2919
2920 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2921
2922
2923 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2924
2925
2926 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2927
2928 # We need awk for the "check" target.  The system "awk" is bad on
2929 # some platforms.
2930 # Always define AMTAR for backward compatibility.
2931
2932 AMTAR=${AMTAR-"${am_missing_run}tar"}
2933
2934 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2935
2936
2937
2938
2939
2940 ac_ext=cpp
2941 ac_cpp='$CXXCPP $CPPFLAGS'
2942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2945
2946
2947 ac_config_headers="$ac_config_headers config.h"
2948
2949
2950 # Checks for programs.
2951 ac_ext=cpp
2952 ac_cpp='$CXXCPP $CPPFLAGS'
2953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2956 if test -z "$CXX"; then
2957   if test -n "$CCC"; then
2958     CXX=$CCC
2959   else
2960     if test -n "$ac_tool_prefix"; then
2961   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2962   do
2963     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2964 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966 $as_echo_n "checking for $ac_word... " >&6; }
2967 if ${ac_cv_prog_CXX+:} false; then :
2968   $as_echo_n "(cached) " >&6
2969 else
2970   if test -n "$CXX"; then
2971   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2972 else
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 for as_dir in $PATH
2975 do
2976   IFS=$as_save_IFS
2977   test -z "$as_dir" && as_dir=.
2978     for ac_exec_ext in '' $ac_executable_extensions; do
2979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2980     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982     break 2
2983   fi
2984 done
2985   done
2986 IFS=$as_save_IFS
2987
2988 fi
2989 fi
2990 CXX=$ac_cv_prog_CXX
2991 if test -n "$CXX"; then
2992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2993 $as_echo "$CXX" >&6; }
2994 else
2995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996 $as_echo "no" >&6; }
2997 fi
2998
2999
3000     test -n "$CXX" && break
3001   done
3002 fi
3003 if test -z "$CXX"; then
3004   ac_ct_CXX=$CXX
3005   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3006 do
3007   # Extract the first word of "$ac_prog", so it can be a program name with args.
3008 set dummy $ac_prog; ac_word=$2
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010 $as_echo_n "checking for $ac_word... " >&6; }
3011 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3012   $as_echo_n "(cached) " >&6
3013 else
3014   if test -n "$ac_ct_CXX"; then
3015   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3016 else
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 for as_dir in $PATH
3019 do
3020   IFS=$as_save_IFS
3021   test -z "$as_dir" && as_dir=.
3022     for ac_exec_ext in '' $ac_executable_extensions; do
3023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3024     ac_cv_prog_ac_ct_CXX="$ac_prog"
3025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026     break 2
3027   fi
3028 done
3029   done
3030 IFS=$as_save_IFS
3031
3032 fi
3033 fi
3034 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3035 if test -n "$ac_ct_CXX"; then
3036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3037 $as_echo "$ac_ct_CXX" >&6; }
3038 else
3039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040 $as_echo "no" >&6; }
3041 fi
3042
3043
3044   test -n "$ac_ct_CXX" && break
3045 done
3046
3047   if test "x$ac_ct_CXX" = x; then
3048     CXX="g++"
3049   else
3050     case $cross_compiling:$ac_tool_warned in
3051 yes:)
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3054 ac_tool_warned=yes ;;
3055 esac
3056     CXX=$ac_ct_CXX
3057   fi
3058 fi
3059
3060   fi
3061 fi
3062 # Provide some information about the compiler.
3063 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3064 set X $ac_compile
3065 ac_compiler=$2
3066 for ac_option in --version -v -V -qversion; do
3067   { { ac_try="$ac_compiler $ac_option >&5"
3068 case "(($ac_try" in
3069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070   *) ac_try_echo=$ac_try;;
3071 esac
3072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3073 $as_echo "$ac_try_echo"; } >&5
3074   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3075   ac_status=$?
3076   if test -s conftest.err; then
3077     sed '10a\
3078 ... rest of stderr output deleted ...
3079          10q' conftest.err >conftest.er1
3080     cat conftest.er1 >&5
3081   fi
3082   rm -f conftest.er1 conftest.err
3083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3084   test $ac_status = 0; }
3085 done
3086
3087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3088 /* end confdefs.h.  */
3089
3090 int
3091 main ()
3092 {
3093
3094   ;
3095   return 0;
3096 }
3097 _ACEOF
3098 ac_clean_files_save=$ac_clean_files
3099 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3100 # Try to create an executable without -o first, disregard a.out.
3101 # It will help us diagnose broken compilers, and finding out an intuition
3102 # of exeext.
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3104 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3105 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3106
3107 # The possible output files:
3108 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3109
3110 ac_rmfiles=
3111 for ac_file in $ac_files
3112 do
3113   case $ac_file in
3114     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3115     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3116   esac
3117 done
3118 rm -f $ac_rmfiles
3119
3120 if { { ac_try="$ac_link_default"
3121 case "(($ac_try" in
3122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123   *) ac_try_echo=$ac_try;;
3124 esac
3125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3126 $as_echo "$ac_try_echo"; } >&5
3127   (eval "$ac_link_default") 2>&5
3128   ac_status=$?
3129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3130   test $ac_status = 0; }; then :
3131   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3132 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3133 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3134 # so that the user can short-circuit this test for compilers unknown to
3135 # Autoconf.
3136 for ac_file in $ac_files ''
3137 do
3138   test -f "$ac_file" || continue
3139   case $ac_file in
3140     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3141         ;;
3142     [ab].out )
3143         # We found the default executable, but exeext='' is most
3144         # certainly right.
3145         break;;
3146     *.* )
3147         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3148         then :; else
3149            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3150         fi
3151         # We set ac_cv_exeext here because the later test for it is not
3152         # safe: cross compilers may not add the suffix if given an `-o'
3153         # argument, so we may need to know it at that point already.
3154         # Even if this section looks crufty: it has the advantage of
3155         # actually working.
3156         break;;
3157     * )
3158         break;;
3159   esac
3160 done
3161 test "$ac_cv_exeext" = no && ac_cv_exeext=
3162
3163 else
3164   ac_file=''
3165 fi
3166 if test -z "$ac_file"; then :
3167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168 $as_echo "no" >&6; }
3169 $as_echo "$as_me: failed program was:" >&5
3170 sed 's/^/| /' conftest.$ac_ext >&5
3171
3172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3174 as_fn_error 77 "C++ compiler cannot create executables
3175 See \`config.log' for more details" "$LINENO" 5; }
3176 else
3177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3178 $as_echo "yes" >&6; }
3179 fi
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3181 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3183 $as_echo "$ac_file" >&6; }
3184 ac_exeext=$ac_cv_exeext
3185
3186 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3187 ac_clean_files=$ac_clean_files_save
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3189 $as_echo_n "checking for suffix of executables... " >&6; }
3190 if { { ac_try="$ac_link"
3191 case "(($ac_try" in
3192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193   *) ac_try_echo=$ac_try;;
3194 esac
3195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3196 $as_echo "$ac_try_echo"; } >&5
3197   (eval "$ac_link") 2>&5
3198   ac_status=$?
3199   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3200   test $ac_status = 0; }; then :
3201   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3202 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3203 # work properly (i.e., refer to `conftest.exe'), while it won't with
3204 # `rm'.
3205 for ac_file in conftest.exe conftest conftest.*; do
3206   test -f "$ac_file" || continue
3207   case $ac_file in
3208     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3209     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3210           break;;
3211     * ) break;;
3212   esac
3213 done
3214 else
3215   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3217 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3218 See \`config.log' for more details" "$LINENO" 5; }
3219 fi
3220 rm -f conftest conftest$ac_cv_exeext
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3222 $as_echo "$ac_cv_exeext" >&6; }
3223
3224 rm -f conftest.$ac_ext
3225 EXEEXT=$ac_cv_exeext
3226 ac_exeext=$EXEEXT
3227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3228 /* end confdefs.h.  */
3229 #include <stdio.h>
3230 int
3231 main ()
3232 {
3233 FILE *f = fopen ("conftest.out", "w");
3234  return ferror (f) || fclose (f) != 0;
3235
3236   ;
3237   return 0;
3238 }
3239 _ACEOF
3240 ac_clean_files="$ac_clean_files conftest.out"
3241 # Check that the compiler produces executables we can run.  If not, either
3242 # the compiler is broken, or we cross compile.
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3244 $as_echo_n "checking whether we are cross compiling... " >&6; }
3245 if test "$cross_compiling" != yes; then
3246   { { ac_try="$ac_link"
3247 case "(($ac_try" in
3248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249   *) ac_try_echo=$ac_try;;
3250 esac
3251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252 $as_echo "$ac_try_echo"; } >&5
3253   (eval "$ac_link") 2>&5
3254   ac_status=$?
3255   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256   test $ac_status = 0; }
3257   if { ac_try='./conftest$ac_cv_exeext'
3258   { { case "(($ac_try" in
3259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260   *) ac_try_echo=$ac_try;;
3261 esac
3262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263 $as_echo "$ac_try_echo"; } >&5
3264   (eval "$ac_try") 2>&5
3265   ac_status=$?
3266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3267   test $ac_status = 0; }; }; then
3268     cross_compiling=no
3269   else
3270     if test "$cross_compiling" = maybe; then
3271         cross_compiling=yes
3272     else
3273         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275 as_fn_error $? "cannot run C++ compiled programs.
3276 If you meant to cross compile, use \`--host'.
3277 See \`config.log' for more details" "$LINENO" 5; }
3278     fi
3279   fi
3280 fi
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3282 $as_echo "$cross_compiling" >&6; }
3283
3284 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3285 ac_clean_files=$ac_clean_files_save
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3287 $as_echo_n "checking for suffix of object files... " >&6; }
3288 if ${ac_cv_objext+:} false; then :
3289   $as_echo_n "(cached) " >&6
3290 else
3291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h.  */
3293
3294 int
3295 main ()
3296 {
3297
3298   ;
3299   return 0;
3300 }
3301 _ACEOF
3302 rm -f conftest.o conftest.obj
3303 if { { ac_try="$ac_compile"
3304 case "(($ac_try" in
3305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306   *) ac_try_echo=$ac_try;;
3307 esac
3308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3309 $as_echo "$ac_try_echo"; } >&5
3310   (eval "$ac_compile") 2>&5
3311   ac_status=$?
3312   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3313   test $ac_status = 0; }; then :
3314   for ac_file in conftest.o conftest.obj conftest.*; do
3315   test -f "$ac_file" || continue;
3316   case $ac_file in
3317     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3318     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3319        break;;
3320   esac
3321 done
3322 else
3323   $as_echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3325
3326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3328 as_fn_error $? "cannot compute suffix of object files: cannot compile
3329 See \`config.log' for more details" "$LINENO" 5; }
3330 fi
3331 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3332 fi
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3334 $as_echo "$ac_cv_objext" >&6; }
3335 OBJEXT=$ac_cv_objext
3336 ac_objext=$OBJEXT
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3338 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3339 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3340   $as_echo_n "(cached) " >&6
3341 else
3342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343 /* end confdefs.h.  */
3344
3345 int
3346 main ()
3347 {
3348 #ifndef __GNUC__
3349        choke me
3350 #endif
3351
3352   ;
3353   return 0;
3354 }
3355 _ACEOF
3356 if ac_fn_cxx_try_compile "$LINENO"; then :
3357   ac_compiler_gnu=yes
3358 else
3359   ac_compiler_gnu=no
3360 fi
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3363
3364 fi
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3366 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3367 if test $ac_compiler_gnu = yes; then
3368   GXX=yes
3369 else
3370   GXX=
3371 fi
3372 ac_test_CXXFLAGS=${CXXFLAGS+set}
3373 ac_save_CXXFLAGS=$CXXFLAGS
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3375 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3376 if ${ac_cv_prog_cxx_g+:} false; then :
3377   $as_echo_n "(cached) " >&6
3378 else
3379   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3380    ac_cxx_werror_flag=yes
3381    ac_cv_prog_cxx_g=no
3382    CXXFLAGS="-g"
3383    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h.  */
3385
3386 int
3387 main ()
3388 {
3389
3390   ;
3391   return 0;
3392 }
3393 _ACEOF
3394 if ac_fn_cxx_try_compile "$LINENO"; then :
3395   ac_cv_prog_cxx_g=yes
3396 else
3397   CXXFLAGS=""
3398       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399 /* end confdefs.h.  */
3400
3401 int
3402 main ()
3403 {
3404
3405   ;
3406   return 0;
3407 }
3408 _ACEOF
3409 if ac_fn_cxx_try_compile "$LINENO"; then :
3410
3411 else
3412   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3413          CXXFLAGS="-g"
3414          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h.  */
3416
3417 int
3418 main ()
3419 {
3420
3421   ;
3422   return 0;
3423 }
3424 _ACEOF
3425 if ac_fn_cxx_try_compile "$LINENO"; then :
3426   ac_cv_prog_cxx_g=yes
3427 fi
3428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3429 fi
3430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 fi
3432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3433    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3434 fi
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3436 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3437 if test "$ac_test_CXXFLAGS" = set; then
3438   CXXFLAGS=$ac_save_CXXFLAGS
3439 elif test $ac_cv_prog_cxx_g = yes; then
3440   if test "$GXX" = yes; then
3441     CXXFLAGS="-g -O2"
3442   else
3443     CXXFLAGS="-g"
3444   fi
3445 else
3446   if test "$GXX" = yes; then
3447     CXXFLAGS="-O2"
3448   else
3449     CXXFLAGS=
3450   fi
3451 fi
3452 ac_ext=cpp
3453 ac_cpp='$CXXCPP $CPPFLAGS'
3454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3457 DEPDIR="${am__leading_dot}deps"
3458
3459 ac_config_commands="$ac_config_commands depfiles"
3460
3461
3462 am_make=${MAKE-make}
3463 cat > confinc << 'END'
3464 am__doit:
3465         @echo this is the am__doit target
3466 .PHONY: am__doit
3467 END
3468 # If we don't find an include directive, just comment out the code.
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3470 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3471 am__include="#"
3472 am__quote=
3473 _am_result=none
3474 # First try GNU make style include.
3475 echo "include confinc" > confmf
3476 # Ignore all kinds of additional output from `make'.
3477 case `$am_make -s -f confmf 2> /dev/null` in #(
3478 *the\ am__doit\ target*)
3479   am__include=include
3480   am__quote=
3481   _am_result=GNU
3482   ;;
3483 esac
3484 # Now try BSD make style include.
3485 if test "$am__include" = "#"; then
3486    echo '.include "confinc"' > confmf
3487    case `$am_make -s -f confmf 2> /dev/null` in #(
3488    *the\ am__doit\ target*)
3489      am__include=.include
3490      am__quote="\""
3491      _am_result=BSD
3492      ;;
3493    esac
3494 fi
3495
3496
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3498 $as_echo "$_am_result" >&6; }
3499 rm -f confinc confmf
3500
3501 # Check whether --enable-dependency-tracking was given.
3502 if test "${enable_dependency_tracking+set}" = set; then :
3503   enableval=$enable_dependency_tracking;
3504 fi
3505
3506 if test "x$enable_dependency_tracking" != xno; then
3507   am_depcomp="$ac_aux_dir/depcomp"
3508   AMDEPBACKSLASH='\'
3509 fi
3510  if test "x$enable_dependency_tracking" != xno; then
3511   AMDEP_TRUE=
3512   AMDEP_FALSE='#'
3513 else
3514   AMDEP_TRUE='#'
3515   AMDEP_FALSE=
3516 fi
3517
3518
3519
3520 depcc="$CXX"  am_compiler_list=
3521
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3523 $as_echo_n "checking dependency style of $depcc... " >&6; }
3524 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3525   $as_echo_n "(cached) " >&6
3526 else
3527   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3528   # We make a subdir and do the tests there.  Otherwise we can end up
3529   # making bogus files that we don't know about and never remove.  For
3530   # instance it was reported that on HP-UX the gcc test will end up
3531   # making a dummy file named `D' -- because `-MD' means `put the output
3532   # in D'.
3533   mkdir conftest.dir
3534   # Copy depcomp to subdir because otherwise we won't find it if we're
3535   # using a relative directory.
3536   cp "$am_depcomp" conftest.dir
3537   cd conftest.dir
3538   # We will build objects and dependencies in a subdirectory because
3539   # it helps to detect inapplicable dependency modes.  For instance
3540   # both Tru64's cc and ICC support -MD to output dependencies as a
3541   # side effect of compilation, but ICC will put the dependencies in
3542   # the current directory while Tru64 will put them in the object
3543   # directory.
3544   mkdir sub
3545
3546   am_cv_CXX_dependencies_compiler_type=none
3547   if test "$am_compiler_list" = ""; then
3548      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3549   fi
3550   am__universal=false
3551   case " $depcc " in #(
3552      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3553      esac
3554
3555   for depmode in $am_compiler_list; do
3556     # Setup a source with many dependencies, because some compilers
3557     # like to wrap large dependency lists on column 80 (with \), and
3558     # we should not choose a depcomp mode which is confused by this.
3559     #
3560     # We need to recreate these files for each test, as the compiler may
3561     # overwrite some of them when testing with obscure command lines.
3562     # This happens at least with the AIX C compiler.
3563     : > sub/conftest.c
3564     for i in 1 2 3 4 5 6; do
3565       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3566       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3567       # Solaris 8's {/usr,}/bin/sh.
3568       touch sub/conftst$i.h
3569     done
3570     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3571
3572     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3573     # mode.  It turns out that the SunPro C++ compiler does not properly
3574     # handle `-M -o', and we need to detect this.  Also, some Intel
3575     # versions had trouble with output in subdirs
3576     am__obj=sub/conftest.${OBJEXT-o}
3577     am__minus_obj="-o $am__obj"
3578     case $depmode in
3579     gcc)
3580       # This depmode causes a compiler race in universal mode.
3581       test "$am__universal" = false || continue
3582       ;;
3583     nosideeffect)
3584       # after this tag, mechanisms are not by side-effect, so they'll
3585       # only be used when explicitly requested
3586       if test "x$enable_dependency_tracking" = xyes; then
3587         continue
3588       else
3589         break
3590       fi
3591       ;;
3592     msvisualcpp | msvcmsys)
3593       # This compiler won't grok `-c -o', but also, the minuso test has
3594       # not run yet.  These depmodes are late enough in the game, and
3595       # so weak that their functioning should not be impacted.
3596       am__obj=conftest.${OBJEXT-o}
3597       am__minus_obj=
3598       ;;
3599     none) break ;;
3600     esac
3601     if depmode=$depmode \
3602        source=sub/conftest.c object=$am__obj \
3603        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3604        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3605          >/dev/null 2>conftest.err &&
3606        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3607        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3608        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3609        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3610       # icc doesn't choke on unknown options, it will just issue warnings
3611       # or remarks (even with -Werror).  So we grep stderr for any message
3612       # that says an option was ignored or not supported.
3613       # When given -MP, icc 7.0 and 7.1 complain thusly:
3614       #   icc: Command line warning: ignoring option '-M'; no argument required
3615       # The diagnosis changed in icc 8.0:
3616       #   icc: Command line remark: option '-MP' not supported
3617       if (grep 'ignoring option' conftest.err ||
3618           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3619         am_cv_CXX_dependencies_compiler_type=$depmode
3620         break
3621       fi
3622     fi
3623   done
3624
3625   cd ..
3626   rm -rf conftest.dir
3627 else
3628   am_cv_CXX_dependencies_compiler_type=none
3629 fi
3630
3631 fi
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3633 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3634 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3635
3636  if
3637   test "x$enable_dependency_tracking" != xno \
3638   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3639   am__fastdepCXX_TRUE=
3640   am__fastdepCXX_FALSE='#'
3641 else
3642   am__fastdepCXX_TRUE='#'
3643   am__fastdepCXX_FALSE=
3644 fi
3645
3646
3647 ac_ext=c
3648 ac_cpp='$CPP $CPPFLAGS'
3649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3652 if test -n "$ac_tool_prefix"; then
3653   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3654 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3656 $as_echo_n "checking for $ac_word... " >&6; }
3657 if ${ac_cv_prog_CC+:} false; then :
3658   $as_echo_n "(cached) " >&6
3659 else
3660   if test -n "$CC"; then
3661   ac_cv_prog_CC="$CC" # Let the user override the test.
3662 else
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH
3665 do
3666   IFS=$as_save_IFS
3667   test -z "$as_dir" && as_dir=.
3668     for ac_exec_ext in '' $ac_executable_extensions; do
3669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3670     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3672     break 2
3673   fi
3674 done
3675   done
3676 IFS=$as_save_IFS
3677
3678 fi
3679 fi
3680 CC=$ac_cv_prog_CC
3681 if test -n "$CC"; then
3682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3683 $as_echo "$CC" >&6; }
3684 else
3685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 $as_echo "no" >&6; }
3687 fi
3688
3689
3690 fi
3691 if test -z "$ac_cv_prog_CC"; then
3692   ac_ct_CC=$CC
3693   # Extract the first word of "gcc", so it can be a program name with args.
3694 set dummy gcc; ac_word=$2
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3696 $as_echo_n "checking for $ac_word... " >&6; }
3697 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3698   $as_echo_n "(cached) " >&6
3699 else
3700   if test -n "$ac_ct_CC"; then
3701   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3702 else
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH
3705 do
3706   IFS=$as_save_IFS
3707   test -z "$as_dir" && as_dir=.
3708     for ac_exec_ext in '' $ac_executable_extensions; do
3709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3710     ac_cv_prog_ac_ct_CC="gcc"
3711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3712     break 2
3713   fi
3714 done
3715   done
3716 IFS=$as_save_IFS
3717
3718 fi
3719 fi
3720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3721 if test -n "$ac_ct_CC"; then
3722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3723 $as_echo "$ac_ct_CC" >&6; }
3724 else
3725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726 $as_echo "no" >&6; }
3727 fi
3728
3729   if test "x$ac_ct_CC" = x; then
3730     CC=""
3731   else
3732     case $cross_compiling:$ac_tool_warned in
3733 yes:)
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3736 ac_tool_warned=yes ;;
3737 esac
3738     CC=$ac_ct_CC
3739   fi
3740 else
3741   CC="$ac_cv_prog_CC"
3742 fi
3743
3744 if test -z "$CC"; then
3745           if test -n "$ac_tool_prefix"; then
3746     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3747 set dummy ${ac_tool_prefix}cc; ac_word=$2
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3749 $as_echo_n "checking for $ac_word... " >&6; }
3750 if ${ac_cv_prog_CC+:} false; then :
3751   $as_echo_n "(cached) " >&6
3752 else
3753   if test -n "$CC"; then
3754   ac_cv_prog_CC="$CC" # Let the user override the test.
3755 else
3756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 for as_dir in $PATH
3758 do
3759   IFS=$as_save_IFS
3760   test -z "$as_dir" && as_dir=.
3761     for ac_exec_ext in '' $ac_executable_extensions; do
3762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3763     ac_cv_prog_CC="${ac_tool_prefix}cc"
3764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3765     break 2
3766   fi
3767 done
3768   done
3769 IFS=$as_save_IFS
3770
3771 fi
3772 fi
3773 CC=$ac_cv_prog_CC
3774 if test -n "$CC"; then
3775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3776 $as_echo "$CC" >&6; }
3777 else
3778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779 $as_echo "no" >&6; }
3780 fi
3781
3782
3783   fi
3784 fi
3785 if test -z "$CC"; then
3786   # Extract the first word of "cc", so it can be a program name with args.
3787 set dummy cc; ac_word=$2
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3789 $as_echo_n "checking for $ac_word... " >&6; }
3790 if ${ac_cv_prog_CC+:} false; then :
3791   $as_echo_n "(cached) " >&6
3792 else
3793   if test -n "$CC"; then
3794   ac_cv_prog_CC="$CC" # Let the user override the test.
3795 else
3796   ac_prog_rejected=no
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3799 do
3800   IFS=$as_save_IFS
3801   test -z "$as_dir" && as_dir=.
3802     for ac_exec_ext in '' $ac_executable_extensions; do
3803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3804     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3805        ac_prog_rejected=yes
3806        continue
3807      fi
3808     ac_cv_prog_CC="cc"
3809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3810     break 2
3811   fi
3812 done
3813   done
3814 IFS=$as_save_IFS
3815
3816 if test $ac_prog_rejected = yes; then
3817   # We found a bogon in the path, so make sure we never use it.
3818   set dummy $ac_cv_prog_CC
3819   shift
3820   if test $# != 0; then
3821     # We chose a different compiler from the bogus one.
3822     # However, it has the same basename, so the bogon will be chosen
3823     # first if we set CC to just the basename; use the full file name.
3824     shift
3825     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3826   fi
3827 fi
3828 fi
3829 fi
3830 CC=$ac_cv_prog_CC
3831 if test -n "$CC"; then
3832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3833 $as_echo "$CC" >&6; }
3834 else
3835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3836 $as_echo "no" >&6; }
3837 fi
3838
3839
3840 fi
3841 if test -z "$CC"; then
3842   if test -n "$ac_tool_prefix"; then
3843   for ac_prog in cl.exe
3844   do
3845     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3846 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3848 $as_echo_n "checking for $ac_word... " >&6; }
3849 if ${ac_cv_prog_CC+:} false; then :
3850   $as_echo_n "(cached) " >&6
3851 else
3852   if test -n "$CC"; then
3853   ac_cv_prog_CC="$CC" # Let the user override the test.
3854 else
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH
3857 do
3858   IFS=$as_save_IFS
3859   test -z "$as_dir" && as_dir=.
3860     for ac_exec_ext in '' $ac_executable_extensions; do
3861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3862     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3864     break 2
3865   fi
3866 done
3867   done
3868 IFS=$as_save_IFS
3869
3870 fi
3871 fi
3872 CC=$ac_cv_prog_CC
3873 if test -n "$CC"; then
3874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3875 $as_echo "$CC" >&6; }
3876 else
3877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3878 $as_echo "no" >&6; }
3879 fi
3880
3881
3882     test -n "$CC" && break
3883   done
3884 fi
3885 if test -z "$CC"; then
3886   ac_ct_CC=$CC
3887   for ac_prog in cl.exe
3888 do
3889   # Extract the first word of "$ac_prog", so it can be a program name with args.
3890 set dummy $ac_prog; ac_word=$2
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892 $as_echo_n "checking for $ac_word... " >&6; }
3893 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3894   $as_echo_n "(cached) " >&6
3895 else
3896   if test -n "$ac_ct_CC"; then
3897   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3898 else
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 for as_dir in $PATH
3901 do
3902   IFS=$as_save_IFS
3903   test -z "$as_dir" && as_dir=.
3904     for ac_exec_ext in '' $ac_executable_extensions; do
3905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3906     ac_cv_prog_ac_ct_CC="$ac_prog"
3907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3908     break 2
3909   fi
3910 done
3911   done
3912 IFS=$as_save_IFS
3913
3914 fi
3915 fi
3916 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3917 if test -n "$ac_ct_CC"; then
3918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3919 $as_echo "$ac_ct_CC" >&6; }
3920 else
3921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922 $as_echo "no" >&6; }
3923 fi
3924
3925
3926   test -n "$ac_ct_CC" && break
3927 done
3928
3929   if test "x$ac_ct_CC" = x; then
3930     CC=""
3931   else
3932     case $cross_compiling:$ac_tool_warned in
3933 yes:)
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3936 ac_tool_warned=yes ;;
3937 esac
3938     CC=$ac_ct_CC
3939   fi
3940 fi
3941
3942 fi
3943
3944
3945 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3947 as_fn_error $? "no acceptable C compiler found in \$PATH
3948 See \`config.log' for more details" "$LINENO" 5; }
3949
3950 # Provide some information about the compiler.
3951 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3952 set X $ac_compile
3953 ac_compiler=$2
3954 for ac_option in --version -v -V -qversion; do
3955   { { ac_try="$ac_compiler $ac_option >&5"
3956 case "(($ac_try" in
3957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958   *) ac_try_echo=$ac_try;;
3959 esac
3960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3961 $as_echo "$ac_try_echo"; } >&5
3962   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3963   ac_status=$?
3964   if test -s conftest.err; then
3965     sed '10a\
3966 ... rest of stderr output deleted ...
3967          10q' conftest.err >conftest.er1
3968     cat conftest.er1 >&5
3969   fi
3970   rm -f conftest.er1 conftest.err
3971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3972   test $ac_status = 0; }
3973 done
3974
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3976 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3977 if ${ac_cv_c_compiler_gnu+:} false; then :
3978   $as_echo_n "(cached) " >&6
3979 else
3980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981 /* end confdefs.h.  */
3982
3983 int
3984 main ()
3985 {
3986 #ifndef __GNUC__
3987        choke me
3988 #endif
3989
3990   ;
3991   return 0;
3992 }
3993 _ACEOF
3994 if ac_fn_c_try_compile "$LINENO"; then :
3995   ac_compiler_gnu=yes
3996 else
3997   ac_compiler_gnu=no
3998 fi
3999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4000 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4001
4002 fi
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4004 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4005 if test $ac_compiler_gnu = yes; then
4006   GCC=yes
4007 else
4008   GCC=
4009 fi
4010 ac_test_CFLAGS=${CFLAGS+set}
4011 ac_save_CFLAGS=$CFLAGS
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4013 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4014 if ${ac_cv_prog_cc_g+:} false; then :
4015   $as_echo_n "(cached) " >&6
4016 else
4017   ac_save_c_werror_flag=$ac_c_werror_flag
4018    ac_c_werror_flag=yes
4019    ac_cv_prog_cc_g=no
4020    CFLAGS="-g"
4021    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h.  */
4023
4024 int
4025 main ()
4026 {
4027
4028   ;
4029   return 0;
4030 }
4031 _ACEOF
4032 if ac_fn_c_try_compile "$LINENO"; then :
4033   ac_cv_prog_cc_g=yes
4034 else
4035   CFLAGS=""
4036       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h.  */
4038
4039 int
4040 main ()
4041 {
4042
4043   ;
4044   return 0;
4045 }
4046 _ACEOF
4047 if ac_fn_c_try_compile "$LINENO"; then :
4048
4049 else
4050   ac_c_werror_flag=$ac_save_c_werror_flag
4051          CFLAGS="-g"
4052          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h.  */
4054
4055 int
4056 main ()
4057 {
4058
4059   ;
4060   return 0;
4061 }
4062 _ACEOF
4063 if ac_fn_c_try_compile "$LINENO"; then :
4064   ac_cv_prog_cc_g=yes
4065 fi
4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 fi
4068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4069 fi
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071    ac_c_werror_flag=$ac_save_c_werror_flag
4072 fi
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4074 $as_echo "$ac_cv_prog_cc_g" >&6; }
4075 if test "$ac_test_CFLAGS" = set; then
4076   CFLAGS=$ac_save_CFLAGS
4077 elif test $ac_cv_prog_cc_g = yes; then
4078   if test "$GCC" = yes; then
4079     CFLAGS="-g -O2"
4080   else
4081     CFLAGS="-g"
4082   fi
4083 else
4084   if test "$GCC" = yes; then
4085     CFLAGS="-O2"
4086   else
4087     CFLAGS=
4088   fi
4089 fi
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4091 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4092 if ${ac_cv_prog_cc_c89+:} false; then :
4093   $as_echo_n "(cached) " >&6
4094 else
4095   ac_cv_prog_cc_c89=no
4096 ac_save_CC=$CC
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h.  */
4099 #include <stdarg.h>
4100 #include <stdio.h>
4101 #include <sys/types.h>
4102 #include <sys/stat.h>
4103 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4104 struct buf { int x; };
4105 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4106 static char *e (p, i)
4107      char **p;
4108      int i;
4109 {
4110   return p[i];
4111 }
4112 static char *f (char * (*g) (char **, int), char **p, ...)
4113 {
4114   char *s;
4115   va_list v;
4116   va_start (v,p);
4117   s = g (p, va_arg (v,int));
4118   va_end (v);
4119   return s;
4120 }
4121
4122 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4123    function prototypes and stuff, but not '\xHH' hex character constants.
4124    These don't provoke an error unfortunately, instead are silently treated
4125    as 'x'.  The following induces an error, until -std is added to get
4126    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4127    array size at least.  It's necessary to write '\x00'==0 to get something
4128    that's true only with -std.  */
4129 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4130
4131 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4132    inside strings and character constants.  */
4133 #define FOO(x) 'x'
4134 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4135
4136 int test (int i, double x);
4137 struct s1 {int (*f) (int a);};
4138 struct s2 {int (*f) (double a);};
4139 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4140 int argc;
4141 char **argv;
4142 int
4143 main ()
4144 {
4145 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4146   ;
4147   return 0;
4148 }
4149 _ACEOF
4150 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4151         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4152 do
4153   CC="$ac_save_CC $ac_arg"
4154   if ac_fn_c_try_compile "$LINENO"; then :
4155   ac_cv_prog_cc_c89=$ac_arg
4156 fi
4157 rm -f core conftest.err conftest.$ac_objext
4158   test "x$ac_cv_prog_cc_c89" != "xno" && break
4159 done
4160 rm -f conftest.$ac_ext
4161 CC=$ac_save_CC
4162
4163 fi
4164 # AC_CACHE_VAL
4165 case "x$ac_cv_prog_cc_c89" in
4166   x)
4167     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4168 $as_echo "none needed" >&6; } ;;
4169   xno)
4170     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4171 $as_echo "unsupported" >&6; } ;;
4172   *)
4173     CC="$CC $ac_cv_prog_cc_c89"
4174     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4175 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4176 esac
4177 if test "x$ac_cv_prog_cc_c89" != xno; then :
4178
4179 fi
4180
4181 ac_ext=cpp
4182 ac_cpp='$CXXCPP $CPPFLAGS'
4183 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4184 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4185 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4186
4187 depcc="$CC"   am_compiler_list=
4188
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4190 $as_echo_n "checking dependency style of $depcc... " >&6; }
4191 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4192   $as_echo_n "(cached) " >&6
4193 else
4194   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4195   # We make a subdir and do the tests there.  Otherwise we can end up
4196   # making bogus files that we don't know about and never remove.  For
4197   # instance it was reported that on HP-UX the gcc test will end up
4198   # making a dummy file named `D' -- because `-MD' means `put the output
4199   # in D'.
4200   mkdir conftest.dir
4201   # Copy depcomp to subdir because otherwise we won't find it if we're
4202   # using a relative directory.
4203   cp "$am_depcomp" conftest.dir
4204   cd conftest.dir
4205   # We will build objects and dependencies in a subdirectory because
4206   # it helps to detect inapplicable dependency modes.  For instance
4207   # both Tru64's cc and ICC support -MD to output dependencies as a
4208   # side effect of compilation, but ICC will put the dependencies in
4209   # the current directory while Tru64 will put them in the object
4210   # directory.
4211   mkdir sub
4212
4213   am_cv_CC_dependencies_compiler_type=none
4214   if test "$am_compiler_list" = ""; then
4215      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4216   fi
4217   am__universal=false
4218   case " $depcc " in #(
4219      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4220      esac
4221
4222   for depmode in $am_compiler_list; do
4223     # Setup a source with many dependencies, because some compilers
4224     # like to wrap large dependency lists on column 80 (with \), and
4225     # we should not choose a depcomp mode which is confused by this.
4226     #
4227     # We need to recreate these files for each test, as the compiler may
4228     # overwrite some of them when testing with obscure command lines.
4229     # This happens at least with the AIX C compiler.
4230     : > sub/conftest.c
4231     for i in 1 2 3 4 5 6; do
4232       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4233       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4234       # Solaris 8's {/usr,}/bin/sh.
4235       touch sub/conftst$i.h
4236     done
4237     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4238
4239     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4240     # mode.  It turns out that the SunPro C++ compiler does not properly
4241     # handle `-M -o', and we need to detect this.  Also, some Intel
4242     # versions had trouble with output in subdirs
4243     am__obj=sub/conftest.${OBJEXT-o}
4244     am__minus_obj="-o $am__obj"
4245     case $depmode in
4246     gcc)
4247       # This depmode causes a compiler race in universal mode.
4248       test "$am__universal" = false || continue
4249       ;;
4250     nosideeffect)
4251       # after this tag, mechanisms are not by side-effect, so they'll
4252       # only be used when explicitly requested
4253       if test "x$enable_dependency_tracking" = xyes; then
4254         continue
4255       else
4256         break
4257       fi
4258       ;;
4259     msvisualcpp | msvcmsys)
4260       # This compiler won't grok `-c -o', but also, the minuso test has
4261       # not run yet.  These depmodes are late enough in the game, and
4262       # so weak that their functioning should not be impacted.
4263       am__obj=conftest.${OBJEXT-o}
4264       am__minus_obj=
4265       ;;
4266     none) break ;;
4267     esac
4268     if depmode=$depmode \
4269        source=sub/conftest.c object=$am__obj \
4270        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4271        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4272          >/dev/null 2>conftest.err &&
4273        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4274        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4275        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4276        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4277       # icc doesn't choke on unknown options, it will just issue warnings
4278       # or remarks (even with -Werror).  So we grep stderr for any message
4279       # that says an option was ignored or not supported.
4280       # When given -MP, icc 7.0 and 7.1 complain thusly:
4281       #   icc: Command line warning: ignoring option '-M'; no argument required
4282       # The diagnosis changed in icc 8.0:
4283       #   icc: Command line remark: option '-MP' not supported
4284       if (grep 'ignoring option' conftest.err ||
4285           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4286         am_cv_CC_dependencies_compiler_type=$depmode
4287         break
4288       fi
4289     fi
4290   done
4291
4292   cd ..
4293   rm -rf conftest.dir
4294 else
4295   am_cv_CC_dependencies_compiler_type=none
4296 fi
4297
4298 fi
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4300 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4301 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4302
4303  if
4304   test "x$enable_dependency_tracking" != xno \
4305   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4306   am__fastdepCC_TRUE=
4307   am__fastdepCC_FALSE='#'
4308 else
4309   am__fastdepCC_TRUE='#'
4310   am__fastdepCC_FALSE=
4311 fi
4312
4313
4314 case `pwd` in
4315   *\ * | *\     *)
4316     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4317 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4318 esac
4319
4320
4321
4322 macro_version='2.4'
4323 macro_revision='1.3293'
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337 ltmain="$ac_aux_dir/ltmain.sh"
4338
4339 # Make sure we can run config.sub.
4340 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4341   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4342
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4344 $as_echo_n "checking build system type... " >&6; }
4345 if ${ac_cv_build+:} false; then :
4346   $as_echo_n "(cached) " >&6
4347 else
4348   ac_build_alias=$build_alias
4349 test "x$ac_build_alias" = x &&
4350   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4351 test "x$ac_build_alias" = x &&
4352   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4353 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4354   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4355
4356 fi
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4358 $as_echo "$ac_cv_build" >&6; }
4359 case $ac_cv_build in
4360 *-*-*) ;;
4361 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4362 esac
4363 build=$ac_cv_build
4364 ac_save_IFS=$IFS; IFS='-'
4365 set x $ac_cv_build
4366 shift
4367 build_cpu=$1
4368 build_vendor=$2
4369 shift; shift
4370 # Remember, the first character of IFS is used to create $*,
4371 # except with old shells:
4372 build_os=$*
4373 IFS=$ac_save_IFS
4374 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4375
4376
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4378 $as_echo_n "checking host system type... " >&6; }
4379 if ${ac_cv_host+:} false; then :
4380   $as_echo_n "(cached) " >&6
4381 else
4382   if test "x$host_alias" = x; then
4383   ac_cv_host=$ac_cv_build
4384 else
4385   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4386     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4387 fi
4388
4389 fi
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4391 $as_echo "$ac_cv_host" >&6; }
4392 case $ac_cv_host in
4393 *-*-*) ;;
4394 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4395 esac
4396 host=$ac_cv_host
4397 ac_save_IFS=$IFS; IFS='-'
4398 set x $ac_cv_host
4399 shift
4400 host_cpu=$1
4401 host_vendor=$2
4402 shift; shift
4403 # Remember, the first character of IFS is used to create $*,
4404 # except with old shells:
4405 host_os=$*
4406 IFS=$ac_save_IFS
4407 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4408
4409
4410 # Backslashify metacharacters that are still active within
4411 # double-quoted strings.
4412 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4413
4414 # Same as above, but do not quote variable references.
4415 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4416
4417 # Sed substitution to delay expansion of an escaped shell variable in a
4418 # double_quote_subst'ed string.
4419 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4420
4421 # Sed substitution to delay expansion of an escaped single quote.
4422 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4423
4424 # Sed substitution to avoid accidental globbing in evaled expressions
4425 no_glob_subst='s/\*/\\\*/g'
4426
4427 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4428 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4429 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4430
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4432 $as_echo_n "checking how to print strings... " >&6; }
4433 # Test print first, because it will be a builtin if present.
4434 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4435    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4436   ECHO='print -r --'
4437 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4438   ECHO='printf %s\n'
4439 else
4440   # Use this function as a fallback that always works.
4441   func_fallback_echo ()
4442   {
4443     eval 'cat <<_LTECHO_EOF
4444 $1
4445 _LTECHO_EOF'
4446   }
4447   ECHO='func_fallback_echo'
4448 fi
4449
4450 # func_echo_all arg...
4451 # Invoke $ECHO with all args, space-separated.
4452 func_echo_all ()
4453 {
4454     $ECHO ""
4455 }
4456
4457 case "$ECHO" in
4458   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4459 $as_echo "printf" >&6; } ;;
4460   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4461 $as_echo "print -r" >&6; } ;;
4462   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4463 $as_echo "cat" >&6; } ;;
4464 esac
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4480 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4481 if ${ac_cv_path_SED+:} false; then :
4482   $as_echo_n "(cached) " >&6
4483 else
4484             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4485      for ac_i in 1 2 3 4 5 6 7; do
4486        ac_script="$ac_script$as_nl$ac_script"
4487      done
4488      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4489      { ac_script=; unset ac_script;}
4490      if test -z "$SED"; then
4491   ac_path_SED_found=false
4492   # Loop through the user's path and test for each of PROGNAME-LIST
4493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 for as_dir in $PATH
4495 do
4496   IFS=$as_save_IFS
4497   test -z "$as_dir" && as_dir=.
4498     for ac_prog in sed gsed; do
4499     for ac_exec_ext in '' $ac_executable_extensions; do
4500       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4501       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4502 # Check for GNU ac_path_SED and select it if it is found.
4503   # Check for GNU $ac_path_SED
4504 case `"$ac_path_SED" --version 2>&1` in
4505 *GNU*)
4506   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4507 *)
4508   ac_count=0
4509   $as_echo_n 0123456789 >"conftest.in"
4510   while :
4511   do
4512     cat "conftest.in" "conftest.in" >"conftest.tmp"
4513     mv "conftest.tmp" "conftest.in"
4514     cp "conftest.in" "conftest.nl"
4515     $as_echo '' >> "conftest.nl"
4516     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4517     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4518     as_fn_arith $ac_count + 1 && ac_count=$as_val
4519     if test $ac_count -gt ${ac_path_SED_max-0}; then
4520       # Best one so far, save it but keep looking for a better one
4521       ac_cv_path_SED="$ac_path_SED"
4522       ac_path_SED_max=$ac_count
4523     fi
4524     # 10*(2^10) chars as input seems more than enough
4525     test $ac_count -gt 10 && break
4526   done
4527   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4528 esac
4529
4530       $ac_path_SED_found && break 3
4531     done
4532   done
4533   done
4534 IFS=$as_save_IFS
4535   if test -z "$ac_cv_path_SED"; then
4536     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4537   fi
4538 else
4539   ac_cv_path_SED=$SED
4540 fi
4541
4542 fi
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4544 $as_echo "$ac_cv_path_SED" >&6; }
4545  SED="$ac_cv_path_SED"
4546   rm -f conftest.sed
4547
4548 test -z "$SED" && SED=sed
4549 Xsed="$SED -e 1s/^X//"
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4562 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4563 if ${ac_cv_path_GREP+:} false; then :
4564   $as_echo_n "(cached) " >&6
4565 else
4566   if test -z "$GREP"; then
4567   ac_path_GREP_found=false
4568   # Loop through the user's path and test for each of PROGNAME-LIST
4569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4571 do
4572   IFS=$as_save_IFS
4573   test -z "$as_dir" && as_dir=.
4574     for ac_prog in grep ggrep; do
4575     for ac_exec_ext in '' $ac_executable_extensions; do
4576       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4577       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4578 # Check for GNU ac_path_GREP and select it if it is found.
4579   # Check for GNU $ac_path_GREP
4580 case `"$ac_path_GREP" --version 2>&1` in
4581 *GNU*)
4582   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4583 *)
4584   ac_count=0
4585   $as_echo_n 0123456789 >"conftest.in"
4586   while :
4587   do
4588     cat "conftest.in" "conftest.in" >"conftest.tmp"
4589     mv "conftest.tmp" "conftest.in"
4590     cp "conftest.in" "conftest.nl"
4591     $as_echo 'GREP' >> "conftest.nl"
4592     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4593     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4594     as_fn_arith $ac_count + 1 && ac_count=$as_val
4595     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4596       # Best one so far, save it but keep looking for a better one
4597       ac_cv_path_GREP="$ac_path_GREP"
4598       ac_path_GREP_max=$ac_count
4599     fi
4600     # 10*(2^10) chars as input seems more than enough
4601     test $ac_count -gt 10 && break
4602   done
4603   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4604 esac
4605
4606       $ac_path_GREP_found && break 3
4607     done
4608   done
4609   done
4610 IFS=$as_save_IFS
4611   if test -z "$ac_cv_path_GREP"; then
4612     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4613   fi
4614 else
4615   ac_cv_path_GREP=$GREP
4616 fi
4617
4618 fi
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4620 $as_echo "$ac_cv_path_GREP" >&6; }
4621  GREP="$ac_cv_path_GREP"
4622
4623
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4625 $as_echo_n "checking for egrep... " >&6; }
4626 if ${ac_cv_path_EGREP+:} false; then :
4627   $as_echo_n "(cached) " >&6
4628 else
4629   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4630    then ac_cv_path_EGREP="$GREP -E"
4631    else
4632      if test -z "$EGREP"; then
4633   ac_path_EGREP_found=false
4634   # Loop through the user's path and test for each of PROGNAME-LIST
4635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4637 do
4638   IFS=$as_save_IFS
4639   test -z "$as_dir" && as_dir=.
4640     for ac_prog in egrep; do
4641     for ac_exec_ext in '' $ac_executable_extensions; do
4642       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4643       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4644 # Check for GNU ac_path_EGREP and select it if it is found.
4645   # Check for GNU $ac_path_EGREP
4646 case `"$ac_path_EGREP" --version 2>&1` in
4647 *GNU*)
4648   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4649 *)
4650   ac_count=0
4651   $as_echo_n 0123456789 >"conftest.in"
4652   while :
4653   do
4654     cat "conftest.in" "conftest.in" >"conftest.tmp"
4655     mv "conftest.tmp" "conftest.in"
4656     cp "conftest.in" "conftest.nl"
4657     $as_echo 'EGREP' >> "conftest.nl"
4658     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4659     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4660     as_fn_arith $ac_count + 1 && ac_count=$as_val
4661     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4662       # Best one so far, save it but keep looking for a better one
4663       ac_cv_path_EGREP="$ac_path_EGREP"
4664       ac_path_EGREP_max=$ac_count
4665     fi
4666     # 10*(2^10) chars as input seems more than enough
4667     test $ac_count -gt 10 && break
4668   done
4669   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4670 esac
4671
4672       $ac_path_EGREP_found && break 3
4673     done
4674   done
4675   done
4676 IFS=$as_save_IFS
4677   if test -z "$ac_cv_path_EGREP"; then
4678     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4679   fi
4680 else
4681   ac_cv_path_EGREP=$EGREP
4682 fi
4683
4684    fi
4685 fi
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4687 $as_echo "$ac_cv_path_EGREP" >&6; }
4688  EGREP="$ac_cv_path_EGREP"
4689
4690
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4692 $as_echo_n "checking for fgrep... " >&6; }
4693 if ${ac_cv_path_FGREP+:} false; then :
4694   $as_echo_n "(cached) " >&6
4695 else
4696   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4697    then ac_cv_path_FGREP="$GREP -F"
4698    else
4699      if test -z "$FGREP"; then
4700   ac_path_FGREP_found=false
4701   # Loop through the user's path and test for each of PROGNAME-LIST
4702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4704 do
4705   IFS=$as_save_IFS
4706   test -z "$as_dir" && as_dir=.
4707     for ac_prog in fgrep; do
4708     for ac_exec_ext in '' $ac_executable_extensions; do
4709       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4710       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4711 # Check for GNU ac_path_FGREP and select it if it is found.
4712   # Check for GNU $ac_path_FGREP
4713 case `"$ac_path_FGREP" --version 2>&1` in
4714 *GNU*)
4715   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4716 *)
4717   ac_count=0
4718   $as_echo_n 0123456789 >"conftest.in"
4719   while :
4720   do
4721     cat "conftest.in" "conftest.in" >"conftest.tmp"
4722     mv "conftest.tmp" "conftest.in"
4723     cp "conftest.in" "conftest.nl"
4724     $as_echo 'FGREP' >> "conftest.nl"
4725     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4726     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4727     as_fn_arith $ac_count + 1 && ac_count=$as_val
4728     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4729       # Best one so far, save it but keep looking for a better one
4730       ac_cv_path_FGREP="$ac_path_FGREP"
4731       ac_path_FGREP_max=$ac_count
4732     fi
4733     # 10*(2^10) chars as input seems more than enough
4734     test $ac_count -gt 10 && break
4735   done
4736   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4737 esac
4738
4739       $ac_path_FGREP_found && break 3
4740     done
4741   done
4742   done
4743 IFS=$as_save_IFS
4744   if test -z "$ac_cv_path_FGREP"; then
4745     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4746   fi
4747 else
4748   ac_cv_path_FGREP=$FGREP
4749 fi
4750
4751    fi
4752 fi
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4754 $as_echo "$ac_cv_path_FGREP" >&6; }
4755  FGREP="$ac_cv_path_FGREP"
4756
4757
4758 test -z "$GREP" && GREP=grep
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778 # Check whether --with-gnu-ld was given.
4779 if test "${with_gnu_ld+set}" = set; then :
4780   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4781 else
4782   with_gnu_ld=no
4783 fi
4784
4785 ac_prog=ld
4786 if test "$GCC" = yes; then
4787   # Check if gcc -print-prog-name=ld gives a path.
4788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4789 $as_echo_n "checking for ld used by $CC... " >&6; }
4790   case $host in
4791   *-*-mingw*)
4792     # gcc leaves a trailing carriage return which upsets mingw
4793     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4794   *)
4795     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4796   esac
4797   case $ac_prog in
4798     # Accept absolute paths.
4799     [\\/]* | ?:[\\/]*)
4800       re_direlt='/[^/][^/]*/\.\./'
4801       # Canonicalize the pathname of ld
4802       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4803       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4804         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4805       done
4806       test -z "$LD" && LD="$ac_prog"
4807       ;;
4808   "")
4809     # If it fails, then pretend we aren't using GCC.
4810     ac_prog=ld
4811     ;;
4812   *)
4813     # If it is relative, then search for the first ld in PATH.
4814     with_gnu_ld=unknown
4815     ;;
4816   esac
4817 elif test "$with_gnu_ld" = yes; then
4818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4819 $as_echo_n "checking for GNU ld... " >&6; }
4820 else
4821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4822 $as_echo_n "checking for non-GNU ld... " >&6; }
4823 fi
4824 if ${lt_cv_path_LD+:} false; then :
4825   $as_echo_n "(cached) " >&6
4826 else
4827   if test -z "$LD"; then
4828   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4829   for ac_dir in $PATH; do
4830     IFS="$lt_save_ifs"
4831     test -z "$ac_dir" && ac_dir=.
4832     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4833       lt_cv_path_LD="$ac_dir/$ac_prog"
4834       # Check to see if the program is GNU ld.  I'd rather use --version,
4835       # but apparently some variants of GNU ld only accept -v.
4836       # Break only if it was the GNU/non-GNU ld that we prefer.
4837       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4838       *GNU* | *'with BFD'*)
4839         test "$with_gnu_ld" != no && break
4840         ;;
4841       *)
4842         test "$with_gnu_ld" != yes && break
4843         ;;
4844       esac
4845     fi
4846   done
4847   IFS="$lt_save_ifs"
4848 else
4849   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4850 fi
4851 fi
4852
4853 LD="$lt_cv_path_LD"
4854 if test -n "$LD"; then
4855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4856 $as_echo "$LD" >&6; }
4857 else
4858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4860 fi
4861 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4863 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4864 if ${lt_cv_prog_gnu_ld+:} false; then :
4865   $as_echo_n "(cached) " >&6
4866 else
4867   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4868 case `$LD -v 2>&1 </dev/null` in
4869 *GNU* | *'with BFD'*)
4870   lt_cv_prog_gnu_ld=yes
4871   ;;
4872 *)
4873   lt_cv_prog_gnu_ld=no
4874   ;;
4875 esac
4876 fi
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4878 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4879 with_gnu_ld=$lt_cv_prog_gnu_ld
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4890 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4891 if ${lt_cv_path_NM+:} false; then :
4892   $as_echo_n "(cached) " >&6
4893 else
4894   if test -n "$NM"; then
4895   # Let the user override the test.
4896   lt_cv_path_NM="$NM"
4897 else
4898   lt_nm_to_check="${ac_tool_prefix}nm"
4899   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4900     lt_nm_to_check="$lt_nm_to_check nm"
4901   fi
4902   for lt_tmp_nm in $lt_nm_to_check; do
4903     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4904     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4905       IFS="$lt_save_ifs"
4906       test -z "$ac_dir" && ac_dir=.
4907       tmp_nm="$ac_dir/$lt_tmp_nm"
4908       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4909         # Check to see if the nm accepts a BSD-compat flag.
4910         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4911         #   nm: unknown option "B" ignored
4912         # Tru64's nm complains that /dev/null is an invalid object file
4913         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4914         */dev/null* | *'Invalid file or object type'*)
4915           lt_cv_path_NM="$tmp_nm -B"
4916           break
4917           ;;
4918         *)
4919           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4920           */dev/null*)
4921             lt_cv_path_NM="$tmp_nm -p"
4922             break
4923             ;;
4924           *)
4925             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4926             continue # so that we can try to find one that supports BSD flags
4927             ;;
4928           esac
4929           ;;
4930         esac
4931       fi
4932     done
4933     IFS="$lt_save_ifs"
4934   done
4935   : ${lt_cv_path_NM=no}
4936 fi
4937 fi
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4939 $as_echo "$lt_cv_path_NM" >&6; }
4940 if test "$lt_cv_path_NM" != "no"; then
4941   NM="$lt_cv_path_NM"
4942 else
4943   # Didn't find any BSD compatible name lister, look for dumpbin.
4944   if test -n "$DUMPBIN"; then :
4945     # Let the user override the test.
4946   else
4947     if test -n "$ac_tool_prefix"; then
4948   for ac_prog in dumpbin "link -dump"
4949   do
4950     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4951 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if ${ac_cv_prog_DUMPBIN+:} false; then :
4955   $as_echo_n "(cached) " >&6
4956 else
4957   if test -n "$DUMPBIN"; then
4958   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4959 else
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4962 do
4963   IFS=$as_save_IFS
4964   test -z "$as_dir" && as_dir=.
4965     for ac_exec_ext in '' $ac_executable_extensions; do
4966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4967     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4969     break 2
4970   fi
4971 done
4972   done
4973 IFS=$as_save_IFS
4974
4975 fi
4976 fi
4977 DUMPBIN=$ac_cv_prog_DUMPBIN
4978 if test -n "$DUMPBIN"; then
4979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4980 $as_echo "$DUMPBIN" >&6; }
4981 else
4982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4984 fi
4985
4986
4987     test -n "$DUMPBIN" && break
4988   done
4989 fi
4990 if test -z "$DUMPBIN"; then
4991   ac_ct_DUMPBIN=$DUMPBIN
4992   for ac_prog in dumpbin "link -dump"
4993 do
4994   # Extract the first word of "$ac_prog", so it can be a program name with args.
4995 set dummy $ac_prog; ac_word=$2
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997 $as_echo_n "checking for $ac_word... " >&6; }
4998 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4999   $as_echo_n "(cached) " >&6
5000 else
5001   if test -n "$ac_ct_DUMPBIN"; then
5002   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5003 else
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 for as_dir in $PATH
5006 do
5007   IFS=$as_save_IFS
5008   test -z "$as_dir" && as_dir=.
5009     for ac_exec_ext in '' $ac_executable_extensions; do
5010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5011     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5013     break 2
5014   fi
5015 done
5016   done
5017 IFS=$as_save_IFS
5018
5019 fi
5020 fi
5021 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5022 if test -n "$ac_ct_DUMPBIN"; then
5023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5024 $as_echo "$ac_ct_DUMPBIN" >&6; }
5025 else
5026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027 $as_echo "no" >&6; }
5028 fi
5029
5030
5031   test -n "$ac_ct_DUMPBIN" && break
5032 done
5033
5034   if test "x$ac_ct_DUMPBIN" = x; then
5035     DUMPBIN=":"
5036   else
5037     case $cross_compiling:$ac_tool_warned in
5038 yes:)
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5041 ac_tool_warned=yes ;;
5042 esac
5043     DUMPBIN=$ac_ct_DUMPBIN
5044   fi
5045 fi
5046
5047     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5048     *COFF*)
5049       DUMPBIN="$DUMPBIN -symbols"
5050       ;;
5051     *)
5052       DUMPBIN=:
5053       ;;
5054     esac
5055   fi
5056
5057   if test "$DUMPBIN" != ":"; then
5058     NM="$DUMPBIN"
5059   fi
5060 fi
5061 test -z "$NM" && NM=nm
5062
5063
5064
5065
5066
5067
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5069 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5070 if ${lt_cv_nm_interface+:} false; then :
5071   $as_echo_n "(cached) " >&6
5072 else
5073   lt_cv_nm_interface="BSD nm"
5074   echo "int some_variable = 0;" > conftest.$ac_ext
5075   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5076   (eval "$ac_compile" 2>conftest.err)
5077   cat conftest.err >&5
5078   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5079   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5080   cat conftest.err >&5
5081   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5082   cat conftest.out >&5
5083   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5084     lt_cv_nm_interface="MS dumpbin"
5085   fi
5086   rm -f conftest*
5087 fi
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5089 $as_echo "$lt_cv_nm_interface" >&6; }
5090
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5092 $as_echo_n "checking whether ln -s works... " >&6; }
5093 LN_S=$as_ln_s
5094 if test "$LN_S" = "ln -s"; then
5095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5096 $as_echo "yes" >&6; }
5097 else
5098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5099 $as_echo "no, using $LN_S" >&6; }
5100 fi
5101
5102 # find the maximum length of command line arguments
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5104 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5105 if ${lt_cv_sys_max_cmd_len+:} false; then :
5106   $as_echo_n "(cached) " >&6
5107 else
5108     i=0
5109   teststring="ABCD"
5110
5111   case $build_os in
5112   msdosdjgpp*)
5113     # On DJGPP, this test can blow up pretty badly due to problems in libc
5114     # (any single argument exceeding 2000 bytes causes a buffer overrun
5115     # during glob expansion).  Even if it were fixed, the result of this
5116     # check would be larger than it should be.
5117     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5118     ;;
5119
5120   gnu*)
5121     # Under GNU Hurd, this test is not required because there is
5122     # no limit to the length of command line arguments.
5123     # Libtool will interpret -1 as no limit whatsoever
5124     lt_cv_sys_max_cmd_len=-1;
5125     ;;
5126
5127   cygwin* | mingw* | cegcc*)
5128     # On Win9x/ME, this test blows up -- it succeeds, but takes
5129     # about 5 minutes as the teststring grows exponentially.
5130     # Worse, since 9x/ME are not pre-emptively multitasking,
5131     # you end up with a "frozen" computer, even though with patience
5132     # the test eventually succeeds (with a max line length of 256k).
5133     # Instead, let's just punt: use the minimum linelength reported by
5134     # all of the supported platforms: 8192 (on NT/2K/XP).
5135     lt_cv_sys_max_cmd_len=8192;
5136     ;;
5137
5138   mint*)
5139     # On MiNT this can take a long time and run out of memory.
5140     lt_cv_sys_max_cmd_len=8192;
5141     ;;
5142
5143   amigaos*)
5144     # On AmigaOS with pdksh, this test takes hours, literally.
5145     # So we just punt and use a minimum line length of 8192.
5146     lt_cv_sys_max_cmd_len=8192;
5147     ;;
5148
5149   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5150     # This has been around since 386BSD, at least.  Likely further.
5151     if test -x /sbin/sysctl; then
5152       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5153     elif test -x /usr/sbin/sysctl; then
5154       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5155     else
5156       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5157     fi
5158     # And add a safety zone
5159     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5160     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5161     ;;
5162
5163   interix*)
5164     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5165     lt_cv_sys_max_cmd_len=196608
5166     ;;
5167
5168   osf*)
5169     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5170     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5171     # nice to cause kernel panics so lets avoid the loop below.
5172     # First set a reasonable default.
5173     lt_cv_sys_max_cmd_len=16384
5174     #
5175     if test -x /sbin/sysconfig; then
5176       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5177         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5178       esac
5179     fi
5180     ;;
5181   sco3.2v5*)
5182     lt_cv_sys_max_cmd_len=102400
5183     ;;
5184   sysv5* | sco5v6* | sysv4.2uw2*)
5185     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5186     if test -n "$kargmax"; then
5187       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5188     else
5189       lt_cv_sys_max_cmd_len=32768
5190     fi
5191     ;;
5192   *)
5193     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5194     if test -n "$lt_cv_sys_max_cmd_len"; then
5195       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5196       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5197     else
5198       # Make teststring a little bigger before we do anything with it.
5199       # a 1K string should be a reasonable start.
5200       for i in 1 2 3 4 5 6 7 8 ; do
5201         teststring=$teststring$teststring
5202       done
5203       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5204       # If test is not a shell built-in, we'll probably end up computing a
5205       # maximum length that is only half of the actual maximum length, but
5206       # we can't tell.
5207       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5208                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5209               test $i != 17 # 1/2 MB should be enough
5210       do
5211         i=`expr $i + 1`
5212         teststring=$teststring$teststring
5213       done
5214       # Only check the string length outside the loop.
5215       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5216       teststring=
5217       # Add a significant safety factor because C++ compilers can tack on
5218       # massive amounts of additional arguments before passing them to the
5219       # linker.  It appears as though 1/2 is a usable value.
5220       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5221     fi
5222     ;;
5223   esac
5224
5225 fi
5226
5227 if test -n $lt_cv_sys_max_cmd_len ; then
5228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5229 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5230 else
5231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5232 $as_echo "none" >&6; }
5233 fi
5234 max_cmd_len=$lt_cv_sys_max_cmd_len
5235
5236
5237
5238
5239
5240
5241 : ${CP="cp -f"}
5242 : ${MV="mv -f"}
5243 : ${RM="rm -f"}
5244
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5246 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5247 # Try some XSI features
5248 xsi_shell=no
5249 ( _lt_dummy="a/b/c"
5250   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5251       = c,a/b,b/c, \
5252     && eval 'test $(( 1 + 1 )) -eq 2 \
5253     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5254   && xsi_shell=yes
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5256 $as_echo "$xsi_shell" >&6; }
5257
5258
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5260 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5261 lt_shell_append=no
5262 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5263     >/dev/null 2>&1 \
5264   && lt_shell_append=yes
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5266 $as_echo "$lt_shell_append" >&6; }
5267
5268
5269 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5270   lt_unset=unset
5271 else
5272   lt_unset=false
5273 fi
5274
5275
5276
5277
5278
5279 # test EBCDIC or ASCII
5280 case `echo X|tr X '\101'` in
5281  A) # ASCII based system
5282     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5283   lt_SP2NL='tr \040 \012'
5284   lt_NL2SP='tr \015\012 \040\040'
5285   ;;
5286  *) # EBCDIC based system
5287   lt_SP2NL='tr \100 \n'
5288   lt_NL2SP='tr \r\n \100\100'
5289   ;;
5290 esac
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5301 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5302 if ${lt_cv_to_host_file_cmd+:} false; then :
5303   $as_echo_n "(cached) " >&6
5304 else
5305   case $host in
5306   *-*-mingw* )
5307     case $build in
5308       *-*-mingw* ) # actually msys
5309         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5310         ;;
5311       *-*-cygwin* )
5312         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5313         ;;
5314       * ) # otherwise, assume *nix
5315         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5316         ;;
5317     esac
5318     ;;
5319   *-*-cygwin* )
5320     case $build in
5321       *-*-mingw* ) # actually msys
5322         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5323         ;;
5324       *-*-cygwin* )
5325         lt_cv_to_host_file_cmd=func_convert_file_noop
5326         ;;
5327       * ) # otherwise, assume *nix
5328         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5329         ;;
5330     esac
5331     ;;
5332   * ) # unhandled hosts (and "normal" native builds)
5333     lt_cv_to_host_file_cmd=func_convert_file_noop
5334     ;;
5335 esac
5336
5337 fi
5338
5339 to_host_file_cmd=$lt_cv_to_host_file_cmd
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5341 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5342
5343
5344
5345
5346
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5348 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5349 if ${lt_cv_to_tool_file_cmd+:} false; then :
5350   $as_echo_n "(cached) " >&6
5351 else
5352   #assume ordinary cross tools, or native build.
5353 lt_cv_to_tool_file_cmd=func_convert_file_noop
5354 case $host in
5355   *-*-mingw* )
5356     case $build in
5357       *-*-mingw* ) # actually msys
5358         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5359         ;;
5360     esac
5361     ;;
5362 esac
5363
5364 fi
5365
5366 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5368 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5369
5370
5371
5372
5373
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5375 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5376 if ${lt_cv_ld_reload_flag+:} false; then :
5377   $as_echo_n "(cached) " >&6
5378 else
5379   lt_cv_ld_reload_flag='-r'
5380 fi
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5382 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5383 reload_flag=$lt_cv_ld_reload_flag
5384 case $reload_flag in
5385 "" | " "*) ;;
5386 *) reload_flag=" $reload_flag" ;;
5387 esac
5388 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5389 case $host_os in
5390   cygwin* | mingw* | pw32* | cegcc*)
5391     if test "$GCC" != yes; then
5392       reload_cmds=false
5393     fi
5394     ;;
5395   darwin*)
5396     if test "$GCC" = yes; then
5397       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5398     else
5399       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5400     fi
5401     ;;
5402 esac
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412 if test -n "$ac_tool_prefix"; then
5413   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5414 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5416 $as_echo_n "checking for $ac_word... " >&6; }
5417 if ${ac_cv_prog_OBJDUMP+:} false; then :
5418   $as_echo_n "(cached) " >&6
5419 else
5420   if test -n "$OBJDUMP"; then
5421   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5422 else
5423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424 for as_dir in $PATH
5425 do
5426   IFS=$as_save_IFS
5427   test -z "$as_dir" && as_dir=.
5428     for ac_exec_ext in '' $ac_executable_extensions; do
5429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5430     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5432     break 2
5433   fi
5434 done
5435   done
5436 IFS=$as_save_IFS
5437
5438 fi
5439 fi
5440 OBJDUMP=$ac_cv_prog_OBJDUMP
5441 if test -n "$OBJDUMP"; then
5442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5443 $as_echo "$OBJDUMP" >&6; }
5444 else
5445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 $as_echo "no" >&6; }
5447 fi
5448
5449
5450 fi
5451 if test -z "$ac_cv_prog_OBJDUMP"; then
5452   ac_ct_OBJDUMP=$OBJDUMP
5453   # Extract the first word of "objdump", so it can be a program name with args.
5454 set dummy objdump; ac_word=$2
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5456 $as_echo_n "checking for $ac_word... " >&6; }
5457 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5458   $as_echo_n "(cached) " >&6
5459 else
5460   if test -n "$ac_ct_OBJDUMP"; then
5461   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5462 else
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH
5465 do
5466   IFS=$as_save_IFS
5467   test -z "$as_dir" && as_dir=.
5468     for ac_exec_ext in '' $ac_executable_extensions; do
5469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5470     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5472     break 2
5473   fi
5474 done
5475   done
5476 IFS=$as_save_IFS
5477
5478 fi
5479 fi
5480 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5481 if test -n "$ac_ct_OBJDUMP"; then
5482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5483 $as_echo "$ac_ct_OBJDUMP" >&6; }
5484 else
5485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486 $as_echo "no" >&6; }
5487 fi
5488
5489   if test "x$ac_ct_OBJDUMP" = x; then
5490     OBJDUMP="false"
5491   else
5492     case $cross_compiling:$ac_tool_warned in
5493 yes:)
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5496 ac_tool_warned=yes ;;
5497 esac
5498     OBJDUMP=$ac_ct_OBJDUMP
5499   fi
5500 else
5501   OBJDUMP="$ac_cv_prog_OBJDUMP"
5502 fi
5503
5504 test -z "$OBJDUMP" && OBJDUMP=objdump
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5515 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5516 if ${lt_cv_deplibs_check_method+:} false; then :
5517   $as_echo_n "(cached) " >&6
5518 else
5519   lt_cv_file_magic_cmd='$MAGIC_CMD'
5520 lt_cv_file_magic_test_file=
5521 lt_cv_deplibs_check_method='unknown'
5522 # Need to set the preceding variable on all platforms that support
5523 # interlibrary dependencies.
5524 # 'none' -- dependencies not supported.
5525 # `unknown' -- same as none, but documents that we really don't know.
5526 # 'pass_all' -- all dependencies passed with no checks.
5527 # 'test_compile' -- check by making test program.
5528 # 'file_magic [[regex]]' -- check by looking for files in library path
5529 # which responds to the $file_magic_cmd with a given extended regex.
5530 # If you have `file' or equivalent on your system and you're not sure
5531 # whether `pass_all' will *always* work, you probably want this one.
5532
5533 case $host_os in
5534 aix[4-9]*)
5535   lt_cv_deplibs_check_method=pass_all
5536   ;;
5537
5538 beos*)
5539   lt_cv_deplibs_check_method=pass_all
5540   ;;
5541
5542 bsdi[45]*)
5543   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5544   lt_cv_file_magic_cmd='/usr/bin/file -L'
5545   lt_cv_file_magic_test_file=/shlib/libc.so
5546   ;;
5547
5548 cygwin*)
5549   # func_win32_libid is a shell function defined in ltmain.sh
5550   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5551   lt_cv_file_magic_cmd='func_win32_libid'
5552   ;;
5553
5554 mingw* | pw32*)
5555   # Base MSYS/MinGW do not provide the 'file' command needed by
5556   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5557   # unless we find 'file', for example because we are cross-compiling.
5558   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5559   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5560     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5561     lt_cv_file_magic_cmd='func_win32_libid'
5562   else
5563     # Keep this pattern in sync with the one in func_win32_libid.
5564     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5565     lt_cv_file_magic_cmd='$OBJDUMP -f'
5566   fi
5567   ;;
5568
5569 cegcc*)
5570   # use the weaker test based on 'objdump'. See mingw*.
5571   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5572   lt_cv_file_magic_cmd='$OBJDUMP -f'
5573   ;;
5574
5575 darwin* | rhapsody*)
5576   lt_cv_deplibs_check_method=pass_all
5577   ;;
5578
5579 freebsd* | dragonfly*)
5580   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5581     case $host_cpu in
5582     i*86 )
5583       # Not sure whether the presence of OpenBSD here was a mistake.
5584       # Let's accept both of them until this is cleared up.
5585       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5586       lt_cv_file_magic_cmd=/usr/bin/file
5587       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5588       ;;
5589     esac
5590   else
5591     lt_cv_deplibs_check_method=pass_all
5592   fi
5593   ;;
5594
5595 gnu*)
5596   lt_cv_deplibs_check_method=pass_all
5597   ;;
5598
5599 haiku*)
5600   lt_cv_deplibs_check_method=pass_all
5601   ;;
5602
5603 hpux10.20* | hpux11*)
5604   lt_cv_file_magic_cmd=/usr/bin/file
5605   case $host_cpu in
5606   ia64*)
5607     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5608     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5609     ;;
5610   hppa*64*)
5611     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]'
5612     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5613     ;;
5614   *)
5615     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5616     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5617     ;;
5618   esac
5619   ;;
5620
5621 interix[3-9]*)
5622   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5623   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5624   ;;
5625
5626 irix5* | irix6* | nonstopux*)
5627   case $LD in
5628   *-32|*"-32 ") libmagic=32-bit;;
5629   *-n32|*"-n32 ") libmagic=N32;;
5630   *-64|*"-64 ") libmagic=64-bit;;
5631   *) libmagic=never-match;;
5632   esac
5633   lt_cv_deplibs_check_method=pass_all
5634   ;;
5635
5636 # This must be Linux ELF.
5637 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5638   lt_cv_deplibs_check_method=pass_all
5639   ;;
5640
5641 netbsd* | netbsdelf*-gnu)
5642   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5643     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5644   else
5645     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5646   fi
5647   ;;
5648
5649 newos6*)
5650   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5651   lt_cv_file_magic_cmd=/usr/bin/file
5652   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5653   ;;
5654
5655 *nto* | *qnx*)
5656   lt_cv_deplibs_check_method=pass_all
5657   ;;
5658
5659 openbsd*)
5660   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5661     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5662   else
5663     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5664   fi
5665   ;;
5666
5667 osf3* | osf4* | osf5*)
5668   lt_cv_deplibs_check_method=pass_all
5669   ;;
5670
5671 rdos*)
5672   lt_cv_deplibs_check_method=pass_all
5673   ;;
5674
5675 solaris*)
5676   lt_cv_deplibs_check_method=pass_all
5677   ;;
5678
5679 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5680   lt_cv_deplibs_check_method=pass_all
5681   ;;
5682
5683 sysv4 | sysv4.3*)
5684   case $host_vendor in
5685   motorola)
5686     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]'
5687     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5688     ;;
5689   ncr)
5690     lt_cv_deplibs_check_method=pass_all
5691     ;;
5692   sequent)
5693     lt_cv_file_magic_cmd='/bin/file'
5694     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5695     ;;
5696   sni)
5697     lt_cv_file_magic_cmd='/bin/file'
5698     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5699     lt_cv_file_magic_test_file=/lib/libc.so
5700     ;;
5701   siemens)
5702     lt_cv_deplibs_check_method=pass_all
5703     ;;
5704   pc)
5705     lt_cv_deplibs_check_method=pass_all
5706     ;;
5707   esac
5708   ;;
5709
5710 tpf*)
5711   lt_cv_deplibs_check_method=pass_all
5712   ;;
5713 esac
5714
5715 fi
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5717 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5718
5719 file_magic_glob=
5720 want_nocaseglob=no
5721 if test "$build" = "$host"; then
5722   case $host_os in
5723   mingw* | pw32*)
5724     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5725       want_nocaseglob=yes
5726     else
5727       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5728     fi
5729     ;;
5730   esac
5731 fi
5732
5733 file_magic_cmd=$lt_cv_file_magic_cmd
5734 deplibs_check_method=$lt_cv_deplibs_check_method
5735 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758 if test -n "$ac_tool_prefix"; then
5759   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5760 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762 $as_echo_n "checking for $ac_word... " >&6; }
5763 if ${ac_cv_prog_DLLTOOL+:} false; then :
5764   $as_echo_n "(cached) " >&6
5765 else
5766   if test -n "$DLLTOOL"; then
5767   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5768 else
5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 for as_dir in $PATH
5771 do
5772   IFS=$as_save_IFS
5773   test -z "$as_dir" && as_dir=.
5774     for ac_exec_ext in '' $ac_executable_extensions; do
5775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5776     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5778     break 2
5779   fi
5780 done
5781   done
5782 IFS=$as_save_IFS
5783
5784 fi
5785 fi
5786 DLLTOOL=$ac_cv_prog_DLLTOOL
5787 if test -n "$DLLTOOL"; then
5788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5789 $as_echo "$DLLTOOL" >&6; }
5790 else
5791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5793 fi
5794
5795
5796 fi
5797 if test -z "$ac_cv_prog_DLLTOOL"; then
5798   ac_ct_DLLTOOL=$DLLTOOL
5799   # Extract the first word of "dlltool", so it can be a program name with args.
5800 set dummy dlltool; ac_word=$2
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802 $as_echo_n "checking for $ac_word... " >&6; }
5803 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5804   $as_echo_n "(cached) " >&6
5805 else
5806   if test -n "$ac_ct_DLLTOOL"; then
5807   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5808 else
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 for as_dir in $PATH
5811 do
5812   IFS=$as_save_IFS
5813   test -z "$as_dir" && as_dir=.
5814     for ac_exec_ext in '' $ac_executable_extensions; do
5815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5816     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5818     break 2
5819   fi
5820 done
5821   done
5822 IFS=$as_save_IFS
5823
5824 fi
5825 fi
5826 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5827 if test -n "$ac_ct_DLLTOOL"; then
5828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5829 $as_echo "$ac_ct_DLLTOOL" >&6; }
5830 else
5831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832 $as_echo "no" >&6; }
5833 fi
5834
5835   if test "x$ac_ct_DLLTOOL" = x; then
5836     DLLTOOL="false"
5837   else
5838     case $cross_compiling:$ac_tool_warned in
5839 yes:)
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5842 ac_tool_warned=yes ;;
5843 esac
5844     DLLTOOL=$ac_ct_DLLTOOL
5845   fi
5846 else
5847   DLLTOOL="$ac_cv_prog_DLLTOOL"
5848 fi
5849
5850 test -z "$DLLTOOL" && DLLTOOL=dlltool
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5862 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5863 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5864   $as_echo_n "(cached) " >&6
5865 else
5866   lt_cv_sharedlib_from_linklib_cmd='unknown'
5867
5868 case $host_os in
5869 cygwin* | mingw* | pw32* | cegcc*)
5870   # two different shell functions defined in ltmain.sh
5871   # decide which to use based on capabilities of $DLLTOOL
5872   case `$DLLTOOL --help 2>&1` in
5873   *--identify-strict*)
5874     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5875     ;;
5876   *)
5877     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5878     ;;
5879   esac
5880   ;;
5881 *)
5882   # fallback: assume linklib IS sharedlib
5883   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5884   ;;
5885 esac
5886
5887 fi
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5889 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5890 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5891 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5892
5893
5894
5895
5896
5897
5898
5899
5900 if test -n "$ac_tool_prefix"; then
5901   for ac_prog in ar
5902   do
5903     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5904 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5906 $as_echo_n "checking for $ac_word... " >&6; }
5907 if ${ac_cv_prog_AR+:} false; then :
5908   $as_echo_n "(cached) " >&6
5909 else
5910   if test -n "$AR"; then
5911   ac_cv_prog_AR="$AR" # Let the user override the test.
5912 else
5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 for as_dir in $PATH
5915 do
5916   IFS=$as_save_IFS
5917   test -z "$as_dir" && as_dir=.
5918     for ac_exec_ext in '' $ac_executable_extensions; do
5919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5920     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5922     break 2
5923   fi
5924 done
5925   done
5926 IFS=$as_save_IFS
5927
5928 fi
5929 fi
5930 AR=$ac_cv_prog_AR
5931 if test -n "$AR"; then
5932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5933 $as_echo "$AR" >&6; }
5934 else
5935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936 $as_echo "no" >&6; }
5937 fi
5938
5939
5940     test -n "$AR" && break
5941   done
5942 fi
5943 if test -z "$AR"; then
5944   ac_ct_AR=$AR
5945   for ac_prog in ar
5946 do
5947   # Extract the first word of "$ac_prog", so it can be a program name with args.
5948 set dummy $ac_prog; ac_word=$2
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5950 $as_echo_n "checking for $ac_word... " >&6; }
5951 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5952   $as_echo_n "(cached) " >&6
5953 else
5954   if test -n "$ac_ct_AR"; then
5955   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5956 else
5957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958 for as_dir in $PATH
5959 do
5960   IFS=$as_save_IFS
5961   test -z "$as_dir" && as_dir=.
5962     for ac_exec_ext in '' $ac_executable_extensions; do
5963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5964     ac_cv_prog_ac_ct_AR="$ac_prog"
5965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5966     break 2
5967   fi
5968 done
5969   done
5970 IFS=$as_save_IFS
5971
5972 fi
5973 fi
5974 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5975 if test -n "$ac_ct_AR"; then
5976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5977 $as_echo "$ac_ct_AR" >&6; }
5978 else
5979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980 $as_echo "no" >&6; }
5981 fi
5982
5983
5984   test -n "$ac_ct_AR" && break
5985 done
5986
5987   if test "x$ac_ct_AR" = x; then
5988     AR="false"
5989   else
5990     case $cross_compiling:$ac_tool_warned in
5991 yes:)
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5994 ac_tool_warned=yes ;;
5995 esac
5996     AR=$ac_ct_AR
5997   fi
5998 fi
5999
6000 : ${AR=ar}
6001 : ${AR_FLAGS=cru}
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6014 $as_echo_n "checking for archiver @FILE support... " >&6; }
6015 if ${lt_cv_ar_at_file+:} false; then :
6016   $as_echo_n "(cached) " >&6
6017 else
6018   lt_cv_ar_at_file=no
6019    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020 /* end confdefs.h.  */
6021
6022 int
6023 main ()
6024 {
6025
6026   ;
6027   return 0;
6028 }
6029 _ACEOF
6030 if ac_fn_cxx_try_compile "$LINENO"; then :
6031   echo conftest.$ac_objext > conftest.lst
6032       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6033       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6034   (eval $lt_ar_try) 2>&5
6035   ac_status=$?
6036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6037   test $ac_status = 0; }
6038       if test "$ac_status" -eq 0; then
6039         # Ensure the archiver fails upon bogus file names.
6040         rm -f conftest.$ac_objext libconftest.a
6041         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6042   (eval $lt_ar_try) 2>&5
6043   ac_status=$?
6044   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6045   test $ac_status = 0; }
6046         if test "$ac_status" -ne 0; then
6047           lt_cv_ar_at_file=@
6048         fi
6049       fi
6050       rm -f conftest.* libconftest.a
6051
6052 fi
6053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054
6055 fi
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6057 $as_echo "$lt_cv_ar_at_file" >&6; }
6058
6059 if test "x$lt_cv_ar_at_file" = xno; then
6060   archiver_list_spec=
6061 else
6062   archiver_list_spec=$lt_cv_ar_at_file
6063 fi
6064
6065
6066
6067
6068
6069
6070
6071 if test -n "$ac_tool_prefix"; then
6072   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6073 set dummy ${ac_tool_prefix}strip; ac_word=$2
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075 $as_echo_n "checking for $ac_word... " >&6; }
6076 if ${ac_cv_prog_STRIP+:} false; then :
6077   $as_echo_n "(cached) " >&6
6078 else
6079   if test -n "$STRIP"; then
6080   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6081 else
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 for as_dir in $PATH
6084 do
6085   IFS=$as_save_IFS
6086   test -z "$as_dir" && as_dir=.
6087     for ac_exec_ext in '' $ac_executable_extensions; do
6088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6089     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091     break 2
6092   fi
6093 done
6094   done
6095 IFS=$as_save_IFS
6096
6097 fi
6098 fi
6099 STRIP=$ac_cv_prog_STRIP
6100 if test -n "$STRIP"; then
6101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6102 $as_echo "$STRIP" >&6; }
6103 else
6104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105 $as_echo "no" >&6; }
6106 fi
6107
6108
6109 fi
6110 if test -z "$ac_cv_prog_STRIP"; then
6111   ac_ct_STRIP=$STRIP
6112   # Extract the first word of "strip", so it can be a program name with args.
6113 set dummy strip; ac_word=$2
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6115 $as_echo_n "checking for $ac_word... " >&6; }
6116 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6117   $as_echo_n "(cached) " >&6
6118 else
6119   if test -n "$ac_ct_STRIP"; then
6120   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6121 else
6122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123 for as_dir in $PATH
6124 do
6125   IFS=$as_save_IFS
6126   test -z "$as_dir" && as_dir=.
6127     for ac_exec_ext in '' $ac_executable_extensions; do
6128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6129     ac_cv_prog_ac_ct_STRIP="strip"
6130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6131     break 2
6132   fi
6133 done
6134   done
6135 IFS=$as_save_IFS
6136
6137 fi
6138 fi
6139 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6140 if test -n "$ac_ct_STRIP"; then
6141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6142 $as_echo "$ac_ct_STRIP" >&6; }
6143 else
6144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6145 $as_echo "no" >&6; }
6146 fi
6147
6148   if test "x$ac_ct_STRIP" = x; then
6149     STRIP=":"
6150   else
6151     case $cross_compiling:$ac_tool_warned in
6152 yes:)
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6155 ac_tool_warned=yes ;;
6156 esac
6157     STRIP=$ac_ct_STRIP
6158   fi
6159 else
6160   STRIP="$ac_cv_prog_STRIP"
6161 fi
6162
6163 test -z "$STRIP" && STRIP=:
6164
6165
6166
6167
6168
6169
6170 if test -n "$ac_tool_prefix"; then
6171   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6172 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6174 $as_echo_n "checking for $ac_word... " >&6; }
6175 if ${ac_cv_prog_RANLIB+:} false; then :
6176   $as_echo_n "(cached) " >&6
6177 else
6178   if test -n "$RANLIB"; then
6179   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6180 else
6181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182 for as_dir in $PATH
6183 do
6184   IFS=$as_save_IFS
6185   test -z "$as_dir" && as_dir=.
6186     for ac_exec_ext in '' $ac_executable_extensions; do
6187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6188     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6190     break 2
6191   fi
6192 done
6193   done
6194 IFS=$as_save_IFS
6195
6196 fi
6197 fi
6198 RANLIB=$ac_cv_prog_RANLIB
6199 if test -n "$RANLIB"; then
6200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6201 $as_echo "$RANLIB" >&6; }
6202 else
6203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6204 $as_echo "no" >&6; }
6205 fi
6206
6207
6208 fi
6209 if test -z "$ac_cv_prog_RANLIB"; then
6210   ac_ct_RANLIB=$RANLIB
6211   # Extract the first word of "ranlib", so it can be a program name with args.
6212 set dummy ranlib; ac_word=$2
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6214 $as_echo_n "checking for $ac_word... " >&6; }
6215 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6216   $as_echo_n "(cached) " >&6
6217 else
6218   if test -n "$ac_ct_RANLIB"; then
6219   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6220 else
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 for as_dir in $PATH
6223 do
6224   IFS=$as_save_IFS
6225   test -z "$as_dir" && as_dir=.
6226     for ac_exec_ext in '' $ac_executable_extensions; do
6227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6228     ac_cv_prog_ac_ct_RANLIB="ranlib"
6229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6230     break 2
6231   fi
6232 done
6233   done
6234 IFS=$as_save_IFS
6235
6236 fi
6237 fi
6238 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6239 if test -n "$ac_ct_RANLIB"; then
6240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6241 $as_echo "$ac_ct_RANLIB" >&6; }
6242 else
6243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6244 $as_echo "no" >&6; }
6245 fi
6246
6247   if test "x$ac_ct_RANLIB" = x; then
6248     RANLIB=":"
6249   else
6250     case $cross_compiling:$ac_tool_warned in
6251 yes:)
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6254 ac_tool_warned=yes ;;
6255 esac
6256     RANLIB=$ac_ct_RANLIB
6257   fi
6258 else
6259   RANLIB="$ac_cv_prog_RANLIB"
6260 fi
6261
6262 test -z "$RANLIB" && RANLIB=:
6263
6264
6265
6266
6267
6268
6269 # Determine commands to create old-style static archives.
6270 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6271 old_postinstall_cmds='chmod 644 $oldlib'
6272 old_postuninstall_cmds=
6273
6274 if test -n "$RANLIB"; then
6275   case $host_os in
6276   openbsd*)
6277     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6278     ;;
6279   *)
6280     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6281     ;;
6282   esac
6283   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6284 fi
6285
6286 case $host_os in
6287   darwin*)
6288     lock_old_archive_extraction=yes ;;
6289   *)
6290     lock_old_archive_extraction=no ;;
6291 esac
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331 # If no C compiler was specified, use CC.
6332 LTCC=${LTCC-"$CC"}
6333
6334 # If no C compiler flags were specified, use CFLAGS.
6335 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6336
6337 # Allow CC to be a program name with arguments.
6338 compiler=$CC
6339
6340
6341 # Check for command to grab the raw symbol name followed by C symbol from nm.
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6343 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6344 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6345   $as_echo_n "(cached) " >&6
6346 else
6347
6348 # These are sane defaults that work on at least a few old systems.
6349 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6350
6351 # Character class describing NM global symbol codes.
6352 symcode='[BCDEGRST]'
6353
6354 # Regexp to match symbols that can be accessed directly from C.
6355 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6356
6357 # Define system-specific variables.
6358 case $host_os in
6359 aix*)
6360   symcode='[BCDT]'
6361   ;;
6362 cygwin* | mingw* | pw32* | cegcc*)
6363   symcode='[ABCDGISTW]'
6364   ;;
6365 hpux*)
6366   if test "$host_cpu" = ia64; then
6367     symcode='[ABCDEGRST]'
6368   fi
6369   ;;
6370 irix* | nonstopux*)
6371   symcode='[BCDEGRST]'
6372   ;;
6373 osf*)
6374   symcode='[BCDEGQRST]'
6375   ;;
6376 solaris*)
6377   symcode='[BDRT]'
6378   ;;
6379 sco3.2v5*)
6380   symcode='[DT]'
6381   ;;
6382 sysv4.2uw2*)
6383   symcode='[DT]'
6384   ;;
6385 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6386   symcode='[ABDT]'
6387   ;;
6388 sysv4)
6389   symcode='[DFNSTU]'
6390   ;;
6391 esac
6392
6393 # If we're using GNU nm, then use its standard symbol codes.
6394 case `$NM -V 2>&1` in
6395 *GNU* | *'with BFD'*)
6396   symcode='[ABCDGIRSTW]' ;;
6397 esac
6398
6399 # Transform an extracted symbol line into a proper C declaration.
6400 # Some systems (esp. on ia64) link data and code symbols differently,
6401 # so use this general approach.
6402 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6403
6404 # Transform an extracted symbol line into symbol name and symbol address
6405 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6406 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'"
6407
6408 # Handle CRLF in mingw tool chain
6409 opt_cr=
6410 case $build_os in
6411 mingw*)
6412   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6413   ;;
6414 esac
6415
6416 # Try without a prefix underscore, then with it.
6417 for ac_symprfx in "" "_"; do
6418
6419   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6420   symxfrm="\\1 $ac_symprfx\\2 \\2"
6421
6422   # Write the raw and C identifiers.
6423   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6424     # Fake it for dumpbin and say T for any non-static function
6425     # and D for any global variable.
6426     # Also find C++ and __fastcall symbols from MSVC++,
6427     # which start with @ or ?.
6428     lt_cv_sys_global_symbol_pipe="$AWK '"\
6429 "     {last_section=section; section=\$ 3};"\
6430 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6431 "     \$ 0!~/External *\|/{next};"\
6432 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6433 "     {if(hide[section]) next};"\
6434 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6435 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6436 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6437 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6438 "     ' prfx=^$ac_symprfx"
6439   else
6440     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6441   fi
6442   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6443
6444   # Check to see that the pipe works correctly.
6445   pipe_works=no
6446
6447   rm -f conftest*
6448   cat > conftest.$ac_ext <<_LT_EOF
6449 #ifdef __cplusplus
6450 extern "C" {
6451 #endif
6452 char nm_test_var;
6453 void nm_test_func(void);
6454 void nm_test_func(void){}
6455 #ifdef __cplusplus
6456 }
6457 #endif
6458 int main(){nm_test_var='a';nm_test_func();return(0);}
6459 _LT_EOF
6460
6461   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6462   (eval $ac_compile) 2>&5
6463   ac_status=$?
6464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6465   test $ac_status = 0; }; then
6466     # Now try to grab the symbols.
6467     nlist=conftest.nm
6468     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6469   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6470   ac_status=$?
6471   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6472   test $ac_status = 0; } && test -s "$nlist"; then
6473       # Try sorting and uniquifying the output.
6474       if sort "$nlist" | uniq > "$nlist"T; then
6475         mv -f "$nlist"T "$nlist"
6476       else
6477         rm -f "$nlist"T
6478       fi
6479
6480       # Make sure that we snagged all the symbols we need.
6481       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6482         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6483           cat <<_LT_EOF > conftest.$ac_ext
6484 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6485 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6486 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6487    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6488 # define LT_DLSYM_CONST
6489 #elif defined(__osf__)
6490 /* This system does not cope well with relocations in const data.  */
6491 # define LT_DLSYM_CONST
6492 #else
6493 # define LT_DLSYM_CONST const
6494 #endif
6495
6496 #ifdef __cplusplus
6497 extern "C" {
6498 #endif
6499
6500 _LT_EOF
6501           # Now generate the symbol file.
6502           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6503
6504           cat <<_LT_EOF >> conftest.$ac_ext
6505
6506 /* The mapping between symbol names and symbols.  */
6507 LT_DLSYM_CONST struct {
6508   const char *name;
6509   void       *address;
6510 }
6511 lt__PROGRAM__LTX_preloaded_symbols[] =
6512 {
6513   { "@PROGRAM@", (void *) 0 },
6514 _LT_EOF
6515           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6516           cat <<\_LT_EOF >> conftest.$ac_ext
6517   {0, (void *) 0}
6518 };
6519
6520 /* This works around a problem in FreeBSD linker */
6521 #ifdef FREEBSD_WORKAROUND
6522 static const void *lt_preloaded_setup() {
6523   return lt__PROGRAM__LTX_preloaded_symbols;
6524 }
6525 #endif
6526
6527 #ifdef __cplusplus
6528 }
6529 #endif
6530 _LT_EOF
6531           # Now try linking the two files.
6532           mv conftest.$ac_objext conftstm.$ac_objext
6533           lt_globsym_save_LIBS=$LIBS
6534           lt_globsym_save_CFLAGS=$CFLAGS
6535           LIBS="conftstm.$ac_objext"
6536           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6537           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6538   (eval $ac_link) 2>&5
6539   ac_status=$?
6540   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6541   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6542             pipe_works=yes
6543           fi
6544           LIBS=$lt_globsym_save_LIBS
6545           CFLAGS=$lt_globsym_save_CFLAGS
6546         else
6547           echo "cannot find nm_test_func in $nlist" >&5
6548         fi
6549       else
6550         echo "cannot find nm_test_var in $nlist" >&5
6551       fi
6552     else
6553       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6554     fi
6555   else
6556     echo "$progname: failed program was:" >&5
6557     cat conftest.$ac_ext >&5
6558   fi
6559   rm -rf conftest* conftst*
6560
6561   # Do not use the global_symbol_pipe unless it works.
6562   if test "$pipe_works" = yes; then
6563     break
6564   else
6565     lt_cv_sys_global_symbol_pipe=
6566   fi
6567 done
6568
6569 fi
6570
6571 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6572   lt_cv_sys_global_symbol_to_cdecl=
6573 fi
6574 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6576 $as_echo "failed" >&6; }
6577 else
6578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6579 $as_echo "ok" >&6; }
6580 fi
6581
6582 # Response file support.
6583 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6584   nm_file_list_spec='@'
6585 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6586   nm_file_list_spec='@'
6587 fi
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6616 $as_echo_n "checking for sysroot... " >&6; }
6617
6618 # Check whether --with-sysroot was given.
6619 if test "${with_sysroot+set}" = set; then :
6620   withval=$with_sysroot;
6621 else
6622   with_sysroot=no
6623 fi
6624
6625
6626 lt_sysroot=
6627 case ${with_sysroot} in #(
6628  yes)
6629    if test "$GCC" = yes; then
6630      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6631    fi
6632    ;; #(
6633  /*)
6634    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6635    ;; #(
6636  no|'')
6637    ;; #(
6638  *)
6639    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6640 $as_echo "${with_sysroot}" >&6; }
6641    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6642    ;;
6643 esac
6644
6645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6646 $as_echo "${lt_sysroot:-no}" >&6; }
6647
6648
6649
6650
6651
6652
6653 # Check whether --enable-libtool-lock was given.
6654 if test "${enable_libtool_lock+set}" = set; then :
6655   enableval=$enable_libtool_lock;
6656 fi
6657
6658 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6659
6660 # Some flags need to be propagated to the compiler or linker for good
6661 # libtool support.
6662 case $host in
6663 ia64-*-hpux*)
6664   # Find out which ABI we are using.
6665   echo 'int i;' > conftest.$ac_ext
6666   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6667   (eval $ac_compile) 2>&5
6668   ac_status=$?
6669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6670   test $ac_status = 0; }; then
6671     case `/usr/bin/file conftest.$ac_objext` in
6672       *ELF-32*)
6673         HPUX_IA64_MODE="32"
6674         ;;
6675       *ELF-64*)
6676         HPUX_IA64_MODE="64"
6677         ;;
6678     esac
6679   fi
6680   rm -rf conftest*
6681   ;;
6682 *-*-irix6*)
6683   # Find out which ABI we are using.
6684   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6685   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6686   (eval $ac_compile) 2>&5
6687   ac_status=$?
6688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6689   test $ac_status = 0; }; then
6690     if test "$lt_cv_prog_gnu_ld" = yes; then
6691       case `/usr/bin/file conftest.$ac_objext` in
6692         *32-bit*)
6693           LD="${LD-ld} -melf32bsmip"
6694           ;;
6695         *N32*)
6696           LD="${LD-ld} -melf32bmipn32"
6697           ;;
6698         *64-bit*)
6699           LD="${LD-ld} -melf64bmip"
6700         ;;
6701       esac
6702     else
6703       case `/usr/bin/file conftest.$ac_objext` in
6704         *32-bit*)
6705           LD="${LD-ld} -32"
6706           ;;
6707         *N32*)
6708           LD="${LD-ld} -n32"
6709           ;;
6710         *64-bit*)
6711           LD="${LD-ld} -64"
6712           ;;
6713       esac
6714     fi
6715   fi
6716   rm -rf conftest*
6717   ;;
6718
6719 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6720 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6721   # Find out which ABI we are using.
6722   echo 'int i;' > conftest.$ac_ext
6723   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6724   (eval $ac_compile) 2>&5
6725   ac_status=$?
6726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6727   test $ac_status = 0; }; then
6728     case `/usr/bin/file conftest.o` in
6729       *32-bit*)
6730         case $host in
6731           x86_64-*kfreebsd*-gnu)
6732             LD="${LD-ld} -m elf_i386_fbsd"
6733             ;;
6734           x86_64-*linux*)
6735             LD="${LD-ld} -m elf_i386"
6736             ;;
6737           ppc64-*linux*|powerpc64-*linux*)
6738             LD="${LD-ld} -m elf32ppclinux"
6739             ;;
6740           s390x-*linux*)
6741             LD="${LD-ld} -m elf_s390"
6742             ;;
6743           sparc64-*linux*)
6744             LD="${LD-ld} -m elf32_sparc"
6745             ;;
6746         esac
6747         ;;
6748       *64-bit*)
6749         case $host in
6750           x86_64-*kfreebsd*-gnu)
6751             LD="${LD-ld} -m elf_x86_64_fbsd"
6752             ;;
6753           x86_64-*linux*)
6754             LD="${LD-ld} -m elf_x86_64"
6755             ;;
6756           ppc*-*linux*|powerpc*-*linux*)
6757             LD="${LD-ld} -m elf64ppc"
6758             ;;
6759           s390*-*linux*|s390*-*tpf*)
6760             LD="${LD-ld} -m elf64_s390"
6761             ;;
6762           sparc*-*linux*)
6763             LD="${LD-ld} -m elf64_sparc"
6764             ;;
6765         esac
6766         ;;
6767     esac
6768   fi
6769   rm -rf conftest*
6770   ;;
6771
6772 *-*-sco3.2v5*)
6773   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6774   SAVE_CFLAGS="$CFLAGS"
6775   CFLAGS="$CFLAGS -belf"
6776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6777 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6778 if ${lt_cv_cc_needs_belf+:} false; then :
6779   $as_echo_n "(cached) " >&6
6780 else
6781   ac_ext=c
6782 ac_cpp='$CPP $CPPFLAGS'
6783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6786
6787      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788 /* end confdefs.h.  */
6789
6790 int
6791 main ()
6792 {
6793
6794   ;
6795   return 0;
6796 }
6797 _ACEOF
6798 if ac_fn_c_try_link "$LINENO"; then :
6799   lt_cv_cc_needs_belf=yes
6800 else
6801   lt_cv_cc_needs_belf=no
6802 fi
6803 rm -f core conftest.err conftest.$ac_objext \
6804     conftest$ac_exeext conftest.$ac_ext
6805      ac_ext=c
6806 ac_cpp='$CPP $CPPFLAGS'
6807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6810
6811 fi
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6813 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6814   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6815     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6816     CFLAGS="$SAVE_CFLAGS"
6817   fi
6818   ;;
6819 sparc*-*solaris*)
6820   # Find out which ABI we are using.
6821   echo 'int i;' > conftest.$ac_ext
6822   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6823   (eval $ac_compile) 2>&5
6824   ac_status=$?
6825   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6826   test $ac_status = 0; }; then
6827     case `/usr/bin/file conftest.o` in
6828     *64-bit*)
6829       case $lt_cv_prog_gnu_ld in
6830       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6831       *)
6832         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6833           LD="${LD-ld} -64"
6834         fi
6835         ;;
6836       esac
6837       ;;
6838     esac
6839   fi
6840   rm -rf conftest*
6841   ;;
6842 esac
6843
6844 need_locks="$enable_libtool_lock"
6845
6846 if test -n "$ac_tool_prefix"; then
6847   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6848 set dummy ${ac_tool_prefix}mt; ac_word=$2
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850 $as_echo_n "checking for $ac_word... " >&6; }
6851 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6852   $as_echo_n "(cached) " >&6
6853 else
6854   if test -n "$MANIFEST_TOOL"; then
6855   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6856 else
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 for as_dir in $PATH
6859 do
6860   IFS=$as_save_IFS
6861   test -z "$as_dir" && as_dir=.
6862     for ac_exec_ext in '' $ac_executable_extensions; do
6863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6864     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6866     break 2
6867   fi
6868 done
6869   done
6870 IFS=$as_save_IFS
6871
6872 fi
6873 fi
6874 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6875 if test -n "$MANIFEST_TOOL"; then
6876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6877 $as_echo "$MANIFEST_TOOL" >&6; }
6878 else
6879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880 $as_echo "no" >&6; }
6881 fi
6882
6883
6884 fi
6885 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6886   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6887   # Extract the first word of "mt", so it can be a program name with args.
6888 set dummy mt; ac_word=$2
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890 $as_echo_n "checking for $ac_word... " >&6; }
6891 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6892   $as_echo_n "(cached) " >&6
6893 else
6894   if test -n "$ac_ct_MANIFEST_TOOL"; then
6895   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6896 else
6897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 for as_dir in $PATH
6899 do
6900   IFS=$as_save_IFS
6901   test -z "$as_dir" && as_dir=.
6902     for ac_exec_ext in '' $ac_executable_extensions; do
6903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6904     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6906     break 2
6907   fi
6908 done
6909   done
6910 IFS=$as_save_IFS
6911
6912 fi
6913 fi
6914 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6915 if test -n "$ac_ct_MANIFEST_TOOL"; then
6916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6917 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6918 else
6919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920 $as_echo "no" >&6; }
6921 fi
6922
6923   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6924     MANIFEST_TOOL=":"
6925   else
6926     case $cross_compiling:$ac_tool_warned in
6927 yes:)
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6930 ac_tool_warned=yes ;;
6931 esac
6932     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6933   fi
6934 else
6935   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6936 fi
6937
6938 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6940 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6941 if ${lt_cv_path_mainfest_tool+:} false; then :
6942   $as_echo_n "(cached) " >&6
6943 else
6944   lt_cv_path_mainfest_tool=no
6945   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6946   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6947   cat conftest.err >&5
6948   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6949     lt_cv_path_mainfest_tool=yes
6950   fi
6951   rm -f conftest*
6952 fi
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6954 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6955 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6956   MANIFEST_TOOL=:
6957 fi
6958
6959
6960
6961
6962
6963
6964   case $host_os in
6965     rhapsody* | darwin*)
6966     if test -n "$ac_tool_prefix"; then
6967   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6968 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6970 $as_echo_n "checking for $ac_word... " >&6; }
6971 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6972   $as_echo_n "(cached) " >&6
6973 else
6974   if test -n "$DSYMUTIL"; then
6975   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6976 else
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH
6979 do
6980   IFS=$as_save_IFS
6981   test -z "$as_dir" && as_dir=.
6982     for ac_exec_ext in '' $ac_executable_extensions; do
6983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6984     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6986     break 2
6987   fi
6988 done
6989   done
6990 IFS=$as_save_IFS
6991
6992 fi
6993 fi
6994 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6995 if test -n "$DSYMUTIL"; then
6996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6997 $as_echo "$DSYMUTIL" >&6; }
6998 else
6999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000 $as_echo "no" >&6; }
7001 fi
7002
7003
7004 fi
7005 if test -z "$ac_cv_prog_DSYMUTIL"; then
7006   ac_ct_DSYMUTIL=$DSYMUTIL
7007   # Extract the first word of "dsymutil", so it can be a program name with args.
7008 set dummy dsymutil; ac_word=$2
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010 $as_echo_n "checking for $ac_word... " >&6; }
7011 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7012   $as_echo_n "(cached) " >&6
7013 else
7014   if test -n "$ac_ct_DSYMUTIL"; then
7015   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7016 else
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7019 do
7020   IFS=$as_save_IFS
7021   test -z "$as_dir" && as_dir=.
7022     for ac_exec_ext in '' $ac_executable_extensions; do
7023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7024     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7026     break 2
7027   fi
7028 done
7029   done
7030 IFS=$as_save_IFS
7031
7032 fi
7033 fi
7034 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7035 if test -n "$ac_ct_DSYMUTIL"; then
7036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7037 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7038 else
7039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040 $as_echo "no" >&6; }
7041 fi
7042
7043   if test "x$ac_ct_DSYMUTIL" = x; then
7044     DSYMUTIL=":"
7045   else
7046     case $cross_compiling:$ac_tool_warned in
7047 yes:)
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7050 ac_tool_warned=yes ;;
7051 esac
7052     DSYMUTIL=$ac_ct_DSYMUTIL
7053   fi
7054 else
7055   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7056 fi
7057
7058     if test -n "$ac_tool_prefix"; then
7059   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7060 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7062 $as_echo_n "checking for $ac_word... " >&6; }
7063 if ${ac_cv_prog_NMEDIT+:} false; then :
7064   $as_echo_n "(cached) " >&6
7065 else
7066   if test -n "$NMEDIT"; then
7067   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7068 else
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 for as_dir in $PATH
7071 do
7072   IFS=$as_save_IFS
7073   test -z "$as_dir" && as_dir=.
7074     for ac_exec_ext in '' $ac_executable_extensions; do
7075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7076     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7078     break 2
7079   fi
7080 done
7081   done
7082 IFS=$as_save_IFS
7083
7084 fi
7085 fi
7086 NMEDIT=$ac_cv_prog_NMEDIT
7087 if test -n "$NMEDIT"; then
7088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7089 $as_echo "$NMEDIT" >&6; }
7090 else
7091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092 $as_echo "no" >&6; }
7093 fi
7094
7095
7096 fi
7097 if test -z "$ac_cv_prog_NMEDIT"; then
7098   ac_ct_NMEDIT=$NMEDIT
7099   # Extract the first word of "nmedit", so it can be a program name with args.
7100 set dummy nmedit; ac_word=$2
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7102 $as_echo_n "checking for $ac_word... " >&6; }
7103 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7104   $as_echo_n "(cached) " >&6
7105 else
7106   if test -n "$ac_ct_NMEDIT"; then
7107   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7108 else
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 for as_dir in $PATH
7111 do
7112   IFS=$as_save_IFS
7113   test -z "$as_dir" && as_dir=.
7114     for ac_exec_ext in '' $ac_executable_extensions; do
7115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7116     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7118     break 2
7119   fi
7120 done
7121   done
7122 IFS=$as_save_IFS
7123
7124 fi
7125 fi
7126 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7127 if test -n "$ac_ct_NMEDIT"; then
7128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7129 $as_echo "$ac_ct_NMEDIT" >&6; }
7130 else
7131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 $as_echo "no" >&6; }
7133 fi
7134
7135   if test "x$ac_ct_NMEDIT" = x; then
7136     NMEDIT=":"
7137   else
7138     case $cross_compiling:$ac_tool_warned in
7139 yes:)
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7142 ac_tool_warned=yes ;;
7143 esac
7144     NMEDIT=$ac_ct_NMEDIT
7145   fi
7146 else
7147   NMEDIT="$ac_cv_prog_NMEDIT"
7148 fi
7149
7150     if test -n "$ac_tool_prefix"; then
7151   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7152 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7154 $as_echo_n "checking for $ac_word... " >&6; }
7155 if ${ac_cv_prog_LIPO+:} false; then :
7156   $as_echo_n "(cached) " >&6
7157 else
7158   if test -n "$LIPO"; then
7159   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7160 else
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 for as_dir in $PATH
7163 do
7164   IFS=$as_save_IFS
7165   test -z "$as_dir" && as_dir=.
7166     for ac_exec_ext in '' $ac_executable_extensions; do
7167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7168     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7170     break 2
7171   fi
7172 done
7173   done
7174 IFS=$as_save_IFS
7175
7176 fi
7177 fi
7178 LIPO=$ac_cv_prog_LIPO
7179 if test -n "$LIPO"; then
7180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7181 $as_echo "$LIPO" >&6; }
7182 else
7183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7184 $as_echo "no" >&6; }
7185 fi
7186
7187
7188 fi
7189 if test -z "$ac_cv_prog_LIPO"; then
7190   ac_ct_LIPO=$LIPO
7191   # Extract the first word of "lipo", so it can be a program name with args.
7192 set dummy lipo; ac_word=$2
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194 $as_echo_n "checking for $ac_word... " >&6; }
7195 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7196   $as_echo_n "(cached) " >&6
7197 else
7198   if test -n "$ac_ct_LIPO"; then
7199   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7200 else
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH
7203 do
7204   IFS=$as_save_IFS
7205   test -z "$as_dir" && as_dir=.
7206     for ac_exec_ext in '' $ac_executable_extensions; do
7207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7208     ac_cv_prog_ac_ct_LIPO="lipo"
7209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7210     break 2
7211   fi
7212 done
7213   done
7214 IFS=$as_save_IFS
7215
7216 fi
7217 fi
7218 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7219 if test -n "$ac_ct_LIPO"; then
7220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7221 $as_echo "$ac_ct_LIPO" >&6; }
7222 else
7223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224 $as_echo "no" >&6; }
7225 fi
7226
7227   if test "x$ac_ct_LIPO" = x; then
7228     LIPO=":"
7229   else
7230     case $cross_compiling:$ac_tool_warned in
7231 yes:)
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7234 ac_tool_warned=yes ;;
7235 esac
7236     LIPO=$ac_ct_LIPO
7237   fi
7238 else
7239   LIPO="$ac_cv_prog_LIPO"
7240 fi
7241
7242     if test -n "$ac_tool_prefix"; then
7243   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7244 set dummy ${ac_tool_prefix}otool; ac_word=$2
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7246 $as_echo_n "checking for $ac_word... " >&6; }
7247 if ${ac_cv_prog_OTOOL+:} false; then :
7248   $as_echo_n "(cached) " >&6
7249 else
7250   if test -n "$OTOOL"; then
7251   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7252 else
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7255 do
7256   IFS=$as_save_IFS
7257   test -z "$as_dir" && as_dir=.
7258     for ac_exec_ext in '' $ac_executable_extensions; do
7259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7260     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7262     break 2
7263   fi
7264 done
7265   done
7266 IFS=$as_save_IFS
7267
7268 fi
7269 fi
7270 OTOOL=$ac_cv_prog_OTOOL
7271 if test -n "$OTOOL"; then
7272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7273 $as_echo "$OTOOL" >&6; }
7274 else
7275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7276 $as_echo "no" >&6; }
7277 fi
7278
7279
7280 fi
7281 if test -z "$ac_cv_prog_OTOOL"; then
7282   ac_ct_OTOOL=$OTOOL
7283   # Extract the first word of "otool", so it can be a program name with args.
7284 set dummy otool; ac_word=$2
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7286 $as_echo_n "checking for $ac_word... " >&6; }
7287 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7288   $as_echo_n "(cached) " >&6
7289 else
7290   if test -n "$ac_ct_OTOOL"; then
7291   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7292 else
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 for as_dir in $PATH
7295 do
7296   IFS=$as_save_IFS
7297   test -z "$as_dir" && as_dir=.
7298     for ac_exec_ext in '' $ac_executable_extensions; do
7299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7300     ac_cv_prog_ac_ct_OTOOL="otool"
7301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7302     break 2
7303   fi
7304 done
7305   done
7306 IFS=$as_save_IFS
7307
7308 fi
7309 fi
7310 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7311 if test -n "$ac_ct_OTOOL"; then
7312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7313 $as_echo "$ac_ct_OTOOL" >&6; }
7314 else
7315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7316 $as_echo "no" >&6; }
7317 fi
7318
7319   if test "x$ac_ct_OTOOL" = x; then
7320     OTOOL=":"
7321   else
7322     case $cross_compiling:$ac_tool_warned in
7323 yes:)
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7326 ac_tool_warned=yes ;;
7327 esac
7328     OTOOL=$ac_ct_OTOOL
7329   fi
7330 else
7331   OTOOL="$ac_cv_prog_OTOOL"
7332 fi
7333
7334     if test -n "$ac_tool_prefix"; then
7335   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7336 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7338 $as_echo_n "checking for $ac_word... " >&6; }
7339 if ${ac_cv_prog_OTOOL64+:} false; then :
7340   $as_echo_n "(cached) " >&6
7341 else
7342   if test -n "$OTOOL64"; then
7343   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7344 else
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 for as_dir in $PATH
7347 do
7348   IFS=$as_save_IFS
7349   test -z "$as_dir" && as_dir=.
7350     for ac_exec_ext in '' $ac_executable_extensions; do
7351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7352     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7354     break 2
7355   fi
7356 done
7357   done
7358 IFS=$as_save_IFS
7359
7360 fi
7361 fi
7362 OTOOL64=$ac_cv_prog_OTOOL64
7363 if test -n "$OTOOL64"; then
7364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7365 $as_echo "$OTOOL64" >&6; }
7366 else
7367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7368 $as_echo "no" >&6; }
7369 fi
7370
7371
7372 fi
7373 if test -z "$ac_cv_prog_OTOOL64"; then
7374   ac_ct_OTOOL64=$OTOOL64
7375   # Extract the first word of "otool64", so it can be a program name with args.
7376 set dummy otool64; ac_word=$2
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7378 $as_echo_n "checking for $ac_word... " >&6; }
7379 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7380   $as_echo_n "(cached) " >&6
7381 else
7382   if test -n "$ac_ct_OTOOL64"; then
7383   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7384 else
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386 for as_dir in $PATH
7387 do
7388   IFS=$as_save_IFS
7389   test -z "$as_dir" && as_dir=.
7390     for ac_exec_ext in '' $ac_executable_extensions; do
7391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7392     ac_cv_prog_ac_ct_OTOOL64="otool64"
7393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7394     break 2
7395   fi
7396 done
7397   done
7398 IFS=$as_save_IFS
7399
7400 fi
7401 fi
7402 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7403 if test -n "$ac_ct_OTOOL64"; then
7404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7405 $as_echo "$ac_ct_OTOOL64" >&6; }
7406 else
7407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7408 $as_echo "no" >&6; }
7409 fi
7410
7411   if test "x$ac_ct_OTOOL64" = x; then
7412     OTOOL64=":"
7413   else
7414     case $cross_compiling:$ac_tool_warned in
7415 yes:)
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7418 ac_tool_warned=yes ;;
7419 esac
7420     OTOOL64=$ac_ct_OTOOL64
7421   fi
7422 else
7423   OTOOL64="$ac_cv_prog_OTOOL64"
7424 fi
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7453 $as_echo_n "checking for -single_module linker flag... " >&6; }
7454 if ${lt_cv_apple_cc_single_mod+:} false; then :
7455   $as_echo_n "(cached) " >&6
7456 else
7457   lt_cv_apple_cc_single_mod=no
7458       if test -z "${LT_MULTI_MODULE}"; then
7459         # By default we will add the -single_module flag. You can override
7460         # by either setting the environment variable LT_MULTI_MODULE
7461         # non-empty at configure time, or by adding -multi_module to the
7462         # link flags.
7463         rm -rf libconftest.dylib*
7464         echo "int foo(void){return 1;}" > conftest.c
7465         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7466 -dynamiclib -Wl,-single_module conftest.c" >&5
7467         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7468           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7469         _lt_result=$?
7470         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7471           lt_cv_apple_cc_single_mod=yes
7472         else
7473           cat conftest.err >&5
7474         fi
7475         rm -rf libconftest.dylib*
7476         rm -f conftest.*
7477       fi
7478 fi
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7480 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7481     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7482 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7483 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7484   $as_echo_n "(cached) " >&6
7485 else
7486   lt_cv_ld_exported_symbols_list=no
7487       save_LDFLAGS=$LDFLAGS
7488       echo "_main" > conftest.sym
7489       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7490       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7491 /* end confdefs.h.  */
7492
7493 int
7494 main ()
7495 {
7496
7497   ;
7498   return 0;
7499 }
7500 _ACEOF
7501 if ac_fn_c_try_link "$LINENO"; then :
7502   lt_cv_ld_exported_symbols_list=yes
7503 else
7504   lt_cv_ld_exported_symbols_list=no
7505 fi
7506 rm -f core conftest.err conftest.$ac_objext \
7507     conftest$ac_exeext conftest.$ac_ext
7508         LDFLAGS="$save_LDFLAGS"
7509
7510 fi
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7512 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7513     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7514 $as_echo_n "checking for -force_load linker flag... " >&6; }
7515 if ${lt_cv_ld_force_load+:} false; then :
7516   $as_echo_n "(cached) " >&6
7517 else
7518   lt_cv_ld_force_load=no
7519       cat > conftest.c << _LT_EOF
7520 int forced_loaded() { return 2;}
7521 _LT_EOF
7522       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7523       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7524       echo "$AR cru libconftest.a conftest.o" >&5
7525       $AR cru libconftest.a conftest.o 2>&5
7526       echo "$RANLIB libconftest.a" >&5
7527       $RANLIB libconftest.a 2>&5
7528       cat > conftest.c << _LT_EOF
7529 int main() { return 0;}
7530 _LT_EOF
7531       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7532       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7533       _lt_result=$?
7534       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7535         lt_cv_ld_force_load=yes
7536       else
7537         cat conftest.err >&5
7538       fi
7539         rm -f conftest.err libconftest.a conftest conftest.c
7540         rm -rf conftest.dSYM
7541
7542 fi
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7544 $as_echo "$lt_cv_ld_force_load" >&6; }
7545     case $host_os in
7546     rhapsody* | darwin1.[012])
7547       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7548     darwin1.*)
7549       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7550     darwin*) # darwin 5.x on
7551       # if running on 10.5 or later, the deployment target defaults
7552       # to the OS version, if on x86, and 10.4, the deployment
7553       # target defaults to 10.4. Don't you love it?
7554       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7555         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7556           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7557         10.[012]*)
7558           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7559         10.*)
7560           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7561       esac
7562     ;;
7563   esac
7564     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7565       _lt_dar_single_mod='$single_module'
7566     fi
7567     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7568       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7569     else
7570       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7571     fi
7572     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7573       _lt_dsymutil='~$DSYMUTIL $lib || :'
7574     else
7575       _lt_dsymutil=
7576     fi
7577     ;;
7578   esac
7579
7580 ac_ext=c
7581 ac_cpp='$CPP $CPPFLAGS'
7582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7586 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7587 # On Suns, sometimes $CPP names a directory.
7588 if test -n "$CPP" && test -d "$CPP"; then
7589   CPP=
7590 fi
7591 if test -z "$CPP"; then
7592   if ${ac_cv_prog_CPP+:} false; then :
7593   $as_echo_n "(cached) " >&6
7594 else
7595       # Double quotes because CPP needs to be expanded
7596     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7597     do
7598       ac_preproc_ok=false
7599 for ac_c_preproc_warn_flag in '' yes
7600 do
7601   # Use a header file that comes with gcc, so configuring glibc
7602   # with a fresh cross-compiler works.
7603   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7604   # <limits.h> exists even on freestanding compilers.
7605   # On the NeXT, cc -E runs the code through the compiler's parser,
7606   # not just through cpp. "Syntax error" is here to catch this case.
7607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608 /* end confdefs.h.  */
7609 #ifdef __STDC__
7610 # include <limits.h>
7611 #else
7612 # include <assert.h>
7613 #endif
7614                      Syntax error
7615 _ACEOF
7616 if ac_fn_c_try_cpp "$LINENO"; then :
7617
7618 else
7619   # Broken: fails on valid input.
7620 continue
7621 fi
7622 rm -f conftest.err conftest.i conftest.$ac_ext
7623
7624   # OK, works on sane cases.  Now check whether nonexistent headers
7625   # can be detected and how.
7626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627 /* end confdefs.h.  */
7628 #include <ac_nonexistent.h>
7629 _ACEOF
7630 if ac_fn_c_try_cpp "$LINENO"; then :
7631   # Broken: success on invalid input.
7632 continue
7633 else
7634   # Passes both tests.
7635 ac_preproc_ok=:
7636 break
7637 fi
7638 rm -f conftest.err conftest.i conftest.$ac_ext
7639
7640 done
7641 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7642 rm -f conftest.i conftest.err conftest.$ac_ext
7643 if $ac_preproc_ok; then :
7644   break
7645 fi
7646
7647     done
7648     ac_cv_prog_CPP=$CPP
7649
7650 fi
7651   CPP=$ac_cv_prog_CPP
7652 else
7653   ac_cv_prog_CPP=$CPP
7654 fi
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7656 $as_echo "$CPP" >&6; }
7657 ac_preproc_ok=false
7658 for ac_c_preproc_warn_flag in '' yes
7659 do
7660   # Use a header file that comes with gcc, so configuring glibc
7661   # with a fresh cross-compiler works.
7662   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7663   # <limits.h> exists even on freestanding compilers.
7664   # On the NeXT, cc -E runs the code through the compiler's parser,
7665   # not just through cpp. "Syntax error" is here to catch this case.
7666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667 /* end confdefs.h.  */
7668 #ifdef __STDC__
7669 # include <limits.h>
7670 #else
7671 # include <assert.h>
7672 #endif
7673                      Syntax error
7674 _ACEOF
7675 if ac_fn_c_try_cpp "$LINENO"; then :
7676
7677 else
7678   # Broken: fails on valid input.
7679 continue
7680 fi
7681 rm -f conftest.err conftest.i conftest.$ac_ext
7682
7683   # OK, works on sane cases.  Now check whether nonexistent headers
7684   # can be detected and how.
7685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7686 /* end confdefs.h.  */
7687 #include <ac_nonexistent.h>
7688 _ACEOF
7689 if ac_fn_c_try_cpp "$LINENO"; then :
7690   # Broken: success on invalid input.
7691 continue
7692 else
7693   # Passes both tests.
7694 ac_preproc_ok=:
7695 break
7696 fi
7697 rm -f conftest.err conftest.i conftest.$ac_ext
7698
7699 done
7700 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7701 rm -f conftest.i conftest.err conftest.$ac_ext
7702 if $ac_preproc_ok; then :
7703
7704 else
7705   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7707 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7708 See \`config.log' for more details" "$LINENO" 5; }
7709 fi
7710
7711 ac_ext=c
7712 ac_cpp='$CPP $CPPFLAGS'
7713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7716
7717
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7719 $as_echo_n "checking for ANSI C header files... " >&6; }
7720 if ${ac_cv_header_stdc+:} false; then :
7721   $as_echo_n "(cached) " >&6
7722 else
7723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724 /* end confdefs.h.  */
7725 #include <stdlib.h>
7726 #include <stdarg.h>
7727 #include <string.h>
7728 #include <float.h>
7729
7730 int
7731 main ()
7732 {
7733
7734   ;
7735   return 0;
7736 }
7737 _ACEOF
7738 if ac_fn_c_try_compile "$LINENO"; then :
7739   ac_cv_header_stdc=yes
7740 else
7741   ac_cv_header_stdc=no
7742 fi
7743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7744
7745 if test $ac_cv_header_stdc = yes; then
7746   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7748 /* end confdefs.h.  */
7749 #include <string.h>
7750
7751 _ACEOF
7752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7753   $EGREP "memchr" >/dev/null 2>&1; then :
7754
7755 else
7756   ac_cv_header_stdc=no
7757 fi
7758 rm -f conftest*
7759
7760 fi
7761
7762 if test $ac_cv_header_stdc = yes; then
7763   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h.  */
7766 #include <stdlib.h>
7767
7768 _ACEOF
7769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7770   $EGREP "free" >/dev/null 2>&1; then :
7771
7772 else
7773   ac_cv_header_stdc=no
7774 fi
7775 rm -f conftest*
7776
7777 fi
7778
7779 if test $ac_cv_header_stdc = yes; then
7780   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7781   if test "$cross_compiling" = yes; then :
7782   :
7783 else
7784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785 /* end confdefs.h.  */
7786 #include <ctype.h>
7787 #include <stdlib.h>
7788 #if ((' ' & 0x0FF) == 0x020)
7789 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7790 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7791 #else
7792 # define ISLOWER(c) \
7793                    (('a' <= (c) && (c) <= 'i') \
7794                      || ('j' <= (c) && (c) <= 'r') \
7795                      || ('s' <= (c) && (c) <= 'z'))
7796 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7797 #endif
7798
7799 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7800 int
7801 main ()
7802 {
7803   int i;
7804   for (i = 0; i < 256; i++)
7805     if (XOR (islower (i), ISLOWER (i))
7806         || toupper (i) != TOUPPER (i))
7807       return 2;
7808   return 0;
7809 }
7810 _ACEOF
7811 if ac_fn_c_try_run "$LINENO"; then :
7812
7813 else
7814   ac_cv_header_stdc=no
7815 fi
7816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7817   conftest.$ac_objext conftest.beam conftest.$ac_ext
7818 fi
7819
7820 fi
7821 fi
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7823 $as_echo "$ac_cv_header_stdc" >&6; }
7824 if test $ac_cv_header_stdc = yes; then
7825
7826 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7827
7828 fi
7829
7830 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7831 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7832                   inttypes.h stdint.h unistd.h
7833 do :
7834   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7835 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7836 "
7837 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7838   cat >>confdefs.h <<_ACEOF
7839 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7840 _ACEOF
7841
7842 fi
7843
7844 done
7845
7846
7847 for ac_header in dlfcn.h
7848 do :
7849   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7850 "
7851 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7852   cat >>confdefs.h <<_ACEOF
7853 #define HAVE_DLFCN_H 1
7854 _ACEOF
7855
7856 fi
7857
7858 done
7859
7860
7861
7862 func_stripname_cnf ()
7863 {
7864   case ${2} in
7865   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7866   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7867   esac
7868 } # func_stripname_cnf
7869
7870
7871
7872
7873
7874 # Set options
7875
7876
7877
7878         enable_dlopen=no
7879
7880
7881   enable_win32_dll=no
7882
7883
7884             # Check whether --enable-shared was given.
7885 if test "${enable_shared+set}" = set; then :
7886   enableval=$enable_shared; p=${PACKAGE-default}
7887     case $enableval in
7888     yes) enable_shared=yes ;;
7889     no) enable_shared=no ;;
7890     *)
7891       enable_shared=no
7892       # Look at the argument we got.  We use all the common list separators.
7893       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7894       for pkg in $enableval; do
7895         IFS="$lt_save_ifs"
7896         if test "X$pkg" = "X$p"; then
7897           enable_shared=yes
7898         fi
7899       done
7900       IFS="$lt_save_ifs"
7901       ;;
7902     esac
7903 else
7904   enable_shared=yes
7905 fi
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915   # Check whether --enable-static was given.
7916 if test "${enable_static+set}" = set; then :
7917   enableval=$enable_static; p=${PACKAGE-default}
7918     case $enableval in
7919     yes) enable_static=yes ;;
7920     no) enable_static=no ;;
7921     *)
7922      enable_static=no
7923       # Look at the argument we got.  We use all the common list separators.
7924       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7925       for pkg in $enableval; do
7926         IFS="$lt_save_ifs"
7927         if test "X$pkg" = "X$p"; then
7928           enable_static=yes
7929         fi
7930       done
7931       IFS="$lt_save_ifs"
7932       ;;
7933     esac
7934 else
7935   enable_static=yes
7936 fi
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947 # Check whether --with-pic was given.
7948 if test "${with_pic+set}" = set; then :
7949   withval=$with_pic; pic_mode="$withval"
7950 else
7951   pic_mode=default
7952 fi
7953
7954
7955 test -z "$pic_mode" && pic_mode=default
7956
7957
7958
7959
7960
7961
7962
7963   # Check whether --enable-fast-install was given.
7964 if test "${enable_fast_install+set}" = set; then :
7965   enableval=$enable_fast_install; p=${PACKAGE-default}
7966     case $enableval in
7967     yes) enable_fast_install=yes ;;
7968     no) enable_fast_install=no ;;
7969     *)
7970       enable_fast_install=no
7971       # Look at the argument we got.  We use all the common list separators.
7972       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7973       for pkg in $enableval; do
7974         IFS="$lt_save_ifs"
7975         if test "X$pkg" = "X$p"; then
7976           enable_fast_install=yes
7977         fi
7978       done
7979       IFS="$lt_save_ifs"
7980       ;;
7981     esac
7982 else
7983   enable_fast_install=yes
7984 fi
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996 # This can be used to rebuild libtool when needed
7997 LIBTOOL_DEPS="$ltmain"
7998
7999 # Always use our own libtool.
8000 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027 test -z "$LN_S" && LN_S="ln -s"
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042 if test -n "${ZSH_VERSION+set}" ; then
8043    setopt NO_GLOB_SUBST
8044 fi
8045
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8047 $as_echo_n "checking for objdir... " >&6; }
8048 if ${lt_cv_objdir+:} false; then :
8049   $as_echo_n "(cached) " >&6
8050 else
8051   rm -f .libs 2>/dev/null
8052 mkdir .libs 2>/dev/null
8053 if test -d .libs; then
8054   lt_cv_objdir=.libs
8055 else
8056   # MS-DOS does not allow filenames that begin with a dot.
8057   lt_cv_objdir=_libs
8058 fi
8059 rmdir .libs 2>/dev/null
8060 fi
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8062 $as_echo "$lt_cv_objdir" >&6; }
8063 objdir=$lt_cv_objdir
8064
8065
8066
8067
8068
8069 cat >>confdefs.h <<_ACEOF
8070 #define LT_OBJDIR "$lt_cv_objdir/"
8071 _ACEOF
8072
8073
8074
8075
8076 case $host_os in
8077 aix3*)
8078   # AIX sometimes has problems with the GCC collect2 program.  For some
8079   # reason, if we set the COLLECT_NAMES environment variable, the problems
8080   # vanish in a puff of smoke.
8081   if test "X${COLLECT_NAMES+set}" != Xset; then
8082     COLLECT_NAMES=
8083     export COLLECT_NAMES
8084   fi
8085   ;;
8086 esac
8087
8088 # Global variables:
8089 ofile=libtool
8090 can_build_shared=yes
8091
8092 # All known linkers require a `.a' archive for static linking (except MSVC,
8093 # which needs '.lib').
8094 libext=a
8095
8096 with_gnu_ld="$lt_cv_prog_gnu_ld"
8097
8098 old_CC="$CC"
8099 old_CFLAGS="$CFLAGS"
8100
8101 # Set sane defaults for various variables
8102 test -z "$CC" && CC=cc
8103 test -z "$LTCC" && LTCC=$CC
8104 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8105 test -z "$LD" && LD=ld
8106 test -z "$ac_objext" && ac_objext=o
8107
8108 for cc_temp in $compiler""; do
8109   case $cc_temp in
8110     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8111     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8112     \-*) ;;
8113     *) break;;
8114   esac
8115 done
8116 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8117
8118
8119 # Only perform the check for file, if the check method requires it
8120 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8121 case $deplibs_check_method in
8122 file_magic*)
8123   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8125 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8126 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8127   $as_echo_n "(cached) " >&6
8128 else
8129   case $MAGIC_CMD in
8130 [\\/*] |  ?:[\\/]*)
8131   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8132   ;;
8133 *)
8134   lt_save_MAGIC_CMD="$MAGIC_CMD"
8135   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8136   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8137   for ac_dir in $ac_dummy; do
8138     IFS="$lt_save_ifs"
8139     test -z "$ac_dir" && ac_dir=.
8140     if test -f $ac_dir/${ac_tool_prefix}file; then
8141       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8142       if test -n "$file_magic_test_file"; then
8143         case $deplibs_check_method in
8144         "file_magic "*)
8145           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8146           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8147           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8148             $EGREP "$file_magic_regex" > /dev/null; then
8149             :
8150           else
8151             cat <<_LT_EOF 1>&2
8152
8153 *** Warning: the command libtool uses to detect shared libraries,
8154 *** $file_magic_cmd, produces output that libtool cannot recognize.
8155 *** The result is that libtool may fail to recognize shared libraries
8156 *** as such.  This will affect the creation of libtool libraries that
8157 *** depend on shared libraries, but programs linked with such libtool
8158 *** libraries will work regardless of this problem.  Nevertheless, you
8159 *** may want to report the problem to your system manager and/or to
8160 *** bug-libtool@gnu.org
8161
8162 _LT_EOF
8163           fi ;;
8164         esac
8165       fi
8166       break
8167     fi
8168   done
8169   IFS="$lt_save_ifs"
8170   MAGIC_CMD="$lt_save_MAGIC_CMD"
8171   ;;
8172 esac
8173 fi
8174
8175 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8176 if test -n "$MAGIC_CMD"; then
8177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8178 $as_echo "$MAGIC_CMD" >&6; }
8179 else
8180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181 $as_echo "no" >&6; }
8182 fi
8183
8184
8185
8186
8187
8188 if test -z "$lt_cv_path_MAGIC_CMD"; then
8189   if test -n "$ac_tool_prefix"; then
8190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8191 $as_echo_n "checking for file... " >&6; }
8192 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8193   $as_echo_n "(cached) " >&6
8194 else
8195   case $MAGIC_CMD in
8196 [\\/*] |  ?:[\\/]*)
8197   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8198   ;;
8199 *)
8200   lt_save_MAGIC_CMD="$MAGIC_CMD"
8201   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8202   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8203   for ac_dir in $ac_dummy; do
8204     IFS="$lt_save_ifs"
8205     test -z "$ac_dir" && ac_dir=.
8206     if test -f $ac_dir/file; then
8207       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8208       if test -n "$file_magic_test_file"; then
8209         case $deplibs_check_method in
8210         "file_magic "*)
8211           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8212           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8213           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8214             $EGREP "$file_magic_regex" > /dev/null; then
8215             :
8216           else
8217             cat <<_LT_EOF 1>&2
8218
8219 *** Warning: the command libtool uses to detect shared libraries,
8220 *** $file_magic_cmd, produces output that libtool cannot recognize.
8221 *** The result is that libtool may fail to recognize shared libraries
8222 *** as such.  This will affect the creation of libtool libraries that
8223 *** depend on shared libraries, but programs linked with such libtool
8224 *** libraries will work regardless of this problem.  Nevertheless, you
8225 *** may want to report the problem to your system manager and/or to
8226 *** bug-libtool@gnu.org
8227
8228 _LT_EOF
8229           fi ;;
8230         esac
8231       fi
8232       break
8233     fi
8234   done
8235   IFS="$lt_save_ifs"
8236   MAGIC_CMD="$lt_save_MAGIC_CMD"
8237   ;;
8238 esac
8239 fi
8240
8241 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8242 if test -n "$MAGIC_CMD"; then
8243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8244 $as_echo "$MAGIC_CMD" >&6; }
8245 else
8246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8247 $as_echo "no" >&6; }
8248 fi
8249
8250
8251   else
8252     MAGIC_CMD=:
8253   fi
8254 fi
8255
8256   fi
8257   ;;
8258 esac
8259
8260 # Use C for the default configuration in the libtool script
8261
8262 lt_save_CC="$CC"
8263 ac_ext=c
8264 ac_cpp='$CPP $CPPFLAGS'
8265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8268
8269
8270 # Source file extension for C test sources.
8271 ac_ext=c
8272
8273 # Object file extension for compiled C test sources.
8274 objext=o
8275 objext=$objext
8276
8277 # Code to be used in simple compile tests
8278 lt_simple_compile_test_code="int some_variable = 0;"
8279
8280 # Code to be used in simple link tests
8281 lt_simple_link_test_code='int main(){return(0);}'
8282
8283
8284
8285
8286
8287
8288
8289 # If no C compiler was specified, use CC.
8290 LTCC=${LTCC-"$CC"}
8291
8292 # If no C compiler flags were specified, use CFLAGS.
8293 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8294
8295 # Allow CC to be a program name with arguments.
8296 compiler=$CC
8297
8298 # Save the default compiler, since it gets overwritten when the other
8299 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8300 compiler_DEFAULT=$CC
8301
8302 # save warnings/boilerplate of simple test code
8303 ac_outfile=conftest.$ac_objext
8304 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8305 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8306 _lt_compiler_boilerplate=`cat conftest.err`
8307 $RM conftest*
8308
8309 ac_outfile=conftest.$ac_objext
8310 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8311 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8312 _lt_linker_boilerplate=`cat conftest.err`
8313 $RM -r conftest*
8314
8315
8316 if test -n "$compiler"; then
8317
8318 lt_prog_compiler_no_builtin_flag=
8319
8320 if test "$GCC" = yes; then
8321   case $cc_basename in
8322   nvcc*)
8323     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8324   *)
8325     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8326   esac
8327
8328   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8329 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8330 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8331   $as_echo_n "(cached) " >&6
8332 else
8333   lt_cv_prog_compiler_rtti_exceptions=no
8334    ac_outfile=conftest.$ac_objext
8335    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8336    lt_compiler_flag="-fno-rtti -fno-exceptions"
8337    # Insert the option either (1) after the last *FLAGS variable, or
8338    # (2) before a word containing "conftest.", or (3) at the end.
8339    # Note that $ac_compile itself does not contain backslashes and begins
8340    # with a dollar sign (not a hyphen), so the echo should work correctly.
8341    # The option is referenced via a variable to avoid confusing sed.
8342    lt_compile=`echo "$ac_compile" | $SED \
8343    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8344    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8345    -e 's:$: $lt_compiler_flag:'`
8346    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8347    (eval "$lt_compile" 2>conftest.err)
8348    ac_status=$?
8349    cat conftest.err >&5
8350    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351    if (exit $ac_status) && test -s "$ac_outfile"; then
8352      # The compiler can only warn and ignore the option if not recognized
8353      # So say no if there are warnings other than the usual output.
8354      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8355      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8356      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8357        lt_cv_prog_compiler_rtti_exceptions=yes
8358      fi
8359    fi
8360    $RM conftest*
8361
8362 fi
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8364 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8365
8366 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8367     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8368 else
8369     :
8370 fi
8371
8372 fi
8373
8374
8375
8376
8377
8378
8379   lt_prog_compiler_wl=
8380 lt_prog_compiler_pic=
8381 lt_prog_compiler_static=
8382
8383
8384   if test "$GCC" = yes; then
8385     lt_prog_compiler_wl='-Wl,'
8386     lt_prog_compiler_static='-static'
8387
8388     case $host_os in
8389       aix*)
8390       # All AIX code is PIC.
8391       if test "$host_cpu" = ia64; then
8392         # AIX 5 now supports IA64 processor
8393         lt_prog_compiler_static='-Bstatic'
8394       fi
8395       ;;
8396
8397     amigaos*)
8398       case $host_cpu in
8399       powerpc)
8400             # see comment about AmigaOS4 .so support
8401             lt_prog_compiler_pic='-fPIC'
8402         ;;
8403       m68k)
8404             # FIXME: we need at least 68020 code to build shared libraries, but
8405             # adding the `-m68020' flag to GCC prevents building anything better,
8406             # like `-m68040'.
8407             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8408         ;;
8409       esac
8410       ;;
8411
8412     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8413       # PIC is the default for these OSes.
8414       ;;
8415
8416     mingw* | cygwin* | pw32* | os2* | cegcc*)
8417       # This hack is so that the source file can tell whether it is being
8418       # built for inclusion in a dll (and should export symbols for example).
8419       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8420       # (--disable-auto-import) libraries
8421       lt_prog_compiler_pic='-DDLL_EXPORT'
8422       ;;
8423
8424     darwin* | rhapsody*)
8425       # PIC is the default on this platform
8426       # Common symbols not allowed in MH_DYLIB files
8427       lt_prog_compiler_pic='-fno-common'
8428       ;;
8429
8430     haiku*)
8431       # PIC is the default for Haiku.
8432       # The "-static" flag exists, but is broken.
8433       lt_prog_compiler_static=
8434       ;;
8435
8436     hpux*)
8437       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8438       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8439       # sets the default TLS model and affects inlining.
8440       case $host_cpu in
8441       hppa*64*)
8442         # +Z the default
8443         ;;
8444       *)
8445         lt_prog_compiler_pic='-fPIC'
8446         ;;
8447       esac
8448       ;;
8449
8450     interix[3-9]*)
8451       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8452       # Instead, we relocate shared libraries at runtime.
8453       ;;
8454
8455     msdosdjgpp*)
8456       # Just because we use GCC doesn't mean we suddenly get shared libraries
8457       # on systems that don't support them.
8458       lt_prog_compiler_can_build_shared=no
8459       enable_shared=no
8460       ;;
8461
8462     *nto* | *qnx*)
8463       # QNX uses GNU C++, but need to define -shared option too, otherwise
8464       # it will coredump.
8465       lt_prog_compiler_pic='-fPIC -shared'
8466       ;;
8467
8468     sysv4*MP*)
8469       if test -d /usr/nec; then
8470         lt_prog_compiler_pic=-Kconform_pic
8471       fi
8472       ;;
8473
8474     *)
8475       lt_prog_compiler_pic='-fPIC'
8476       ;;
8477     esac
8478
8479     case $cc_basename in
8480     nvcc*) # Cuda Compiler Driver 2.2
8481       lt_prog_compiler_wl='-Xlinker '
8482       lt_prog_compiler_pic='-Xcompiler -fPIC'
8483       ;;
8484     esac
8485   else
8486     # PORTME Check for flag to pass linker flags through the system compiler.
8487     case $host_os in
8488     aix*)
8489       lt_prog_compiler_wl='-Wl,'
8490       if test "$host_cpu" = ia64; then
8491         # AIX 5 now supports IA64 processor
8492         lt_prog_compiler_static='-Bstatic'
8493       else
8494         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8495       fi
8496       ;;
8497
8498     mingw* | cygwin* | pw32* | os2* | cegcc*)
8499       # This hack is so that the source file can tell whether it is being
8500       # built for inclusion in a dll (and should export symbols for example).
8501       lt_prog_compiler_pic='-DDLL_EXPORT'
8502       ;;
8503
8504     hpux9* | hpux10* | hpux11*)
8505       lt_prog_compiler_wl='-Wl,'
8506       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8507       # not for PA HP-UX.
8508       case $host_cpu in
8509       hppa*64*|ia64*)
8510         # +Z the default
8511         ;;
8512       *)
8513         lt_prog_compiler_pic='+Z'
8514         ;;
8515       esac
8516       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8517       lt_prog_compiler_static='${wl}-a ${wl}archive'
8518       ;;
8519
8520     irix5* | irix6* | nonstopux*)
8521       lt_prog_compiler_wl='-Wl,'
8522       # PIC (with -KPIC) is the default.
8523       lt_prog_compiler_static='-non_shared'
8524       ;;
8525
8526     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8527       case $cc_basename in
8528       # old Intel for x86_64 which still supported -KPIC.
8529       ecc*)
8530         lt_prog_compiler_wl='-Wl,'
8531         lt_prog_compiler_pic='-KPIC'
8532         lt_prog_compiler_static='-static'
8533         ;;
8534       # icc used to be incompatible with GCC.
8535       # ICC 10 doesn't accept -KPIC any more.
8536       icc* | ifort*)
8537         lt_prog_compiler_wl='-Wl,'
8538         lt_prog_compiler_pic='-fPIC'
8539         lt_prog_compiler_static='-static'
8540         ;;
8541       # Lahey Fortran 8.1.
8542       lf95*)
8543         lt_prog_compiler_wl='-Wl,'
8544         lt_prog_compiler_pic='--shared'
8545         lt_prog_compiler_static='--static'
8546         ;;
8547       nagfor*)
8548         # NAG Fortran compiler
8549         lt_prog_compiler_wl='-Wl,-Wl,,'
8550         lt_prog_compiler_pic='-PIC'
8551         lt_prog_compiler_static='-Bstatic'
8552         ;;
8553       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8554         # Portland Group compilers (*not* the Pentium gcc compiler,
8555         # which looks to be a dead project)
8556         lt_prog_compiler_wl='-Wl,'
8557         lt_prog_compiler_pic='-fpic'
8558         lt_prog_compiler_static='-Bstatic'
8559         ;;
8560       ccc*)
8561         lt_prog_compiler_wl='-Wl,'
8562         # All Alpha code is PIC.
8563         lt_prog_compiler_static='-non_shared'
8564         ;;
8565       xl* | bgxl* | bgf* | mpixl*)
8566         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8567         lt_prog_compiler_wl='-Wl,'
8568         lt_prog_compiler_pic='-qpic'
8569         lt_prog_compiler_static='-qstaticlink'
8570         ;;
8571       *)
8572         case `$CC -V 2>&1 | sed 5q` in
8573         *Sun\ F* | *Sun*Fortran*)
8574           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8575           lt_prog_compiler_pic='-KPIC'
8576           lt_prog_compiler_static='-Bstatic'
8577           lt_prog_compiler_wl=''
8578           ;;
8579         *Sun\ C*)
8580           # Sun C 5.9
8581           lt_prog_compiler_pic='-KPIC'
8582           lt_prog_compiler_static='-Bstatic'
8583           lt_prog_compiler_wl='-Wl,'
8584           ;;
8585         esac
8586         ;;
8587       esac
8588       ;;
8589
8590     newsos6)
8591       lt_prog_compiler_pic='-KPIC'
8592       lt_prog_compiler_static='-Bstatic'
8593       ;;
8594
8595     *nto* | *qnx*)
8596       # QNX uses GNU C++, but need to define -shared option too, otherwise
8597       # it will coredump.
8598       lt_prog_compiler_pic='-fPIC -shared'
8599       ;;
8600
8601     osf3* | osf4* | osf5*)
8602       lt_prog_compiler_wl='-Wl,'
8603       # All OSF/1 code is PIC.
8604       lt_prog_compiler_static='-non_shared'
8605       ;;
8606
8607     rdos*)
8608       lt_prog_compiler_static='-non_shared'
8609       ;;
8610
8611     solaris*)
8612       lt_prog_compiler_pic='-KPIC'
8613       lt_prog_compiler_static='-Bstatic'
8614       case $cc_basename in
8615       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8616         lt_prog_compiler_wl='-Qoption ld ';;
8617       *)
8618         lt_prog_compiler_wl='-Wl,';;
8619       esac
8620       ;;
8621
8622     sunos4*)
8623       lt_prog_compiler_wl='-Qoption ld '
8624       lt_prog_compiler_pic='-PIC'
8625       lt_prog_compiler_static='-Bstatic'
8626       ;;
8627
8628     sysv4 | sysv4.2uw2* | sysv4.3*)
8629       lt_prog_compiler_wl='-Wl,'
8630       lt_prog_compiler_pic='-KPIC'
8631       lt_prog_compiler_static='-Bstatic'
8632       ;;
8633
8634     sysv4*MP*)
8635       if test -d /usr/nec ;then
8636         lt_prog_compiler_pic='-Kconform_pic'
8637         lt_prog_compiler_static='-Bstatic'
8638       fi
8639       ;;
8640
8641     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8642       lt_prog_compiler_wl='-Wl,'
8643       lt_prog_compiler_pic='-KPIC'
8644       lt_prog_compiler_static='-Bstatic'
8645       ;;
8646
8647     unicos*)
8648       lt_prog_compiler_wl='-Wl,'
8649       lt_prog_compiler_can_build_shared=no
8650       ;;
8651
8652     uts4*)
8653       lt_prog_compiler_pic='-pic'
8654       lt_prog_compiler_static='-Bstatic'
8655       ;;
8656
8657     *)
8658       lt_prog_compiler_can_build_shared=no
8659       ;;
8660     esac
8661   fi
8662
8663 case $host_os in
8664   # For platforms which do not support PIC, -DPIC is meaningless:
8665   *djgpp*)
8666     lt_prog_compiler_pic=
8667     ;;
8668   *)
8669     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8670     ;;
8671 esac
8672
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8674 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8675 if ${lt_cv_prog_compiler_pic+:} false; then :
8676   $as_echo_n "(cached) " >&6
8677 else
8678   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8679 fi
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8681 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8682 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8683
8684 #
8685 # Check to make sure the PIC flag actually works.
8686 #
8687 if test -n "$lt_prog_compiler_pic"; then
8688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8689 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8690 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8691   $as_echo_n "(cached) " >&6
8692 else
8693   lt_cv_prog_compiler_pic_works=no
8694    ac_outfile=conftest.$ac_objext
8695    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8696    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8697    # Insert the option either (1) after the last *FLAGS variable, or
8698    # (2) before a word containing "conftest.", or (3) at the end.
8699    # Note that $ac_compile itself does not contain backslashes and begins
8700    # with a dollar sign (not a hyphen), so the echo should work correctly.
8701    # The option is referenced via a variable to avoid confusing sed.
8702    lt_compile=`echo "$ac_compile" | $SED \
8703    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8704    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8705    -e 's:$: $lt_compiler_flag:'`
8706    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8707    (eval "$lt_compile" 2>conftest.err)
8708    ac_status=$?
8709    cat conftest.err >&5
8710    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711    if (exit $ac_status) && test -s "$ac_outfile"; then
8712      # The compiler can only warn and ignore the option if not recognized
8713      # So say no if there are warnings other than the usual output.
8714      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8715      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8716      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8717        lt_cv_prog_compiler_pic_works=yes
8718      fi
8719    fi
8720    $RM conftest*
8721
8722 fi
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8724 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8725
8726 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8727     case $lt_prog_compiler_pic in
8728      "" | " "*) ;;
8729      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8730      esac
8731 else
8732     lt_prog_compiler_pic=
8733      lt_prog_compiler_can_build_shared=no
8734 fi
8735
8736 fi
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748 #
8749 # Check to make sure the static flag actually works.
8750 #
8751 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8753 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8754 if ${lt_cv_prog_compiler_static_works+:} false; then :
8755   $as_echo_n "(cached) " >&6
8756 else
8757   lt_cv_prog_compiler_static_works=no
8758    save_LDFLAGS="$LDFLAGS"
8759    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8760    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8761    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8762      # The linker can only warn and ignore the option if not recognized
8763      # So say no if there are warnings
8764      if test -s conftest.err; then
8765        # Append any errors to the config.log.
8766        cat conftest.err 1>&5
8767        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8768        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8769        if diff conftest.exp conftest.er2 >/dev/null; then
8770          lt_cv_prog_compiler_static_works=yes
8771        fi
8772      else
8773        lt_cv_prog_compiler_static_works=yes
8774      fi
8775    fi
8776    $RM -r conftest*
8777    LDFLAGS="$save_LDFLAGS"
8778
8779 fi
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8781 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8782
8783 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8784     :
8785 else
8786     lt_prog_compiler_static=
8787 fi
8788
8789
8790
8791
8792
8793
8794
8795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8796 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8797 if ${lt_cv_prog_compiler_c_o+:} false; then :
8798   $as_echo_n "(cached) " >&6
8799 else
8800   lt_cv_prog_compiler_c_o=no
8801    $RM -r conftest 2>/dev/null
8802    mkdir conftest
8803    cd conftest
8804    mkdir out
8805    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8806
8807    lt_compiler_flag="-o out/conftest2.$ac_objext"
8808    # Insert the option either (1) after the last *FLAGS variable, or
8809    # (2) before a word containing "conftest.", or (3) at the end.
8810    # Note that $ac_compile itself does not contain backslashes and begins
8811    # with a dollar sign (not a hyphen), so the echo should work correctly.
8812    lt_compile=`echo "$ac_compile" | $SED \
8813    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8814    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8815    -e 's:$: $lt_compiler_flag:'`
8816    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8817    (eval "$lt_compile" 2>out/conftest.err)
8818    ac_status=$?
8819    cat out/conftest.err >&5
8820    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8822    then
8823      # The compiler can only warn and ignore the option if not recognized
8824      # So say no if there are warnings
8825      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8826      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8827      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8828        lt_cv_prog_compiler_c_o=yes
8829      fi
8830    fi
8831    chmod u+w . 2>&5
8832    $RM conftest*
8833    # SGI C++ compiler will create directory out/ii_files/ for
8834    # template instantiation
8835    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8836    $RM out/* && rmdir out
8837    cd ..
8838    $RM -r conftest
8839    $RM conftest*
8840
8841 fi
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8843 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8844
8845
8846
8847
8848
8849
8850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8851 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8852 if ${lt_cv_prog_compiler_c_o+:} false; then :
8853   $as_echo_n "(cached) " >&6
8854 else
8855   lt_cv_prog_compiler_c_o=no
8856    $RM -r conftest 2>/dev/null
8857    mkdir conftest
8858    cd conftest
8859    mkdir out
8860    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8861
8862    lt_compiler_flag="-o out/conftest2.$ac_objext"
8863    # Insert the option either (1) after the last *FLAGS variable, or
8864    # (2) before a word containing "conftest.", or (3) at the end.
8865    # Note that $ac_compile itself does not contain backslashes and begins
8866    # with a dollar sign (not a hyphen), so the echo should work correctly.
8867    lt_compile=`echo "$ac_compile" | $SED \
8868    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8869    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8870    -e 's:$: $lt_compiler_flag:'`
8871    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8872    (eval "$lt_compile" 2>out/conftest.err)
8873    ac_status=$?
8874    cat out/conftest.err >&5
8875    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8877    then
8878      # The compiler can only warn and ignore the option if not recognized
8879      # So say no if there are warnings
8880      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8881      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8882      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8883        lt_cv_prog_compiler_c_o=yes
8884      fi
8885    fi
8886    chmod u+w . 2>&5
8887    $RM conftest*
8888    # SGI C++ compiler will create directory out/ii_files/ for
8889    # template instantiation
8890    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8891    $RM out/* && rmdir out
8892    cd ..
8893    $RM -r conftest
8894    $RM conftest*
8895
8896 fi
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8898 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8899
8900
8901
8902
8903 hard_links="nottested"
8904 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8905   # do not overwrite the value of need_locks provided by the user
8906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8907 $as_echo_n "checking if we can lock with hard links... " >&6; }
8908   hard_links=yes
8909   $RM conftest*
8910   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8911   touch conftest.a
8912   ln conftest.a conftest.b 2>&5 || hard_links=no
8913   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8915 $as_echo "$hard_links" >&6; }
8916   if test "$hard_links" = no; then
8917     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8918 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8919     need_locks=warn
8920   fi
8921 else
8922   need_locks=no
8923 fi
8924
8925
8926
8927
8928
8929
8930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8931 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8932
8933   runpath_var=
8934   allow_undefined_flag=
8935   always_export_symbols=no
8936   archive_cmds=
8937   archive_expsym_cmds=
8938   compiler_needs_object=no
8939   enable_shared_with_static_runtimes=no
8940   export_dynamic_flag_spec=
8941   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8942   hardcode_automatic=no
8943   hardcode_direct=no
8944   hardcode_direct_absolute=no
8945   hardcode_libdir_flag_spec=
8946   hardcode_libdir_flag_spec_ld=
8947   hardcode_libdir_separator=
8948   hardcode_minus_L=no
8949   hardcode_shlibpath_var=unsupported
8950   inherit_rpath=no
8951   link_all_deplibs=unknown
8952   module_cmds=
8953   module_expsym_cmds=
8954   old_archive_from_new_cmds=
8955   old_archive_from_expsyms_cmds=
8956   thread_safe_flag_spec=
8957   whole_archive_flag_spec=
8958   # include_expsyms should be a list of space-separated symbols to be *always*
8959   # included in the symbol list
8960   include_expsyms=
8961   # exclude_expsyms can be an extended regexp of symbols to exclude
8962   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8963   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8964   # as well as any symbol that contains `d'.
8965   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8966   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8967   # platforms (ab)use it in PIC code, but their linkers get confused if
8968   # the symbol is explicitly referenced.  Since portable code cannot
8969   # rely on this symbol name, it's probably fine to never include it in
8970   # preloaded symbol tables.
8971   # Exclude shared library initialization/finalization symbols.
8972   extract_expsyms_cmds=
8973
8974   case $host_os in
8975   cygwin* | mingw* | pw32* | cegcc*)
8976     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8977     # When not using gcc, we currently assume that we are using
8978     # Microsoft Visual C++.
8979     if test "$GCC" != yes; then
8980       with_gnu_ld=no
8981     fi
8982     ;;
8983   interix*)
8984     # we just hope/assume this is gcc and not c89 (= MSVC++)
8985     with_gnu_ld=yes
8986     ;;
8987   openbsd*)
8988     with_gnu_ld=no
8989     ;;
8990   linux* | k*bsd*-gnu | gnu*)
8991     link_all_deplibs=no
8992     ;;
8993   esac
8994
8995   ld_shlibs=yes
8996
8997   # On some targets, GNU ld is compatible enough with the native linker
8998   # that we're better off using the native interface for both.
8999   lt_use_gnu_ld_interface=no
9000   if test "$with_gnu_ld" = yes; then
9001     case $host_os in
9002       aix*)
9003         # The AIX port of GNU ld has always aspired to compatibility
9004         # with the native linker.  However, as the warning in the GNU ld
9005         # block says, versions before 2.19.5* couldn't really create working
9006         # shared libraries, regardless of the interface used.
9007         case `$LD -v 2>&1` in
9008           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9009           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9010           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9011           *)
9012             lt_use_gnu_ld_interface=yes
9013             ;;
9014         esac
9015         ;;
9016       *)
9017         lt_use_gnu_ld_interface=yes
9018         ;;
9019     esac
9020   fi
9021
9022   if test "$lt_use_gnu_ld_interface" = yes; then
9023     # If archive_cmds runs LD, not CC, wlarc should be empty
9024     wlarc='${wl}'
9025
9026     # Set some defaults for GNU ld with shared library support. These
9027     # are reset later if shared libraries are not supported. Putting them
9028     # here allows them to be overridden if necessary.
9029     runpath_var=LD_RUN_PATH
9030     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9031     export_dynamic_flag_spec='${wl}--export-dynamic'
9032     # ancient GNU ld didn't support --whole-archive et. al.
9033     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9034       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9035     else
9036       whole_archive_flag_spec=
9037     fi
9038     supports_anon_versioning=no
9039     case `$LD -v 2>&1` in
9040       *GNU\ gold*) supports_anon_versioning=yes ;;
9041       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9042       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9043       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9044       *\ 2.11.*) ;; # other 2.11 versions
9045       *) supports_anon_versioning=yes ;;
9046     esac
9047
9048     # See if GNU ld supports shared libraries.
9049     case $host_os in
9050     aix[3-9]*)
9051       # On AIX/PPC, the GNU linker is very broken
9052       if test "$host_cpu" != ia64; then
9053         ld_shlibs=no
9054         cat <<_LT_EOF 1>&2
9055
9056 *** Warning: the GNU linker, at least up to release 2.19, is reported
9057 *** to be unable to reliably create shared libraries on AIX.
9058 *** Therefore, libtool is disabling shared libraries support.  If you
9059 *** really care for shared libraries, you may want to install binutils
9060 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9061 *** You will then need to restart the configuration process.
9062
9063 _LT_EOF
9064       fi
9065       ;;
9066
9067     amigaos*)
9068       case $host_cpu in
9069       powerpc)
9070             # see comment about AmigaOS4 .so support
9071             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9072             archive_expsym_cmds=''
9073         ;;
9074       m68k)
9075             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)'
9076             hardcode_libdir_flag_spec='-L$libdir'
9077             hardcode_minus_L=yes
9078         ;;
9079       esac
9080       ;;
9081
9082     beos*)
9083       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9084         allow_undefined_flag=unsupported
9085         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9086         # support --undefined.  This deserves some investigation.  FIXME
9087         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9088       else
9089         ld_shlibs=no
9090       fi
9091       ;;
9092
9093     cygwin* | mingw* | pw32* | cegcc*)
9094       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9095       # as there is no search path for DLLs.
9096       hardcode_libdir_flag_spec='-L$libdir'
9097       export_dynamic_flag_spec='${wl}--export-all-symbols'
9098       allow_undefined_flag=unsupported
9099       always_export_symbols=no
9100       enable_shared_with_static_runtimes=yes
9101       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'
9102       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9103
9104       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9105         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9106         # If the export-symbols file already is a .def file (1st line
9107         # is EXPORTS), use it as is; otherwise, prepend...
9108         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9109           cp $export_symbols $output_objdir/$soname.def;
9110         else
9111           echo EXPORTS > $output_objdir/$soname.def;
9112           cat $export_symbols >> $output_objdir/$soname.def;
9113         fi~
9114         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9115       else
9116         ld_shlibs=no
9117       fi
9118       ;;
9119
9120     haiku*)
9121       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9122       link_all_deplibs=yes
9123       ;;
9124
9125     interix[3-9]*)
9126       hardcode_direct=no
9127       hardcode_shlibpath_var=no
9128       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9129       export_dynamic_flag_spec='${wl}-E'
9130       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9131       # Instead, shared libraries are loaded at an image base (0x10000000 by
9132       # default) and relocated if they conflict, which is a slow very memory
9133       # consuming and fragmenting process.  To avoid this, we pick a random,
9134       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9135       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9136       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9137       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'
9138       ;;
9139
9140     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9141       tmp_diet=no
9142       if test "$host_os" = linux-dietlibc; then
9143         case $cc_basename in
9144           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9145         esac
9146       fi
9147       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9148          && test "$tmp_diet" = no
9149       then
9150         tmp_addflag=' $pic_flag'
9151         tmp_sharedflag='-shared'
9152         case $cc_basename,$host_cpu in
9153         pgcc*)                          # Portland Group C compiler
9154           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'
9155           tmp_addflag=' $pic_flag'
9156           ;;
9157         pgf77* | pgf90* | pgf95* | pgfortran*)
9158                                         # Portland Group f77 and f90 compilers
9159           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'
9160           tmp_addflag=' $pic_flag -Mnomain' ;;
9161         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9162           tmp_addflag=' -i_dynamic' ;;
9163         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9164           tmp_addflag=' -i_dynamic -nofor_main' ;;
9165         ifc* | ifort*)                  # Intel Fortran compiler
9166           tmp_addflag=' -nofor_main' ;;
9167         lf95*)                          # Lahey Fortran 8.1
9168           whole_archive_flag_spec=
9169           tmp_sharedflag='--shared' ;;
9170         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9171           tmp_sharedflag='-qmkshrobj'
9172           tmp_addflag= ;;
9173         nvcc*)  # Cuda Compiler Driver 2.2
9174           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'
9175           compiler_needs_object=yes
9176           ;;
9177         esac
9178         case `$CC -V 2>&1 | sed 5q` in
9179         *Sun\ C*)                       # Sun C 5.9
9180           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'
9181           compiler_needs_object=yes
9182           tmp_sharedflag='-G' ;;
9183         *Sun\ F*)                       # Sun Fortran 8.3
9184           tmp_sharedflag='-G' ;;
9185         esac
9186         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9187
9188         if test "x$supports_anon_versioning" = xyes; then
9189           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9190             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9191             echo "local: *; };" >> $output_objdir/$libname.ver~
9192             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9193         fi
9194
9195         case $cc_basename in
9196         xlf* | bgf* | bgxlf* | mpixlf*)
9197           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9198           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9199           hardcode_libdir_flag_spec=
9200           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9201           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9202           if test "x$supports_anon_versioning" = xyes; then
9203             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9204               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9205               echo "local: *; };" >> $output_objdir/$libname.ver~
9206               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9207           fi
9208           ;;
9209         esac
9210       else
9211         ld_shlibs=no
9212       fi
9213       ;;
9214
9215     netbsd* | netbsdelf*-gnu)
9216       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9217         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9218         wlarc=
9219       else
9220         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9221         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9222       fi
9223       ;;
9224
9225     solaris*)
9226       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9227         ld_shlibs=no
9228         cat <<_LT_EOF 1>&2
9229
9230 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9231 *** create shared libraries on Solaris systems.  Therefore, libtool
9232 *** is disabling shared libraries support.  We urge you to upgrade GNU
9233 *** binutils to release 2.9.1 or newer.  Another option is to modify
9234 *** your PATH or compiler configuration so that the native linker is
9235 *** used, and then restart.
9236
9237 _LT_EOF
9238       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9239         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9240         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9241       else
9242         ld_shlibs=no
9243       fi
9244       ;;
9245
9246     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9247       case `$LD -v 2>&1` in
9248         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9249         ld_shlibs=no
9250         cat <<_LT_EOF 1>&2
9251
9252 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9253 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9254 *** is disabling shared libraries support.  We urge you to upgrade GNU
9255 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9256 *** your PATH or compiler configuration so that the native linker is
9257 *** used, and then restart.
9258
9259 _LT_EOF
9260         ;;
9261         *)
9262           # For security reasons, it is highly recommended that you always
9263           # use absolute paths for naming shared libraries, and exclude the
9264           # DT_RUNPATH tag from executables and libraries.  But doing so
9265           # requires that you compile everything twice, which is a pain.
9266           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9267             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9268             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9269             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9270           else
9271             ld_shlibs=no
9272           fi
9273         ;;
9274       esac
9275       ;;
9276
9277     sunos4*)
9278       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9279       wlarc=
9280       hardcode_direct=yes
9281       hardcode_shlibpath_var=no
9282       ;;
9283
9284     *)
9285       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9286         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9287         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9288       else
9289         ld_shlibs=no
9290       fi
9291       ;;
9292     esac
9293
9294     if test "$ld_shlibs" = no; then
9295       runpath_var=
9296       hardcode_libdir_flag_spec=
9297       export_dynamic_flag_spec=
9298       whole_archive_flag_spec=
9299     fi
9300   else
9301     # PORTME fill in a description of your system's linker (not GNU ld)
9302     case $host_os in
9303     aix3*)
9304       allow_undefined_flag=unsupported
9305       always_export_symbols=yes
9306       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'
9307       # Note: this linker hardcodes the directories in LIBPATH if there
9308       # are no directories specified by -L.
9309       hardcode_minus_L=yes
9310       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9311         # Neither direct hardcoding nor static linking is supported with a
9312         # broken collect2.
9313         hardcode_direct=unsupported
9314       fi
9315       ;;
9316
9317     aix[4-9]*)
9318       if test "$host_cpu" = ia64; then
9319         # On IA64, the linker does run time linking by default, so we don't
9320         # have to do anything special.
9321         aix_use_runtimelinking=no
9322         exp_sym_flag='-Bexport'
9323         no_entry_flag=""
9324       else
9325         # If we're using GNU nm, then we don't want the "-C" option.
9326         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9327         # Also, AIX nm treats weak defined symbols like other global
9328         # defined symbols, whereas GNU nm marks them as "W".
9329         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9330           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'
9331         else
9332           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'
9333         fi
9334         aix_use_runtimelinking=no
9335
9336         # Test if we are trying to use run time linking or normal
9337         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9338         # need to do runtime linking.
9339         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9340           for ld_flag in $LDFLAGS; do
9341           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9342             aix_use_runtimelinking=yes
9343             break
9344           fi
9345           done
9346           ;;
9347         esac
9348
9349         exp_sym_flag='-bexport'
9350         no_entry_flag='-bnoentry'
9351       fi
9352
9353       # When large executables or shared objects are built, AIX ld can
9354       # have problems creating the table of contents.  If linking a library
9355       # or program results in "error TOC overflow" add -mminimal-toc to
9356       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9357       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9358
9359       archive_cmds=''
9360       hardcode_direct=yes
9361       hardcode_direct_absolute=yes
9362       hardcode_libdir_separator=':'
9363       link_all_deplibs=yes
9364       file_list_spec='${wl}-f,'
9365
9366       if test "$GCC" = yes; then
9367         case $host_os in aix4.[012]|aix4.[012].*)
9368         # We only want to do this on AIX 4.2 and lower, the check
9369         # below for broken collect2 doesn't work under 4.3+
9370           collect2name=`${CC} -print-prog-name=collect2`
9371           if test -f "$collect2name" &&
9372            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9373           then
9374           # We have reworked collect2
9375           :
9376           else
9377           # We have old collect2
9378           hardcode_direct=unsupported
9379           # It fails to find uninstalled libraries when the uninstalled
9380           # path is not listed in the libpath.  Setting hardcode_minus_L
9381           # to unsupported forces relinking
9382           hardcode_minus_L=yes
9383           hardcode_libdir_flag_spec='-L$libdir'
9384           hardcode_libdir_separator=
9385           fi
9386           ;;
9387         esac
9388         shared_flag='-shared'
9389         if test "$aix_use_runtimelinking" = yes; then
9390           shared_flag="$shared_flag "'${wl}-G'
9391         fi
9392         link_all_deplibs=no
9393       else
9394         # not using gcc
9395         if test "$host_cpu" = ia64; then
9396         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9397         # chokes on -Wl,-G. The following line is correct:
9398           shared_flag='-G'
9399         else
9400           if test "$aix_use_runtimelinking" = yes; then
9401             shared_flag='${wl}-G'
9402           else
9403             shared_flag='${wl}-bM:SRE'
9404           fi
9405         fi
9406       fi
9407
9408       export_dynamic_flag_spec='${wl}-bexpall'
9409       # It seems that -bexpall does not export symbols beginning with
9410       # underscore (_), so it is better to generate a list of symbols to export.
9411       always_export_symbols=yes
9412       if test "$aix_use_runtimelinking" = yes; then
9413         # Warning - without using the other runtime loading flags (-brtl),
9414         # -berok will link without error, but may produce a broken library.
9415         allow_undefined_flag='-berok'
9416         # Determine the default libpath from the value encoded in an
9417         # empty executable.
9418         if test "${lt_cv_aix_libpath+set}" = set; then
9419   aix_libpath=$lt_cv_aix_libpath
9420 else
9421   if ${lt_cv_aix_libpath_+:} false; then :
9422   $as_echo_n "(cached) " >&6
9423 else
9424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h.  */
9426
9427 int
9428 main ()
9429 {
9430
9431   ;
9432   return 0;
9433 }
9434 _ACEOF
9435 if ac_fn_c_try_link "$LINENO"; then :
9436
9437   lt_aix_libpath_sed='
9438       /Import File Strings/,/^$/ {
9439           /^0/ {
9440               s/^0  *\([^ ]*\) *$/\1/
9441               p
9442           }
9443       }'
9444   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9445   # Check for a 64-bit object if we didn't find anything.
9446   if test -z "$lt_cv_aix_libpath_"; then
9447     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9448   fi
9449 fi
9450 rm -f core conftest.err conftest.$ac_objext \
9451     conftest$ac_exeext conftest.$ac_ext
9452   if test -z "$lt_cv_aix_libpath_"; then
9453     lt_cv_aix_libpath_="/usr/lib:/lib"
9454   fi
9455
9456 fi
9457
9458   aix_libpath=$lt_cv_aix_libpath_
9459 fi
9460
9461         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9462         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"
9463       else
9464         if test "$host_cpu" = ia64; then
9465           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9466           allow_undefined_flag="-z nodefs"
9467           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"
9468         else
9469          # Determine the default libpath from the value encoded in an
9470          # empty executable.
9471          if test "${lt_cv_aix_libpath+set}" = set; then
9472   aix_libpath=$lt_cv_aix_libpath
9473 else
9474   if ${lt_cv_aix_libpath_+:} false; then :
9475   $as_echo_n "(cached) " >&6
9476 else
9477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h.  */
9479
9480 int
9481 main ()
9482 {
9483
9484   ;
9485   return 0;
9486 }
9487 _ACEOF
9488 if ac_fn_c_try_link "$LINENO"; then :
9489
9490   lt_aix_libpath_sed='
9491       /Import File Strings/,/^$/ {
9492           /^0/ {
9493               s/^0  *\([^ ]*\) *$/\1/
9494               p
9495           }
9496       }'
9497   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9498   # Check for a 64-bit object if we didn't find anything.
9499   if test -z "$lt_cv_aix_libpath_"; then
9500     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9501   fi
9502 fi
9503 rm -f core conftest.err conftest.$ac_objext \
9504     conftest$ac_exeext conftest.$ac_ext
9505   if test -z "$lt_cv_aix_libpath_"; then
9506     lt_cv_aix_libpath_="/usr/lib:/lib"
9507   fi
9508
9509 fi
9510
9511   aix_libpath=$lt_cv_aix_libpath_
9512 fi
9513
9514          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9515           # Warning - without using the other run time loading flags,
9516           # -berok will link without error, but may produce a broken library.
9517           no_undefined_flag=' ${wl}-bernotok'
9518           allow_undefined_flag=' ${wl}-berok'
9519           if test "$with_gnu_ld" = yes; then
9520             # We only use this code for GNU lds that support --whole-archive.
9521             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9522           else
9523             # Exported symbols can be pulled into shared objects from archives
9524             whole_archive_flag_spec='$convenience'
9525           fi
9526           archive_cmds_need_lc=yes
9527           # This is similar to how AIX traditionally builds its shared libraries.
9528           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'
9529         fi
9530       fi
9531       ;;
9532
9533     amigaos*)
9534       case $host_cpu in
9535       powerpc)
9536             # see comment about AmigaOS4 .so support
9537             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9538             archive_expsym_cmds=''
9539         ;;
9540       m68k)
9541             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)'
9542             hardcode_libdir_flag_spec='-L$libdir'
9543             hardcode_minus_L=yes
9544         ;;
9545       esac
9546       ;;
9547
9548     bsdi[45]*)
9549       export_dynamic_flag_spec=-rdynamic
9550       ;;
9551
9552     cygwin* | mingw* | pw32* | cegcc*)
9553       # When not using gcc, we currently assume that we are using
9554       # Microsoft Visual C++.
9555       # hardcode_libdir_flag_spec is actually meaningless, as there is
9556       # no search path for DLLs.
9557       case $cc_basename in
9558       cl*)
9559         # Native MSVC
9560         hardcode_libdir_flag_spec=' '
9561         allow_undefined_flag=unsupported
9562         always_export_symbols=yes
9563         file_list_spec='@'
9564         # Tell ltmain to make .lib files, not .a files.
9565         libext=lib
9566         # Tell ltmain to make .dll files, not .so files.
9567         shrext_cmds=".dll"
9568         # FIXME: Setting linknames here is a bad hack.
9569         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9570         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9571             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9572           else
9573             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9574           fi~
9575           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9576           linknames='
9577         # The linker will not automatically build a static lib if we build a DLL.
9578         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9579         enable_shared_with_static_runtimes=yes
9580         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9581         # Don't use ranlib
9582         old_postinstall_cmds='chmod 644 $oldlib'
9583         postlink_cmds='lt_outputfile="@OUTPUT@"~
9584           lt_tool_outputfile="@TOOL_OUTPUT@"~
9585           case $lt_outputfile in
9586             *.exe|*.EXE) ;;
9587             *)
9588               lt_outputfile="$lt_outputfile.exe"
9589               lt_tool_outputfile="$lt_tool_outputfile.exe"
9590               ;;
9591           esac~
9592           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9593             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9594             $RM "$lt_outputfile.manifest";
9595           fi'
9596         ;;
9597       *)
9598         # Assume MSVC wrapper
9599         hardcode_libdir_flag_spec=' '
9600         allow_undefined_flag=unsupported
9601         # Tell ltmain to make .lib files, not .a files.
9602         libext=lib
9603         # Tell ltmain to make .dll files, not .so files.
9604         shrext_cmds=".dll"
9605         # FIXME: Setting linknames here is a bad hack.
9606         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9607         # The linker will automatically build a .lib file if we build a DLL.
9608         old_archive_from_new_cmds='true'
9609         # FIXME: Should let the user specify the lib program.
9610         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9611         enable_shared_with_static_runtimes=yes
9612         ;;
9613       esac
9614       ;;
9615
9616     darwin* | rhapsody*)
9617
9618
9619   archive_cmds_need_lc=no
9620   hardcode_direct=no
9621   hardcode_automatic=yes
9622   hardcode_shlibpath_var=unsupported
9623   if test "$lt_cv_ld_force_load" = "yes"; then
9624     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\"`'
9625   else
9626     whole_archive_flag_spec=''
9627   fi
9628   link_all_deplibs=yes
9629   allow_undefined_flag="$_lt_dar_allow_undefined"
9630   case $cc_basename in
9631      ifort*) _lt_dar_can_shared=yes ;;
9632      *) _lt_dar_can_shared=$GCC ;;
9633   esac
9634   if test "$_lt_dar_can_shared" = "yes"; then
9635     output_verbose_link_cmd=func_echo_all
9636     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9637     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9638     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}"
9639     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}"
9640
9641   else
9642   ld_shlibs=no
9643   fi
9644
9645       ;;
9646
9647     dgux*)
9648       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9649       hardcode_libdir_flag_spec='-L$libdir'
9650       hardcode_shlibpath_var=no
9651       ;;
9652
9653     freebsd1*)
9654       ld_shlibs=no
9655       ;;
9656
9657     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9658     # support.  Future versions do this automatically, but an explicit c++rt0.o
9659     # does not break anything, and helps significantly (at the cost of a little
9660     # extra space).
9661     freebsd2.2*)
9662       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9663       hardcode_libdir_flag_spec='-R$libdir'
9664       hardcode_direct=yes
9665       hardcode_shlibpath_var=no
9666       ;;
9667
9668     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9669     freebsd2*)
9670       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9671       hardcode_direct=yes
9672       hardcode_minus_L=yes
9673       hardcode_shlibpath_var=no
9674       ;;
9675
9676     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9677     freebsd* | dragonfly*)
9678       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9679       hardcode_libdir_flag_spec='-R$libdir'
9680       hardcode_direct=yes
9681       hardcode_shlibpath_var=no
9682       ;;
9683
9684     hpux9*)
9685       if test "$GCC" = yes; then
9686         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'
9687       else
9688         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'
9689       fi
9690       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9691       hardcode_libdir_separator=:
9692       hardcode_direct=yes
9693
9694       # hardcode_minus_L: Not really in the search PATH,
9695       # but as the default location of the library.
9696       hardcode_minus_L=yes
9697       export_dynamic_flag_spec='${wl}-E'
9698       ;;
9699
9700     hpux10*)
9701       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9702         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9703       else
9704         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9705       fi
9706       if test "$with_gnu_ld" = no; then
9707         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9708         hardcode_libdir_flag_spec_ld='+b $libdir'
9709         hardcode_libdir_separator=:
9710         hardcode_direct=yes
9711         hardcode_direct_absolute=yes
9712         export_dynamic_flag_spec='${wl}-E'
9713         # hardcode_minus_L: Not really in the search PATH,
9714         # but as the default location of the library.
9715         hardcode_minus_L=yes
9716       fi
9717       ;;
9718
9719     hpux11*)
9720       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9721         case $host_cpu in
9722         hppa*64*)
9723           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9724           ;;
9725         ia64*)
9726           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9727           ;;
9728         *)
9729           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9730           ;;
9731         esac
9732       else
9733         case $host_cpu in
9734         hppa*64*)
9735           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9736           ;;
9737         ia64*)
9738           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9739           ;;
9740         *)
9741
9742           # Older versions of the 11.00 compiler do not understand -b yet
9743           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9744           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9745 $as_echo_n "checking if $CC understands -b... " >&6; }
9746 if ${lt_cv_prog_compiler__b+:} false; then :
9747   $as_echo_n "(cached) " >&6
9748 else
9749   lt_cv_prog_compiler__b=no
9750    save_LDFLAGS="$LDFLAGS"
9751    LDFLAGS="$LDFLAGS -b"
9752    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9753    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9754      # The linker can only warn and ignore the option if not recognized
9755      # So say no if there are warnings
9756      if test -s conftest.err; then
9757        # Append any errors to the config.log.
9758        cat conftest.err 1>&5
9759        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9760        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9761        if diff conftest.exp conftest.er2 >/dev/null; then
9762          lt_cv_prog_compiler__b=yes
9763        fi
9764      else
9765        lt_cv_prog_compiler__b=yes
9766      fi
9767    fi
9768    $RM -r conftest*
9769    LDFLAGS="$save_LDFLAGS"
9770
9771 fi
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9773 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9774
9775 if test x"$lt_cv_prog_compiler__b" = xyes; then
9776     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9777 else
9778     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9779 fi
9780
9781           ;;
9782         esac
9783       fi
9784       if test "$with_gnu_ld" = no; then
9785         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9786         hardcode_libdir_separator=:
9787
9788         case $host_cpu in
9789         hppa*64*|ia64*)
9790           hardcode_direct=no
9791           hardcode_shlibpath_var=no
9792           ;;
9793         *)
9794           hardcode_direct=yes
9795           hardcode_direct_absolute=yes
9796           export_dynamic_flag_spec='${wl}-E'
9797
9798           # hardcode_minus_L: Not really in the search PATH,
9799           # but as the default location of the library.
9800           hardcode_minus_L=yes
9801           ;;
9802         esac
9803       fi
9804       ;;
9805
9806     irix5* | irix6* | nonstopux*)
9807       if test "$GCC" = yes; then
9808         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'
9809         # Try to use the -exported_symbol ld option, if it does not
9810         # work, assume that -exports_file does not work either and
9811         # implicitly export all symbols.
9812         # This should be the same for all languages, so no per-tag cache variable.
9813         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9814 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9815 if ${lt_cv_irix_exported_symbol+:} false; then :
9816   $as_echo_n "(cached) " >&6
9817 else
9818   save_LDFLAGS="$LDFLAGS"
9819            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9820            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821 /* end confdefs.h.  */
9822 int foo (void) { return 0; }
9823 _ACEOF
9824 if ac_fn_c_try_link "$LINENO"; then :
9825   lt_cv_irix_exported_symbol=yes
9826 else
9827   lt_cv_irix_exported_symbol=no
9828 fi
9829 rm -f core conftest.err conftest.$ac_objext \
9830     conftest$ac_exeext conftest.$ac_ext
9831            LDFLAGS="$save_LDFLAGS"
9832 fi
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9834 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9835         if test "$lt_cv_irix_exported_symbol" = yes; then
9836           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'
9837         fi
9838       else
9839         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'
9840         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'
9841       fi
9842       archive_cmds_need_lc='no'
9843       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9844       hardcode_libdir_separator=:
9845       inherit_rpath=yes
9846       link_all_deplibs=yes
9847       ;;
9848
9849     netbsd* | netbsdelf*-gnu)
9850       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9851         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9852       else
9853         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9854       fi
9855       hardcode_libdir_flag_spec='-R$libdir'
9856       hardcode_direct=yes
9857       hardcode_shlibpath_var=no
9858       ;;
9859
9860     newsos6)
9861       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9862       hardcode_direct=yes
9863       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9864       hardcode_libdir_separator=:
9865       hardcode_shlibpath_var=no
9866       ;;
9867
9868     *nto* | *qnx*)
9869       ;;
9870
9871     openbsd*)
9872       if test -f /usr/libexec/ld.so; then
9873         hardcode_direct=yes
9874         hardcode_shlibpath_var=no
9875         hardcode_direct_absolute=yes
9876         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9877           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9878           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9879           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9880           export_dynamic_flag_spec='${wl}-E'
9881         else
9882           case $host_os in
9883            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9884              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9885              hardcode_libdir_flag_spec='-R$libdir'
9886              ;;
9887            *)
9888              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9889              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9890              ;;
9891           esac
9892         fi
9893       else
9894         ld_shlibs=no
9895       fi
9896       ;;
9897
9898     os2*)
9899       hardcode_libdir_flag_spec='-L$libdir'
9900       hardcode_minus_L=yes
9901       allow_undefined_flag=unsupported
9902       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'
9903       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9904       ;;
9905
9906     osf3*)
9907       if test "$GCC" = yes; then
9908         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9909         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'
9910       else
9911         allow_undefined_flag=' -expect_unresolved \*'
9912         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'
9913       fi
9914       archive_cmds_need_lc='no'
9915       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9916       hardcode_libdir_separator=:
9917       ;;
9918
9919     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9920       if test "$GCC" = yes; then
9921         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9922         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'
9923         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9924       else
9925         allow_undefined_flag=' -expect_unresolved \*'
9926         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'
9927         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~
9928         $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'
9929
9930         # Both c and cxx compiler support -rpath directly
9931         hardcode_libdir_flag_spec='-rpath $libdir'
9932       fi
9933       archive_cmds_need_lc='no'
9934       hardcode_libdir_separator=:
9935       ;;
9936
9937     solaris*)
9938       no_undefined_flag=' -z defs'
9939       if test "$GCC" = yes; then
9940         wlarc='${wl}'
9941         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9942         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9943           $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'
9944       else
9945         case `$CC -V 2>&1` in
9946         *"Compilers 5.0"*)
9947           wlarc=''
9948           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9949           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9950           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9951           ;;
9952         *)
9953           wlarc='${wl}'
9954           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9955           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9956           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9957           ;;
9958         esac
9959       fi
9960       hardcode_libdir_flag_spec='-R$libdir'
9961       hardcode_shlibpath_var=no
9962       case $host_os in
9963       solaris2.[0-5] | solaris2.[0-5].*) ;;
9964       *)
9965         # The compiler driver will combine and reorder linker options,
9966         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9967         # but is careful enough not to reorder.
9968         # Supported since Solaris 2.6 (maybe 2.5.1?)
9969         if test "$GCC" = yes; then
9970           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9971         else
9972           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9973         fi
9974         ;;
9975       esac
9976       link_all_deplibs=yes
9977       ;;
9978
9979     sunos4*)
9980       if test "x$host_vendor" = xsequent; then
9981         # Use $CC to link under sequent, because it throws in some extra .o
9982         # files that make .init and .fini sections work.
9983         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9984       else
9985         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9986       fi
9987       hardcode_libdir_flag_spec='-L$libdir'
9988       hardcode_direct=yes
9989       hardcode_minus_L=yes
9990       hardcode_shlibpath_var=no
9991       ;;
9992
9993     sysv4)
9994       case $host_vendor in
9995         sni)
9996           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9997           hardcode_direct=yes # is this really true???
9998         ;;
9999         siemens)
10000           ## LD is ld it makes a PLAMLIB
10001           ## CC just makes a GrossModule.
10002           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10003           reload_cmds='$CC -r -o $output$reload_objs'
10004           hardcode_direct=no
10005         ;;
10006         motorola)
10007           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10008           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10009         ;;
10010       esac
10011       runpath_var='LD_RUN_PATH'
10012       hardcode_shlibpath_var=no
10013       ;;
10014
10015     sysv4.3*)
10016       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10017       hardcode_shlibpath_var=no
10018       export_dynamic_flag_spec='-Bexport'
10019       ;;
10020
10021     sysv4*MP*)
10022       if test -d /usr/nec; then
10023         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10024         hardcode_shlibpath_var=no
10025         runpath_var=LD_RUN_PATH
10026         hardcode_runpath_var=yes
10027         ld_shlibs=yes
10028       fi
10029       ;;
10030
10031     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10032       no_undefined_flag='${wl}-z,text'
10033       archive_cmds_need_lc=no
10034       hardcode_shlibpath_var=no
10035       runpath_var='LD_RUN_PATH'
10036
10037       if test "$GCC" = yes; then
10038         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10039         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10040       else
10041         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10042         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10043       fi
10044       ;;
10045
10046     sysv5* | sco3.2v5* | sco5v6*)
10047       # Note: We can NOT use -z defs as we might desire, because we do not
10048       # link with -lc, and that would cause any symbols used from libc to
10049       # always be unresolved, which means just about no library would
10050       # ever link correctly.  If we're not using GNU ld we use -z text
10051       # though, which does catch some bad symbols but isn't as heavy-handed
10052       # as -z defs.
10053       no_undefined_flag='${wl}-z,text'
10054       allow_undefined_flag='${wl}-z,nodefs'
10055       archive_cmds_need_lc=no
10056       hardcode_shlibpath_var=no
10057       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10058       hardcode_libdir_separator=':'
10059       link_all_deplibs=yes
10060       export_dynamic_flag_spec='${wl}-Bexport'
10061       runpath_var='LD_RUN_PATH'
10062
10063       if test "$GCC" = yes; then
10064         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10065         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10066       else
10067         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10068         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10069       fi
10070       ;;
10071
10072     uts4*)
10073       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10074       hardcode_libdir_flag_spec='-L$libdir'
10075       hardcode_shlibpath_var=no
10076       ;;
10077
10078     *)
10079       ld_shlibs=no
10080       ;;
10081     esac
10082
10083     if test x$host_vendor = xsni; then
10084       case $host in
10085       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10086         export_dynamic_flag_spec='${wl}-Blargedynsym'
10087         ;;
10088       esac
10089     fi
10090   fi
10091
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10093 $as_echo "$ld_shlibs" >&6; }
10094 test "$ld_shlibs" = no && can_build_shared=no
10095
10096 with_gnu_ld=$with_gnu_ld
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112 #
10113 # Do we need to explicitly link libc?
10114 #
10115 case "x$archive_cmds_need_lc" in
10116 x|xyes)
10117   # Assume -lc should be added
10118   archive_cmds_need_lc=yes
10119
10120   if test "$enable_shared" = yes && test "$GCC" = yes; then
10121     case $archive_cmds in
10122     *'~'*)
10123       # FIXME: we may have to deal with multi-command sequences.
10124       ;;
10125     '$CC '*)
10126       # Test whether the compiler implicitly links with -lc since on some
10127       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10128       # to ld, don't add -lc before -lgcc.
10129       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10130 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10131 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10132   $as_echo_n "(cached) " >&6
10133 else
10134   $RM conftest*
10135         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10136
10137         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10138   (eval $ac_compile) 2>&5
10139   ac_status=$?
10140   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10141   test $ac_status = 0; } 2>conftest.err; then
10142           soname=conftest
10143           lib=conftest
10144           libobjs=conftest.$ac_objext
10145           deplibs=
10146           wl=$lt_prog_compiler_wl
10147           pic_flag=$lt_prog_compiler_pic
10148           compiler_flags=-v
10149           linker_flags=-v
10150           verstring=
10151           output_objdir=.
10152           libname=conftest
10153           lt_save_allow_undefined_flag=$allow_undefined_flag
10154           allow_undefined_flag=
10155           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10156   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10157   ac_status=$?
10158   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10159   test $ac_status = 0; }
10160           then
10161             lt_cv_archive_cmds_need_lc=no
10162           else
10163             lt_cv_archive_cmds_need_lc=yes
10164           fi
10165           allow_undefined_flag=$lt_save_allow_undefined_flag
10166         else
10167           cat conftest.err 1>&5
10168         fi
10169         $RM conftest*
10170
10171 fi
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10173 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10174       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10175       ;;
10176     esac
10177   fi
10178   ;;
10179 esac
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10338 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10339
10340 if test "$GCC" = yes; then
10341   case $host_os in
10342     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10343     *) lt_awk_arg="/^libraries:/" ;;
10344   esac
10345   case $host_os in
10346     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10347     *) lt_sed_strip_eq="s,=/,/,g" ;;
10348   esac
10349   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10350   case $lt_search_path_spec in
10351   *\;*)
10352     # if the path contains ";" then we assume it to be the separator
10353     # otherwise default to the standard path separator (i.e. ":") - it is
10354     # assumed that no part of a normal pathname contains ";" but that should
10355     # okay in the real world where ";" in dirpaths is itself problematic.
10356     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10357     ;;
10358   *)
10359     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10360     ;;
10361   esac
10362   # Ok, now we have the path, separated by spaces, we can step through it
10363   # and add multilib dir if necessary.
10364   lt_tmp_lt_search_path_spec=
10365   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10366   for lt_sys_path in $lt_search_path_spec; do
10367     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10368       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10369     else
10370       test -d "$lt_sys_path" && \
10371         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10372     fi
10373   done
10374   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10375 BEGIN {RS=" "; FS="/|\n";} {
10376   lt_foo="";
10377   lt_count=0;
10378   for (lt_i = NF; lt_i > 0; lt_i--) {
10379     if ($lt_i != "" && $lt_i != ".") {
10380       if ($lt_i == "..") {
10381         lt_count++;
10382       } else {
10383         if (lt_count == 0) {
10384           lt_foo="/" $lt_i lt_foo;
10385         } else {
10386           lt_count--;
10387         }
10388       }
10389     }
10390   }
10391   if (lt_foo != "") { lt_freq[lt_foo]++; }
10392   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10393 }'`
10394   # AWK program above erroneously prepends '/' to C:/dos/paths
10395   # for these hosts.
10396   case $host_os in
10397     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10398       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10399   esac
10400   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10401 else
10402   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10403 fi
10404 library_names_spec=
10405 libname_spec='lib$name'
10406 soname_spec=
10407 shrext_cmds=".so"
10408 postinstall_cmds=
10409 postuninstall_cmds=
10410 finish_cmds=
10411 finish_eval=
10412 shlibpath_var=
10413 shlibpath_overrides_runpath=unknown
10414 version_type=none
10415 dynamic_linker="$host_os ld.so"
10416 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10417 need_lib_prefix=unknown
10418 hardcode_into_libs=no
10419
10420 # when you set need_version to no, make sure it does not cause -set_version
10421 # flags to be left without arguments
10422 need_version=unknown
10423
10424 case $host_os in
10425 aix3*)
10426   version_type=linux
10427   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10428   shlibpath_var=LIBPATH
10429
10430   # AIX 3 has no versioning support, so we append a major version to the name.
10431   soname_spec='${libname}${release}${shared_ext}$major'
10432   ;;
10433
10434 aix[4-9]*)
10435   version_type=linux
10436   need_lib_prefix=no
10437   need_version=no
10438   hardcode_into_libs=yes
10439   if test "$host_cpu" = ia64; then
10440     # AIX 5 supports IA64
10441     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10442     shlibpath_var=LD_LIBRARY_PATH
10443   else
10444     # With GCC up to 2.95.x, collect2 would create an import file
10445     # for dependence libraries.  The import file would start with
10446     # the line `#! .'.  This would cause the generated library to
10447     # depend on `.', always an invalid library.  This was fixed in
10448     # development snapshots of GCC prior to 3.0.
10449     case $host_os in
10450       aix4 | aix4.[01] | aix4.[01].*)
10451       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10452            echo ' yes '
10453            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10454         :
10455       else
10456         can_build_shared=no
10457       fi
10458       ;;
10459     esac
10460     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10461     # soname into executable. Probably we can add versioning support to
10462     # collect2, so additional links can be useful in future.
10463     if test "$aix_use_runtimelinking" = yes; then
10464       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10465       # instead of lib<name>.a to let people know that these are not
10466       # typical AIX shared libraries.
10467       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10468     else
10469       # We preserve .a as extension for shared libraries through AIX4.2
10470       # and later when we are not doing run time linking.
10471       library_names_spec='${libname}${release}.a $libname.a'
10472       soname_spec='${libname}${release}${shared_ext}$major'
10473     fi
10474     shlibpath_var=LIBPATH
10475   fi
10476   ;;
10477
10478 amigaos*)
10479   case $host_cpu in
10480   powerpc)
10481     # Since July 2007 AmigaOS4 officially supports .so libraries.
10482     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10483     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10484     ;;
10485   m68k)
10486     library_names_spec='$libname.ixlibrary $libname.a'
10487     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10488     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'
10489     ;;
10490   esac
10491   ;;
10492
10493 beos*)
10494   library_names_spec='${libname}${shared_ext}'
10495   dynamic_linker="$host_os ld.so"
10496   shlibpath_var=LIBRARY_PATH
10497   ;;
10498
10499 bsdi[45]*)
10500   version_type=linux
10501   need_version=no
10502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10503   soname_spec='${libname}${release}${shared_ext}$major'
10504   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10505   shlibpath_var=LD_LIBRARY_PATH
10506   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10507   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10508   # the default ld.so.conf also contains /usr/contrib/lib and
10509   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10510   # libtool to hard-code these into programs
10511   ;;
10512
10513 cygwin* | mingw* | pw32* | cegcc*)
10514   version_type=windows
10515   shrext_cmds=".dll"
10516   need_version=no
10517   need_lib_prefix=no
10518
10519   case $GCC,$cc_basename in
10520   yes,*)
10521     # gcc
10522     library_names_spec='$libname.dll.a'
10523     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10524     postinstall_cmds='base_file=`basename \${file}`~
10525       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10526       dldir=$destdir/`dirname \$dlpath`~
10527       test -d \$dldir || mkdir -p \$dldir~
10528       $install_prog $dir/$dlname \$dldir/$dlname~
10529       chmod a+x \$dldir/$dlname~
10530       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10531         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10532       fi'
10533     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10534       dlpath=$dir/\$dldll~
10535        $RM \$dlpath'
10536     shlibpath_overrides_runpath=yes
10537
10538     case $host_os in
10539     cygwin*)
10540       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10541       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10542
10543       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10544       ;;
10545     mingw* | cegcc*)
10546       # MinGW DLLs use traditional 'lib' prefix
10547       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10548       ;;
10549     pw32*)
10550       # pw32 DLLs use 'pw' prefix rather than 'lib'
10551       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10552       ;;
10553     esac
10554     dynamic_linker='Win32 ld.exe'
10555     ;;
10556
10557   *,cl*)
10558     # Native MSVC
10559     libname_spec='$name'
10560     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10561     library_names_spec='${libname}.dll.lib'
10562
10563     case $build_os in
10564     mingw*)
10565       sys_lib_search_path_spec=
10566       lt_save_ifs=$IFS
10567       IFS=';'
10568       for lt_path in $LIB
10569       do
10570         IFS=$lt_save_ifs
10571         # Let DOS variable expansion print the short 8.3 style file name.
10572         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10573         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10574       done
10575       IFS=$lt_save_ifs
10576       # Convert to MSYS style.
10577       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10578       ;;
10579     cygwin*)
10580       # Convert to unix form, then to dos form, then back to unix form
10581       # but this time dos style (no spaces!) so that the unix form looks
10582       # like /cygdrive/c/PROGRA~1:/cygdr...
10583       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10584       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10585       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10586       ;;
10587     *)
10588       sys_lib_search_path_spec="$LIB"
10589       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10590         # It is most probably a Windows format PATH.
10591         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10592       else
10593         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10594       fi
10595       # FIXME: find the short name or the path components, as spaces are
10596       # common. (e.g. "Program Files" -> "PROGRA~1")
10597       ;;
10598     esac
10599
10600     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10601     postinstall_cmds='base_file=`basename \${file}`~
10602       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10603       dldir=$destdir/`dirname \$dlpath`~
10604       test -d \$dldir || mkdir -p \$dldir~
10605       $install_prog $dir/$dlname \$dldir/$dlname'
10606     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10607       dlpath=$dir/\$dldll~
10608        $RM \$dlpath'
10609     shlibpath_overrides_runpath=yes
10610     dynamic_linker='Win32 link.exe'
10611     ;;
10612
10613   *)
10614     # Assume MSVC wrapper
10615     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10616     dynamic_linker='Win32 ld.exe'
10617     ;;
10618   esac
10619   # FIXME: first we should search . and the directory the executable is in
10620   shlibpath_var=PATH
10621   ;;
10622
10623 darwin* | rhapsody*)
10624   dynamic_linker="$host_os dyld"
10625   version_type=darwin
10626   need_lib_prefix=no
10627   need_version=no
10628   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10629   soname_spec='${libname}${release}${major}$shared_ext'
10630   shlibpath_overrides_runpath=yes
10631   shlibpath_var=DYLD_LIBRARY_PATH
10632   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10633
10634   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10635   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10636   ;;
10637
10638 dgux*)
10639   version_type=linux
10640   need_lib_prefix=no
10641   need_version=no
10642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10643   soname_spec='${libname}${release}${shared_ext}$major'
10644   shlibpath_var=LD_LIBRARY_PATH
10645   ;;
10646
10647 freebsd1*)
10648   dynamic_linker=no
10649   ;;
10650
10651 freebsd* | dragonfly*)
10652   # DragonFly does not have aout.  When/if they implement a new
10653   # versioning mechanism, adjust this.
10654   if test -x /usr/bin/objformat; then
10655     objformat=`/usr/bin/objformat`
10656   else
10657     case $host_os in
10658     freebsd[123]*) objformat=aout ;;
10659     *) objformat=elf ;;
10660     esac
10661   fi
10662   version_type=freebsd-$objformat
10663   case $version_type in
10664     freebsd-elf*)
10665       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10666       need_version=no
10667       need_lib_prefix=no
10668       ;;
10669     freebsd-*)
10670       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10671       need_version=yes
10672       ;;
10673   esac
10674   shlibpath_var=LD_LIBRARY_PATH
10675   case $host_os in
10676   freebsd2*)
10677     shlibpath_overrides_runpath=yes
10678     ;;
10679   freebsd3.[01]* | freebsdelf3.[01]*)
10680     shlibpath_overrides_runpath=yes
10681     hardcode_into_libs=yes
10682     ;;
10683   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10684   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10685     shlibpath_overrides_runpath=no
10686     hardcode_into_libs=yes
10687     ;;
10688   *) # from 4.6 on, and DragonFly
10689     shlibpath_overrides_runpath=yes
10690     hardcode_into_libs=yes
10691     ;;
10692   esac
10693   ;;
10694
10695 gnu*)
10696   version_type=linux
10697   need_lib_prefix=no
10698   need_version=no
10699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10700   soname_spec='${libname}${release}${shared_ext}$major'
10701   shlibpath_var=LD_LIBRARY_PATH
10702   shlibpath_overrides_runpath=no
10703   hardcode_into_libs=yes
10704   ;;
10705
10706 haiku*)
10707   version_type=linux
10708   need_lib_prefix=no
10709   need_version=no
10710   dynamic_linker="$host_os runtime_loader"
10711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10712   soname_spec='${libname}${release}${shared_ext}$major'
10713   shlibpath_var=LIBRARY_PATH
10714   shlibpath_overrides_runpath=yes
10715   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10716   hardcode_into_libs=yes
10717   ;;
10718
10719 hpux9* | hpux10* | hpux11*)
10720   # Give a soname corresponding to the major version so that dld.sl refuses to
10721   # link against other versions.
10722   version_type=sunos
10723   need_lib_prefix=no
10724   need_version=no
10725   case $host_cpu in
10726   ia64*)
10727     shrext_cmds='.so'
10728     hardcode_into_libs=yes
10729     dynamic_linker="$host_os dld.so"
10730     shlibpath_var=LD_LIBRARY_PATH
10731     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10732     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10733     soname_spec='${libname}${release}${shared_ext}$major'
10734     if test "X$HPUX_IA64_MODE" = X32; then
10735       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10736     else
10737       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10738     fi
10739     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10740     ;;
10741   hppa*64*)
10742     shrext_cmds='.sl'
10743     hardcode_into_libs=yes
10744     dynamic_linker="$host_os dld.sl"
10745     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10746     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10747     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10748     soname_spec='${libname}${release}${shared_ext}$major'
10749     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10750     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10751     ;;
10752   *)
10753     shrext_cmds='.sl'
10754     dynamic_linker="$host_os dld.sl"
10755     shlibpath_var=SHLIB_PATH
10756     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10757     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10758     soname_spec='${libname}${release}${shared_ext}$major'
10759     ;;
10760   esac
10761   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10762   postinstall_cmds='chmod 555 $lib'
10763   # or fails outright, so override atomically:
10764   install_override_mode=555
10765   ;;
10766
10767 interix[3-9]*)
10768   version_type=linux
10769   need_lib_prefix=no
10770   need_version=no
10771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10772   soname_spec='${libname}${release}${shared_ext}$major'
10773   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10774   shlibpath_var=LD_LIBRARY_PATH
10775   shlibpath_overrides_runpath=no
10776   hardcode_into_libs=yes
10777   ;;
10778
10779 irix5* | irix6* | nonstopux*)
10780   case $host_os in
10781     nonstopux*) version_type=nonstopux ;;
10782     *)
10783         if test "$lt_cv_prog_gnu_ld" = yes; then
10784                 version_type=linux
10785         else
10786                 version_type=irix
10787         fi ;;
10788   esac
10789   need_lib_prefix=no
10790   need_version=no
10791   soname_spec='${libname}${release}${shared_ext}$major'
10792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10793   case $host_os in
10794   irix5* | nonstopux*)
10795     libsuff= shlibsuff=
10796     ;;
10797   *)
10798     case $LD in # libtool.m4 will add one of these switches to LD
10799     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10800       libsuff= shlibsuff= libmagic=32-bit;;
10801     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10802       libsuff=32 shlibsuff=N32 libmagic=N32;;
10803     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10804       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10805     *) libsuff= shlibsuff= libmagic=never-match;;
10806     esac
10807     ;;
10808   esac
10809   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10810   shlibpath_overrides_runpath=no
10811   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10812   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10813   hardcode_into_libs=yes
10814   ;;
10815
10816 # No shared lib support for Linux oldld, aout, or coff.
10817 linux*oldld* | linux*aout* | linux*coff*)
10818   dynamic_linker=no
10819   ;;
10820
10821 # This must be Linux ELF.
10822 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10823   version_type=linux
10824   need_lib_prefix=no
10825   need_version=no
10826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10827   soname_spec='${libname}${release}${shared_ext}$major'
10828   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10829   shlibpath_var=LD_LIBRARY_PATH
10830   shlibpath_overrides_runpath=no
10831
10832   # Some binutils ld are patched to set DT_RUNPATH
10833   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10834   $as_echo_n "(cached) " >&6
10835 else
10836   lt_cv_shlibpath_overrides_runpath=no
10837     save_LDFLAGS=$LDFLAGS
10838     save_libdir=$libdir
10839     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10840          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10841     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10842 /* end confdefs.h.  */
10843
10844 int
10845 main ()
10846 {
10847
10848   ;
10849   return 0;
10850 }
10851 _ACEOF
10852 if ac_fn_c_try_link "$LINENO"; then :
10853   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10854   lt_cv_shlibpath_overrides_runpath=yes
10855 fi
10856 fi
10857 rm -f core conftest.err conftest.$ac_objext \
10858     conftest$ac_exeext conftest.$ac_ext
10859     LDFLAGS=$save_LDFLAGS
10860     libdir=$save_libdir
10861
10862 fi
10863
10864   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10865
10866   # This implies no fast_install, which is unacceptable.
10867   # Some rework will be needed to allow for fast_install
10868   # before this can be enabled.
10869   hardcode_into_libs=yes
10870
10871   # Append ld.so.conf contents to the search path
10872   if test -f /etc/ld.so.conf; then
10873     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' ' '`
10874     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10875   fi
10876
10877   # We used to test for /lib/ld.so.1 and disable shared libraries on
10878   # powerpc, because MkLinux only supported shared libraries with the
10879   # GNU dynamic linker.  Since this was broken with cross compilers,
10880   # most powerpc-linux boxes support dynamic linking these days and
10881   # people can always --disable-shared, the test was removed, and we
10882   # assume the GNU/Linux dynamic linker is in use.
10883   dynamic_linker='GNU/Linux ld.so'
10884   ;;
10885
10886 netbsdelf*-gnu)
10887   version_type=linux
10888   need_lib_prefix=no
10889   need_version=no
10890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10891   soname_spec='${libname}${release}${shared_ext}$major'
10892   shlibpath_var=LD_LIBRARY_PATH
10893   shlibpath_overrides_runpath=no
10894   hardcode_into_libs=yes
10895   dynamic_linker='NetBSD ld.elf_so'
10896   ;;
10897
10898 netbsd*)
10899   version_type=sunos
10900   need_lib_prefix=no
10901   need_version=no
10902   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10903     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10904     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10905     dynamic_linker='NetBSD (a.out) ld.so'
10906   else
10907     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10908     soname_spec='${libname}${release}${shared_ext}$major'
10909     dynamic_linker='NetBSD ld.elf_so'
10910   fi
10911   shlibpath_var=LD_LIBRARY_PATH
10912   shlibpath_overrides_runpath=yes
10913   hardcode_into_libs=yes
10914   ;;
10915
10916 newsos6)
10917   version_type=linux
10918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10919   shlibpath_var=LD_LIBRARY_PATH
10920   shlibpath_overrides_runpath=yes
10921   ;;
10922
10923 *nto* | *qnx*)
10924   version_type=qnx
10925   need_lib_prefix=no
10926   need_version=no
10927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10928   soname_spec='${libname}${release}${shared_ext}$major'
10929   shlibpath_var=LD_LIBRARY_PATH
10930   shlibpath_overrides_runpath=no
10931   hardcode_into_libs=yes
10932   dynamic_linker='ldqnx.so'
10933   ;;
10934
10935 openbsd*)
10936   version_type=sunos
10937   sys_lib_dlsearch_path_spec="/usr/lib"
10938   need_lib_prefix=no
10939   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10940   case $host_os in
10941     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10942     *)                          need_version=no  ;;
10943   esac
10944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10945   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10946   shlibpath_var=LD_LIBRARY_PATH
10947   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10948     case $host_os in
10949       openbsd2.[89] | openbsd2.[89].*)
10950         shlibpath_overrides_runpath=no
10951         ;;
10952       *)
10953         shlibpath_overrides_runpath=yes
10954         ;;
10955       esac
10956   else
10957     shlibpath_overrides_runpath=yes
10958   fi
10959   ;;
10960
10961 os2*)
10962   libname_spec='$name'
10963   shrext_cmds=".dll"
10964   need_lib_prefix=no
10965   library_names_spec='$libname${shared_ext} $libname.a'
10966   dynamic_linker='OS/2 ld.exe'
10967   shlibpath_var=LIBPATH
10968   ;;
10969
10970 osf3* | osf4* | osf5*)
10971   version_type=osf
10972   need_lib_prefix=no
10973   need_version=no
10974   soname_spec='${libname}${release}${shared_ext}$major'
10975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10976   shlibpath_var=LD_LIBRARY_PATH
10977   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10978   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10979   ;;
10980
10981 rdos*)
10982   dynamic_linker=no
10983   ;;
10984
10985 solaris*)
10986   version_type=linux
10987   need_lib_prefix=no
10988   need_version=no
10989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10990   soname_spec='${libname}${release}${shared_ext}$major'
10991   shlibpath_var=LD_LIBRARY_PATH
10992   shlibpath_overrides_runpath=yes
10993   hardcode_into_libs=yes
10994   # ldd complains unless libraries are executable
10995   postinstall_cmds='chmod +x $lib'
10996   ;;
10997
10998 sunos4*)
10999   version_type=sunos
11000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11001   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11002   shlibpath_var=LD_LIBRARY_PATH
11003   shlibpath_overrides_runpath=yes
11004   if test "$with_gnu_ld" = yes; then
11005     need_lib_prefix=no
11006   fi
11007   need_version=yes
11008   ;;
11009
11010 sysv4 | sysv4.3*)
11011   version_type=linux
11012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11013   soname_spec='${libname}${release}${shared_ext}$major'
11014   shlibpath_var=LD_LIBRARY_PATH
11015   case $host_vendor in
11016     sni)
11017       shlibpath_overrides_runpath=no
11018       need_lib_prefix=no
11019       runpath_var=LD_RUN_PATH
11020       ;;
11021     siemens)
11022       need_lib_prefix=no
11023       ;;
11024     motorola)
11025       need_lib_prefix=no
11026       need_version=no
11027       shlibpath_overrides_runpath=no
11028       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11029       ;;
11030   esac
11031   ;;
11032
11033 sysv4*MP*)
11034   if test -d /usr/nec ;then
11035     version_type=linux
11036     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11037     soname_spec='$libname${shared_ext}.$major'
11038     shlibpath_var=LD_LIBRARY_PATH
11039   fi
11040   ;;
11041
11042 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11043   version_type=freebsd-elf
11044   need_lib_prefix=no
11045   need_version=no
11046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11047   soname_spec='${libname}${release}${shared_ext}$major'
11048   shlibpath_var=LD_LIBRARY_PATH
11049   shlibpath_overrides_runpath=yes
11050   hardcode_into_libs=yes
11051   if test "$with_gnu_ld" = yes; then
11052     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11053   else
11054     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11055     case $host_os in
11056       sco3.2v5*)
11057         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11058         ;;
11059     esac
11060   fi
11061   sys_lib_dlsearch_path_spec='/usr/lib'
11062   ;;
11063
11064 tpf*)
11065   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11066   version_type=linux
11067   need_lib_prefix=no
11068   need_version=no
11069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11070   shlibpath_var=LD_LIBRARY_PATH
11071   shlibpath_overrides_runpath=no
11072   hardcode_into_libs=yes
11073   ;;
11074
11075 uts4*)
11076   version_type=linux
11077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11078   soname_spec='${libname}${release}${shared_ext}$major'
11079   shlibpath_var=LD_LIBRARY_PATH
11080   ;;
11081
11082 *)
11083   dynamic_linker=no
11084   ;;
11085 esac
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11087 $as_echo "$dynamic_linker" >&6; }
11088 test "$dynamic_linker" = no && can_build_shared=no
11089
11090 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11091 if test "$GCC" = yes; then
11092   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11093 fi
11094
11095 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11096   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11097 fi
11098 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11099   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11100 fi
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11194 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11195 hardcode_action=
11196 if test -n "$hardcode_libdir_flag_spec" ||
11197    test -n "$runpath_var" ||
11198    test "X$hardcode_automatic" = "Xyes" ; then
11199
11200   # We can hardcode non-existent directories.
11201   if test "$hardcode_direct" != no &&
11202      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11203      # have to relink, otherwise we might link with an installed library
11204      # when we should be linking with a yet-to-be-installed one
11205      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11206      test "$hardcode_minus_L" != no; then
11207     # Linking always hardcodes the temporary library directory.
11208     hardcode_action=relink
11209   else
11210     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11211     hardcode_action=immediate
11212   fi
11213 else
11214   # We cannot hardcode anything, or else we can only hardcode existing
11215   # directories.
11216   hardcode_action=unsupported
11217 fi
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11219 $as_echo "$hardcode_action" >&6; }
11220
11221 if test "$hardcode_action" = relink ||
11222    test "$inherit_rpath" = yes; then
11223   # Fast installation is not supported
11224   enable_fast_install=no
11225 elif test "$shlibpath_overrides_runpath" = yes ||
11226      test "$enable_shared" = no; then
11227   # Fast installation is not necessary
11228   enable_fast_install=needless
11229 fi
11230
11231
11232
11233
11234
11235
11236   if test "x$enable_dlopen" != xyes; then
11237   enable_dlopen=unknown
11238   enable_dlopen_self=unknown
11239   enable_dlopen_self_static=unknown
11240 else
11241   lt_cv_dlopen=no
11242   lt_cv_dlopen_libs=
11243
11244   case $host_os in
11245   beos*)
11246     lt_cv_dlopen="load_add_on"
11247     lt_cv_dlopen_libs=
11248     lt_cv_dlopen_self=yes
11249     ;;
11250
11251   mingw* | pw32* | cegcc*)
11252     lt_cv_dlopen="LoadLibrary"
11253     lt_cv_dlopen_libs=
11254     ;;
11255
11256   cygwin*)
11257     lt_cv_dlopen="dlopen"
11258     lt_cv_dlopen_libs=
11259     ;;
11260
11261   darwin*)
11262   # if libdl is installed we need to link against it
11263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11264 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11265 if ${ac_cv_lib_dl_dlopen+:} false; then :
11266   $as_echo_n "(cached) " >&6
11267 else
11268   ac_check_lib_save_LIBS=$LIBS
11269 LIBS="-ldl  $LIBS"
11270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11271 /* end confdefs.h.  */
11272
11273 /* Override any GCC internal prototype to avoid an error.
11274    Use char because int might match the return type of a GCC
11275    builtin and then its argument prototype would still apply.  */
11276 #ifdef __cplusplus
11277 extern "C"
11278 #endif
11279 char dlopen ();
11280 int
11281 main ()
11282 {
11283 return dlopen ();
11284   ;
11285   return 0;
11286 }
11287 _ACEOF
11288 if ac_fn_c_try_link "$LINENO"; then :
11289   ac_cv_lib_dl_dlopen=yes
11290 else
11291   ac_cv_lib_dl_dlopen=no
11292 fi
11293 rm -f core conftest.err conftest.$ac_objext \
11294     conftest$ac_exeext conftest.$ac_ext
11295 LIBS=$ac_check_lib_save_LIBS
11296 fi
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11298 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11299 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11300   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11301 else
11302
11303     lt_cv_dlopen="dyld"
11304     lt_cv_dlopen_libs=
11305     lt_cv_dlopen_self=yes
11306
11307 fi
11308
11309     ;;
11310
11311   *)
11312     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11313 if test "x$ac_cv_func_shl_load" = xyes; then :
11314   lt_cv_dlopen="shl_load"
11315 else
11316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11317 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11318 if ${ac_cv_lib_dld_shl_load+:} false; then :
11319   $as_echo_n "(cached) " >&6
11320 else
11321   ac_check_lib_save_LIBS=$LIBS
11322 LIBS="-ldld  $LIBS"
11323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11324 /* end confdefs.h.  */
11325
11326 /* Override any GCC internal prototype to avoid an error.
11327    Use char because int might match the return type of a GCC
11328    builtin and then its argument prototype would still apply.  */
11329 #ifdef __cplusplus
11330 extern "C"
11331 #endif
11332 char shl_load ();
11333 int
11334 main ()
11335 {
11336 return shl_load ();
11337   ;
11338   return 0;
11339 }
11340 _ACEOF
11341 if ac_fn_c_try_link "$LINENO"; then :
11342   ac_cv_lib_dld_shl_load=yes
11343 else
11344   ac_cv_lib_dld_shl_load=no
11345 fi
11346 rm -f core conftest.err conftest.$ac_objext \
11347     conftest$ac_exeext conftest.$ac_ext
11348 LIBS=$ac_check_lib_save_LIBS
11349 fi
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11351 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11352 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11353   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11354 else
11355   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11356 if test "x$ac_cv_func_dlopen" = xyes; then :
11357   lt_cv_dlopen="dlopen"
11358 else
11359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11360 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11361 if ${ac_cv_lib_dl_dlopen+:} false; then :
11362   $as_echo_n "(cached) " >&6
11363 else
11364   ac_check_lib_save_LIBS=$LIBS
11365 LIBS="-ldl  $LIBS"
11366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367 /* end confdefs.h.  */
11368
11369 /* Override any GCC internal prototype to avoid an error.
11370    Use char because int might match the return type of a GCC
11371    builtin and then its argument prototype would still apply.  */
11372 #ifdef __cplusplus
11373 extern "C"
11374 #endif
11375 char dlopen ();
11376 int
11377 main ()
11378 {
11379 return dlopen ();
11380   ;
11381   return 0;
11382 }
11383 _ACEOF
11384 if ac_fn_c_try_link "$LINENO"; then :
11385   ac_cv_lib_dl_dlopen=yes
11386 else
11387   ac_cv_lib_dl_dlopen=no
11388 fi
11389 rm -f core conftest.err conftest.$ac_objext \
11390     conftest$ac_exeext conftest.$ac_ext
11391 LIBS=$ac_check_lib_save_LIBS
11392 fi
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11394 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11395 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11396   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11397 else
11398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11399 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11400 if ${ac_cv_lib_svld_dlopen+:} false; then :
11401   $as_echo_n "(cached) " >&6
11402 else
11403   ac_check_lib_save_LIBS=$LIBS
11404 LIBS="-lsvld  $LIBS"
11405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11406 /* end confdefs.h.  */
11407
11408 /* Override any GCC internal prototype to avoid an error.
11409    Use char because int might match the return type of a GCC
11410    builtin and then its argument prototype would still apply.  */
11411 #ifdef __cplusplus
11412 extern "C"
11413 #endif
11414 char dlopen ();
11415 int
11416 main ()
11417 {
11418 return dlopen ();
11419   ;
11420   return 0;
11421 }
11422 _ACEOF
11423 if ac_fn_c_try_link "$LINENO"; then :
11424   ac_cv_lib_svld_dlopen=yes
11425 else
11426   ac_cv_lib_svld_dlopen=no
11427 fi
11428 rm -f core conftest.err conftest.$ac_objext \
11429     conftest$ac_exeext conftest.$ac_ext
11430 LIBS=$ac_check_lib_save_LIBS
11431 fi
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11433 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11434 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11435   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11436 else
11437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11438 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11439 if ${ac_cv_lib_dld_dld_link+:} false; then :
11440   $as_echo_n "(cached) " >&6
11441 else
11442   ac_check_lib_save_LIBS=$LIBS
11443 LIBS="-ldld  $LIBS"
11444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11445 /* end confdefs.h.  */
11446
11447 /* Override any GCC internal prototype to avoid an error.
11448    Use char because int might match the return type of a GCC
11449    builtin and then its argument prototype would still apply.  */
11450 #ifdef __cplusplus
11451 extern "C"
11452 #endif
11453 char dld_link ();
11454 int
11455 main ()
11456 {
11457 return dld_link ();
11458   ;
11459   return 0;
11460 }
11461 _ACEOF
11462 if ac_fn_c_try_link "$LINENO"; then :
11463   ac_cv_lib_dld_dld_link=yes
11464 else
11465   ac_cv_lib_dld_dld_link=no
11466 fi
11467 rm -f core conftest.err conftest.$ac_objext \
11468     conftest$ac_exeext conftest.$ac_ext
11469 LIBS=$ac_check_lib_save_LIBS
11470 fi
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11472 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11473 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11474   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11475 fi
11476
11477
11478 fi
11479
11480
11481 fi
11482
11483
11484 fi
11485
11486
11487 fi
11488
11489
11490 fi
11491
11492     ;;
11493   esac
11494
11495   if test "x$lt_cv_dlopen" != xno; then
11496     enable_dlopen=yes
11497   else
11498     enable_dlopen=no
11499   fi
11500
11501   case $lt_cv_dlopen in
11502   dlopen)
11503     save_CPPFLAGS="$CPPFLAGS"
11504     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11505
11506     save_LDFLAGS="$LDFLAGS"
11507     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11508
11509     save_LIBS="$LIBS"
11510     LIBS="$lt_cv_dlopen_libs $LIBS"
11511
11512     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11513 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11514 if ${lt_cv_dlopen_self+:} false; then :
11515   $as_echo_n "(cached) " >&6
11516 else
11517           if test "$cross_compiling" = yes; then :
11518   lt_cv_dlopen_self=cross
11519 else
11520   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11521   lt_status=$lt_dlunknown
11522   cat > conftest.$ac_ext <<_LT_EOF
11523 #line $LINENO "configure"
11524 #include "confdefs.h"
11525
11526 #if HAVE_DLFCN_H
11527 #include <dlfcn.h>
11528 #endif
11529
11530 #include <stdio.h>
11531
11532 #ifdef RTLD_GLOBAL
11533 #  define LT_DLGLOBAL           RTLD_GLOBAL
11534 #else
11535 #  ifdef DL_GLOBAL
11536 #    define LT_DLGLOBAL         DL_GLOBAL
11537 #  else
11538 #    define LT_DLGLOBAL         0
11539 #  endif
11540 #endif
11541
11542 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11543    find out it does not work in some platform. */
11544 #ifndef LT_DLLAZY_OR_NOW
11545 #  ifdef RTLD_LAZY
11546 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11547 #  else
11548 #    ifdef DL_LAZY
11549 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11550 #    else
11551 #      ifdef RTLD_NOW
11552 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11553 #      else
11554 #        ifdef DL_NOW
11555 #          define LT_DLLAZY_OR_NOW      DL_NOW
11556 #        else
11557 #          define LT_DLLAZY_OR_NOW      0
11558 #        endif
11559 #      endif
11560 #    endif
11561 #  endif
11562 #endif
11563
11564 /* When -fvisbility=hidden is used, assume the code has been annotated
11565    correspondingly for the symbols needed.  */
11566 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11567 int fnord () __attribute__((visibility("default")));
11568 #endif
11569
11570 int fnord () { return 42; }
11571 int main ()
11572 {
11573   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11574   int status = $lt_dlunknown;
11575
11576   if (self)
11577     {
11578       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11579       else
11580         {
11581           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11582           else puts (dlerror ());
11583         }
11584       /* dlclose (self); */
11585     }
11586   else
11587     puts (dlerror ());
11588
11589   return status;
11590 }
11591 _LT_EOF
11592   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11593   (eval $ac_link) 2>&5
11594   ac_status=$?
11595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11596   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11597     (./conftest; exit; ) >&5 2>/dev/null
11598     lt_status=$?
11599     case x$lt_status in
11600       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11601       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11602       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11603     esac
11604   else :
11605     # compilation failed
11606     lt_cv_dlopen_self=no
11607   fi
11608 fi
11609 rm -fr conftest*
11610
11611
11612 fi
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11614 $as_echo "$lt_cv_dlopen_self" >&6; }
11615
11616     if test "x$lt_cv_dlopen_self" = xyes; then
11617       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11618       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11619 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11620 if ${lt_cv_dlopen_self_static+:} false; then :
11621   $as_echo_n "(cached) " >&6
11622 else
11623           if test "$cross_compiling" = yes; then :
11624   lt_cv_dlopen_self_static=cross
11625 else
11626   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11627   lt_status=$lt_dlunknown
11628   cat > conftest.$ac_ext <<_LT_EOF
11629 #line $LINENO "configure"
11630 #include "confdefs.h"
11631
11632 #if HAVE_DLFCN_H
11633 #include <dlfcn.h>
11634 #endif
11635
11636 #include <stdio.h>
11637
11638 #ifdef RTLD_GLOBAL
11639 #  define LT_DLGLOBAL           RTLD_GLOBAL
11640 #else
11641 #  ifdef DL_GLOBAL
11642 #    define LT_DLGLOBAL         DL_GLOBAL
11643 #  else
11644 #    define LT_DLGLOBAL         0
11645 #  endif
11646 #endif
11647
11648 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11649    find out it does not work in some platform. */
11650 #ifndef LT_DLLAZY_OR_NOW
11651 #  ifdef RTLD_LAZY
11652 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11653 #  else
11654 #    ifdef DL_LAZY
11655 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11656 #    else
11657 #      ifdef RTLD_NOW
11658 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11659 #      else
11660 #        ifdef DL_NOW
11661 #          define LT_DLLAZY_OR_NOW      DL_NOW
11662 #        else
11663 #          define LT_DLLAZY_OR_NOW      0
11664 #        endif
11665 #      endif
11666 #    endif
11667 #  endif
11668 #endif
11669
11670 /* When -fvisbility=hidden is used, assume the code has been annotated
11671    correspondingly for the symbols needed.  */
11672 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11673 int fnord () __attribute__((visibility("default")));
11674 #endif
11675
11676 int fnord () { return 42; }
11677 int main ()
11678 {
11679   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11680   int status = $lt_dlunknown;
11681
11682   if (self)
11683     {
11684       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11685       else
11686         {
11687           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11688           else puts (dlerror ());
11689         }
11690       /* dlclose (self); */
11691     }
11692   else
11693     puts (dlerror ());
11694
11695   return status;
11696 }
11697 _LT_EOF
11698   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11699   (eval $ac_link) 2>&5
11700   ac_status=$?
11701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11702   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11703     (./conftest; exit; ) >&5 2>/dev/null
11704     lt_status=$?
11705     case x$lt_status in
11706       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11707       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11708       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11709     esac
11710   else :
11711     # compilation failed
11712     lt_cv_dlopen_self_static=no
11713   fi
11714 fi
11715 rm -fr conftest*
11716
11717
11718 fi
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11720 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11721     fi
11722
11723     CPPFLAGS="$save_CPPFLAGS"
11724     LDFLAGS="$save_LDFLAGS"
11725     LIBS="$save_LIBS"
11726     ;;
11727   esac
11728
11729   case $lt_cv_dlopen_self in
11730   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11731   *) enable_dlopen_self=unknown ;;
11732   esac
11733
11734   case $lt_cv_dlopen_self_static in
11735   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11736   *) enable_dlopen_self_static=unknown ;;
11737   esac
11738 fi
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756 striplib=
11757 old_striplib=
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11759 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11760 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11761   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11762   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11764 $as_echo "yes" >&6; }
11765 else
11766 # FIXME - insert some real tests, host_os isn't really good enough
11767   case $host_os in
11768   darwin*)
11769     if test -n "$STRIP" ; then
11770       striplib="$STRIP -x"
11771       old_striplib="$STRIP -S"
11772       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11773 $as_echo "yes" >&6; }
11774     else
11775       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11776 $as_echo "no" >&6; }
11777     fi
11778     ;;
11779   *)
11780     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11781 $as_echo "no" >&6; }
11782     ;;
11783   esac
11784 fi
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797   # Report which library types will actually be built
11798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11799 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11801 $as_echo "$can_build_shared" >&6; }
11802
11803   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11804 $as_echo_n "checking whether to build shared libraries... " >&6; }
11805   test "$can_build_shared" = "no" && enable_shared=no
11806
11807   # On AIX, shared libraries and static libraries use the same namespace, and
11808   # are all built from PIC.
11809   case $host_os in
11810   aix3*)
11811     test "$enable_shared" = yes && enable_static=no
11812     if test -n "$RANLIB"; then
11813       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11814       postinstall_cmds='$RANLIB $lib'
11815     fi
11816     ;;
11817
11818   aix[4-9]*)
11819     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11820       test "$enable_shared" = yes && enable_static=no
11821     fi
11822     ;;
11823   esac
11824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11825 $as_echo "$enable_shared" >&6; }
11826
11827   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11828 $as_echo_n "checking whether to build static libraries... " >&6; }
11829   # Make sure either enable_shared or enable_static is yes.
11830   test "$enable_shared" = yes || enable_static=yes
11831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11832 $as_echo "$enable_static" >&6; }
11833
11834
11835
11836
11837 fi
11838 ac_ext=cpp
11839 ac_cpp='$CXXCPP $CPPFLAGS'
11840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11843
11844 CC="$lt_save_CC"
11845
11846       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11847     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11848     (test "X$CXX" != "Xg++"))) ; then
11849   ac_ext=cpp
11850 ac_cpp='$CXXCPP $CPPFLAGS'
11851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11855 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11856 if test -z "$CXXCPP"; then
11857   if ${ac_cv_prog_CXXCPP+:} false; then :
11858   $as_echo_n "(cached) " >&6
11859 else
11860       # Double quotes because CXXCPP needs to be expanded
11861     for CXXCPP in "$CXX -E" "/lib/cpp"
11862     do
11863       ac_preproc_ok=false
11864 for ac_cxx_preproc_warn_flag in '' yes
11865 do
11866   # Use a header file that comes with gcc, so configuring glibc
11867   # with a fresh cross-compiler works.
11868   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11869   # <limits.h> exists even on freestanding compilers.
11870   # On the NeXT, cc -E runs the code through the compiler's parser,
11871   # not just through cpp. "Syntax error" is here to catch this case.
11872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11873 /* end confdefs.h.  */
11874 #ifdef __STDC__
11875 # include <limits.h>
11876 #else
11877 # include <assert.h>
11878 #endif
11879                      Syntax error
11880 _ACEOF
11881 if ac_fn_cxx_try_cpp "$LINENO"; then :
11882
11883 else
11884   # Broken: fails on valid input.
11885 continue
11886 fi
11887 rm -f conftest.err conftest.i conftest.$ac_ext
11888
11889   # OK, works on sane cases.  Now check whether nonexistent headers
11890   # can be detected and how.
11891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11892 /* end confdefs.h.  */
11893 #include <ac_nonexistent.h>
11894 _ACEOF
11895 if ac_fn_cxx_try_cpp "$LINENO"; then :
11896   # Broken: success on invalid input.
11897 continue
11898 else
11899   # Passes both tests.
11900 ac_preproc_ok=:
11901 break
11902 fi
11903 rm -f conftest.err conftest.i conftest.$ac_ext
11904
11905 done
11906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11907 rm -f conftest.i conftest.err conftest.$ac_ext
11908 if $ac_preproc_ok; then :
11909   break
11910 fi
11911
11912     done
11913     ac_cv_prog_CXXCPP=$CXXCPP
11914
11915 fi
11916   CXXCPP=$ac_cv_prog_CXXCPP
11917 else
11918   ac_cv_prog_CXXCPP=$CXXCPP
11919 fi
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11921 $as_echo "$CXXCPP" >&6; }
11922 ac_preproc_ok=false
11923 for ac_cxx_preproc_warn_flag in '' yes
11924 do
11925   # Use a header file that comes with gcc, so configuring glibc
11926   # with a fresh cross-compiler works.
11927   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11928   # <limits.h> exists even on freestanding compilers.
11929   # On the NeXT, cc -E runs the code through the compiler's parser,
11930   # not just through cpp. "Syntax error" is here to catch this case.
11931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11932 /* end confdefs.h.  */
11933 #ifdef __STDC__
11934 # include <limits.h>
11935 #else
11936 # include <assert.h>
11937 #endif
11938                      Syntax error
11939 _ACEOF
11940 if ac_fn_cxx_try_cpp "$LINENO"; then :
11941
11942 else
11943   # Broken: fails on valid input.
11944 continue
11945 fi
11946 rm -f conftest.err conftest.i conftest.$ac_ext
11947
11948   # OK, works on sane cases.  Now check whether nonexistent headers
11949   # can be detected and how.
11950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11951 /* end confdefs.h.  */
11952 #include <ac_nonexistent.h>
11953 _ACEOF
11954 if ac_fn_cxx_try_cpp "$LINENO"; then :
11955   # Broken: success on invalid input.
11956 continue
11957 else
11958   # Passes both tests.
11959 ac_preproc_ok=:
11960 break
11961 fi
11962 rm -f conftest.err conftest.i conftest.$ac_ext
11963
11964 done
11965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11966 rm -f conftest.i conftest.err conftest.$ac_ext
11967 if $ac_preproc_ok; then :
11968
11969 else
11970   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11972 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11973 See \`config.log' for more details" "$LINENO" 5; }
11974 fi
11975
11976 ac_ext=cpp
11977 ac_cpp='$CXXCPP $CPPFLAGS'
11978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11981
11982 else
11983   _lt_caught_CXX_error=yes
11984 fi
11985
11986 ac_ext=cpp
11987 ac_cpp='$CXXCPP $CPPFLAGS'
11988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11991
11992 archive_cmds_need_lc_CXX=no
11993 allow_undefined_flag_CXX=
11994 always_export_symbols_CXX=no
11995 archive_expsym_cmds_CXX=
11996 compiler_needs_object_CXX=no
11997 export_dynamic_flag_spec_CXX=
11998 hardcode_direct_CXX=no
11999 hardcode_direct_absolute_CXX=no
12000 hardcode_libdir_flag_spec_CXX=
12001 hardcode_libdir_flag_spec_ld_CXX=
12002 hardcode_libdir_separator_CXX=
12003 hardcode_minus_L_CXX=no
12004 hardcode_shlibpath_var_CXX=unsupported
12005 hardcode_automatic_CXX=no
12006 inherit_rpath_CXX=no
12007 module_cmds_CXX=
12008 module_expsym_cmds_CXX=
12009 link_all_deplibs_CXX=unknown
12010 old_archive_cmds_CXX=$old_archive_cmds
12011 reload_flag_CXX=$reload_flag
12012 reload_cmds_CXX=$reload_cmds
12013 no_undefined_flag_CXX=
12014 whole_archive_flag_spec_CXX=
12015 enable_shared_with_static_runtimes_CXX=no
12016
12017 # Source file extension for C++ test sources.
12018 ac_ext=cpp
12019
12020 # Object file extension for compiled C++ test sources.
12021 objext=o
12022 objext_CXX=$objext
12023
12024 # No sense in running all these tests if we already determined that
12025 # the CXX compiler isn't working.  Some variables (like enable_shared)
12026 # are currently assumed to apply to all compilers on this platform,
12027 # and will be corrupted by setting them based on a non-working compiler.
12028 if test "$_lt_caught_CXX_error" != yes; then
12029   # Code to be used in simple compile tests
12030   lt_simple_compile_test_code="int some_variable = 0;"
12031
12032   # Code to be used in simple link tests
12033   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12034
12035   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12036
12037
12038
12039
12040
12041
12042 # If no C compiler was specified, use CC.
12043 LTCC=${LTCC-"$CC"}
12044
12045 # If no C compiler flags were specified, use CFLAGS.
12046 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12047
12048 # Allow CC to be a program name with arguments.
12049 compiler=$CC
12050
12051
12052   # save warnings/boilerplate of simple test code
12053   ac_outfile=conftest.$ac_objext
12054 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12055 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12056 _lt_compiler_boilerplate=`cat conftest.err`
12057 $RM conftest*
12058
12059   ac_outfile=conftest.$ac_objext
12060 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12061 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12062 _lt_linker_boilerplate=`cat conftest.err`
12063 $RM -r conftest*
12064
12065
12066   # Allow CC to be a program name with arguments.
12067   lt_save_CC=$CC
12068   lt_save_CFLAGS=$CFLAGS
12069   lt_save_LD=$LD
12070   lt_save_GCC=$GCC
12071   GCC=$GXX
12072   lt_save_with_gnu_ld=$with_gnu_ld
12073   lt_save_path_LD=$lt_cv_path_LD
12074   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12075     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12076   else
12077     $as_unset lt_cv_prog_gnu_ld
12078   fi
12079   if test -n "${lt_cv_path_LDCXX+set}"; then
12080     lt_cv_path_LD=$lt_cv_path_LDCXX
12081   else
12082     $as_unset lt_cv_path_LD
12083   fi
12084   test -z "${LDCXX+set}" || LD=$LDCXX
12085   CC=${CXX-"c++"}
12086   CFLAGS=$CXXFLAGS
12087   compiler=$CC
12088   compiler_CXX=$CC
12089   for cc_temp in $compiler""; do
12090   case $cc_temp in
12091     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12092     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12093     \-*) ;;
12094     *) break;;
12095   esac
12096 done
12097 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12098
12099
12100   if test -n "$compiler"; then
12101     # We don't want -fno-exception when compiling C++ code, so set the
12102     # no_builtin_flag separately
12103     if test "$GXX" = yes; then
12104       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12105     else
12106       lt_prog_compiler_no_builtin_flag_CXX=
12107     fi
12108
12109     if test "$GXX" = yes; then
12110       # Set up default GNU C++ configuration
12111
12112
12113
12114 # Check whether --with-gnu-ld was given.
12115 if test "${with_gnu_ld+set}" = set; then :
12116   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12117 else
12118   with_gnu_ld=no
12119 fi
12120
12121 ac_prog=ld
12122 if test "$GCC" = yes; then
12123   # Check if gcc -print-prog-name=ld gives a path.
12124   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12125 $as_echo_n "checking for ld used by $CC... " >&6; }
12126   case $host in
12127   *-*-mingw*)
12128     # gcc leaves a trailing carriage return which upsets mingw
12129     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12130   *)
12131     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12132   esac
12133   case $ac_prog in
12134     # Accept absolute paths.
12135     [\\/]* | ?:[\\/]*)
12136       re_direlt='/[^/][^/]*/\.\./'
12137       # Canonicalize the pathname of ld
12138       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12139       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12140         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12141       done
12142       test -z "$LD" && LD="$ac_prog"
12143       ;;
12144   "")
12145     # If it fails, then pretend we aren't using GCC.
12146     ac_prog=ld
12147     ;;
12148   *)
12149     # If it is relative, then search for the first ld in PATH.
12150     with_gnu_ld=unknown
12151     ;;
12152   esac
12153 elif test "$with_gnu_ld" = yes; then
12154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12155 $as_echo_n "checking for GNU ld... " >&6; }
12156 else
12157   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12158 $as_echo_n "checking for non-GNU ld... " >&6; }
12159 fi
12160 if ${lt_cv_path_LD+:} false; then :
12161   $as_echo_n "(cached) " >&6
12162 else
12163   if test -z "$LD"; then
12164   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12165   for ac_dir in $PATH; do
12166     IFS="$lt_save_ifs"
12167     test -z "$ac_dir" && ac_dir=.
12168     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12169       lt_cv_path_LD="$ac_dir/$ac_prog"
12170       # Check to see if the program is GNU ld.  I'd rather use --version,
12171       # but apparently some variants of GNU ld only accept -v.
12172       # Break only if it was the GNU/non-GNU ld that we prefer.
12173       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12174       *GNU* | *'with BFD'*)
12175         test "$with_gnu_ld" != no && break
12176         ;;
12177       *)
12178         test "$with_gnu_ld" != yes && break
12179         ;;
12180       esac
12181     fi
12182   done
12183   IFS="$lt_save_ifs"
12184 else
12185   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12186 fi
12187 fi
12188
12189 LD="$lt_cv_path_LD"
12190 if test -n "$LD"; then
12191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12192 $as_echo "$LD" >&6; }
12193 else
12194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12195 $as_echo "no" >&6; }
12196 fi
12197 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12199 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12200 if ${lt_cv_prog_gnu_ld+:} false; then :
12201   $as_echo_n "(cached) " >&6
12202 else
12203   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12204 case `$LD -v 2>&1 </dev/null` in
12205 *GNU* | *'with BFD'*)
12206   lt_cv_prog_gnu_ld=yes
12207   ;;
12208 *)
12209   lt_cv_prog_gnu_ld=no
12210   ;;
12211 esac
12212 fi
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12214 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12215 with_gnu_ld=$lt_cv_prog_gnu_ld
12216
12217
12218
12219
12220
12221
12222
12223       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12224       # archiving commands below assume that GNU ld is being used.
12225       if test "$with_gnu_ld" = yes; then
12226         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12227         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'
12228
12229         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12230         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12231
12232         # If archive_cmds runs LD, not CC, wlarc should be empty
12233         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12234         #     investigate it a little bit more. (MM)
12235         wlarc='${wl}'
12236
12237         # ancient GNU ld didn't support --whole-archive et. al.
12238         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12239           $GREP 'no-whole-archive' > /dev/null; then
12240           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12241         else
12242           whole_archive_flag_spec_CXX=
12243         fi
12244       else
12245         with_gnu_ld=no
12246         wlarc=
12247
12248         # A generic and very simple default shared library creation
12249         # command for GNU C++ for the case where it uses the native
12250         # linker, instead of GNU ld.  If possible, this setting should
12251         # overridden to take advantage of the native linker features on
12252         # the platform it is being used on.
12253         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12254       fi
12255
12256       # Commands to make compiler produce verbose output that lists
12257       # what "hidden" libraries, object files and flags are used when
12258       # linking a shared library.
12259       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12260
12261     else
12262       GXX=no
12263       with_gnu_ld=no
12264       wlarc=
12265     fi
12266
12267     # PORTME: fill in a description of your system's C++ link characteristics
12268     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12269 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12270     ld_shlibs_CXX=yes
12271     case $host_os in
12272       aix3*)
12273         # FIXME: insert proper C++ library support
12274         ld_shlibs_CXX=no
12275         ;;
12276       aix[4-9]*)
12277         if test "$host_cpu" = ia64; then
12278           # On IA64, the linker does run time linking by default, so we don't
12279           # have to do anything special.
12280           aix_use_runtimelinking=no
12281           exp_sym_flag='-Bexport'
12282           no_entry_flag=""
12283         else
12284           aix_use_runtimelinking=no
12285
12286           # Test if we are trying to use run time linking or normal
12287           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12288           # need to do runtime linking.
12289           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12290             for ld_flag in $LDFLAGS; do
12291               case $ld_flag in
12292               *-brtl*)
12293                 aix_use_runtimelinking=yes
12294                 break
12295                 ;;
12296               esac
12297             done
12298             ;;
12299           esac
12300
12301           exp_sym_flag='-bexport'
12302           no_entry_flag='-bnoentry'
12303         fi
12304
12305         # When large executables or shared objects are built, AIX ld can
12306         # have problems creating the table of contents.  If linking a library
12307         # or program results in "error TOC overflow" add -mminimal-toc to
12308         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12309         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12310
12311         archive_cmds_CXX=''
12312         hardcode_direct_CXX=yes
12313         hardcode_direct_absolute_CXX=yes
12314         hardcode_libdir_separator_CXX=':'
12315         link_all_deplibs_CXX=yes
12316         file_list_spec_CXX='${wl}-f,'
12317
12318         if test "$GXX" = yes; then
12319           case $host_os in aix4.[012]|aix4.[012].*)
12320           # We only want to do this on AIX 4.2 and lower, the check
12321           # below for broken collect2 doesn't work under 4.3+
12322           collect2name=`${CC} -print-prog-name=collect2`
12323           if test -f "$collect2name" &&
12324              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12325           then
12326             # We have reworked collect2
12327             :
12328           else
12329             # We have old collect2
12330             hardcode_direct_CXX=unsupported
12331             # It fails to find uninstalled libraries when the uninstalled
12332             # path is not listed in the libpath.  Setting hardcode_minus_L
12333             # to unsupported forces relinking
12334             hardcode_minus_L_CXX=yes
12335             hardcode_libdir_flag_spec_CXX='-L$libdir'
12336             hardcode_libdir_separator_CXX=
12337           fi
12338           esac
12339           shared_flag='-shared'
12340           if test "$aix_use_runtimelinking" = yes; then
12341             shared_flag="$shared_flag "'${wl}-G'
12342           fi
12343         else
12344           # not using gcc
12345           if test "$host_cpu" = ia64; then
12346           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12347           # chokes on -Wl,-G. The following line is correct:
12348           shared_flag='-G'
12349           else
12350             if test "$aix_use_runtimelinking" = yes; then
12351               shared_flag='${wl}-G'
12352             else
12353               shared_flag='${wl}-bM:SRE'
12354             fi
12355           fi
12356         fi
12357
12358         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12359         # It seems that -bexpall does not export symbols beginning with
12360         # underscore (_), so it is better to generate a list of symbols to
12361         # export.
12362         always_export_symbols_CXX=yes
12363         if test "$aix_use_runtimelinking" = yes; then
12364           # Warning - without using the other runtime loading flags (-brtl),
12365           # -berok will link without error, but may produce a broken library.
12366           allow_undefined_flag_CXX='-berok'
12367           # Determine the default libpath from the value encoded in an empty
12368           # executable.
12369           if test "${lt_cv_aix_libpath+set}" = set; then
12370   aix_libpath=$lt_cv_aix_libpath
12371 else
12372   if ${lt_cv_aix_libpath__CXX+:} false; then :
12373   $as_echo_n "(cached) " >&6
12374 else
12375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12376 /* end confdefs.h.  */
12377
12378 int
12379 main ()
12380 {
12381
12382   ;
12383   return 0;
12384 }
12385 _ACEOF
12386 if ac_fn_cxx_try_link "$LINENO"; then :
12387
12388   lt_aix_libpath_sed='
12389       /Import File Strings/,/^$/ {
12390           /^0/ {
12391               s/^0  *\([^ ]*\) *$/\1/
12392               p
12393           }
12394       }'
12395   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12396   # Check for a 64-bit object if we didn't find anything.
12397   if test -z "$lt_cv_aix_libpath__CXX"; then
12398     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12399   fi
12400 fi
12401 rm -f core conftest.err conftest.$ac_objext \
12402     conftest$ac_exeext conftest.$ac_ext
12403   if test -z "$lt_cv_aix_libpath__CXX"; then
12404     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12405   fi
12406
12407 fi
12408
12409   aix_libpath=$lt_cv_aix_libpath__CXX
12410 fi
12411
12412           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12413
12414           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"
12415         else
12416           if test "$host_cpu" = ia64; then
12417             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12418             allow_undefined_flag_CXX="-z nodefs"
12419             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"
12420           else
12421             # Determine the default libpath from the value encoded in an
12422             # empty executable.
12423             if test "${lt_cv_aix_libpath+set}" = set; then
12424   aix_libpath=$lt_cv_aix_libpath
12425 else
12426   if ${lt_cv_aix_libpath__CXX+:} false; then :
12427   $as_echo_n "(cached) " >&6
12428 else
12429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12430 /* end confdefs.h.  */
12431
12432 int
12433 main ()
12434 {
12435
12436   ;
12437   return 0;
12438 }
12439 _ACEOF
12440 if ac_fn_cxx_try_link "$LINENO"; then :
12441
12442   lt_aix_libpath_sed='
12443       /Import File Strings/,/^$/ {
12444           /^0/ {
12445               s/^0  *\([^ ]*\) *$/\1/
12446               p
12447           }
12448       }'
12449   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12450   # Check for a 64-bit object if we didn't find anything.
12451   if test -z "$lt_cv_aix_libpath__CXX"; then
12452     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12453   fi
12454 fi
12455 rm -f core conftest.err conftest.$ac_objext \
12456     conftest$ac_exeext conftest.$ac_ext
12457   if test -z "$lt_cv_aix_libpath__CXX"; then
12458     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12459   fi
12460
12461 fi
12462
12463   aix_libpath=$lt_cv_aix_libpath__CXX
12464 fi
12465
12466             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12467             # Warning - without using the other run time loading flags,
12468             # -berok will link without error, but may produce a broken library.
12469             no_undefined_flag_CXX=' ${wl}-bernotok'
12470             allow_undefined_flag_CXX=' ${wl}-berok'
12471             if test "$with_gnu_ld" = yes; then
12472               # We only use this code for GNU lds that support --whole-archive.
12473               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12474             else
12475               # Exported symbols can be pulled into shared objects from archives
12476               whole_archive_flag_spec_CXX='$convenience'
12477             fi
12478             archive_cmds_need_lc_CXX=yes
12479             # This is similar to how AIX traditionally builds its shared
12480             # libraries.
12481             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'
12482           fi
12483         fi
12484         ;;
12485
12486       beos*)
12487         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12488           allow_undefined_flag_CXX=unsupported
12489           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12490           # support --undefined.  This deserves some investigation.  FIXME
12491           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12492         else
12493           ld_shlibs_CXX=no
12494         fi
12495         ;;
12496
12497       chorus*)
12498         case $cc_basename in
12499           *)
12500           # FIXME: insert proper C++ library support
12501           ld_shlibs_CXX=no
12502           ;;
12503         esac
12504         ;;
12505
12506       cygwin* | mingw* | pw32* | cegcc*)
12507         case $GXX,$cc_basename in
12508         ,cl* | no,cl*)
12509           # Native MSVC
12510           # hardcode_libdir_flag_spec is actually meaningless, as there is
12511           # no search path for DLLs.
12512           hardcode_libdir_flag_spec_CXX=' '
12513           allow_undefined_flag_CXX=unsupported
12514           always_export_symbols_CXX=yes
12515           file_list_spec_CXX='@'
12516           # Tell ltmain to make .lib files, not .a files.
12517           libext=lib
12518           # Tell ltmain to make .dll files, not .so files.
12519           shrext_cmds=".dll"
12520           # FIXME: Setting linknames here is a bad hack.
12521           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12522           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12523               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12524             else
12525               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12526             fi~
12527             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12528             linknames='
12529           # The linker will not automatically build a static lib if we build a DLL.
12530           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12531           enable_shared_with_static_runtimes_CXX=yes
12532           # Don't use ranlib
12533           old_postinstall_cmds_CXX='chmod 644 $oldlib'
12534           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12535             lt_tool_outputfile="@TOOL_OUTPUT@"~
12536             case $lt_outputfile in
12537               *.exe|*.EXE) ;;
12538               *)
12539                 lt_outputfile="$lt_outputfile.exe"
12540                 lt_tool_outputfile="$lt_tool_outputfile.exe"
12541                 ;;
12542             esac~
12543             func_to_tool_file "$lt_outputfile"~
12544             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12545               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12546               $RM "$lt_outputfile.manifest";
12547             fi'
12548           ;;
12549         *)
12550           # g++
12551           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12552           # as there is no search path for DLLs.
12553           hardcode_libdir_flag_spec_CXX='-L$libdir'
12554           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12555           allow_undefined_flag_CXX=unsupported
12556           always_export_symbols_CXX=no
12557           enable_shared_with_static_runtimes_CXX=yes
12558
12559           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12560             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'
12561             # If the export-symbols file already is a .def file (1st line
12562             # is EXPORTS), use it as is; otherwise, prepend...
12563             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12564               cp $export_symbols $output_objdir/$soname.def;
12565             else
12566               echo EXPORTS > $output_objdir/$soname.def;
12567               cat $export_symbols >> $output_objdir/$soname.def;
12568             fi~
12569             $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'
12570           else
12571             ld_shlibs_CXX=no
12572           fi
12573           ;;
12574         esac
12575         ;;
12576       darwin* | rhapsody*)
12577
12578
12579   archive_cmds_need_lc_CXX=no
12580   hardcode_direct_CXX=no
12581   hardcode_automatic_CXX=yes
12582   hardcode_shlibpath_var_CXX=unsupported
12583   if test "$lt_cv_ld_force_load" = "yes"; then
12584     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\"`'
12585   else
12586     whole_archive_flag_spec_CXX=''
12587   fi
12588   link_all_deplibs_CXX=yes
12589   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12590   case $cc_basename in
12591      ifort*) _lt_dar_can_shared=yes ;;
12592      *) _lt_dar_can_shared=$GCC ;;
12593   esac
12594   if test "$_lt_dar_can_shared" = "yes"; then
12595     output_verbose_link_cmd=func_echo_all
12596     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}"
12597     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12598     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}"
12599     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}"
12600        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12601       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}"
12602       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}"
12603     fi
12604
12605   else
12606   ld_shlibs_CXX=no
12607   fi
12608
12609         ;;
12610
12611       dgux*)
12612         case $cc_basename in
12613           ec++*)
12614             # FIXME: insert proper C++ library support
12615             ld_shlibs_CXX=no
12616             ;;
12617           ghcx*)
12618             # Green Hills C++ Compiler
12619             # FIXME: insert proper C++ library support
12620             ld_shlibs_CXX=no
12621             ;;
12622           *)
12623             # FIXME: insert proper C++ library support
12624             ld_shlibs_CXX=no
12625             ;;
12626         esac
12627         ;;
12628
12629       freebsd[12]*)
12630         # C++ shared libraries reported to be fairly broken before
12631         # switch to ELF
12632         ld_shlibs_CXX=no
12633         ;;
12634
12635       freebsd-elf*)
12636         archive_cmds_need_lc_CXX=no
12637         ;;
12638
12639       freebsd* | dragonfly*)
12640         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12641         # conventions
12642         ld_shlibs_CXX=yes
12643         ;;
12644
12645       gnu*)
12646         ;;
12647
12648       haiku*)
12649         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12650         link_all_deplibs_CXX=yes
12651         ;;
12652
12653       hpux9*)
12654         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12655         hardcode_libdir_separator_CXX=:
12656         export_dynamic_flag_spec_CXX='${wl}-E'
12657         hardcode_direct_CXX=yes
12658         hardcode_minus_L_CXX=yes # Not in the search PATH,
12659                                              # but as the default
12660                                              # location of the library.
12661
12662         case $cc_basename in
12663           CC*)
12664             # FIXME: insert proper C++ library support
12665             ld_shlibs_CXX=no
12666             ;;
12667           aCC*)
12668             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'
12669             # Commands to make compiler produce verbose output that lists
12670             # what "hidden" libraries, object files and flags are used when
12671             # linking a shared library.
12672             #
12673             # There doesn't appear to be a way to prevent this compiler from
12674             # explicitly linking system object files so we need to strip them
12675             # from the output so that they don't get included in the library
12676             # dependencies.
12677             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"'
12678             ;;
12679           *)
12680             if test "$GXX" = yes; then
12681               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'
12682             else
12683               # FIXME: insert proper C++ library support
12684               ld_shlibs_CXX=no
12685             fi
12686             ;;
12687         esac
12688         ;;
12689
12690       hpux10*|hpux11*)
12691         if test $with_gnu_ld = no; then
12692           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12693           hardcode_libdir_separator_CXX=:
12694
12695           case $host_cpu in
12696             hppa*64*|ia64*)
12697               ;;
12698             *)
12699               export_dynamic_flag_spec_CXX='${wl}-E'
12700               ;;
12701           esac
12702         fi
12703         case $host_cpu in
12704           hppa*64*|ia64*)
12705             hardcode_direct_CXX=no
12706             hardcode_shlibpath_var_CXX=no
12707             ;;
12708           *)
12709             hardcode_direct_CXX=yes
12710             hardcode_direct_absolute_CXX=yes
12711             hardcode_minus_L_CXX=yes # Not in the search PATH,
12712                                                  # but as the default
12713                                                  # location of the library.
12714             ;;
12715         esac
12716
12717         case $cc_basename in
12718           CC*)
12719             # FIXME: insert proper C++ library support
12720             ld_shlibs_CXX=no
12721             ;;
12722           aCC*)
12723             case $host_cpu in
12724               hppa*64*)
12725                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12726                 ;;
12727               ia64*)
12728                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12729                 ;;
12730               *)
12731                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12732                 ;;
12733             esac
12734             # Commands to make compiler produce verbose output that lists
12735             # what "hidden" libraries, object files and flags are used when
12736             # linking a shared library.
12737             #
12738             # There doesn't appear to be a way to prevent this compiler from
12739             # explicitly linking system object files so we need to strip them
12740             # from the output so that they don't get included in the library
12741             # dependencies.
12742             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"'
12743             ;;
12744           *)
12745             if test "$GXX" = yes; then
12746               if test $with_gnu_ld = no; then
12747                 case $host_cpu in
12748                   hppa*64*)
12749                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12750                     ;;
12751                   ia64*)
12752                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12753                     ;;
12754                   *)
12755                     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'
12756                     ;;
12757                 esac
12758               fi
12759             else
12760               # FIXME: insert proper C++ library support
12761               ld_shlibs_CXX=no
12762             fi
12763             ;;
12764         esac
12765         ;;
12766
12767       interix[3-9]*)
12768         hardcode_direct_CXX=no
12769         hardcode_shlibpath_var_CXX=no
12770         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12771         export_dynamic_flag_spec_CXX='${wl}-E'
12772         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12773         # Instead, shared libraries are loaded at an image base (0x10000000 by
12774         # default) and relocated if they conflict, which is a slow very memory
12775         # consuming and fragmenting process.  To avoid this, we pick a random,
12776         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12777         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12778         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'
12779         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'
12780         ;;
12781       irix5* | irix6*)
12782         case $cc_basename in
12783           CC*)
12784             # SGI C++
12785             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'
12786
12787             # Archives containing C++ object files must be created using
12788             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12789             # necessary to make sure instantiated templates are included
12790             # in the archive.
12791             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12792             ;;
12793           *)
12794             if test "$GXX" = yes; then
12795               if test "$with_gnu_ld" = no; then
12796                 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'
12797               else
12798                 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'
12799               fi
12800             fi
12801             link_all_deplibs_CXX=yes
12802             ;;
12803         esac
12804         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12805         hardcode_libdir_separator_CXX=:
12806         inherit_rpath_CXX=yes
12807         ;;
12808
12809       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12810         case $cc_basename in
12811           KCC*)
12812             # Kuck and Associates, Inc. (KAI) C++ Compiler
12813
12814             # KCC will only create a shared library if the output file
12815             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12816             # to its proper name (with version) after linking.
12817             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'
12818             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'
12819             # Commands to make compiler produce verbose output that lists
12820             # what "hidden" libraries, object files and flags are used when
12821             # linking a shared library.
12822             #
12823             # There doesn't appear to be a way to prevent this compiler from
12824             # explicitly linking system object files so we need to strip them
12825             # from the output so that they don't get included in the library
12826             # dependencies.
12827             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"'
12828
12829             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12830             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12831
12832             # Archives containing C++ object files must be created using
12833             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12834             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12835             ;;
12836           icpc* | ecpc* )
12837             # Intel C++
12838             with_gnu_ld=yes
12839             # version 8.0 and above of icpc choke on multiply defined symbols
12840             # if we add $predep_objects and $postdep_objects, however 7.1 and
12841             # earlier do not add the objects themselves.
12842             case `$CC -V 2>&1` in
12843               *"Version 7."*)
12844                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12845                 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'
12846                 ;;
12847               *)  # Version 8.0 or newer
12848                 tmp_idyn=
12849                 case $host_cpu in
12850                   ia64*) tmp_idyn=' -i_dynamic';;
12851                 esac
12852                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12853                 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'
12854                 ;;
12855             esac
12856             archive_cmds_need_lc_CXX=no
12857             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12858             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12859             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12860             ;;
12861           pgCC* | pgcpp*)
12862             # Portland Group C++ compiler
12863             case `$CC -V` in
12864             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12865               prelink_cmds_CXX='tpldir=Template.dir~
12866                 rm -rf $tpldir~
12867                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12868                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12869               old_archive_cmds_CXX='tpldir=Template.dir~
12870                 rm -rf $tpldir~
12871                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12872                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12873                 $RANLIB $oldlib'
12874               archive_cmds_CXX='tpldir=Template.dir~
12875                 rm -rf $tpldir~
12876                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12877                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12878               archive_expsym_cmds_CXX='tpldir=Template.dir~
12879                 rm -rf $tpldir~
12880                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12881                 $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'
12882               ;;
12883             *) # Version 6 and above use weak symbols
12884               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12885               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'
12886               ;;
12887             esac
12888
12889             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12890             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12891             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'
12892             ;;
12893           cxx*)
12894             # Compaq C++
12895             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12896             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'
12897
12898             runpath_var=LD_RUN_PATH
12899             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12900             hardcode_libdir_separator_CXX=:
12901
12902             # Commands to make compiler produce verbose output that lists
12903             # what "hidden" libraries, object files and flags are used when
12904             # linking a shared library.
12905             #
12906             # There doesn't appear to be a way to prevent this compiler from
12907             # explicitly linking system object files so we need to strip them
12908             # from the output so that they don't get included in the library
12909             # dependencies.
12910             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'
12911             ;;
12912           xl* | mpixl* | bgxl*)
12913             # IBM XL 8.0 on PPC, with GNU ld
12914             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12915             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12916             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12917             if test "x$supports_anon_versioning" = xyes; then
12918               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12919                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12920                 echo "local: *; };" >> $output_objdir/$libname.ver~
12921                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12922             fi
12923             ;;
12924           *)
12925             case `$CC -V 2>&1 | sed 5q` in
12926             *Sun\ C*)
12927               # Sun C++ 5.9
12928               no_undefined_flag_CXX=' -zdefs'
12929               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12930               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'
12931               hardcode_libdir_flag_spec_CXX='-R$libdir'
12932               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'
12933               compiler_needs_object_CXX=yes
12934
12935               # Not sure whether something based on
12936               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12937               # would be better.
12938               output_verbose_link_cmd='func_echo_all'
12939
12940               # Archives containing C++ object files must be created using
12941               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12942               # necessary to make sure instantiated templates are included
12943               # in the archive.
12944               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12945               ;;
12946             esac
12947             ;;
12948         esac
12949         ;;
12950
12951       lynxos*)
12952         # FIXME: insert proper C++ library support
12953         ld_shlibs_CXX=no
12954         ;;
12955
12956       m88k*)
12957         # FIXME: insert proper C++ library support
12958         ld_shlibs_CXX=no
12959         ;;
12960
12961       mvs*)
12962         case $cc_basename in
12963           cxx*)
12964             # FIXME: insert proper C++ library support
12965             ld_shlibs_CXX=no
12966             ;;
12967           *)
12968             # FIXME: insert proper C++ library support
12969             ld_shlibs_CXX=no
12970             ;;
12971         esac
12972         ;;
12973
12974       netbsd*)
12975         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12976           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12977           wlarc=
12978           hardcode_libdir_flag_spec_CXX='-R$libdir'
12979           hardcode_direct_CXX=yes
12980           hardcode_shlibpath_var_CXX=no
12981         fi
12982         # Workaround some broken pre-1.5 toolchains
12983         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12984         ;;
12985
12986       *nto* | *qnx*)
12987         ld_shlibs_CXX=yes
12988         ;;
12989
12990       openbsd2*)
12991         # C++ shared libraries are fairly broken
12992         ld_shlibs_CXX=no
12993         ;;
12994
12995       openbsd*)
12996         if test -f /usr/libexec/ld.so; then
12997           hardcode_direct_CXX=yes
12998           hardcode_shlibpath_var_CXX=no
12999           hardcode_direct_absolute_CXX=yes
13000           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13001           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13002           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13003             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13004             export_dynamic_flag_spec_CXX='${wl}-E'
13005             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13006           fi
13007           output_verbose_link_cmd=func_echo_all
13008         else
13009           ld_shlibs_CXX=no
13010         fi
13011         ;;
13012
13013       osf3* | osf4* | osf5*)
13014         case $cc_basename in
13015           KCC*)
13016             # Kuck and Associates, Inc. (KAI) C++ Compiler
13017
13018             # KCC will only create a shared library if the output file
13019             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13020             # to its proper name (with version) after linking.
13021             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'
13022
13023             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13024             hardcode_libdir_separator_CXX=:
13025
13026             # Archives containing C++ object files must be created using
13027             # the KAI C++ compiler.
13028             case $host in
13029               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13030               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13031             esac
13032             ;;
13033           RCC*)
13034             # Rational C++ 2.4.1
13035             # FIXME: insert proper C++ library support
13036             ld_shlibs_CXX=no
13037             ;;
13038           cxx*)
13039             case $host in
13040               osf3*)
13041                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13042                 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'
13043                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13044                 ;;
13045               *)
13046                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13047                 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'
13048                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13049                   echo "-hidden">> $lib.exp~
13050                   $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~
13051                   $RM $lib.exp'
13052                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13053                 ;;
13054             esac
13055
13056             hardcode_libdir_separator_CXX=:
13057
13058             # Commands to make compiler produce verbose output that lists
13059             # what "hidden" libraries, object files and flags are used when
13060             # linking a shared library.
13061             #
13062             # There doesn't appear to be a way to prevent this compiler from
13063             # explicitly linking system object files so we need to strip them
13064             # from the output so that they don't get included in the library
13065             # dependencies.
13066             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"'
13067             ;;
13068           *)
13069             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13070               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13071               case $host in
13072                 osf3*)
13073                   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'
13074                   ;;
13075                 *)
13076                   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'
13077                   ;;
13078               esac
13079
13080               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13081               hardcode_libdir_separator_CXX=:
13082
13083               # Commands to make compiler produce verbose output that lists
13084               # what "hidden" libraries, object files and flags are used when
13085               # linking a shared library.
13086               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13087
13088             else
13089               # FIXME: insert proper C++ library support
13090               ld_shlibs_CXX=no
13091             fi
13092             ;;
13093         esac
13094         ;;
13095
13096       psos*)
13097         # FIXME: insert proper C++ library support
13098         ld_shlibs_CXX=no
13099         ;;
13100
13101       sunos4*)
13102         case $cc_basename in
13103           CC*)
13104             # Sun C++ 4.x
13105             # FIXME: insert proper C++ library support
13106             ld_shlibs_CXX=no
13107             ;;
13108           lcc*)
13109             # Lucid
13110             # FIXME: insert proper C++ library support
13111             ld_shlibs_CXX=no
13112             ;;
13113           *)
13114             # FIXME: insert proper C++ library support
13115             ld_shlibs_CXX=no
13116             ;;
13117         esac
13118         ;;
13119
13120       solaris*)
13121         case $cc_basename in
13122           CC* | sunCC*)
13123             # Sun C++ 4.2, 5.x and Centerline C++
13124             archive_cmds_need_lc_CXX=yes
13125             no_undefined_flag_CXX=' -zdefs'
13126             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13127             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13128               $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'
13129
13130             hardcode_libdir_flag_spec_CXX='-R$libdir'
13131             hardcode_shlibpath_var_CXX=no
13132             case $host_os in
13133               solaris2.[0-5] | solaris2.[0-5].*) ;;
13134               *)
13135                 # The compiler driver will combine and reorder linker options,
13136                 # but understands `-z linker_flag'.
13137                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13138                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13139                 ;;
13140             esac
13141             link_all_deplibs_CXX=yes
13142
13143             output_verbose_link_cmd='func_echo_all'
13144
13145             # Archives containing C++ object files must be created using
13146             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13147             # necessary to make sure instantiated templates are included
13148             # in the archive.
13149             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13150             ;;
13151           gcx*)
13152             # Green Hills C++ Compiler
13153             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13154
13155             # The C++ compiler must be used to create the archive.
13156             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13157             ;;
13158           *)
13159             # GNU C++ compiler with Solaris linker
13160             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13161               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13162               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13163                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13164                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13165                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13166
13167                 # Commands to make compiler produce verbose output that lists
13168                 # what "hidden" libraries, object files and flags are used when
13169                 # linking a shared library.
13170                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13171               else
13172                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13173                 # platform.
13174                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13175                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13176                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13177
13178                 # Commands to make compiler produce verbose output that lists
13179                 # what "hidden" libraries, object files and flags are used when
13180                 # linking a shared library.
13181                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13182               fi
13183
13184               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13185               case $host_os in
13186                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13187                 *)
13188                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13189                   ;;
13190               esac
13191             fi
13192             ;;
13193         esac
13194         ;;
13195
13196     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13197       no_undefined_flag_CXX='${wl}-z,text'
13198       archive_cmds_need_lc_CXX=no
13199       hardcode_shlibpath_var_CXX=no
13200       runpath_var='LD_RUN_PATH'
13201
13202       case $cc_basename in
13203         CC*)
13204           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13205           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13206           ;;
13207         *)
13208           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13209           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13210           ;;
13211       esac
13212       ;;
13213
13214       sysv5* | sco3.2v5* | sco5v6*)
13215         # Note: We can NOT use -z defs as we might desire, because we do not
13216         # link with -lc, and that would cause any symbols used from libc to
13217         # always be unresolved, which means just about no library would
13218         # ever link correctly.  If we're not using GNU ld we use -z text
13219         # though, which does catch some bad symbols but isn't as heavy-handed
13220         # as -z defs.
13221         no_undefined_flag_CXX='${wl}-z,text'
13222         allow_undefined_flag_CXX='${wl}-z,nodefs'
13223         archive_cmds_need_lc_CXX=no
13224         hardcode_shlibpath_var_CXX=no
13225         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13226         hardcode_libdir_separator_CXX=':'
13227         link_all_deplibs_CXX=yes
13228         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13229         runpath_var='LD_RUN_PATH'
13230
13231         case $cc_basename in
13232           CC*)
13233             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13234             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13235             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13236               '"$old_archive_cmds_CXX"
13237             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13238               '"$reload_cmds_CXX"
13239             ;;
13240           *)
13241             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13242             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13243             ;;
13244         esac
13245       ;;
13246
13247       tandem*)
13248         case $cc_basename in
13249           NCC*)
13250             # NonStop-UX NCC 3.20
13251             # FIXME: insert proper C++ library support
13252             ld_shlibs_CXX=no
13253             ;;
13254           *)
13255             # FIXME: insert proper C++ library support
13256             ld_shlibs_CXX=no
13257             ;;
13258         esac
13259         ;;
13260
13261       vxworks*)
13262         # FIXME: insert proper C++ library support
13263         ld_shlibs_CXX=no
13264         ;;
13265
13266       *)
13267         # FIXME: insert proper C++ library support
13268         ld_shlibs_CXX=no
13269         ;;
13270     esac
13271
13272     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13273 $as_echo "$ld_shlibs_CXX" >&6; }
13274     test "$ld_shlibs_CXX" = no && can_build_shared=no
13275
13276     GCC_CXX="$GXX"
13277     LD_CXX="$LD"
13278
13279     ## CAVEAT EMPTOR:
13280     ## There is no encapsulation within the following macros, do not change
13281     ## the running order or otherwise move them around unless you know exactly
13282     ## what you are doing...
13283     # Dependencies to place before and after the object being linked:
13284 predep_objects_CXX=
13285 postdep_objects_CXX=
13286 predeps_CXX=
13287 postdeps_CXX=
13288 compiler_lib_search_path_CXX=
13289
13290 cat > conftest.$ac_ext <<_LT_EOF
13291 class Foo
13292 {
13293 public:
13294   Foo (void) { a = 0; }
13295 private:
13296   int a;
13297 };
13298 _LT_EOF
13299
13300
13301 _lt_libdeps_save_CFLAGS=$CFLAGS
13302 case "$CC $CFLAGS " in #(
13303 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13304 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13305 esac
13306
13307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13308   (eval $ac_compile) 2>&5
13309   ac_status=$?
13310   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13311   test $ac_status = 0; }; then
13312   # Parse the compiler output and extract the necessary
13313   # objects, libraries and library flags.
13314
13315   # Sentinel used to keep track of whether or not we are before
13316   # the conftest object file.
13317   pre_test_object_deps_done=no
13318
13319   for p in `eval "$output_verbose_link_cmd"`; do
13320     case ${prev}${p} in
13321
13322     -L* | -R* | -l*)
13323        # Some compilers place space between "-{L,R}" and the path.
13324        # Remove the space.
13325        if test $p = "-L" ||
13326           test $p = "-R"; then
13327          prev=$p
13328          continue
13329        fi
13330
13331        # Expand the sysroot to ease extracting the directories later.
13332        if test -z "$prev"; then
13333          case $p in
13334          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13335          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13336          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13337          esac
13338        fi
13339        case $p in
13340        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13341        esac
13342        if test "$pre_test_object_deps_done" = no; then
13343          case ${prev} in
13344          -L | -R)
13345            # Internal compiler library paths should come after those
13346            # provided the user.  The postdeps already come after the
13347            # user supplied libs so there is no need to process them.
13348            if test -z "$compiler_lib_search_path_CXX"; then
13349              compiler_lib_search_path_CXX="${prev}${p}"
13350            else
13351              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13352            fi
13353            ;;
13354          # The "-l" case would never come before the object being
13355          # linked, so don't bother handling this case.
13356          esac
13357        else
13358          if test -z "$postdeps_CXX"; then
13359            postdeps_CXX="${prev}${p}"
13360          else
13361            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13362          fi
13363        fi
13364        prev=
13365        ;;
13366
13367     *.lto.$objext) ;; # Ignore GCC LTO objects
13368     *.$objext)
13369        # This assumes that the test object file only shows up
13370        # once in the compiler output.
13371        if test "$p" = "conftest.$objext"; then
13372          pre_test_object_deps_done=yes
13373          continue
13374        fi
13375
13376        if test "$pre_test_object_deps_done" = no; then
13377          if test -z "$predep_objects_CXX"; then
13378            predep_objects_CXX="$p"
13379          else
13380            predep_objects_CXX="$predep_objects_CXX $p"
13381          fi
13382        else
13383          if test -z "$postdep_objects_CXX"; then
13384            postdep_objects_CXX="$p"
13385          else
13386            postdep_objects_CXX="$postdep_objects_CXX $p"
13387          fi
13388        fi
13389        ;;
13390
13391     *) ;; # Ignore the rest.
13392
13393     esac
13394   done
13395
13396   # Clean up.
13397   rm -f a.out a.exe
13398 else
13399   echo "libtool.m4: error: problem compiling CXX test program"
13400 fi
13401
13402 $RM -f confest.$objext
13403 CFLAGS=$_lt_libdeps_save_CFLAGS
13404
13405 # PORTME: override above test on systems where it is broken
13406 case $host_os in
13407 interix[3-9]*)
13408   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13409   # hack all around it, let's just trust "g++" to DTRT.
13410   predep_objects_CXX=
13411   postdep_objects_CXX=
13412   postdeps_CXX=
13413   ;;
13414
13415 linux*)
13416   case `$CC -V 2>&1 | sed 5q` in
13417   *Sun\ C*)
13418     # Sun C++ 5.9
13419
13420     # The more standards-conforming stlport4 library is
13421     # incompatible with the Cstd library. Avoid specifying
13422     # it if it's in CXXFLAGS. Ignore libCrun as
13423     # -library=stlport4 depends on it.
13424     case " $CXX $CXXFLAGS " in
13425     *" -library=stlport4 "*)
13426       solaris_use_stlport4=yes
13427       ;;
13428     esac
13429
13430     if test "$solaris_use_stlport4" != yes; then
13431       postdeps_CXX='-library=Cstd -library=Crun'
13432     fi
13433     ;;
13434   esac
13435   ;;
13436
13437 solaris*)
13438   case $cc_basename in
13439   CC* | sunCC*)
13440     # The more standards-conforming stlport4 library is
13441     # incompatible with the Cstd library. Avoid specifying
13442     # it if it's in CXXFLAGS. Ignore libCrun as
13443     # -library=stlport4 depends on it.
13444     case " $CXX $CXXFLAGS " in
13445     *" -library=stlport4 "*)
13446       solaris_use_stlport4=yes
13447       ;;
13448     esac
13449
13450     # Adding this requires a known-good setup of shared libraries for
13451     # Sun compiler versions before 5.6, else PIC objects from an old
13452     # archive will be linked into the output, leading to subtle bugs.
13453     if test "$solaris_use_stlport4" != yes; then
13454       postdeps_CXX='-library=Cstd -library=Crun'
13455     fi
13456     ;;
13457   esac
13458   ;;
13459 esac
13460
13461
13462 case " $postdeps_CXX " in
13463 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13464 esac
13465  compiler_lib_search_dirs_CXX=
13466 if test -n "${compiler_lib_search_path_CXX}"; then
13467  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13468 fi
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500     lt_prog_compiler_wl_CXX=
13501 lt_prog_compiler_pic_CXX=
13502 lt_prog_compiler_static_CXX=
13503
13504
13505   # C++ specific cases for pic, static, wl, etc.
13506   if test "$GXX" = yes; then
13507     lt_prog_compiler_wl_CXX='-Wl,'
13508     lt_prog_compiler_static_CXX='-static'
13509
13510     case $host_os in
13511     aix*)
13512       # All AIX code is PIC.
13513       if test "$host_cpu" = ia64; then
13514         # AIX 5 now supports IA64 processor
13515         lt_prog_compiler_static_CXX='-Bstatic'
13516       fi
13517       ;;
13518
13519     amigaos*)
13520       case $host_cpu in
13521       powerpc)
13522             # see comment about AmigaOS4 .so support
13523             lt_prog_compiler_pic_CXX='-fPIC'
13524         ;;
13525       m68k)
13526             # FIXME: we need at least 68020 code to build shared libraries, but
13527             # adding the `-m68020' flag to GCC prevents building anything better,
13528             # like `-m68040'.
13529             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13530         ;;
13531       esac
13532       ;;
13533
13534     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13535       # PIC is the default for these OSes.
13536       ;;
13537     mingw* | cygwin* | os2* | pw32* | cegcc*)
13538       # This hack is so that the source file can tell whether it is being
13539       # built for inclusion in a dll (and should export symbols for example).
13540       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13541       # (--disable-auto-import) libraries
13542       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13543       ;;
13544     darwin* | rhapsody*)
13545       # PIC is the default on this platform
13546       # Common symbols not allowed in MH_DYLIB files
13547       lt_prog_compiler_pic_CXX='-fno-common'
13548       ;;
13549     *djgpp*)
13550       # DJGPP does not support shared libraries at all
13551       lt_prog_compiler_pic_CXX=
13552       ;;
13553     haiku*)
13554       # PIC is the default for Haiku.
13555       # The "-static" flag exists, but is broken.
13556       lt_prog_compiler_static_CXX=
13557       ;;
13558     interix[3-9]*)
13559       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13560       # Instead, we relocate shared libraries at runtime.
13561       ;;
13562     sysv4*MP*)
13563       if test -d /usr/nec; then
13564         lt_prog_compiler_pic_CXX=-Kconform_pic
13565       fi
13566       ;;
13567     hpux*)
13568       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13569       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13570       # sets the default TLS model and affects inlining.
13571       case $host_cpu in
13572       hppa*64*)
13573         ;;
13574       *)
13575         lt_prog_compiler_pic_CXX='-fPIC'
13576         ;;
13577       esac
13578       ;;
13579     *qnx* | *nto*)
13580       # QNX uses GNU C++, but need to define -shared option too, otherwise
13581       # it will coredump.
13582       lt_prog_compiler_pic_CXX='-fPIC -shared'
13583       ;;
13584     *)
13585       lt_prog_compiler_pic_CXX='-fPIC'
13586       ;;
13587     esac
13588   else
13589     case $host_os in
13590       aix[4-9]*)
13591         # All AIX code is PIC.
13592         if test "$host_cpu" = ia64; then
13593           # AIX 5 now supports IA64 processor
13594           lt_prog_compiler_static_CXX='-Bstatic'
13595         else
13596           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13597         fi
13598         ;;
13599       chorus*)
13600         case $cc_basename in
13601         cxch68*)
13602           # Green Hills C++ Compiler
13603           # _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"
13604           ;;
13605         esac
13606         ;;
13607       mingw* | cygwin* | os2* | pw32* | cegcc*)
13608         # This hack is so that the source file can tell whether it is being
13609         # built for inclusion in a dll (and should export symbols for example).
13610         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13611         ;;
13612       dgux*)
13613         case $cc_basename in
13614           ec++*)
13615             lt_prog_compiler_pic_CXX='-KPIC'
13616             ;;
13617           ghcx*)
13618             # Green Hills C++ Compiler
13619             lt_prog_compiler_pic_CXX='-pic'
13620             ;;
13621           *)
13622             ;;
13623         esac
13624         ;;
13625       freebsd* | dragonfly*)
13626         # FreeBSD uses GNU C++
13627         ;;
13628       hpux9* | hpux10* | hpux11*)
13629         case $cc_basename in
13630           CC*)
13631             lt_prog_compiler_wl_CXX='-Wl,'
13632             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13633             if test "$host_cpu" != ia64; then
13634               lt_prog_compiler_pic_CXX='+Z'
13635             fi
13636             ;;
13637           aCC*)
13638             lt_prog_compiler_wl_CXX='-Wl,'
13639             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13640             case $host_cpu in
13641             hppa*64*|ia64*)
13642               # +Z the default
13643               ;;
13644             *)
13645               lt_prog_compiler_pic_CXX='+Z'
13646               ;;
13647             esac
13648             ;;
13649           *)
13650             ;;
13651         esac
13652         ;;
13653       interix*)
13654         # This is c89, which is MS Visual C++ (no shared libs)
13655         # Anyone wants to do a port?
13656         ;;
13657       irix5* | irix6* | nonstopux*)
13658         case $cc_basename in
13659           CC*)
13660             lt_prog_compiler_wl_CXX='-Wl,'
13661             lt_prog_compiler_static_CXX='-non_shared'
13662             # CC pic flag -KPIC is the default.
13663             ;;
13664           *)
13665             ;;
13666         esac
13667         ;;
13668       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13669         case $cc_basename in
13670           KCC*)
13671             # KAI C++ Compiler
13672             lt_prog_compiler_wl_CXX='--backend -Wl,'
13673             lt_prog_compiler_pic_CXX='-fPIC'
13674             ;;
13675           ecpc* )
13676             # old Intel C++ for x86_64 which still supported -KPIC.
13677             lt_prog_compiler_wl_CXX='-Wl,'
13678             lt_prog_compiler_pic_CXX='-KPIC'
13679             lt_prog_compiler_static_CXX='-static'
13680             ;;
13681           icpc* )
13682             # Intel C++, used to be incompatible with GCC.
13683             # ICC 10 doesn't accept -KPIC any more.
13684             lt_prog_compiler_wl_CXX='-Wl,'
13685             lt_prog_compiler_pic_CXX='-fPIC'
13686             lt_prog_compiler_static_CXX='-static'
13687             ;;
13688           pgCC* | pgcpp*)
13689             # Portland Group C++ compiler
13690             lt_prog_compiler_wl_CXX='-Wl,'
13691             lt_prog_compiler_pic_CXX='-fpic'
13692             lt_prog_compiler_static_CXX='-Bstatic'
13693             ;;
13694           cxx*)
13695             # Compaq C++
13696             # Make sure the PIC flag is empty.  It appears that all Alpha
13697             # Linux and Compaq Tru64 Unix objects are PIC.
13698             lt_prog_compiler_pic_CXX=
13699             lt_prog_compiler_static_CXX='-non_shared'
13700             ;;
13701           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13702             # IBM XL 8.0, 9.0 on PPC and BlueGene
13703             lt_prog_compiler_wl_CXX='-Wl,'
13704             lt_prog_compiler_pic_CXX='-qpic'
13705             lt_prog_compiler_static_CXX='-qstaticlink'
13706             ;;
13707           *)
13708             case `$CC -V 2>&1 | sed 5q` in
13709             *Sun\ C*)
13710               # Sun C++ 5.9
13711               lt_prog_compiler_pic_CXX='-KPIC'
13712               lt_prog_compiler_static_CXX='-Bstatic'
13713               lt_prog_compiler_wl_CXX='-Qoption ld '
13714               ;;
13715             esac
13716             ;;
13717         esac
13718         ;;
13719       lynxos*)
13720         ;;
13721       m88k*)
13722         ;;
13723       mvs*)
13724         case $cc_basename in
13725           cxx*)
13726             lt_prog_compiler_pic_CXX='-W c,exportall'
13727             ;;
13728           *)
13729             ;;
13730         esac
13731         ;;
13732       netbsd* | netbsdelf*-gnu)
13733         ;;
13734       *qnx* | *nto*)
13735         # QNX uses GNU C++, but need to define -shared option too, otherwise
13736         # it will coredump.
13737         lt_prog_compiler_pic_CXX='-fPIC -shared'
13738         ;;
13739       osf3* | osf4* | osf5*)
13740         case $cc_basename in
13741           KCC*)
13742             lt_prog_compiler_wl_CXX='--backend -Wl,'
13743             ;;
13744           RCC*)
13745             # Rational C++ 2.4.1
13746             lt_prog_compiler_pic_CXX='-pic'
13747             ;;
13748           cxx*)
13749             # Digital/Compaq C++
13750             lt_prog_compiler_wl_CXX='-Wl,'
13751             # Make sure the PIC flag is empty.  It appears that all Alpha
13752             # Linux and Compaq Tru64 Unix objects are PIC.
13753             lt_prog_compiler_pic_CXX=
13754             lt_prog_compiler_static_CXX='-non_shared'
13755             ;;
13756           *)
13757             ;;
13758         esac
13759         ;;
13760       psos*)
13761         ;;
13762       solaris*)
13763         case $cc_basename in
13764           CC* | sunCC*)
13765             # Sun C++ 4.2, 5.x and Centerline C++
13766             lt_prog_compiler_pic_CXX='-KPIC'
13767             lt_prog_compiler_static_CXX='-Bstatic'
13768             lt_prog_compiler_wl_CXX='-Qoption ld '
13769             ;;
13770           gcx*)
13771             # Green Hills C++ Compiler
13772             lt_prog_compiler_pic_CXX='-PIC'
13773             ;;
13774           *)
13775             ;;
13776         esac
13777         ;;
13778       sunos4*)
13779         case $cc_basename in
13780           CC*)
13781             # Sun C++ 4.x
13782             lt_prog_compiler_pic_CXX='-pic'
13783             lt_prog_compiler_static_CXX='-Bstatic'
13784             ;;
13785           lcc*)
13786             # Lucid
13787             lt_prog_compiler_pic_CXX='-pic'
13788             ;;
13789           *)
13790             ;;
13791         esac
13792         ;;
13793       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13794         case $cc_basename in
13795           CC*)
13796             lt_prog_compiler_wl_CXX='-Wl,'
13797             lt_prog_compiler_pic_CXX='-KPIC'
13798             lt_prog_compiler_static_CXX='-Bstatic'
13799             ;;
13800         esac
13801         ;;
13802       tandem*)
13803         case $cc_basename in
13804           NCC*)
13805             # NonStop-UX NCC 3.20
13806             lt_prog_compiler_pic_CXX='-KPIC'
13807             ;;
13808           *)
13809             ;;
13810         esac
13811         ;;
13812       vxworks*)
13813         ;;
13814       *)
13815         lt_prog_compiler_can_build_shared_CXX=no
13816         ;;
13817     esac
13818   fi
13819
13820 case $host_os in
13821   # For platforms which do not support PIC, -DPIC is meaningless:
13822   *djgpp*)
13823     lt_prog_compiler_pic_CXX=
13824     ;;
13825   *)
13826     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13827     ;;
13828 esac
13829
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13831 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13832 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13833   $as_echo_n "(cached) " >&6
13834 else
13835   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13836 fi
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13838 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13839 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13840
13841 #
13842 # Check to make sure the PIC flag actually works.
13843 #
13844 if test -n "$lt_prog_compiler_pic_CXX"; then
13845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13846 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13847 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13848   $as_echo_n "(cached) " >&6
13849 else
13850   lt_cv_prog_compiler_pic_works_CXX=no
13851    ac_outfile=conftest.$ac_objext
13852    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13853    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13854    # Insert the option either (1) after the last *FLAGS variable, or
13855    # (2) before a word containing "conftest.", or (3) at the end.
13856    # Note that $ac_compile itself does not contain backslashes and begins
13857    # with a dollar sign (not a hyphen), so the echo should work correctly.
13858    # The option is referenced via a variable to avoid confusing sed.
13859    lt_compile=`echo "$ac_compile" | $SED \
13860    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13861    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13862    -e 's:$: $lt_compiler_flag:'`
13863    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13864    (eval "$lt_compile" 2>conftest.err)
13865    ac_status=$?
13866    cat conftest.err >&5
13867    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868    if (exit $ac_status) && test -s "$ac_outfile"; then
13869      # The compiler can only warn and ignore the option if not recognized
13870      # So say no if there are warnings other than the usual output.
13871      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13872      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13873      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13874        lt_cv_prog_compiler_pic_works_CXX=yes
13875      fi
13876    fi
13877    $RM conftest*
13878
13879 fi
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13881 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13882
13883 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13884     case $lt_prog_compiler_pic_CXX in
13885      "" | " "*) ;;
13886      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13887      esac
13888 else
13889     lt_prog_compiler_pic_CXX=
13890      lt_prog_compiler_can_build_shared_CXX=no
13891 fi
13892
13893 fi
13894
13895
13896
13897
13898
13899 #
13900 # Check to make sure the static flag actually works.
13901 #
13902 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13904 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13905 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13906   $as_echo_n "(cached) " >&6
13907 else
13908   lt_cv_prog_compiler_static_works_CXX=no
13909    save_LDFLAGS="$LDFLAGS"
13910    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13911    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13912    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13913      # The linker can only warn and ignore the option if not recognized
13914      # So say no if there are warnings
13915      if test -s conftest.err; then
13916        # Append any errors to the config.log.
13917        cat conftest.err 1>&5
13918        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13919        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13920        if diff conftest.exp conftest.er2 >/dev/null; then
13921          lt_cv_prog_compiler_static_works_CXX=yes
13922        fi
13923      else
13924        lt_cv_prog_compiler_static_works_CXX=yes
13925      fi
13926    fi
13927    $RM -r conftest*
13928    LDFLAGS="$save_LDFLAGS"
13929
13930 fi
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13932 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13933
13934 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13935     :
13936 else
13937     lt_prog_compiler_static_CXX=
13938 fi
13939
13940
13941
13942
13943     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13944 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13945 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13946   $as_echo_n "(cached) " >&6
13947 else
13948   lt_cv_prog_compiler_c_o_CXX=no
13949    $RM -r conftest 2>/dev/null
13950    mkdir conftest
13951    cd conftest
13952    mkdir out
13953    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13954
13955    lt_compiler_flag="-o out/conftest2.$ac_objext"
13956    # Insert the option either (1) after the last *FLAGS variable, or
13957    # (2) before a word containing "conftest.", or (3) at the end.
13958    # Note that $ac_compile itself does not contain backslashes and begins
13959    # with a dollar sign (not a hyphen), so the echo should work correctly.
13960    lt_compile=`echo "$ac_compile" | $SED \
13961    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13962    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13963    -e 's:$: $lt_compiler_flag:'`
13964    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13965    (eval "$lt_compile" 2>out/conftest.err)
13966    ac_status=$?
13967    cat out/conftest.err >&5
13968    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13970    then
13971      # The compiler can only warn and ignore the option if not recognized
13972      # So say no if there are warnings
13973      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13974      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13975      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13976        lt_cv_prog_compiler_c_o_CXX=yes
13977      fi
13978    fi
13979    chmod u+w . 2>&5
13980    $RM conftest*
13981    # SGI C++ compiler will create directory out/ii_files/ for
13982    # template instantiation
13983    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13984    $RM out/* && rmdir out
13985    cd ..
13986    $RM -r conftest
13987    $RM conftest*
13988
13989 fi
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13991 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13992
13993
13994
13995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13996 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13997 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13998   $as_echo_n "(cached) " >&6
13999 else
14000   lt_cv_prog_compiler_c_o_CXX=no
14001    $RM -r conftest 2>/dev/null
14002    mkdir conftest
14003    cd conftest
14004    mkdir out
14005    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14006
14007    lt_compiler_flag="-o out/conftest2.$ac_objext"
14008    # Insert the option either (1) after the last *FLAGS variable, or
14009    # (2) before a word containing "conftest.", or (3) at the end.
14010    # Note that $ac_compile itself does not contain backslashes and begins
14011    # with a dollar sign (not a hyphen), so the echo should work correctly.
14012    lt_compile=`echo "$ac_compile" | $SED \
14013    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14014    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14015    -e 's:$: $lt_compiler_flag:'`
14016    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14017    (eval "$lt_compile" 2>out/conftest.err)
14018    ac_status=$?
14019    cat out/conftest.err >&5
14020    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14022    then
14023      # The compiler can only warn and ignore the option if not recognized
14024      # So say no if there are warnings
14025      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14026      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14027      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14028        lt_cv_prog_compiler_c_o_CXX=yes
14029      fi
14030    fi
14031    chmod u+w . 2>&5
14032    $RM conftest*
14033    # SGI C++ compiler will create directory out/ii_files/ for
14034    # template instantiation
14035    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14036    $RM out/* && rmdir out
14037    cd ..
14038    $RM -r conftest
14039    $RM conftest*
14040
14041 fi
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14043 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14044
14045
14046
14047
14048 hard_links="nottested"
14049 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14050   # do not overwrite the value of need_locks provided by the user
14051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14052 $as_echo_n "checking if we can lock with hard links... " >&6; }
14053   hard_links=yes
14054   $RM conftest*
14055   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14056   touch conftest.a
14057   ln conftest.a conftest.b 2>&5 || hard_links=no
14058   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14060 $as_echo "$hard_links" >&6; }
14061   if test "$hard_links" = no; then
14062     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14063 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14064     need_locks=warn
14065   fi
14066 else
14067   need_locks=no
14068 fi
14069
14070
14071
14072     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14073 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14074
14075   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14076   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14077   case $host_os in
14078   aix[4-9]*)
14079     # If we're using GNU nm, then we don't want the "-C" option.
14080     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14081     # Also, AIX nm treats weak defined symbols like other global defined
14082     # symbols, whereas GNU nm marks them as "W".
14083     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14084       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'
14085     else
14086       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'
14087     fi
14088     ;;
14089   pw32*)
14090     export_symbols_cmds_CXX="$ltdll_cmds"
14091     ;;
14092   cygwin* | mingw* | cegcc*)
14093     case $cc_basename in
14094     cl*) ;;
14095     *)
14096       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'
14097       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14098       ;;
14099     esac
14100     ;;
14101   linux* | k*bsd*-gnu | gnu*)
14102     link_all_deplibs_CXX=no
14103     ;;
14104   *)
14105     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14106     ;;
14107   esac
14108
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14110 $as_echo "$ld_shlibs_CXX" >&6; }
14111 test "$ld_shlibs_CXX" = no && can_build_shared=no
14112
14113 with_gnu_ld_CXX=$with_gnu_ld
14114
14115
14116
14117
14118
14119
14120 #
14121 # Do we need to explicitly link libc?
14122 #
14123 case "x$archive_cmds_need_lc_CXX" in
14124 x|xyes)
14125   # Assume -lc should be added
14126   archive_cmds_need_lc_CXX=yes
14127
14128   if test "$enable_shared" = yes && test "$GCC" = yes; then
14129     case $archive_cmds_CXX in
14130     *'~'*)
14131       # FIXME: we may have to deal with multi-command sequences.
14132       ;;
14133     '$CC '*)
14134       # Test whether the compiler implicitly links with -lc since on some
14135       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14136       # to ld, don't add -lc before -lgcc.
14137       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14138 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14139 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14140   $as_echo_n "(cached) " >&6
14141 else
14142   $RM conftest*
14143         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14144
14145         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14146   (eval $ac_compile) 2>&5
14147   ac_status=$?
14148   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14149   test $ac_status = 0; } 2>conftest.err; then
14150           soname=conftest
14151           lib=conftest
14152           libobjs=conftest.$ac_objext
14153           deplibs=
14154           wl=$lt_prog_compiler_wl_CXX
14155           pic_flag=$lt_prog_compiler_pic_CXX
14156           compiler_flags=-v
14157           linker_flags=-v
14158           verstring=
14159           output_objdir=.
14160           libname=conftest
14161           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14162           allow_undefined_flag_CXX=
14163           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14164   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14165   ac_status=$?
14166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14167   test $ac_status = 0; }
14168           then
14169             lt_cv_archive_cmds_need_lc_CXX=no
14170           else
14171             lt_cv_archive_cmds_need_lc_CXX=yes
14172           fi
14173           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14174         else
14175           cat conftest.err 1>&5
14176         fi
14177         $RM conftest*
14178
14179 fi
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14181 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14182       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14183       ;;
14184     esac
14185   fi
14186   ;;
14187 esac
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14253 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14254
14255 library_names_spec=
14256 libname_spec='lib$name'
14257 soname_spec=
14258 shrext_cmds=".so"
14259 postinstall_cmds=
14260 postuninstall_cmds=
14261 finish_cmds=
14262 finish_eval=
14263 shlibpath_var=
14264 shlibpath_overrides_runpath=unknown
14265 version_type=none
14266 dynamic_linker="$host_os ld.so"
14267 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14268 need_lib_prefix=unknown
14269 hardcode_into_libs=no
14270
14271 # when you set need_version to no, make sure it does not cause -set_version
14272 # flags to be left without arguments
14273 need_version=unknown
14274
14275 case $host_os in
14276 aix3*)
14277   version_type=linux
14278   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14279   shlibpath_var=LIBPATH
14280
14281   # AIX 3 has no versioning support, so we append a major version to the name.
14282   soname_spec='${libname}${release}${shared_ext}$major'
14283   ;;
14284
14285 aix[4-9]*)
14286   version_type=linux
14287   need_lib_prefix=no
14288   need_version=no
14289   hardcode_into_libs=yes
14290   if test "$host_cpu" = ia64; then
14291     # AIX 5 supports IA64
14292     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14293     shlibpath_var=LD_LIBRARY_PATH
14294   else
14295     # With GCC up to 2.95.x, collect2 would create an import file
14296     # for dependence libraries.  The import file would start with
14297     # the line `#! .'.  This would cause the generated library to
14298     # depend on `.', always an invalid library.  This was fixed in
14299     # development snapshots of GCC prior to 3.0.
14300     case $host_os in
14301       aix4 | aix4.[01] | aix4.[01].*)
14302       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14303            echo ' yes '
14304            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14305         :
14306       else
14307         can_build_shared=no
14308       fi
14309       ;;
14310     esac
14311     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14312     # soname into executable. Probably we can add versioning support to
14313     # collect2, so additional links can be useful in future.
14314     if test "$aix_use_runtimelinking" = yes; then
14315       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14316       # instead of lib<name>.a to let people know that these are not
14317       # typical AIX shared libraries.
14318       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14319     else
14320       # We preserve .a as extension for shared libraries through AIX4.2
14321       # and later when we are not doing run time linking.
14322       library_names_spec='${libname}${release}.a $libname.a'
14323       soname_spec='${libname}${release}${shared_ext}$major'
14324     fi
14325     shlibpath_var=LIBPATH
14326   fi
14327   ;;
14328
14329 amigaos*)
14330   case $host_cpu in
14331   powerpc)
14332     # Since July 2007 AmigaOS4 officially supports .so libraries.
14333     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14334     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14335     ;;
14336   m68k)
14337     library_names_spec='$libname.ixlibrary $libname.a'
14338     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14339     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'
14340     ;;
14341   esac
14342   ;;
14343
14344 beos*)
14345   library_names_spec='${libname}${shared_ext}'
14346   dynamic_linker="$host_os ld.so"
14347   shlibpath_var=LIBRARY_PATH
14348   ;;
14349
14350 bsdi[45]*)
14351   version_type=linux
14352   need_version=no
14353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14354   soname_spec='${libname}${release}${shared_ext}$major'
14355   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14356   shlibpath_var=LD_LIBRARY_PATH
14357   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14358   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14359   # the default ld.so.conf also contains /usr/contrib/lib and
14360   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14361   # libtool to hard-code these into programs
14362   ;;
14363
14364 cygwin* | mingw* | pw32* | cegcc*)
14365   version_type=windows
14366   shrext_cmds=".dll"
14367   need_version=no
14368   need_lib_prefix=no
14369
14370   case $GCC,$cc_basename in
14371   yes,*)
14372     # gcc
14373     library_names_spec='$libname.dll.a'
14374     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14375     postinstall_cmds='base_file=`basename \${file}`~
14376       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14377       dldir=$destdir/`dirname \$dlpath`~
14378       test -d \$dldir || mkdir -p \$dldir~
14379       $install_prog $dir/$dlname \$dldir/$dlname~
14380       chmod a+x \$dldir/$dlname~
14381       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14382         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14383       fi'
14384     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14385       dlpath=$dir/\$dldll~
14386        $RM \$dlpath'
14387     shlibpath_overrides_runpath=yes
14388
14389     case $host_os in
14390     cygwin*)
14391       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14392       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14393
14394       ;;
14395     mingw* | cegcc*)
14396       # MinGW DLLs use traditional 'lib' prefix
14397       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14398       ;;
14399     pw32*)
14400       # pw32 DLLs use 'pw' prefix rather than 'lib'
14401       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14402       ;;
14403     esac
14404     dynamic_linker='Win32 ld.exe'
14405     ;;
14406
14407   *,cl*)
14408     # Native MSVC
14409     libname_spec='$name'
14410     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14411     library_names_spec='${libname}.dll.lib'
14412
14413     case $build_os in
14414     mingw*)
14415       sys_lib_search_path_spec=
14416       lt_save_ifs=$IFS
14417       IFS=';'
14418       for lt_path in $LIB
14419       do
14420         IFS=$lt_save_ifs
14421         # Let DOS variable expansion print the short 8.3 style file name.
14422         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14423         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14424       done
14425       IFS=$lt_save_ifs
14426       # Convert to MSYS style.
14427       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14428       ;;
14429     cygwin*)
14430       # Convert to unix form, then to dos form, then back to unix form
14431       # but this time dos style (no spaces!) so that the unix form looks
14432       # like /cygdrive/c/PROGRA~1:/cygdr...
14433       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14434       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14435       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14436       ;;
14437     *)
14438       sys_lib_search_path_spec="$LIB"
14439       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14440         # It is most probably a Windows format PATH.
14441         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14442       else
14443         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14444       fi
14445       # FIXME: find the short name or the path components, as spaces are
14446       # common. (e.g. "Program Files" -> "PROGRA~1")
14447       ;;
14448     esac
14449
14450     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14451     postinstall_cmds='base_file=`basename \${file}`~
14452       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14453       dldir=$destdir/`dirname \$dlpath`~
14454       test -d \$dldir || mkdir -p \$dldir~
14455       $install_prog $dir/$dlname \$dldir/$dlname'
14456     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14457       dlpath=$dir/\$dldll~
14458        $RM \$dlpath'
14459     shlibpath_overrides_runpath=yes
14460     dynamic_linker='Win32 link.exe'
14461     ;;
14462
14463   *)
14464     # Assume MSVC wrapper
14465     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14466     dynamic_linker='Win32 ld.exe'
14467     ;;
14468   esac
14469   # FIXME: first we should search . and the directory the executable is in
14470   shlibpath_var=PATH
14471   ;;
14472
14473 darwin* | rhapsody*)
14474   dynamic_linker="$host_os dyld"
14475   version_type=darwin
14476   need_lib_prefix=no
14477   need_version=no
14478   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14479   soname_spec='${libname}${release}${major}$shared_ext'
14480   shlibpath_overrides_runpath=yes
14481   shlibpath_var=DYLD_LIBRARY_PATH
14482   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14483
14484   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14485   ;;
14486
14487 dgux*)
14488   version_type=linux
14489   need_lib_prefix=no
14490   need_version=no
14491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14492   soname_spec='${libname}${release}${shared_ext}$major'
14493   shlibpath_var=LD_LIBRARY_PATH
14494   ;;
14495
14496 freebsd1*)
14497   dynamic_linker=no
14498   ;;
14499
14500 freebsd* | dragonfly*)
14501   # DragonFly does not have aout.  When/if they implement a new
14502   # versioning mechanism, adjust this.
14503   if test -x /usr/bin/objformat; then
14504     objformat=`/usr/bin/objformat`
14505   else
14506     case $host_os in
14507     freebsd[123]*) objformat=aout ;;
14508     *) objformat=elf ;;
14509     esac
14510   fi
14511   version_type=freebsd-$objformat
14512   case $version_type in
14513     freebsd-elf*)
14514       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14515       need_version=no
14516       need_lib_prefix=no
14517       ;;
14518     freebsd-*)
14519       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14520       need_version=yes
14521       ;;
14522   esac
14523   shlibpath_var=LD_LIBRARY_PATH
14524   case $host_os in
14525   freebsd2*)
14526     shlibpath_overrides_runpath=yes
14527     ;;
14528   freebsd3.[01]* | freebsdelf3.[01]*)
14529     shlibpath_overrides_runpath=yes
14530     hardcode_into_libs=yes
14531     ;;
14532   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14533   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14534     shlibpath_overrides_runpath=no
14535     hardcode_into_libs=yes
14536     ;;
14537   *) # from 4.6 on, and DragonFly
14538     shlibpath_overrides_runpath=yes
14539     hardcode_into_libs=yes
14540     ;;
14541   esac
14542   ;;
14543
14544 gnu*)
14545   version_type=linux
14546   need_lib_prefix=no
14547   need_version=no
14548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14549   soname_spec='${libname}${release}${shared_ext}$major'
14550   shlibpath_var=LD_LIBRARY_PATH
14551   shlibpath_overrides_runpath=no
14552   hardcode_into_libs=yes
14553   ;;
14554
14555 haiku*)
14556   version_type=linux
14557   need_lib_prefix=no
14558   need_version=no
14559   dynamic_linker="$host_os runtime_loader"
14560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14561   soname_spec='${libname}${release}${shared_ext}$major'
14562   shlibpath_var=LIBRARY_PATH
14563   shlibpath_overrides_runpath=yes
14564   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14565   hardcode_into_libs=yes
14566   ;;
14567
14568 hpux9* | hpux10* | hpux11*)
14569   # Give a soname corresponding to the major version so that dld.sl refuses to
14570   # link against other versions.
14571   version_type=sunos
14572   need_lib_prefix=no
14573   need_version=no
14574   case $host_cpu in
14575   ia64*)
14576     shrext_cmds='.so'
14577     hardcode_into_libs=yes
14578     dynamic_linker="$host_os dld.so"
14579     shlibpath_var=LD_LIBRARY_PATH
14580     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14581     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14582     soname_spec='${libname}${release}${shared_ext}$major'
14583     if test "X$HPUX_IA64_MODE" = X32; then
14584       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14585     else
14586       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14587     fi
14588     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14589     ;;
14590   hppa*64*)
14591     shrext_cmds='.sl'
14592     hardcode_into_libs=yes
14593     dynamic_linker="$host_os dld.sl"
14594     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14595     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14596     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14597     soname_spec='${libname}${release}${shared_ext}$major'
14598     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14599     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14600     ;;
14601   *)
14602     shrext_cmds='.sl'
14603     dynamic_linker="$host_os dld.sl"
14604     shlibpath_var=SHLIB_PATH
14605     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14606     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14607     soname_spec='${libname}${release}${shared_ext}$major'
14608     ;;
14609   esac
14610   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14611   postinstall_cmds='chmod 555 $lib'
14612   # or fails outright, so override atomically:
14613   install_override_mode=555
14614   ;;
14615
14616 interix[3-9]*)
14617   version_type=linux
14618   need_lib_prefix=no
14619   need_version=no
14620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14621   soname_spec='${libname}${release}${shared_ext}$major'
14622   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14623   shlibpath_var=LD_LIBRARY_PATH
14624   shlibpath_overrides_runpath=no
14625   hardcode_into_libs=yes
14626   ;;
14627
14628 irix5* | irix6* | nonstopux*)
14629   case $host_os in
14630     nonstopux*) version_type=nonstopux ;;
14631     *)
14632         if test "$lt_cv_prog_gnu_ld" = yes; then
14633                 version_type=linux
14634         else
14635                 version_type=irix
14636         fi ;;
14637   esac
14638   need_lib_prefix=no
14639   need_version=no
14640   soname_spec='${libname}${release}${shared_ext}$major'
14641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14642   case $host_os in
14643   irix5* | nonstopux*)
14644     libsuff= shlibsuff=
14645     ;;
14646   *)
14647     case $LD in # libtool.m4 will add one of these switches to LD
14648     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14649       libsuff= shlibsuff= libmagic=32-bit;;
14650     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14651       libsuff=32 shlibsuff=N32 libmagic=N32;;
14652     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14653       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14654     *) libsuff= shlibsuff= libmagic=never-match;;
14655     esac
14656     ;;
14657   esac
14658   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14659   shlibpath_overrides_runpath=no
14660   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14661   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14662   hardcode_into_libs=yes
14663   ;;
14664
14665 # No shared lib support for Linux oldld, aout, or coff.
14666 linux*oldld* | linux*aout* | linux*coff*)
14667   dynamic_linker=no
14668   ;;
14669
14670 # This must be Linux ELF.
14671 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14672   version_type=linux
14673   need_lib_prefix=no
14674   need_version=no
14675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14676   soname_spec='${libname}${release}${shared_ext}$major'
14677   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14678   shlibpath_var=LD_LIBRARY_PATH
14679   shlibpath_overrides_runpath=no
14680
14681   # Some binutils ld are patched to set DT_RUNPATH
14682   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14683   $as_echo_n "(cached) " >&6
14684 else
14685   lt_cv_shlibpath_overrides_runpath=no
14686     save_LDFLAGS=$LDFLAGS
14687     save_libdir=$libdir
14688     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14689          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14690     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14691 /* end confdefs.h.  */
14692
14693 int
14694 main ()
14695 {
14696
14697   ;
14698   return 0;
14699 }
14700 _ACEOF
14701 if ac_fn_cxx_try_link "$LINENO"; then :
14702   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14703   lt_cv_shlibpath_overrides_runpath=yes
14704 fi
14705 fi
14706 rm -f core conftest.err conftest.$ac_objext \
14707     conftest$ac_exeext conftest.$ac_ext
14708     LDFLAGS=$save_LDFLAGS
14709     libdir=$save_libdir
14710
14711 fi
14712
14713   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14714
14715   # This implies no fast_install, which is unacceptable.
14716   # Some rework will be needed to allow for fast_install
14717   # before this can be enabled.
14718   hardcode_into_libs=yes
14719
14720   # Append ld.so.conf contents to the search path
14721   if test -f /etc/ld.so.conf; then
14722     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' ' '`
14723     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14724   fi
14725
14726   # We used to test for /lib/ld.so.1 and disable shared libraries on
14727   # powerpc, because MkLinux only supported shared libraries with the
14728   # GNU dynamic linker.  Since this was broken with cross compilers,
14729   # most powerpc-linux boxes support dynamic linking these days and
14730   # people can always --disable-shared, the test was removed, and we
14731   # assume the GNU/Linux dynamic linker is in use.
14732   dynamic_linker='GNU/Linux ld.so'
14733   ;;
14734
14735 netbsdelf*-gnu)
14736   version_type=linux
14737   need_lib_prefix=no
14738   need_version=no
14739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14740   soname_spec='${libname}${release}${shared_ext}$major'
14741   shlibpath_var=LD_LIBRARY_PATH
14742   shlibpath_overrides_runpath=no
14743   hardcode_into_libs=yes
14744   dynamic_linker='NetBSD ld.elf_so'
14745   ;;
14746
14747 netbsd*)
14748   version_type=sunos
14749   need_lib_prefix=no
14750   need_version=no
14751   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14752     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14753     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14754     dynamic_linker='NetBSD (a.out) ld.so'
14755   else
14756     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14757     soname_spec='${libname}${release}${shared_ext}$major'
14758     dynamic_linker='NetBSD ld.elf_so'
14759   fi
14760   shlibpath_var=LD_LIBRARY_PATH
14761   shlibpath_overrides_runpath=yes
14762   hardcode_into_libs=yes
14763   ;;
14764
14765 newsos6)
14766   version_type=linux
14767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14768   shlibpath_var=LD_LIBRARY_PATH
14769   shlibpath_overrides_runpath=yes
14770   ;;
14771
14772 *nto* | *qnx*)
14773   version_type=qnx
14774   need_lib_prefix=no
14775   need_version=no
14776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14777   soname_spec='${libname}${release}${shared_ext}$major'
14778   shlibpath_var=LD_LIBRARY_PATH
14779   shlibpath_overrides_runpath=no
14780   hardcode_into_libs=yes
14781   dynamic_linker='ldqnx.so'
14782   ;;
14783
14784 openbsd*)
14785   version_type=sunos
14786   sys_lib_dlsearch_path_spec="/usr/lib"
14787   need_lib_prefix=no
14788   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14789   case $host_os in
14790     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14791     *)                          need_version=no  ;;
14792   esac
14793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14794   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14795   shlibpath_var=LD_LIBRARY_PATH
14796   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14797     case $host_os in
14798       openbsd2.[89] | openbsd2.[89].*)
14799         shlibpath_overrides_runpath=no
14800         ;;
14801       *)
14802         shlibpath_overrides_runpath=yes
14803         ;;
14804       esac
14805   else
14806     shlibpath_overrides_runpath=yes
14807   fi
14808   ;;
14809
14810 os2*)
14811   libname_spec='$name'
14812   shrext_cmds=".dll"
14813   need_lib_prefix=no
14814   library_names_spec='$libname${shared_ext} $libname.a'
14815   dynamic_linker='OS/2 ld.exe'
14816   shlibpath_var=LIBPATH
14817   ;;
14818
14819 osf3* | osf4* | osf5*)
14820   version_type=osf
14821   need_lib_prefix=no
14822   need_version=no
14823   soname_spec='${libname}${release}${shared_ext}$major'
14824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14825   shlibpath_var=LD_LIBRARY_PATH
14826   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14827   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14828   ;;
14829
14830 rdos*)
14831   dynamic_linker=no
14832   ;;
14833
14834 solaris*)
14835   version_type=linux
14836   need_lib_prefix=no
14837   need_version=no
14838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14839   soname_spec='${libname}${release}${shared_ext}$major'
14840   shlibpath_var=LD_LIBRARY_PATH
14841   shlibpath_overrides_runpath=yes
14842   hardcode_into_libs=yes
14843   # ldd complains unless libraries are executable
14844   postinstall_cmds='chmod +x $lib'
14845   ;;
14846
14847 sunos4*)
14848   version_type=sunos
14849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14850   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14851   shlibpath_var=LD_LIBRARY_PATH
14852   shlibpath_overrides_runpath=yes
14853   if test "$with_gnu_ld" = yes; then
14854     need_lib_prefix=no
14855   fi
14856   need_version=yes
14857   ;;
14858
14859 sysv4 | sysv4.3*)
14860   version_type=linux
14861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14862   soname_spec='${libname}${release}${shared_ext}$major'
14863   shlibpath_var=LD_LIBRARY_PATH
14864   case $host_vendor in
14865     sni)
14866       shlibpath_overrides_runpath=no
14867       need_lib_prefix=no
14868       runpath_var=LD_RUN_PATH
14869       ;;
14870     siemens)
14871       need_lib_prefix=no
14872       ;;
14873     motorola)
14874       need_lib_prefix=no
14875       need_version=no
14876       shlibpath_overrides_runpath=no
14877       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14878       ;;
14879   esac
14880   ;;
14881
14882 sysv4*MP*)
14883   if test -d /usr/nec ;then
14884     version_type=linux
14885     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14886     soname_spec='$libname${shared_ext}.$major'
14887     shlibpath_var=LD_LIBRARY_PATH
14888   fi
14889   ;;
14890
14891 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14892   version_type=freebsd-elf
14893   need_lib_prefix=no
14894   need_version=no
14895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14896   soname_spec='${libname}${release}${shared_ext}$major'
14897   shlibpath_var=LD_LIBRARY_PATH
14898   shlibpath_overrides_runpath=yes
14899   hardcode_into_libs=yes
14900   if test "$with_gnu_ld" = yes; then
14901     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14902   else
14903     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14904     case $host_os in
14905       sco3.2v5*)
14906         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14907         ;;
14908     esac
14909   fi
14910   sys_lib_dlsearch_path_spec='/usr/lib'
14911   ;;
14912
14913 tpf*)
14914   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14915   version_type=linux
14916   need_lib_prefix=no
14917   need_version=no
14918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14919   shlibpath_var=LD_LIBRARY_PATH
14920   shlibpath_overrides_runpath=no
14921   hardcode_into_libs=yes
14922   ;;
14923
14924 uts4*)
14925   version_type=linux
14926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14927   soname_spec='${libname}${release}${shared_ext}$major'
14928   shlibpath_var=LD_LIBRARY_PATH
14929   ;;
14930
14931 *)
14932   dynamic_linker=no
14933   ;;
14934 esac
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14936 $as_echo "$dynamic_linker" >&6; }
14937 test "$dynamic_linker" = no && can_build_shared=no
14938
14939 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14940 if test "$GCC" = yes; then
14941   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14942 fi
14943
14944 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14945   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14946 fi
14947 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14948   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14949 fi
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14989 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14990 hardcode_action_CXX=
14991 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14992    test -n "$runpath_var_CXX" ||
14993    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14994
14995   # We can hardcode non-existent directories.
14996   if test "$hardcode_direct_CXX" != no &&
14997      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14998      # have to relink, otherwise we might link with an installed library
14999      # when we should be linking with a yet-to-be-installed one
15000      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15001      test "$hardcode_minus_L_CXX" != no; then
15002     # Linking always hardcodes the temporary library directory.
15003     hardcode_action_CXX=relink
15004   else
15005     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15006     hardcode_action_CXX=immediate
15007   fi
15008 else
15009   # We cannot hardcode anything, or else we can only hardcode existing
15010   # directories.
15011   hardcode_action_CXX=unsupported
15012 fi
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15014 $as_echo "$hardcode_action_CXX" >&6; }
15015
15016 if test "$hardcode_action_CXX" = relink ||
15017    test "$inherit_rpath_CXX" = yes; then
15018   # Fast installation is not supported
15019   enable_fast_install=no
15020 elif test "$shlibpath_overrides_runpath" = yes ||
15021      test "$enable_shared" = no; then
15022   # Fast installation is not necessary
15023   enable_fast_install=needless
15024 fi
15025
15026
15027
15028
15029
15030
15031
15032   fi # test -n "$compiler"
15033
15034   CC=$lt_save_CC
15035   CFLAGS=$lt_save_CFLAGS
15036   LDCXX=$LD
15037   LD=$lt_save_LD
15038   GCC=$lt_save_GCC
15039   with_gnu_ld=$lt_save_with_gnu_ld
15040   lt_cv_path_LDCXX=$lt_cv_path_LD
15041   lt_cv_path_LD=$lt_save_path_LD
15042   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15043   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15044 fi # test "$_lt_caught_CXX_error" != yes
15045
15046 ac_ext=cpp
15047 ac_cpp='$CXXCPP $CPPFLAGS'
15048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064         ac_config_commands="$ac_config_commands libtool"
15065
15066
15067
15068
15069 # Only expand once:
15070
15071
15072
15073 # Checks for libraries.
15074 # FIXME: Replace `main' with a function in `-lAXE':
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lAXE" >&5
15076 $as_echo_n "checking for main in -lAXE... " >&6; }
15077 if ${ac_cv_lib_AXE_main+:} false; then :
15078   $as_echo_n "(cached) " >&6
15079 else
15080   ac_check_lib_save_LIBS=$LIBS
15081 LIBS="-lAXE  $LIBS"
15082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15083 /* end confdefs.h.  */
15084
15085
15086 int
15087 main ()
15088 {
15089 return main ();
15090   ;
15091   return 0;
15092 }
15093 _ACEOF
15094 if ac_fn_cxx_try_link "$LINENO"; then :
15095   ac_cv_lib_AXE_main=yes
15096 else
15097   ac_cv_lib_AXE_main=no
15098 fi
15099 rm -f core conftest.err conftest.$ac_objext \
15100     conftest$ac_exeext conftest.$ac_ext
15101 LIBS=$ac_check_lib_save_LIBS
15102 fi
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_AXE_main" >&5
15104 $as_echo "$ac_cv_lib_AXE_main" >&6; }
15105 if test "x$ac_cv_lib_AXE_main" = xyes; then :
15106   cat >>confdefs.h <<_ACEOF
15107 #define HAVE_LIBAXE 1
15108 _ACEOF
15109
15110   LIBS="-lAXE $LIBS"
15111
15112 fi
15113
15114
15115 # Checks for header files.
15116
15117 for ac_header in arpa/inet.h netdb.h sys/socket.h
15118 do :
15119   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15120 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15121 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15122   cat >>confdefs.h <<_ACEOF
15123 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15124 _ACEOF
15125
15126 fi
15127
15128 done
15129
15130
15131 # Checks for typedefs, structures, and compiler characteristics.
15132 ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15133 if test "x$ac_cv_type_size_t" = xyes; then :
15134
15135 else
15136
15137 cat >>confdefs.h <<_ACEOF
15138 #define size_t unsigned int
15139 _ACEOF
15140
15141 fi
15142
15143 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
15144 if test "x$ac_cv_type_ssize_t" = xyes; then :
15145
15146 else
15147
15148 cat >>confdefs.h <<_ACEOF
15149 #define ssize_t int
15150 _ACEOF
15151
15152 fi
15153
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15155 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15156 if ${ac_cv_header_stdbool_h+:} false; then :
15157   $as_echo_n "(cached) " >&6
15158 else
15159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15160 /* end confdefs.h.  */
15161
15162 #include <stdbool.h>
15163 #ifndef bool
15164  "error: bool is not defined"
15165 #endif
15166 #ifndef false
15167  "error: false is not defined"
15168 #endif
15169 #if false
15170  "error: false is not 0"
15171 #endif
15172 #ifndef true
15173  "error: true is not defined"
15174 #endif
15175 #if true != 1
15176  "error: true is not 1"
15177 #endif
15178 #ifndef __bool_true_false_are_defined
15179  "error: __bool_true_false_are_defined is not defined"
15180 #endif
15181
15182         struct s { _Bool s: 1; _Bool t; } s;
15183
15184         char a[true == 1 ? 1 : -1];
15185         char b[false == 0 ? 1 : -1];
15186         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15187         char d[(bool) 0.5 == true ? 1 : -1];
15188         /* See body of main program for 'e'.  */
15189         char f[(_Bool) 0.0 == false ? 1 : -1];
15190         char g[true];
15191         char h[sizeof (_Bool)];
15192         char i[sizeof s.t];
15193         enum { j = false, k = true, l = false * true, m = true * 256 };
15194         /* The following fails for
15195            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15196         _Bool n[m];
15197         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15198         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15199         /* Catch a bug in an HP-UX C compiler.  See
15200            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15201            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15202          */
15203         _Bool q = true;
15204         _Bool *pq = &q;
15205
15206 int
15207 main ()
15208 {
15209
15210         bool e = &s;
15211         *pq |= q;
15212         *pq |= ! q;
15213         /* Refer to every declared value, to avoid compiler optimizations.  */
15214         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15215                 + !m + !n + !o + !p + !q + !pq);
15216
15217   ;
15218   return 0;
15219 }
15220 _ACEOF
15221 if ac_fn_cxx_try_compile "$LINENO"; then :
15222   ac_cv_header_stdbool_h=yes
15223 else
15224   ac_cv_header_stdbool_h=no
15225 fi
15226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15227 fi
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15229 $as_echo "$ac_cv_header_stdbool_h" >&6; }
15230 ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15231 if test "x$ac_cv_type__Bool" = xyes; then :
15232
15233 cat >>confdefs.h <<_ACEOF
15234 #define HAVE__BOOL 1
15235 _ACEOF
15236
15237
15238 fi
15239
15240 if test $ac_cv_header_stdbool_h = yes; then
15241
15242 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
15243
15244 fi
15245
15246
15247 # Checks for library functions.
15248 for ac_func in socket strchr
15249 do :
15250   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15251 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
15252 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15253   cat >>confdefs.h <<_ACEOF
15254 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15255 _ACEOF
15256
15257 fi
15258 done
15259
15260
15261 ac_config_files="$ac_config_files Makefile doc/Makefile test/Makefile src/Makefile"
15262
15263 cat >confcache <<\_ACEOF
15264 # This file is a shell script that caches the results of configure
15265 # tests run on this system so they can be shared between configure
15266 # scripts and configure runs, see configure's option --config-cache.
15267 # It is not useful on other systems.  If it contains results you don't
15268 # want to keep, you may remove or edit it.
15269 #
15270 # config.status only pays attention to the cache file if you give it
15271 # the --recheck option to rerun configure.
15272 #
15273 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15274 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15275 # following values.
15276
15277 _ACEOF
15278
15279 # The following way of writing the cache mishandles newlines in values,
15280 # but we know of no workaround that is simple, portable, and efficient.
15281 # So, we kill variables containing newlines.
15282 # Ultrix sh set writes to stderr and can't be redirected directly,
15283 # and sets the high bit in the cache file unless we assign to the vars.
15284 (
15285   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15286     eval ac_val=\$$ac_var
15287     case $ac_val in #(
15288     *${as_nl}*)
15289       case $ac_var in #(
15290       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15291 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15292       esac
15293       case $ac_var in #(
15294       _ | IFS | as_nl) ;; #(
15295       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15296       *) { eval $ac_var=; unset $ac_var;} ;;
15297       esac ;;
15298     esac
15299   done
15300
15301   (set) 2>&1 |
15302     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15303     *${as_nl}ac_space=\ *)
15304       # `set' does not quote correctly, so add quotes: double-quote
15305       # substitution turns \\\\ into \\, and sed turns \\ into \.
15306       sed -n \
15307         "s/'/'\\\\''/g;
15308           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15309       ;; #(
15310     *)
15311       # `set' quotes correctly as required by POSIX, so do not add quotes.
15312       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15313       ;;
15314     esac |
15315     sort
15316 ) |
15317   sed '
15318      /^ac_cv_env_/b end
15319      t clear
15320      :clear
15321      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15322      t end
15323      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15324      :end' >>confcache
15325 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15326   if test -w "$cache_file"; then
15327     if test "x$cache_file" != "x/dev/null"; then
15328       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15329 $as_echo "$as_me: updating cache $cache_file" >&6;}
15330       if test ! -f "$cache_file" || test -h "$cache_file"; then
15331         cat confcache >"$cache_file"
15332       else
15333         case $cache_file in #(
15334         */* | ?:*)
15335           mv -f confcache "$cache_file"$$ &&
15336           mv -f "$cache_file"$$ "$cache_file" ;; #(
15337         *)
15338           mv -f confcache "$cache_file" ;;
15339         esac
15340       fi
15341     fi
15342   else
15343     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15344 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15345   fi
15346 fi
15347 rm -f confcache
15348
15349 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15350 # Let make expand exec_prefix.
15351 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15352
15353 DEFS=-DHAVE_CONFIG_H
15354
15355 ac_libobjs=
15356 ac_ltlibobjs=
15357 U=
15358 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15359   # 1. Remove the extension, and $U if already installed.
15360   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15361   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15362   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15363   #    will be set to the directory where LIBOBJS objects are built.
15364   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15365   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15366 done
15367 LIBOBJS=$ac_libobjs
15368
15369 LTLIBOBJS=$ac_ltlibobjs
15370
15371
15372  if test -n "$EXEEXT"; then
15373   am__EXEEXT_TRUE=
15374   am__EXEEXT_FALSE='#'
15375 else
15376   am__EXEEXT_TRUE='#'
15377   am__EXEEXT_FALSE=
15378 fi
15379
15380 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15381   as_fn_error $? "conditional \"AMDEP\" was never defined.
15382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15383 fi
15384 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15385   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15387 fi
15388 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15389   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15391 fi
15392
15393 : "${CONFIG_STATUS=./config.status}"
15394 ac_write_fail=0
15395 ac_clean_files_save=$ac_clean_files
15396 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15398 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15399 as_write_fail=0
15400 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15401 #! $SHELL
15402 # Generated by $as_me.
15403 # Run this file to recreate the current configuration.
15404 # Compiler output produced by configure, useful for debugging
15405 # configure, is in config.log if it exists.
15406
15407 debug=false
15408 ac_cs_recheck=false
15409 ac_cs_silent=false
15410
15411 SHELL=\${CONFIG_SHELL-$SHELL}
15412 export SHELL
15413 _ASEOF
15414 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15415 ## -------------------- ##
15416 ## M4sh Initialization. ##
15417 ## -------------------- ##
15418
15419 # Be more Bourne compatible
15420 DUALCASE=1; export DUALCASE # for MKS sh
15421 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15422   emulate sh
15423   NULLCMD=:
15424   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15425   # is contrary to our usage.  Disable this feature.
15426   alias -g '${1+"$@"}'='"$@"'
15427   setopt NO_GLOB_SUBST
15428 else
15429   case `(set -o) 2>/dev/null` in #(
15430   *posix*) :
15431     set -o posix ;; #(
15432   *) :
15433      ;;
15434 esac
15435 fi
15436
15437
15438 as_nl='
15439 '
15440 export as_nl
15441 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15442 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15443 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15444 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15445 # Prefer a ksh shell builtin over an external printf program on Solaris,
15446 # but without wasting forks for bash or zsh.
15447 if test -z "$BASH_VERSION$ZSH_VERSION" \
15448     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15449   as_echo='print -r --'
15450   as_echo_n='print -rn --'
15451 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15452   as_echo='printf %s\n'
15453   as_echo_n='printf %s'
15454 else
15455   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15456     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15457     as_echo_n='/usr/ucb/echo -n'
15458   else
15459     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15460     as_echo_n_body='eval
15461       arg=$1;
15462       case $arg in #(
15463       *"$as_nl"*)
15464         expr "X$arg" : "X\\(.*\\)$as_nl";
15465         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15466       esac;
15467       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15468     '
15469     export as_echo_n_body
15470     as_echo_n='sh -c $as_echo_n_body as_echo'
15471   fi
15472   export as_echo_body
15473   as_echo='sh -c $as_echo_body as_echo'
15474 fi
15475
15476 # The user is always right.
15477 if test "${PATH_SEPARATOR+set}" != set; then
15478   PATH_SEPARATOR=:
15479   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15480     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15481       PATH_SEPARATOR=';'
15482   }
15483 fi
15484
15485
15486 # IFS
15487 # We need space, tab and new line, in precisely that order.  Quoting is
15488 # there to prevent editors from complaining about space-tab.
15489 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15490 # splitting by setting IFS to empty value.)
15491 IFS=" ""        $as_nl"
15492
15493 # Find who we are.  Look in the path if we contain no directory separator.
15494 as_myself=
15495 case $0 in #((
15496   *[\\/]* ) as_myself=$0 ;;
15497   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15498 for as_dir in $PATH
15499 do
15500   IFS=$as_save_IFS
15501   test -z "$as_dir" && as_dir=.
15502     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15503   done
15504 IFS=$as_save_IFS
15505
15506      ;;
15507 esac
15508 # We did not find ourselves, most probably we were run as `sh COMMAND'
15509 # in which case we are not to be found in the path.
15510 if test "x$as_myself" = x; then
15511   as_myself=$0
15512 fi
15513 if test ! -f "$as_myself"; then
15514   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15515   exit 1
15516 fi
15517
15518 # Unset variables that we do not need and which cause bugs (e.g. in
15519 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15520 # suppresses any "Segmentation fault" message there.  '((' could
15521 # trigger a bug in pdksh 5.2.14.
15522 for as_var in BASH_ENV ENV MAIL MAILPATH
15523 do eval test x\${$as_var+set} = xset \
15524   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15525 done
15526 PS1='$ '
15527 PS2='> '
15528 PS4='+ '
15529
15530 # NLS nuisances.
15531 LC_ALL=C
15532 export LC_ALL
15533 LANGUAGE=C
15534 export LANGUAGE
15535
15536 # CDPATH.
15537 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15538
15539
15540 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15541 # ----------------------------------------
15542 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15543 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15544 # script with STATUS, using 1 if that was 0.
15545 as_fn_error ()
15546 {
15547   as_status=$1; test $as_status -eq 0 && as_status=1
15548   if test "$4"; then
15549     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15550     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15551   fi
15552   $as_echo "$as_me: error: $2" >&2
15553   as_fn_exit $as_status
15554 } # as_fn_error
15555
15556
15557 # as_fn_set_status STATUS
15558 # -----------------------
15559 # Set $? to STATUS, without forking.
15560 as_fn_set_status ()
15561 {
15562   return $1
15563 } # as_fn_set_status
15564
15565 # as_fn_exit STATUS
15566 # -----------------
15567 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15568 as_fn_exit ()
15569 {
15570   set +e
15571   as_fn_set_status $1
15572   exit $1
15573 } # as_fn_exit
15574
15575 # as_fn_unset VAR
15576 # ---------------
15577 # Portably unset VAR.
15578 as_fn_unset ()
15579 {
15580   { eval $1=; unset $1;}
15581 }
15582 as_unset=as_fn_unset
15583 # as_fn_append VAR VALUE
15584 # ----------------------
15585 # Append the text in VALUE to the end of the definition contained in VAR. Take
15586 # advantage of any shell optimizations that allow amortized linear growth over
15587 # repeated appends, instead of the typical quadratic growth present in naive
15588 # implementations.
15589 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15590   eval 'as_fn_append ()
15591   {
15592     eval $1+=\$2
15593   }'
15594 else
15595   as_fn_append ()
15596   {
15597     eval $1=\$$1\$2
15598   }
15599 fi # as_fn_append
15600
15601 # as_fn_arith ARG...
15602 # ------------------
15603 # Perform arithmetic evaluation on the ARGs, and store the result in the
15604 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15605 # must be portable across $(()) and expr.
15606 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15607   eval 'as_fn_arith ()
15608   {
15609     as_val=$(( $* ))
15610   }'
15611 else
15612   as_fn_arith ()
15613   {
15614     as_val=`expr "$@" || test $? -eq 1`
15615   }
15616 fi # as_fn_arith
15617
15618
15619 if expr a : '\(a\)' >/dev/null 2>&1 &&
15620    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15621   as_expr=expr
15622 else
15623   as_expr=false
15624 fi
15625
15626 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15627   as_basename=basename
15628 else
15629   as_basename=false
15630 fi
15631
15632 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15633   as_dirname=dirname
15634 else
15635   as_dirname=false
15636 fi
15637
15638 as_me=`$as_basename -- "$0" ||
15639 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15640          X"$0" : 'X\(//\)$' \| \
15641          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15642 $as_echo X/"$0" |
15643     sed '/^.*\/\([^/][^/]*\)\/*$/{
15644             s//\1/
15645             q
15646           }
15647           /^X\/\(\/\/\)$/{
15648             s//\1/
15649             q
15650           }
15651           /^X\/\(\/\).*/{
15652             s//\1/
15653             q
15654           }
15655           s/.*/./; q'`
15656
15657 # Avoid depending upon Character Ranges.
15658 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15659 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15660 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15661 as_cr_digits='0123456789'
15662 as_cr_alnum=$as_cr_Letters$as_cr_digits
15663
15664 ECHO_C= ECHO_N= ECHO_T=
15665 case `echo -n x` in #(((((
15666 -n*)
15667   case `echo 'xy\c'` in
15668   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15669   xy)  ECHO_C='\c';;
15670   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15671        ECHO_T=' ';;
15672   esac;;
15673 *)
15674   ECHO_N='-n';;
15675 esac
15676
15677 rm -f conf$$ conf$$.exe conf$$.file
15678 if test -d conf$$.dir; then
15679   rm -f conf$$.dir/conf$$.file
15680 else
15681   rm -f conf$$.dir
15682   mkdir conf$$.dir 2>/dev/null
15683 fi
15684 if (echo >conf$$.file) 2>/dev/null; then
15685   if ln -s conf$$.file conf$$ 2>/dev/null; then
15686     as_ln_s='ln -s'
15687     # ... but there are two gotchas:
15688     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15689     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15690     # In both cases, we have to default to `cp -p'.
15691     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15692       as_ln_s='cp -p'
15693   elif ln conf$$.file conf$$ 2>/dev/null; then
15694     as_ln_s=ln
15695   else
15696     as_ln_s='cp -p'
15697   fi
15698 else
15699   as_ln_s='cp -p'
15700 fi
15701 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15702 rmdir conf$$.dir 2>/dev/null
15703
15704
15705 # as_fn_mkdir_p
15706 # -------------
15707 # Create "$as_dir" as a directory, including parents if necessary.
15708 as_fn_mkdir_p ()
15709 {
15710
15711   case $as_dir in #(
15712   -*) as_dir=./$as_dir;;
15713   esac
15714   test -d "$as_dir" || eval $as_mkdir_p || {
15715     as_dirs=
15716     while :; do
15717       case $as_dir in #(
15718       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15719       *) as_qdir=$as_dir;;
15720       esac
15721       as_dirs="'$as_qdir' $as_dirs"
15722       as_dir=`$as_dirname -- "$as_dir" ||
15723 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15724          X"$as_dir" : 'X\(//\)[^/]' \| \
15725          X"$as_dir" : 'X\(//\)$' \| \
15726          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15727 $as_echo X"$as_dir" |
15728     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15729             s//\1/
15730             q
15731           }
15732           /^X\(\/\/\)[^/].*/{
15733             s//\1/
15734             q
15735           }
15736           /^X\(\/\/\)$/{
15737             s//\1/
15738             q
15739           }
15740           /^X\(\/\).*/{
15741             s//\1/
15742             q
15743           }
15744           s/.*/./; q'`
15745       test -d "$as_dir" && break
15746     done
15747     test -z "$as_dirs" || eval "mkdir $as_dirs"
15748   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15749
15750
15751 } # as_fn_mkdir_p
15752 if mkdir -p . 2>/dev/null; then
15753   as_mkdir_p='mkdir -p "$as_dir"'
15754 else
15755   test -d ./-p && rmdir ./-p
15756   as_mkdir_p=false
15757 fi
15758
15759 if test -x / >/dev/null 2>&1; then
15760   as_test_x='test -x'
15761 else
15762   if ls -dL / >/dev/null 2>&1; then
15763     as_ls_L_option=L
15764   else
15765     as_ls_L_option=
15766   fi
15767   as_test_x='
15768     eval sh -c '\''
15769       if test -d "$1"; then
15770         test -d "$1/.";
15771       else
15772         case $1 in #(
15773         -*)set "./$1";;
15774         esac;
15775         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15776         ???[sx]*):;;*)false;;esac;fi
15777     '\'' sh
15778   '
15779 fi
15780 as_executable_p=$as_test_x
15781
15782 # Sed expression to map a string onto a valid CPP name.
15783 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15784
15785 # Sed expression to map a string onto a valid variable name.
15786 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15787
15788
15789 exec 6>&1
15790 ## ----------------------------------- ##
15791 ## Main body of $CONFIG_STATUS script. ##
15792 ## ----------------------------------- ##
15793 _ASEOF
15794 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15795
15796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15797 # Save the log message, to keep $0 and so on meaningful, and to
15798 # report actual input values of CONFIG_FILES etc. instead of their
15799 # values after options handling.
15800 ac_log="
15801 This file was extended by libsockstream $as_me 0.1, which was
15802 generated by GNU Autoconf 2.68.  Invocation command line was
15803
15804   CONFIG_FILES    = $CONFIG_FILES
15805   CONFIG_HEADERS  = $CONFIG_HEADERS
15806   CONFIG_LINKS    = $CONFIG_LINKS
15807   CONFIG_COMMANDS = $CONFIG_COMMANDS
15808   $ $0 $@
15809
15810 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15811 "
15812
15813 _ACEOF
15814
15815 case $ac_config_files in *"
15816 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15817 esac
15818
15819 case $ac_config_headers in *"
15820 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15821 esac
15822
15823
15824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15825 # Files that config.status was made for.
15826 config_files="$ac_config_files"
15827 config_headers="$ac_config_headers"
15828 config_commands="$ac_config_commands"
15829
15830 _ACEOF
15831
15832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15833 ac_cs_usage="\
15834 \`$as_me' instantiates files and other configuration actions
15835 from templates according to the current configuration.  Unless the files
15836 and actions are specified as TAGs, all are instantiated by default.
15837
15838 Usage: $0 [OPTION]... [TAG]...
15839
15840   -h, --help       print this help, then exit
15841   -V, --version    print version number and configuration settings, then exit
15842       --config     print configuration, then exit
15843   -q, --quiet, --silent
15844                    do not print progress messages
15845   -d, --debug      don't remove temporary files
15846       --recheck    update $as_me by reconfiguring in the same conditions
15847       --file=FILE[:TEMPLATE]
15848                    instantiate the configuration file FILE
15849       --header=FILE[:TEMPLATE]
15850                    instantiate the configuration header FILE
15851
15852 Configuration files:
15853 $config_files
15854
15855 Configuration headers:
15856 $config_headers
15857
15858 Configuration commands:
15859 $config_commands
15860
15861 Report bugs to <arjen@andromeda.nl>."
15862
15863 _ACEOF
15864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15865 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15866 ac_cs_version="\\
15867 libsockstream config.status 0.1
15868 configured by $0, generated by GNU Autoconf 2.68,
15869   with options \\"\$ac_cs_config\\"
15870
15871 Copyright (C) 2010 Free Software Foundation, Inc.
15872 This config.status script is free software; the Free Software Foundation
15873 gives unlimited permission to copy, distribute and modify it."
15874
15875 ac_pwd='$ac_pwd'
15876 srcdir='$srcdir'
15877 INSTALL='$INSTALL'
15878 MKDIR_P='$MKDIR_P'
15879 AWK='$AWK'
15880 test -n "\$AWK" || AWK=awk
15881 _ACEOF
15882
15883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15884 # The default lists apply if the user does not specify any file.
15885 ac_need_defaults=:
15886 while test $# != 0
15887 do
15888   case $1 in
15889   --*=?*)
15890     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15891     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15892     ac_shift=:
15893     ;;
15894   --*=)
15895     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15896     ac_optarg=
15897     ac_shift=:
15898     ;;
15899   *)
15900     ac_option=$1
15901     ac_optarg=$2
15902     ac_shift=shift
15903     ;;
15904   esac
15905
15906   case $ac_option in
15907   # Handling of the options.
15908   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15909     ac_cs_recheck=: ;;
15910   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15911     $as_echo "$ac_cs_version"; exit ;;
15912   --config | --confi | --conf | --con | --co | --c )
15913     $as_echo "$ac_cs_config"; exit ;;
15914   --debug | --debu | --deb | --de | --d | -d )
15915     debug=: ;;
15916   --file | --fil | --fi | --f )
15917     $ac_shift
15918     case $ac_optarg in
15919     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15920     '') as_fn_error $? "missing file argument" ;;
15921     esac
15922     as_fn_append CONFIG_FILES " '$ac_optarg'"
15923     ac_need_defaults=false;;
15924   --header | --heade | --head | --hea )
15925     $ac_shift
15926     case $ac_optarg in
15927     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15928     esac
15929     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15930     ac_need_defaults=false;;
15931   --he | --h)
15932     # Conflict between --help and --header
15933     as_fn_error $? "ambiguous option: \`$1'
15934 Try \`$0 --help' for more information.";;
15935   --help | --hel | -h )
15936     $as_echo "$ac_cs_usage"; exit ;;
15937   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15938   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15939     ac_cs_silent=: ;;
15940
15941   # This is an error.
15942   -*) as_fn_error $? "unrecognized option: \`$1'
15943 Try \`$0 --help' for more information." ;;
15944
15945   *) as_fn_append ac_config_targets " $1"
15946      ac_need_defaults=false ;;
15947
15948   esac
15949   shift
15950 done
15951
15952 ac_configure_extra_args=
15953
15954 if $ac_cs_silent; then
15955   exec 6>/dev/null
15956   ac_configure_extra_args="$ac_configure_extra_args --silent"
15957 fi
15958
15959 _ACEOF
15960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15961 if \$ac_cs_recheck; then
15962   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15963   shift
15964   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15965   CONFIG_SHELL='$SHELL'
15966   export CONFIG_SHELL
15967   exec "\$@"
15968 fi
15969
15970 _ACEOF
15971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15972 exec 5>>config.log
15973 {
15974   echo
15975   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15976 ## Running $as_me. ##
15977 _ASBOX
15978   $as_echo "$ac_log"
15979 } >&5
15980
15981 _ACEOF
15982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15983 #
15984 # INIT-COMMANDS
15985 #
15986 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15987
15988
15989 # The HP-UX ksh and POSIX shell print the target directory to stdout
15990 # if CDPATH is set.
15991 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15992
15993 sed_quote_subst='$sed_quote_subst'
15994 double_quote_subst='$double_quote_subst'
15995 delay_variable_subst='$delay_variable_subst'
15996 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15997 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15998 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15999 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16000 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16001 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16002 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16003 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16004 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16005 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16006 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16007 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16008 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16009 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16010 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16011 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16012 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16013 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16014 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16015 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16016 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16017 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16018 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16019 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16020 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16021 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16022 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16023 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16024 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16025 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16026 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16027 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16028 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16029 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16030 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16031 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16032 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16033 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16034 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16035 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16036 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16037 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16038 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16039 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16040 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16041 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16042 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16043 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16044 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16045 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16046 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16047 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16048 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16049 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16050 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16051 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"`'
16052 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16053 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16054 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16055 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16056 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16057 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16058 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16059 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16060 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16061 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16062 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16063 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16064 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16065 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16066 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16067 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16068 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16069 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16070 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16071 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16072 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16073 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16074 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16075 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16076 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16077 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16078 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16079 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16080 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16081 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16082 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16083 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16084 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16085 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16086 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16087 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16088 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16089 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16090 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16091 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16092 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16093 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16094 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16095 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16096 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16097 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16098 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16099 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16100 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16101 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16102 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16103 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16104 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16105 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16106 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16107 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16108 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16109 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16110 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16111 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16112 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16113 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16114 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16115 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16116 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16117 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16118 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16119 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16120 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16121 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16122 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16123 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16124 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16125 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16126 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16127 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16128 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16129 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16130 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16131 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16132 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16133 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16134 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16135 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16136 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16137 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16138 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16139 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16140 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16141 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16142 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16143 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16144 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16145 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16146 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16147 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16148 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16149 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16150 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16151 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16152 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16153 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16154 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16155 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16156 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16157 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16158 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16159 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16160 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16161 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16162 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16163 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16164 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16165 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16166 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16167 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16168 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16169 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16170 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16171 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16172 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16173 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16174 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16175 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16176 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16177 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16178 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16179 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16180 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16181
16182 LTCC='$LTCC'
16183 LTCFLAGS='$LTCFLAGS'
16184 compiler='$compiler_DEFAULT'
16185
16186 # A function that is used when there is no print builtin or printf.
16187 func_fallback_echo ()
16188 {
16189   eval 'cat <<_LTECHO_EOF
16190 \$1
16191 _LTECHO_EOF'
16192 }
16193
16194 # Quote evaled strings.
16195 for var in SHELL \
16196 ECHO \
16197 SED \
16198 GREP \
16199 EGREP \
16200 FGREP \
16201 LD \
16202 NM \
16203 LN_S \
16204 lt_SP2NL \
16205 lt_NL2SP \
16206 reload_flag \
16207 OBJDUMP \
16208 deplibs_check_method \
16209 file_magic_cmd \
16210 file_magic_glob \
16211 want_nocaseglob \
16212 DLLTOOL \
16213 sharedlib_from_linklib_cmd \
16214 AR \
16215 AR_FLAGS \
16216 archiver_list_spec \
16217 STRIP \
16218 RANLIB \
16219 CC \
16220 CFLAGS \
16221 compiler \
16222 lt_cv_sys_global_symbol_pipe \
16223 lt_cv_sys_global_symbol_to_cdecl \
16224 lt_cv_sys_global_symbol_to_c_name_address \
16225 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16226 nm_file_list_spec \
16227 lt_prog_compiler_no_builtin_flag \
16228 lt_prog_compiler_pic \
16229 lt_prog_compiler_wl \
16230 lt_prog_compiler_static \
16231 lt_cv_prog_compiler_c_o \
16232 need_locks \
16233 MANIFEST_TOOL \
16234 DSYMUTIL \
16235 NMEDIT \
16236 LIPO \
16237 OTOOL \
16238 OTOOL64 \
16239 shrext_cmds \
16240 export_dynamic_flag_spec \
16241 whole_archive_flag_spec \
16242 compiler_needs_object \
16243 with_gnu_ld \
16244 allow_undefined_flag \
16245 no_undefined_flag \
16246 hardcode_libdir_flag_spec \
16247 hardcode_libdir_flag_spec_ld \
16248 hardcode_libdir_separator \
16249 exclude_expsyms \
16250 include_expsyms \
16251 file_list_spec \
16252 variables_saved_for_relink \
16253 libname_spec \
16254 library_names_spec \
16255 soname_spec \
16256 install_override_mode \
16257 finish_eval \
16258 old_striplib \
16259 striplib \
16260 compiler_lib_search_dirs \
16261 predep_objects \
16262 postdep_objects \
16263 predeps \
16264 postdeps \
16265 compiler_lib_search_path \
16266 LD_CXX \
16267 reload_flag_CXX \
16268 compiler_CXX \
16269 lt_prog_compiler_no_builtin_flag_CXX \
16270 lt_prog_compiler_pic_CXX \
16271 lt_prog_compiler_wl_CXX \
16272 lt_prog_compiler_static_CXX \
16273 lt_cv_prog_compiler_c_o_CXX \
16274 export_dynamic_flag_spec_CXX \
16275 whole_archive_flag_spec_CXX \
16276 compiler_needs_object_CXX \
16277 with_gnu_ld_CXX \
16278 allow_undefined_flag_CXX \
16279 no_undefined_flag_CXX \
16280 hardcode_libdir_flag_spec_CXX \
16281 hardcode_libdir_flag_spec_ld_CXX \
16282 hardcode_libdir_separator_CXX \
16283 exclude_expsyms_CXX \
16284 include_expsyms_CXX \
16285 file_list_spec_CXX \
16286 compiler_lib_search_dirs_CXX \
16287 predep_objects_CXX \
16288 postdep_objects_CXX \
16289 predeps_CXX \
16290 postdeps_CXX \
16291 compiler_lib_search_path_CXX; do
16292     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16293     *[\\\\\\\`\\"\\\$]*)
16294       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16295       ;;
16296     *)
16297       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16298       ;;
16299     esac
16300 done
16301
16302 # Double-quote double-evaled strings.
16303 for var in reload_cmds \
16304 old_postinstall_cmds \
16305 old_postuninstall_cmds \
16306 old_archive_cmds \
16307 extract_expsyms_cmds \
16308 old_archive_from_new_cmds \
16309 old_archive_from_expsyms_cmds \
16310 archive_cmds \
16311 archive_expsym_cmds \
16312 module_cmds \
16313 module_expsym_cmds \
16314 export_symbols_cmds \
16315 prelink_cmds \
16316 postlink_cmds \
16317 postinstall_cmds \
16318 postuninstall_cmds \
16319 finish_cmds \
16320 sys_lib_search_path_spec \
16321 sys_lib_dlsearch_path_spec \
16322 reload_cmds_CXX \
16323 old_archive_cmds_CXX \
16324 old_archive_from_new_cmds_CXX \
16325 old_archive_from_expsyms_cmds_CXX \
16326 archive_cmds_CXX \
16327 archive_expsym_cmds_CXX \
16328 module_cmds_CXX \
16329 module_expsym_cmds_CXX \
16330 export_symbols_cmds_CXX \
16331 prelink_cmds_CXX \
16332 postlink_cmds_CXX; do
16333     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16334     *[\\\\\\\`\\"\\\$]*)
16335       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16336       ;;
16337     *)
16338       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16339       ;;
16340     esac
16341 done
16342
16343 ac_aux_dir='$ac_aux_dir'
16344 xsi_shell='$xsi_shell'
16345 lt_shell_append='$lt_shell_append'
16346
16347 # See if we are running on zsh, and set the options which allow our
16348 # commands through without removal of \ escapes INIT.
16349 if test -n "\${ZSH_VERSION+set}" ; then
16350    setopt NO_GLOB_SUBST
16351 fi
16352
16353
16354     PACKAGE='$PACKAGE'
16355     VERSION='$VERSION'
16356     TIMESTAMP='$TIMESTAMP'
16357     RM='$RM'
16358     ofile='$ofile'
16359
16360
16361
16362
16363
16364
16365 _ACEOF
16366
16367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16368
16369 # Handling of arguments.
16370 for ac_config_target in $ac_config_targets
16371 do
16372   case $ac_config_target in
16373     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16374     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16375     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16376     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16377     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16378     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16379     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16380
16381   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16382   esac
16383 done
16384
16385
16386 # If the user did not use the arguments to specify the items to instantiate,
16387 # then the envvar interface is used.  Set only those that are not.
16388 # We use the long form for the default assignment because of an extremely
16389 # bizarre bug on SunOS 4.1.3.
16390 if $ac_need_defaults; then
16391   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16392   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16393   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16394 fi
16395
16396 # Have a temporary directory for convenience.  Make it in the build tree
16397 # simply because there is no reason against having it here, and in addition,
16398 # creating and moving files from /tmp can sometimes cause problems.
16399 # Hook for its removal unless debugging.
16400 # Note that there is a small window in which the directory will not be cleaned:
16401 # after its creation but before its name has been assigned to `$tmp'.
16402 $debug ||
16403 {
16404   tmp= ac_tmp=
16405   trap 'exit_status=$?
16406   : "${ac_tmp:=$tmp}"
16407   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16408 ' 0
16409   trap 'as_fn_exit 1' 1 2 13 15
16410 }
16411 # Create a (secure) tmp directory for tmp files.
16412
16413 {
16414   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16415   test -d "$tmp"
16416 }  ||
16417 {
16418   tmp=./conf$$-$RANDOM
16419   (umask 077 && mkdir "$tmp")
16420 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16421 ac_tmp=$tmp
16422
16423 # Set up the scripts for CONFIG_FILES section.
16424 # No need to generate them if there are no CONFIG_FILES.
16425 # This happens for instance with `./config.status config.h'.
16426 if test -n "$CONFIG_FILES"; then
16427
16428
16429 ac_cr=`echo X | tr X '\015'`
16430 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16431 # But we know of no other shell where ac_cr would be empty at this
16432 # point, so we can use a bashism as a fallback.
16433 if test "x$ac_cr" = x; then
16434   eval ac_cr=\$\'\\r\'
16435 fi
16436 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16437 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16438   ac_cs_awk_cr='\\r'
16439 else
16440   ac_cs_awk_cr=$ac_cr
16441 fi
16442
16443 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16444 _ACEOF
16445
16446
16447 {
16448   echo "cat >conf$$subs.awk <<_ACEOF" &&
16449   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16450   echo "_ACEOF"
16451 } >conf$$subs.sh ||
16452   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16453 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16454 ac_delim='%!_!# '
16455 for ac_last_try in false false false false false :; do
16456   . ./conf$$subs.sh ||
16457     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16458
16459   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16460   if test $ac_delim_n = $ac_delim_num; then
16461     break
16462   elif $ac_last_try; then
16463     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16464   else
16465     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16466   fi
16467 done
16468 rm -f conf$$subs.sh
16469
16470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16471 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16472 _ACEOF
16473 sed -n '
16474 h
16475 s/^/S["/; s/!.*/"]=/
16476 p
16477 g
16478 s/^[^!]*!//
16479 :repl
16480 t repl
16481 s/'"$ac_delim"'$//
16482 t delim
16483 :nl
16484 h
16485 s/\(.\{148\}\)..*/\1/
16486 t more1
16487 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16488 p
16489 n
16490 b repl
16491 :more1
16492 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16493 p
16494 g
16495 s/.\{148\}//
16496 t nl
16497 :delim
16498 h
16499 s/\(.\{148\}\)..*/\1/
16500 t more2
16501 s/["\\]/\\&/g; s/^/"/; s/$/"/
16502 p
16503 b
16504 :more2
16505 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16506 p
16507 g
16508 s/.\{148\}//
16509 t delim
16510 ' <conf$$subs.awk | sed '
16511 /^[^""]/{
16512   N
16513   s/\n//
16514 }
16515 ' >>$CONFIG_STATUS || ac_write_fail=1
16516 rm -f conf$$subs.awk
16517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16518 _ACAWK
16519 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16520   for (key in S) S_is_set[key] = 1
16521   FS = "\a"
16522
16523 }
16524 {
16525   line = $ 0
16526   nfields = split(line, field, "@")
16527   substed = 0
16528   len = length(field[1])
16529   for (i = 2; i < nfields; i++) {
16530     key = field[i]
16531     keylen = length(key)
16532     if (S_is_set[key]) {
16533       value = S[key]
16534       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16535       len += length(value) + length(field[++i])
16536       substed = 1
16537     } else
16538       len += 1 + keylen
16539   }
16540
16541   print line
16542 }
16543
16544 _ACAWK
16545 _ACEOF
16546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16547 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16548   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16549 else
16550   cat
16551 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16552   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16553 _ACEOF
16554
16555 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16556 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16557 # trailing colons and then remove the whole line if VPATH becomes empty
16558 # (actually we leave an empty line to preserve line numbers).
16559 if test "x$srcdir" = x.; then
16560   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16561 h
16562 s///
16563 s/^/:/
16564 s/[      ]*$/:/
16565 s/:\$(srcdir):/:/g
16566 s/:\${srcdir}:/:/g
16567 s/:@srcdir@:/:/g
16568 s/^:*//
16569 s/:*$//
16570 x
16571 s/\(=[   ]*\).*/\1/
16572 G
16573 s/\n//
16574 s/^[^=]*=[       ]*$//
16575 }'
16576 fi
16577
16578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16579 fi # test -n "$CONFIG_FILES"
16580
16581 # Set up the scripts for CONFIG_HEADERS section.
16582 # No need to generate them if there are no CONFIG_HEADERS.
16583 # This happens for instance with `./config.status Makefile'.
16584 if test -n "$CONFIG_HEADERS"; then
16585 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16586 BEGIN {
16587 _ACEOF
16588
16589 # Transform confdefs.h into an awk script `defines.awk', embedded as
16590 # here-document in config.status, that substitutes the proper values into
16591 # config.h.in to produce config.h.
16592
16593 # Create a delimiter string that does not exist in confdefs.h, to ease
16594 # handling of long lines.
16595 ac_delim='%!_!# '
16596 for ac_last_try in false false :; do
16597   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16598   if test -z "$ac_tt"; then
16599     break
16600   elif $ac_last_try; then
16601     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16602   else
16603     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16604   fi
16605 done
16606
16607 # For the awk script, D is an array of macro values keyed by name,
16608 # likewise P contains macro parameters if any.  Preserve backslash
16609 # newline sequences.
16610
16611 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16612 sed -n '
16613 s/.\{148\}/&'"$ac_delim"'/g
16614 t rset
16615 :rset
16616 s/^[     ]*#[    ]*define[       ][      ]*/ /
16617 t def
16618 d
16619 :def
16620 s/\\$//
16621 t bsnl
16622 s/["\\]/\\&/g
16623 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16624 D["\1"]=" \3"/p
16625 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16626 d
16627 :bsnl
16628 s/["\\]/\\&/g
16629 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16630 D["\1"]=" \3\\\\\\n"\\/p
16631 t cont
16632 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16633 t cont
16634 d
16635 :cont
16636 n
16637 s/.\{148\}/&'"$ac_delim"'/g
16638 t clear
16639 :clear
16640 s/\\$//
16641 t bsnlc
16642 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16643 d
16644 :bsnlc
16645 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16646 b cont
16647 ' <confdefs.h | sed '
16648 s/'"$ac_delim"'/"\\\
16649 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16650
16651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16652   for (key in D) D_is_set[key] = 1
16653   FS = "\a"
16654 }
16655 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16656   line = \$ 0
16657   split(line, arg, " ")
16658   if (arg[1] == "#") {
16659     defundef = arg[2]
16660     mac1 = arg[3]
16661   } else {
16662     defundef = substr(arg[1], 2)
16663     mac1 = arg[2]
16664   }
16665   split(mac1, mac2, "(") #)
16666   macro = mac2[1]
16667   prefix = substr(line, 1, index(line, defundef) - 1)
16668   if (D_is_set[macro]) {
16669     # Preserve the white space surrounding the "#".
16670     print prefix "define", macro P[macro] D[macro]
16671     next
16672   } else {
16673     # Replace #undef with comments.  This is necessary, for example,
16674     # in the case of _POSIX_SOURCE, which is predefined and required
16675     # on some systems where configure will not decide to define it.
16676     if (defundef == "undef") {
16677       print "/*", prefix defundef, macro, "*/"
16678       next
16679     }
16680   }
16681 }
16682 { print }
16683 _ACAWK
16684 _ACEOF
16685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16686   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16687 fi # test -n "$CONFIG_HEADERS"
16688
16689
16690 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16691 shift
16692 for ac_tag
16693 do
16694   case $ac_tag in
16695   :[FHLC]) ac_mode=$ac_tag; continue;;
16696   esac
16697   case $ac_mode$ac_tag in
16698   :[FHL]*:*);;
16699   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16700   :[FH]-) ac_tag=-:-;;
16701   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16702   esac
16703   ac_save_IFS=$IFS
16704   IFS=:
16705   set x $ac_tag
16706   IFS=$ac_save_IFS
16707   shift
16708   ac_file=$1
16709   shift
16710
16711   case $ac_mode in
16712   :L) ac_source=$1;;
16713   :[FH])
16714     ac_file_inputs=
16715     for ac_f
16716     do
16717       case $ac_f in
16718       -) ac_f="$ac_tmp/stdin";;
16719       *) # Look for the file first in the build tree, then in the source tree
16720          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16721          # because $ac_f cannot contain `:'.
16722          test -f "$ac_f" ||
16723            case $ac_f in
16724            [\\/$]*) false;;
16725            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16726            esac ||
16727            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16728       esac
16729       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16730       as_fn_append ac_file_inputs " '$ac_f'"
16731     done
16732
16733     # Let's still pretend it is `configure' which instantiates (i.e., don't
16734     # use $as_me), people would be surprised to read:
16735     #    /* config.h.  Generated by config.status.  */
16736     configure_input='Generated from '`
16737           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16738         `' by configure.'
16739     if test x"$ac_file" != x-; then
16740       configure_input="$ac_file.  $configure_input"
16741       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16742 $as_echo "$as_me: creating $ac_file" >&6;}
16743     fi
16744     # Neutralize special characters interpreted by sed in replacement strings.
16745     case $configure_input in #(
16746     *\&* | *\|* | *\\* )
16747        ac_sed_conf_input=`$as_echo "$configure_input" |
16748        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16749     *) ac_sed_conf_input=$configure_input;;
16750     esac
16751
16752     case $ac_tag in
16753     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16754       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16755     esac
16756     ;;
16757   esac
16758
16759   ac_dir=`$as_dirname -- "$ac_file" ||
16760 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16761          X"$ac_file" : 'X\(//\)[^/]' \| \
16762          X"$ac_file" : 'X\(//\)$' \| \
16763          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16764 $as_echo X"$ac_file" |
16765     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16766             s//\1/
16767             q
16768           }
16769           /^X\(\/\/\)[^/].*/{
16770             s//\1/
16771             q
16772           }
16773           /^X\(\/\/\)$/{
16774             s//\1/
16775             q
16776           }
16777           /^X\(\/\).*/{
16778             s//\1/
16779             q
16780           }
16781           s/.*/./; q'`
16782   as_dir="$ac_dir"; as_fn_mkdir_p
16783   ac_builddir=.
16784
16785 case "$ac_dir" in
16786 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16787 *)
16788   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16789   # A ".." for each directory in $ac_dir_suffix.
16790   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16791   case $ac_top_builddir_sub in
16792   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16793   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16794   esac ;;
16795 esac
16796 ac_abs_top_builddir=$ac_pwd
16797 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16798 # for backward compatibility:
16799 ac_top_builddir=$ac_top_build_prefix
16800
16801 case $srcdir in
16802   .)  # We are building in place.
16803     ac_srcdir=.
16804     ac_top_srcdir=$ac_top_builddir_sub
16805     ac_abs_top_srcdir=$ac_pwd ;;
16806   [\\/]* | ?:[\\/]* )  # Absolute name.
16807     ac_srcdir=$srcdir$ac_dir_suffix;
16808     ac_top_srcdir=$srcdir
16809     ac_abs_top_srcdir=$srcdir ;;
16810   *) # Relative name.
16811     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16812     ac_top_srcdir=$ac_top_build_prefix$srcdir
16813     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16814 esac
16815 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16816
16817
16818   case $ac_mode in
16819   :F)
16820   #
16821   # CONFIG_FILE
16822   #
16823
16824   case $INSTALL in
16825   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16826   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16827   esac
16828   ac_MKDIR_P=$MKDIR_P
16829   case $MKDIR_P in
16830   [\\/$]* | ?:[\\/]* ) ;;
16831   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16832   esac
16833 _ACEOF
16834
16835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16836 # If the template does not know about datarootdir, expand it.
16837 # FIXME: This hack should be removed a few years after 2.60.
16838 ac_datarootdir_hack=; ac_datarootdir_seen=
16839 ac_sed_dataroot='
16840 /datarootdir/ {
16841   p
16842   q
16843 }
16844 /@datadir@/p
16845 /@docdir@/p
16846 /@infodir@/p
16847 /@localedir@/p
16848 /@mandir@/p'
16849 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16850 *datarootdir*) ac_datarootdir_seen=yes;;
16851 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16852   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16853 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16854 _ACEOF
16855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16856   ac_datarootdir_hack='
16857   s&@datadir@&$datadir&g
16858   s&@docdir@&$docdir&g
16859   s&@infodir@&$infodir&g
16860   s&@localedir@&$localedir&g
16861   s&@mandir@&$mandir&g
16862   s&\\\${datarootdir}&$datarootdir&g' ;;
16863 esac
16864 _ACEOF
16865
16866 # Neutralize VPATH when `$srcdir' = `.'.
16867 # Shell code in configure.ac might set extrasub.
16868 # FIXME: do we really want to maintain this feature?
16869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16870 ac_sed_extra="$ac_vpsub
16871 $extrasub
16872 _ACEOF
16873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16874 :t
16875 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16876 s|@configure_input@|$ac_sed_conf_input|;t t
16877 s&@top_builddir@&$ac_top_builddir_sub&;t t
16878 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16879 s&@srcdir@&$ac_srcdir&;t t
16880 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16881 s&@top_srcdir@&$ac_top_srcdir&;t t
16882 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16883 s&@builddir@&$ac_builddir&;t t
16884 s&@abs_builddir@&$ac_abs_builddir&;t t
16885 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16886 s&@INSTALL@&$ac_INSTALL&;t t
16887 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16888 $ac_datarootdir_hack
16889 "
16890 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16891   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16892
16893 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16894   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16895   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16896       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16897   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16898 which seems to be undefined.  Please make sure it is defined" >&5
16899 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16900 which seems to be undefined.  Please make sure it is defined" >&2;}
16901
16902   rm -f "$ac_tmp/stdin"
16903   case $ac_file in
16904   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16905   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16906   esac \
16907   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16908  ;;
16909   :H)
16910   #
16911   # CONFIG_HEADER
16912   #
16913   if test x"$ac_file" != x-; then
16914     {
16915       $as_echo "/* $configure_input  */" \
16916       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16917     } >"$ac_tmp/config.h" \
16918       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16919     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16920       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16921 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16922     else
16923       rm -f "$ac_file"
16924       mv "$ac_tmp/config.h" "$ac_file" \
16925         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16926     fi
16927   else
16928     $as_echo "/* $configure_input  */" \
16929       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16930       || as_fn_error $? "could not create -" "$LINENO" 5
16931   fi
16932 # Compute "$ac_file"'s index in $config_headers.
16933 _am_arg="$ac_file"
16934 _am_stamp_count=1
16935 for _am_header in $config_headers :; do
16936   case $_am_header in
16937     $_am_arg | $_am_arg:* )
16938       break ;;
16939     * )
16940       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16941   esac
16942 done
16943 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16944 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16945          X"$_am_arg" : 'X\(//\)[^/]' \| \
16946          X"$_am_arg" : 'X\(//\)$' \| \
16947          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16948 $as_echo X"$_am_arg" |
16949     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16950             s//\1/
16951             q
16952           }
16953           /^X\(\/\/\)[^/].*/{
16954             s//\1/
16955             q
16956           }
16957           /^X\(\/\/\)$/{
16958             s//\1/
16959             q
16960           }
16961           /^X\(\/\).*/{
16962             s//\1/
16963             q
16964           }
16965           s/.*/./; q'`/stamp-h$_am_stamp_count
16966  ;;
16967
16968   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16969 $as_echo "$as_me: executing $ac_file commands" >&6;}
16970  ;;
16971   esac
16972
16973
16974   case $ac_file$ac_mode in
16975     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16976   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16977   # are listed without --file.  Let's play safe and only enable the eval
16978   # if we detect the quoting.
16979   case $CONFIG_FILES in
16980   *\'*) eval set x "$CONFIG_FILES" ;;
16981   *)   set x $CONFIG_FILES ;;
16982   esac
16983   shift
16984   for mf
16985   do
16986     # Strip MF so we end up with the name of the file.
16987     mf=`echo "$mf" | sed -e 's/:.*$//'`
16988     # Check whether this is an Automake generated Makefile or not.
16989     # We used to match only the files named `Makefile.in', but
16990     # some people rename them; so instead we look at the file content.
16991     # Grep'ing the first line is not enough: some people post-process
16992     # each Makefile.in and add a new line on top of each file to say so.
16993     # Grep'ing the whole file is not good either: AIX grep has a line
16994     # limit of 2048, but all sed's we know have understand at least 4000.
16995     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16996       dirpart=`$as_dirname -- "$mf" ||
16997 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16998          X"$mf" : 'X\(//\)[^/]' \| \
16999          X"$mf" : 'X\(//\)$' \| \
17000          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17001 $as_echo X"$mf" |
17002     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17003             s//\1/
17004             q
17005           }
17006           /^X\(\/\/\)[^/].*/{
17007             s//\1/
17008             q
17009           }
17010           /^X\(\/\/\)$/{
17011             s//\1/
17012             q
17013           }
17014           /^X\(\/\).*/{
17015             s//\1/
17016             q
17017           }
17018           s/.*/./; q'`
17019     else
17020       continue
17021     fi
17022     # Extract the definition of DEPDIR, am__include, and am__quote
17023     # from the Makefile without running `make'.
17024     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17025     test -z "$DEPDIR" && continue
17026     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17027     test -z "am__include" && continue
17028     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17029     # When using ansi2knr, U may be empty or an underscore; expand it
17030     U=`sed -n 's/^U = //p' < "$mf"`
17031     # Find all dependency output files, they are included files with
17032     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17033     # simplest approach to changing $(DEPDIR) to its actual value in the
17034     # expansion.
17035     for file in `sed -n "
17036       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17037          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17038       # Make sure the directory exists.
17039       test -f "$dirpart/$file" && continue
17040       fdir=`$as_dirname -- "$file" ||
17041 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17042          X"$file" : 'X\(//\)[^/]' \| \
17043          X"$file" : 'X\(//\)$' \| \
17044          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17045 $as_echo X"$file" |
17046     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17047             s//\1/
17048             q
17049           }
17050           /^X\(\/\/\)[^/].*/{
17051             s//\1/
17052             q
17053           }
17054           /^X\(\/\/\)$/{
17055             s//\1/
17056             q
17057           }
17058           /^X\(\/\).*/{
17059             s//\1/
17060             q
17061           }
17062           s/.*/./; q'`
17063       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17064       # echo "creating $dirpart/$file"
17065       echo '# dummy' > "$dirpart/$file"
17066     done
17067   done
17068 }
17069  ;;
17070     "libtool":C)
17071
17072     # See if we are running on zsh, and set the options which allow our
17073     # commands through without removal of \ escapes.
17074     if test -n "${ZSH_VERSION+set}" ; then
17075       setopt NO_GLOB_SUBST
17076     fi
17077
17078     cfgfile="${ofile}T"
17079     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17080     $RM "$cfgfile"
17081
17082     cat <<_LT_EOF >> "$cfgfile"
17083 #! $SHELL
17084
17085 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17086 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17087 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17088 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17089 #
17090 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17091 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17092 #                 Inc.
17093 #   Written by Gordon Matzigkeit, 1996
17094 #
17095 #   This file is part of GNU Libtool.
17096 #
17097 # GNU Libtool is free software; you can redistribute it and/or
17098 # modify it under the terms of the GNU General Public License as
17099 # published by the Free Software Foundation; either version 2 of
17100 # the License, or (at your option) any later version.
17101 #
17102 # As a special exception to the GNU General Public License,
17103 # if you distribute this file as part of a program or library that
17104 # is built using GNU Libtool, you may include this file under the
17105 # same distribution terms that you use for the rest of that program.
17106 #
17107 # GNU Libtool is distributed in the hope that it will be useful,
17108 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17109 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17110 # GNU General Public License for more details.
17111 #
17112 # You should have received a copy of the GNU General Public License
17113 # along with GNU Libtool; see the file COPYING.  If not, a copy
17114 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17115 # obtained by writing to the Free Software Foundation, Inc.,
17116 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17117
17118
17119 # The names of the tagged configurations supported by this script.
17120 available_tags="CXX "
17121
17122 # ### BEGIN LIBTOOL CONFIG
17123
17124 # Which release of libtool.m4 was used?
17125 macro_version=$macro_version
17126 macro_revision=$macro_revision
17127
17128 # Whether or not to build shared libraries.
17129 build_libtool_libs=$enable_shared
17130
17131 # Whether or not to build static libraries.
17132 build_old_libs=$enable_static
17133
17134 # What type of objects to build.
17135 pic_mode=$pic_mode
17136
17137 # Whether or not to optimize for fast installation.
17138 fast_install=$enable_fast_install
17139
17140 # Shell to use when invoking shell scripts.
17141 SHELL=$lt_SHELL
17142
17143 # An echo program that protects backslashes.
17144 ECHO=$lt_ECHO
17145
17146 # The host system.
17147 host_alias=$host_alias
17148 host=$host
17149 host_os=$host_os
17150
17151 # The build system.
17152 build_alias=$build_alias
17153 build=$build
17154 build_os=$build_os
17155
17156 # A sed program that does not truncate output.
17157 SED=$lt_SED
17158
17159 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17160 Xsed="\$SED -e 1s/^X//"
17161
17162 # A grep program that handles long lines.
17163 GREP=$lt_GREP
17164
17165 # An ERE matcher.
17166 EGREP=$lt_EGREP
17167
17168 # A literal string matcher.
17169 FGREP=$lt_FGREP
17170
17171 # A BSD- or MS-compatible name lister.
17172 NM=$lt_NM
17173
17174 # Whether we need soft or hard links.
17175 LN_S=$lt_LN_S
17176
17177 # What is the maximum length of a command?
17178 max_cmd_len=$max_cmd_len
17179
17180 # Object file suffix (normally "o").
17181 objext=$ac_objext
17182
17183 # Executable file suffix (normally "").
17184 exeext=$exeext
17185
17186 # whether the shell understands "unset".
17187 lt_unset=$lt_unset
17188
17189 # turn spaces into newlines.
17190 SP2NL=$lt_lt_SP2NL
17191
17192 # turn newlines into spaces.
17193 NL2SP=$lt_lt_NL2SP
17194
17195 # convert \$build file names to \$host format.
17196 to_host_file_cmd=$lt_cv_to_host_file_cmd
17197
17198 # convert \$build files to toolchain format.
17199 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17200
17201 # An object symbol dumper.
17202 OBJDUMP=$lt_OBJDUMP
17203
17204 # Method to check whether dependent libraries are shared objects.
17205 deplibs_check_method=$lt_deplibs_check_method
17206
17207 # Command to use when deplibs_check_method = "file_magic".
17208 file_magic_cmd=$lt_file_magic_cmd
17209
17210 # How to find potential files when deplibs_check_method = "file_magic".
17211 file_magic_glob=$lt_file_magic_glob
17212
17213 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17214 want_nocaseglob=$lt_want_nocaseglob
17215
17216 # DLL creation program.
17217 DLLTOOL=$lt_DLLTOOL
17218
17219 # Command to associate shared and link libraries.
17220 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17221
17222 # The archiver.
17223 AR=$lt_AR
17224
17225 # Flags to create an archive.
17226 AR_FLAGS=$lt_AR_FLAGS
17227
17228 # How to feed a file listing to the archiver.
17229 archiver_list_spec=$lt_archiver_list_spec
17230
17231 # A symbol stripping program.
17232 STRIP=$lt_STRIP
17233
17234 # Commands used to install an old-style archive.
17235 RANLIB=$lt_RANLIB
17236 old_postinstall_cmds=$lt_old_postinstall_cmds
17237 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17238
17239 # Whether to use a lock for old archive extraction.
17240 lock_old_archive_extraction=$lock_old_archive_extraction
17241
17242 # A C compiler.
17243 LTCC=$lt_CC
17244
17245 # LTCC compiler flags.
17246 LTCFLAGS=$lt_CFLAGS
17247
17248 # Take the output of nm and produce a listing of raw symbols and C names.
17249 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17250
17251 # Transform the output of nm in a proper C declaration.
17252 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17253
17254 # Transform the output of nm in a C name address pair.
17255 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17256
17257 # Transform the output of nm in a C name address pair when lib prefix is needed.
17258 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17259
17260 # Specify filename containing input files for \$NM.
17261 nm_file_list_spec=$lt_nm_file_list_spec
17262
17263 # The root where to search for dependent libraries,and in which our libraries should be installed.
17264 lt_sysroot=$lt_sysroot
17265
17266 # The name of the directory that contains temporary libtool files.
17267 objdir=$objdir
17268
17269 # Used to examine libraries when file_magic_cmd begins with "file".
17270 MAGIC_CMD=$MAGIC_CMD
17271
17272 # Must we lock files when doing compilation?
17273 need_locks=$lt_need_locks
17274
17275 # Manifest tool.
17276 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17277
17278 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17279 DSYMUTIL=$lt_DSYMUTIL
17280
17281 # Tool to change global to local symbols on Mac OS X.
17282 NMEDIT=$lt_NMEDIT
17283
17284 # Tool to manipulate fat objects and archives on Mac OS X.
17285 LIPO=$lt_LIPO
17286
17287 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17288 OTOOL=$lt_OTOOL
17289
17290 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17291 OTOOL64=$lt_OTOOL64
17292
17293 # Old archive suffix (normally "a").
17294 libext=$libext
17295
17296 # Shared library suffix (normally ".so").
17297 shrext_cmds=$lt_shrext_cmds
17298
17299 # The commands to extract the exported symbol list from a shared archive.
17300 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17301
17302 # Variables whose values should be saved in libtool wrapper scripts and
17303 # restored at link time.
17304 variables_saved_for_relink=$lt_variables_saved_for_relink
17305
17306 # Do we need the "lib" prefix for modules?
17307 need_lib_prefix=$need_lib_prefix
17308
17309 # Do we need a version for libraries?
17310 need_version=$need_version
17311
17312 # Library versioning type.
17313 version_type=$version_type
17314
17315 # Shared library runtime path variable.
17316 runpath_var=$runpath_var
17317
17318 # Shared library path variable.
17319 shlibpath_var=$shlibpath_var
17320
17321 # Is shlibpath searched before the hard-coded library search path?
17322 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17323
17324 # Format of library name prefix.
17325 libname_spec=$lt_libname_spec
17326
17327 # List of archive names.  First name is the real one, the rest are links.
17328 # The last name is the one that the linker finds with -lNAME
17329 library_names_spec=$lt_library_names_spec
17330
17331 # The coded name of the library, if different from the real name.
17332 soname_spec=$lt_soname_spec
17333
17334 # Permission mode override for installation of shared libraries.
17335 install_override_mode=$lt_install_override_mode
17336
17337 # Command to use after installation of a shared archive.
17338 postinstall_cmds=$lt_postinstall_cmds
17339
17340 # Command to use after uninstallation of a shared archive.
17341 postuninstall_cmds=$lt_postuninstall_cmds
17342
17343 # Commands used to finish a libtool library installation in a directory.
17344 finish_cmds=$lt_finish_cmds
17345
17346 # As "finish_cmds", except a single script fragment to be evaled but
17347 # not shown.
17348 finish_eval=$lt_finish_eval
17349
17350 # Whether we should hardcode library paths into libraries.
17351 hardcode_into_libs=$hardcode_into_libs
17352
17353 # Compile-time system search path for libraries.
17354 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17355
17356 # Run-time system search path for libraries.
17357 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17358
17359 # Whether dlopen is supported.
17360 dlopen_support=$enable_dlopen
17361
17362 # Whether dlopen of programs is supported.
17363 dlopen_self=$enable_dlopen_self
17364
17365 # Whether dlopen of statically linked programs is supported.
17366 dlopen_self_static=$enable_dlopen_self_static
17367
17368 # Commands to strip libraries.
17369 old_striplib=$lt_old_striplib
17370 striplib=$lt_striplib
17371
17372
17373 # The linker used to build libraries.
17374 LD=$lt_LD
17375
17376 # How to create reloadable object files.
17377 reload_flag=$lt_reload_flag
17378 reload_cmds=$lt_reload_cmds
17379
17380 # Commands used to build an old-style archive.
17381 old_archive_cmds=$lt_old_archive_cmds
17382
17383 # A language specific compiler.
17384 CC=$lt_compiler
17385
17386 # Is the compiler the GNU compiler?
17387 with_gcc=$GCC
17388
17389 # Compiler flag to turn off builtin functions.
17390 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17391
17392 # Additional compiler flags for building library objects.
17393 pic_flag=$lt_lt_prog_compiler_pic
17394
17395 # How to pass a linker flag through the compiler.
17396 wl=$lt_lt_prog_compiler_wl
17397
17398 # Compiler flag to prevent dynamic linking.
17399 link_static_flag=$lt_lt_prog_compiler_static
17400
17401 # Does compiler simultaneously support -c and -o options?
17402 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17403
17404 # Whether or not to add -lc for building shared libraries.
17405 build_libtool_need_lc=$archive_cmds_need_lc
17406
17407 # Whether or not to disallow shared libs when runtime libs are static.
17408 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17409
17410 # Compiler flag to allow reflexive dlopens.
17411 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17412
17413 # Compiler flag to generate shared objects directly from archives.
17414 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17415
17416 # Whether the compiler copes with passing no objects directly.
17417 compiler_needs_object=$lt_compiler_needs_object
17418
17419 # Create an old-style archive from a shared archive.
17420 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17421
17422 # Create a temporary old-style archive to link instead of a shared archive.
17423 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17424
17425 # Commands used to build a shared archive.
17426 archive_cmds=$lt_archive_cmds
17427 archive_expsym_cmds=$lt_archive_expsym_cmds
17428
17429 # Commands used to build a loadable module if different from building
17430 # a shared archive.
17431 module_cmds=$lt_module_cmds
17432 module_expsym_cmds=$lt_module_expsym_cmds
17433
17434 # Whether we are building with GNU ld or not.
17435 with_gnu_ld=$lt_with_gnu_ld
17436
17437 # Flag that allows shared libraries with undefined symbols to be built.
17438 allow_undefined_flag=$lt_allow_undefined_flag
17439
17440 # Flag that enforces no undefined symbols.
17441 no_undefined_flag=$lt_no_undefined_flag
17442
17443 # Flag to hardcode \$libdir into a binary during linking.
17444 # This must work even if \$libdir does not exist
17445 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17446
17447 # If ld is used when linking, flag to hardcode \$libdir into a binary
17448 # during linking.  This must work even if \$libdir does not exist.
17449 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17450
17451 # Whether we need a single "-rpath" flag with a separated argument.
17452 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17453
17454 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17455 # DIR into the resulting binary.
17456 hardcode_direct=$hardcode_direct
17457
17458 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17459 # DIR into the resulting binary and the resulting library dependency is
17460 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17461 # library is relocated.
17462 hardcode_direct_absolute=$hardcode_direct_absolute
17463
17464 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17465 # into the resulting binary.
17466 hardcode_minus_L=$hardcode_minus_L
17467
17468 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17469 # into the resulting binary.
17470 hardcode_shlibpath_var=$hardcode_shlibpath_var
17471
17472 # Set to "yes" if building a shared library automatically hardcodes DIR
17473 # into the library and all subsequent libraries and executables linked
17474 # against it.
17475 hardcode_automatic=$hardcode_automatic
17476
17477 # Set to yes if linker adds runtime paths of dependent libraries
17478 # to runtime path list.
17479 inherit_rpath=$inherit_rpath
17480
17481 # Whether libtool must link a program against all its dependency libraries.
17482 link_all_deplibs=$link_all_deplibs
17483
17484 # Set to "yes" if exported symbols are required.
17485 always_export_symbols=$always_export_symbols
17486
17487 # The commands to list exported symbols.
17488 export_symbols_cmds=$lt_export_symbols_cmds
17489
17490 # Symbols that should not be listed in the preloaded symbols.
17491 exclude_expsyms=$lt_exclude_expsyms
17492
17493 # Symbols that must always be exported.
17494 include_expsyms=$lt_include_expsyms
17495
17496 # Commands necessary for linking programs (against libraries) with templates.
17497 prelink_cmds=$lt_prelink_cmds
17498
17499 # Commands necessary for finishing linking programs.
17500 postlink_cmds=$lt_postlink_cmds
17501
17502 # Specify filename containing input files.
17503 file_list_spec=$lt_file_list_spec
17504
17505 # How to hardcode a shared library path into an executable.
17506 hardcode_action=$hardcode_action
17507
17508 # The directories searched by this compiler when creating a shared library.
17509 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17510
17511 # Dependencies to place before and after the objects being linked to
17512 # create a shared library.
17513 predep_objects=$lt_predep_objects
17514 postdep_objects=$lt_postdep_objects
17515 predeps=$lt_predeps
17516 postdeps=$lt_postdeps
17517
17518 # The library search path used internally by the compiler when linking
17519 # a shared library.
17520 compiler_lib_search_path=$lt_compiler_lib_search_path
17521
17522 # ### END LIBTOOL CONFIG
17523
17524 _LT_EOF
17525
17526   case $host_os in
17527   aix3*)
17528     cat <<\_LT_EOF >> "$cfgfile"
17529 # AIX sometimes has problems with the GCC collect2 program.  For some
17530 # reason, if we set the COLLECT_NAMES environment variable, the problems
17531 # vanish in a puff of smoke.
17532 if test "X${COLLECT_NAMES+set}" != Xset; then
17533   COLLECT_NAMES=
17534   export COLLECT_NAMES
17535 fi
17536 _LT_EOF
17537     ;;
17538   esac
17539
17540
17541 ltmain="$ac_aux_dir/ltmain.sh"
17542
17543
17544   # We use sed instead of cat because bash on DJGPP gets confused if
17545   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17546   # text mode, it properly converts lines to CR/LF.  This bash problem
17547   # is reportedly fixed, but why not run on old versions too?
17548   sed '$q' "$ltmain" >> "$cfgfile" \
17549      || (rm -f "$cfgfile"; exit 1)
17550
17551   if test x"$xsi_shell" = xyes; then
17552   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17553 func_dirname ()\
17554 {\
17555 \    case ${1} in\
17556 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17557 \      *  ) func_dirname_result="${3}" ;;\
17558 \    esac\
17559 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17560   && mv -f "$cfgfile.tmp" "$cfgfile" \
17561     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17562 test 0 -eq $? || _lt_function_replace_fail=:
17563
17564
17565   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17566 func_basename ()\
17567 {\
17568 \    func_basename_result="${1##*/}"\
17569 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17570   && mv -f "$cfgfile.tmp" "$cfgfile" \
17571     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17572 test 0 -eq $? || _lt_function_replace_fail=:
17573
17574
17575   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17576 func_dirname_and_basename ()\
17577 {\
17578 \    case ${1} in\
17579 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17580 \      *  ) func_dirname_result="${3}" ;;\
17581 \    esac\
17582 \    func_basename_result="${1##*/}"\
17583 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17584   && mv -f "$cfgfile.tmp" "$cfgfile" \
17585     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17586 test 0 -eq $? || _lt_function_replace_fail=:
17587
17588
17589   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17590 func_stripname ()\
17591 {\
17592 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17593 \    # positional parameters, so assign one to ordinary parameter first.\
17594 \    func_stripname_result=${3}\
17595 \    func_stripname_result=${func_stripname_result#"${1}"}\
17596 \    func_stripname_result=${func_stripname_result%"${2}"}\
17597 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17598   && mv -f "$cfgfile.tmp" "$cfgfile" \
17599     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17600 test 0 -eq $? || _lt_function_replace_fail=:
17601
17602
17603   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17604 func_split_long_opt ()\
17605 {\
17606 \    func_split_long_opt_name=${1%%=*}\
17607 \    func_split_long_opt_arg=${1#*=}\
17608 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17609   && mv -f "$cfgfile.tmp" "$cfgfile" \
17610     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17611 test 0 -eq $? || _lt_function_replace_fail=:
17612
17613
17614   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17615 func_split_short_opt ()\
17616 {\
17617 \    func_split_short_opt_arg=${1#??}\
17618 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17619 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17620   && mv -f "$cfgfile.tmp" "$cfgfile" \
17621     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17622 test 0 -eq $? || _lt_function_replace_fail=:
17623
17624
17625   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17626 func_lo2o ()\
17627 {\
17628 \    case ${1} in\
17629 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17630 \      *)    func_lo2o_result=${1} ;;\
17631 \    esac\
17632 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17633   && mv -f "$cfgfile.tmp" "$cfgfile" \
17634     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17635 test 0 -eq $? || _lt_function_replace_fail=:
17636
17637
17638   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17639 func_xform ()\
17640 {\
17641     func_xform_result=${1%.*}.lo\
17642 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17643   && mv -f "$cfgfile.tmp" "$cfgfile" \
17644     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17645 test 0 -eq $? || _lt_function_replace_fail=:
17646
17647
17648   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17649 func_arith ()\
17650 {\
17651     func_arith_result=$(( $* ))\
17652 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17653   && mv -f "$cfgfile.tmp" "$cfgfile" \
17654     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17655 test 0 -eq $? || _lt_function_replace_fail=:
17656
17657
17658   sed -e '/^func_len ()$/,/^} # func_len /c\
17659 func_len ()\
17660 {\
17661     func_len_result=${#1}\
17662 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17663   && mv -f "$cfgfile.tmp" "$cfgfile" \
17664     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17665 test 0 -eq $? || _lt_function_replace_fail=:
17666
17667 fi
17668
17669 if test x"$lt_shell_append" = xyes; then
17670   sed -e '/^func_append ()$/,/^} # func_append /c\
17671 func_append ()\
17672 {\
17673     eval "${1}+=\\${2}"\
17674 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17675   && mv -f "$cfgfile.tmp" "$cfgfile" \
17676     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17677 test 0 -eq $? || _lt_function_replace_fail=:
17678
17679
17680   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17681 func_append_quoted ()\
17682 {\
17683 \    func_quote_for_eval "${2}"\
17684 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17685 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17686   && mv -f "$cfgfile.tmp" "$cfgfile" \
17687     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17688 test 0 -eq $? || _lt_function_replace_fail=:
17689
17690
17691   # Save a `func_append' function call where possible by direct use of '+='
17692   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17693     && mv -f "$cfgfile.tmp" "$cfgfile" \
17694       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17695   test 0 -eq $? || _lt_function_replace_fail=:
17696 else
17697   # Save a `func_append' function call even when '+=' is not available
17698   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17699     && mv -f "$cfgfile.tmp" "$cfgfile" \
17700       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17701   test 0 -eq $? || _lt_function_replace_fail=:
17702 fi
17703
17704 if test x"$_lt_function_replace_fail" = x":"; then
17705   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17706 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17707 fi
17708
17709
17710    mv -f "$cfgfile" "$ofile" ||
17711     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17712   chmod +x "$ofile"
17713
17714
17715     cat <<_LT_EOF >> "$ofile"
17716
17717 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17718
17719 # The linker used to build libraries.
17720 LD=$lt_LD_CXX
17721
17722 # How to create reloadable object files.
17723 reload_flag=$lt_reload_flag_CXX
17724 reload_cmds=$lt_reload_cmds_CXX
17725
17726 # Commands used to build an old-style archive.
17727 old_archive_cmds=$lt_old_archive_cmds_CXX
17728
17729 # A language specific compiler.
17730 CC=$lt_compiler_CXX
17731
17732 # Is the compiler the GNU compiler?
17733 with_gcc=$GCC_CXX
17734
17735 # Compiler flag to turn off builtin functions.
17736 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17737
17738 # Additional compiler flags for building library objects.
17739 pic_flag=$lt_lt_prog_compiler_pic_CXX
17740
17741 # How to pass a linker flag through the compiler.
17742 wl=$lt_lt_prog_compiler_wl_CXX
17743
17744 # Compiler flag to prevent dynamic linking.
17745 link_static_flag=$lt_lt_prog_compiler_static_CXX
17746
17747 # Does compiler simultaneously support -c and -o options?
17748 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17749
17750 # Whether or not to add -lc for building shared libraries.
17751 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17752
17753 # Whether or not to disallow shared libs when runtime libs are static.
17754 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17755
17756 # Compiler flag to allow reflexive dlopens.
17757 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17758
17759 # Compiler flag to generate shared objects directly from archives.
17760 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17761
17762 # Whether the compiler copes with passing no objects directly.
17763 compiler_needs_object=$lt_compiler_needs_object_CXX
17764
17765 # Create an old-style archive from a shared archive.
17766 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17767
17768 # Create a temporary old-style archive to link instead of a shared archive.
17769 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17770
17771 # Commands used to build a shared archive.
17772 archive_cmds=$lt_archive_cmds_CXX
17773 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17774
17775 # Commands used to build a loadable module if different from building
17776 # a shared archive.
17777 module_cmds=$lt_module_cmds_CXX
17778 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17779
17780 # Whether we are building with GNU ld or not.
17781 with_gnu_ld=$lt_with_gnu_ld_CXX
17782
17783 # Flag that allows shared libraries with undefined symbols to be built.
17784 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17785
17786 # Flag that enforces no undefined symbols.
17787 no_undefined_flag=$lt_no_undefined_flag_CXX
17788
17789 # Flag to hardcode \$libdir into a binary during linking.
17790 # This must work even if \$libdir does not exist
17791 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17792
17793 # If ld is used when linking, flag to hardcode \$libdir into a binary
17794 # during linking.  This must work even if \$libdir does not exist.
17795 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17796
17797 # Whether we need a single "-rpath" flag with a separated argument.
17798 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17799
17800 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17801 # DIR into the resulting binary.
17802 hardcode_direct=$hardcode_direct_CXX
17803
17804 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17805 # DIR into the resulting binary and the resulting library dependency is
17806 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17807 # library is relocated.
17808 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17809
17810 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17811 # into the resulting binary.
17812 hardcode_minus_L=$hardcode_minus_L_CXX
17813
17814 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17815 # into the resulting binary.
17816 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17817
17818 # Set to "yes" if building a shared library automatically hardcodes DIR
17819 # into the library and all subsequent libraries and executables linked
17820 # against it.
17821 hardcode_automatic=$hardcode_automatic_CXX
17822
17823 # Set to yes if linker adds runtime paths of dependent libraries
17824 # to runtime path list.
17825 inherit_rpath=$inherit_rpath_CXX
17826
17827 # Whether libtool must link a program against all its dependency libraries.
17828 link_all_deplibs=$link_all_deplibs_CXX
17829
17830 # Set to "yes" if exported symbols are required.
17831 always_export_symbols=$always_export_symbols_CXX
17832
17833 # The commands to list exported symbols.
17834 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17835
17836 # Symbols that should not be listed in the preloaded symbols.
17837 exclude_expsyms=$lt_exclude_expsyms_CXX
17838
17839 # Symbols that must always be exported.
17840 include_expsyms=$lt_include_expsyms_CXX
17841
17842 # Commands necessary for linking programs (against libraries) with templates.
17843 prelink_cmds=$lt_prelink_cmds_CXX
17844
17845 # Commands necessary for finishing linking programs.
17846 postlink_cmds=$lt_postlink_cmds_CXX
17847
17848 # Specify filename containing input files.
17849 file_list_spec=$lt_file_list_spec_CXX
17850
17851 # How to hardcode a shared library path into an executable.
17852 hardcode_action=$hardcode_action_CXX
17853
17854 # The directories searched by this compiler when creating a shared library.
17855 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17856
17857 # Dependencies to place before and after the objects being linked to
17858 # create a shared library.
17859 predep_objects=$lt_predep_objects_CXX
17860 postdep_objects=$lt_postdep_objects_CXX
17861 predeps=$lt_predeps_CXX
17862 postdeps=$lt_postdeps_CXX
17863
17864 # The library search path used internally by the compiler when linking
17865 # a shared library.
17866 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17867
17868 # ### END LIBTOOL TAG CONFIG: CXX
17869 _LT_EOF
17870
17871  ;;
17872
17873   esac
17874 done # for ac_tag
17875
17876
17877 as_fn_exit 0
17878 _ACEOF
17879 ac_clean_files=$ac_clean_files_save
17880
17881 test $ac_write_fail = 0 ||
17882   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17883
17884
17885 # configure is writing to config.log, and then calls config.status.
17886 # config.status does its own redirection, appending to config.log.
17887 # Unfortunately, on DOS this fails, as config.log is still kept open
17888 # by configure, so config.status won't be able to write to it; its
17889 # output is simply discarded.  So we exec the FD to /dev/null,
17890 # effectively closing config.log, so it can be properly (re)opened and
17891 # appended to by config.status.  When coming back to configure, we
17892 # need to make the FD available again.
17893 if test "$no_create" != yes; then
17894   ac_cs_success=:
17895   ac_config_status_args=
17896   test "$silent" = yes &&
17897     ac_config_status_args="$ac_config_status_args --quiet"
17898   exec 5>/dev/null
17899   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17900   exec 5>>config.log
17901   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17902   # would make configure fail if this is the last instruction.
17903   $ac_cs_success || as_fn_exit 1
17904 fi
17905 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17906   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17907 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17908 fi
17909