implemented Setup.hs to build boehm cpp libs and install them;
[hs-boehmgc.git] / gc-7.2 / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.69 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.68 for gc 7.2.
5 #
6 # Report bugs to <gc@linux.hpl.hp.com>.
7 #
8 #
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # Foundation, Inc.
12 #
13 #
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
19
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23   emulate sh
24   NULLCMD=:
25   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26   # is contrary to our usage.  Disable this feature.
27   alias -g '${1+"$@"}'='"$@"'
28   setopt NO_GLOB_SUBST
29 else
30   case `(set -o) 2>/dev/null` in #(
31   *posix*) :
32     set -o posix ;; #(
33   *) :
34      ;;
35 esac
36 fi
37
38
39 as_nl='
40 '
41 export as_nl
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='print -r --'
51   as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53   as_echo='printf %s\n'
54   as_echo_n='printf %s'
55 else
56   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58     as_echo_n='/usr/ucb/echo -n'
59   else
60     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61     as_echo_n_body='eval
62       arg=$1;
63       case $arg in #(
64       *"$as_nl"*)
65         expr "X$arg" : "X\\(.*\\)$as_nl";
66         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67       esac;
68       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69     '
70     export as_echo_n_body
71     as_echo_n='sh -c $as_echo_n_body as_echo'
72   fi
73   export as_echo_body
74   as_echo='sh -c $as_echo_body as_echo'
75 fi
76
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
79   PATH_SEPARATOR=:
80   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82       PATH_SEPARATOR=';'
83   }
84 fi
85
86
87 # IFS
88 # We need space, tab and new line, in precisely that order.  Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
92 IFS=" ""        $as_nl"
93
94 # Find who we are.  Look in the path if we contain no directory separator.
95 as_myself=
96 case $0 in #((
97   *[\\/]* ) as_myself=$0 ;;
98   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 for as_dir in $PATH
100 do
101   IFS=$as_save_IFS
102   test -z "$as_dir" && as_dir=.
103     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104   done
105 IFS=$as_save_IFS
106
107      ;;
108 esac
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
112   as_myself=$0
113 fi
114 if test ! -f "$as_myself"; then
115   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116   exit 1
117 fi
118
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there.  '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
126 done
127 PS1='$ '
128 PS2='> '
129 PS4='+ '
130
131 # NLS nuisances.
132 LC_ALL=C
133 export LC_ALL
134 LANGUAGE=C
135 export LANGUAGE
136
137 # CDPATH.
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
140 if test "x$CONFIG_SHELL" = x; then
141   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142   emulate sh
143   NULLCMD=:
144   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145   # is contrary to our usage.  Disable this feature.
146   alias -g '\${1+\"\$@\"}'='\"\$@\"'
147   setopt NO_GLOB_SUBST
148 else
149   case \`(set -o) 2>/dev/null\` in #(
150   *posix*) :
151     set -o posix ;; #(
152   *) :
153      ;;
154 esac
155 fi
156 "
157   as_required="as_fn_return () { (exit \$1); }
158 as_fn_success () { as_fn_return 0; }
159 as_fn_failure () { as_fn_return 1; }
160 as_fn_ret_success () { return 0; }
161 as_fn_ret_failure () { return 1; }
162
163 exitcode=0
164 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
170 else
171   exitcode=1; echo positional parameters were not saved.
172 fi
173 test x\$exitcode = x0 || exit 1"
174   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178
179   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183     PATH=/empty FPATH=/empty; export PATH FPATH
184     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187   if (eval "$as_required") 2>/dev/null; then :
188   as_have_required=yes
189 else
190   as_have_required=no
191 fi
192   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
193
194 else
195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 as_found=false
197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198 do
199   IFS=$as_save_IFS
200   test -z "$as_dir" && as_dir=.
201   as_found=:
202   case $as_dir in #(
203          /*)
204            for as_base in sh bash ksh sh5; do
205              # Try only shells that exist, to save several forks.
206              as_shell=$as_dir/$as_base
207              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
208                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
209   CONFIG_SHELL=$as_shell as_have_required=yes
210                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
211   break 2
212 fi
213 fi
214            done;;
215        esac
216   as_found=false
217 done
218 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
219               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
220   CONFIG_SHELL=$SHELL as_have_required=yes
221 fi; }
222 IFS=$as_save_IFS
223
224
225       if test "x$CONFIG_SHELL" != x; then :
226   # We cannot yet assume a decent shell, so we have to provide a
227         # neutralization value for shells without unset; and this also
228         # works around shells that cannot unset nonexistent variables.
229         # Preserve -v and -x to the replacement shell.
230         BASH_ENV=/dev/null
231         ENV=/dev/null
232         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
233         export CONFIG_SHELL
234         case $- in # ((((
235           *v*x* | *x*v* ) as_opts=-vx ;;
236           *v* ) as_opts=-v ;;
237           *x* ) as_opts=-x ;;
238           * ) as_opts= ;;
239         esac
240         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
241 fi
242
243     if test x$as_have_required = xno; then :
244   $as_echo "$0: This script requires a shell more modern than all"
245   $as_echo "$0: the shells that I found on your system."
246   if test x${ZSH_VERSION+set} = xset ; then
247     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
248     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249   else
250     $as_echo "$0: Please tell bug-autoconf@gnu.org and
251 $0: gc@linux.hpl.hp.com about your system, including any
252 $0: error possibly output before this message. Then install
253 $0: a modern shell, or manually run the script under such a
254 $0: shell if you do have one."
255   fi
256   exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274   { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283   return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291   set +e
292   as_fn_set_status $1
293   exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302   case $as_dir in #(
303   -*) as_dir=./$as_dir;;
304   esac
305   test -d "$as_dir" || eval $as_mkdir_p || {
306     as_dirs=
307     while :; do
308       case $as_dir in #(
309       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310       *) as_qdir=$as_dir;;
311       esac
312       as_dirs="'$as_qdir' $as_dirs"
313       as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315          X"$as_dir" : 'X\(//\)[^/]' \| \
316          X"$as_dir" : 'X\(//\)$' \| \
317          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)[^/].*/{
324             s//\1/
325             q
326           }
327           /^X\(\/\/\)$/{
328             s//\1/
329             q
330           }
331           /^X\(\/\).*/{
332             s//\1/
333             q
334           }
335           s/.*/./; q'`
336       test -d "$as_dir" && break
337     done
338     test -z "$as_dirs" || eval "mkdir $as_dirs"
339   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350   eval 'as_fn_append ()
351   {
352     eval $1+=\$2
353   }'
354 else
355   as_fn_append ()
356   {
357     eval $1=\$$1\$2
358   }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367   eval 'as_fn_arith ()
368   {
369     as_val=$(( $* ))
370   }'
371 else
372   as_fn_arith ()
373   {
374     as_val=`expr "$@" || test $? -eq 1`
375   }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386   as_status=$1; test $as_status -eq 0 && as_status=1
387   if test "$4"; then
388     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390   fi
391   $as_echo "$as_me: error: $2" >&2
392   as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396    test "X`expr 00001 : '.*\(...\)'`" = X001; then
397   as_expr=expr
398 else
399   as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403   as_basename=basename
404 else
405   as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409   as_dirname=dirname
410 else
411   as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416          X"$0" : 'X\(//\)$' \| \
417          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419     sed '/^.*\/\([^/][^/]*\)\/*$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\/\)$/{
424             s//\1/
425             q
426           }
427           /^X\/\(\/\).*/{
428             s//\1/
429             q
430           }
431           s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441   as_lineno_1=$LINENO as_lineno_1a=$LINENO
442   as_lineno_2=$LINENO as_lineno_2a=$LINENO
443   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446   sed -n '
447     p
448     /[$]LINENO/=
449   ' <$as_myself |
450     sed '
451       s/[$]LINENO.*/&-/
452       t lineno
453       b
454       :lineno
455       N
456       :loop
457       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458       t loop
459       s/-\n.*//
460     ' >$as_me.lineno &&
461   chmod +x "$as_me.lineno" ||
462     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464   # Don't try to exec as it changes $[0], causing all sort of problems
465   # (the dirname of $[0] is not the place where we might find the
466   # original and so on.  Autoconf is especially sensitive to this).
467   . "./$as_me.lineno"
468   # Exit status is that of the last command.
469   exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475   case `echo 'xy\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   xy)  ECHO_C='\c';;
478   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479        ECHO_T=' ';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487   rm -f conf$$.dir/conf$$.file
488 else
489   rm -f conf$$.dir
490   mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493   if ln -s conf$$.file conf$$ 2>/dev/null; then
494     as_ln_s='ln -s'
495     # ... but there are two gotchas:
496     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498     # In both cases, we have to default to `cp -p'.
499     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500       as_ln_s='cp -p'
501   elif ln conf$$.file conf$$ 2>/dev/null; then
502     as_ln_s=ln
503   else
504     as_ln_s='cp -p'
505   fi
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p='mkdir -p "$as_dir"'
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520   as_test_x='test -x'
521 else
522   if ls -dL / >/dev/null 2>&1; then
523     as_ls_L_option=L
524   else
525     as_ls_L_option=
526   fi
527   as_test_x='
528     eval sh -c '\''
529       if test -d "$1"; then
530         test -d "$1/.";
531       else
532         case $1 in #(
533         -*)set "./$1";;
534         esac;
535         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536         ???[sx]*):;;*)false;;esac;fi
537     '\'' sh
538   '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551 test -n "$DJDIR" || exec 7<&0 </dev/null
552 exec 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570
571 # Identity of this package.
572 PACKAGE_NAME='gc'
573 PACKAGE_TARNAME='gc'
574 PACKAGE_VERSION='7.2'
575 PACKAGE_STRING='gc 7.2'
576 PACKAGE_BUGREPORT='gc@linux.hpl.hp.com'
577 PACKAGE_URL=''
578
579 ac_unique_file="gcj_mlc.c"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 enable_option_checking=no
617 ac_subst_vars='am__EXEEXT_FALSE
618 am__EXEEXT_TRUE
619 LTLIBOBJS
620 LIBOBJS
621 NEED_ATOMIC_OPS_ASM_FALSE
622 NEED_ATOMIC_OPS_ASM_TRUE
623 USE_INTERNAL_LIBATOMIC_OPS_FALSE
624 USE_INTERNAL_LIBATOMIC_OPS_TRUE
625 subdirs
626 ATOMIC_OPS_LIBS
627 ATOMIC_OPS_CFLAGS
628 PKG_CONFIG
629 USE_LIBDIR_FALSE
630 USE_LIBDIR_TRUE
631 UNWINDLIBS
632 KEEP_BACK_PTRS_FALSE
633 KEEP_BACK_PTRS_TRUE
634 ENABLE_GCJ_SUPPORT_FALSE
635 ENABLE_GCJ_SUPPORT_TRUE
636 CXXCPP
637 CPP
638 OTOOL64
639 OTOOL
640 LIPO
641 NMEDIT
642 DSYMUTIL
643 MANIFEST_TOOL
644 RANLIB
645 ac_ct_AR
646 AR
647 DLLTOOL
648 OBJDUMP
649 LN_S
650 NM
651 ac_ct_DUMPBIN
652 DUMPBIN
653 LD
654 FGREP
655 EGREP
656 GREP
657 SED
658 LIBTOOL
659 addlibs
660 addobjs
661 CXXINCLUDES
662 INCLUDES
663 CPLUSPLUS_FALSE
664 CPLUSPLUS_TRUE
665 target_all
666 EXTRA_TEST_LIBS
667 extra_ldflags_libgc
668 AVOID_CPP_LIB_FALSE
669 AVOID_CPP_LIB_TRUE
670 COMPILER_XLC_FALSE
671 COMPILER_XLC_TRUE
672 OPENBSD_THREADS_FALSE
673 OPENBSD_THREADS_TRUE
674 WIN32_THREADS_FALSE
675 WIN32_THREADS_TRUE
676 DARWIN_THREADS_FALSE
677 DARWIN_THREADS_TRUE
678 PTHREADS_FALSE
679 PTHREADS_TRUE
680 THREADS_FALSE
681 THREADS_TRUE
682 THREADDLLIBS
683 GC_CFLAGS
684 am__fastdepCCAS_FALSE
685 am__fastdepCCAS_TRUE
686 CCASDEPMODE
687 CCASFLAGS
688 CCAS
689 am__fastdepCXX_FALSE
690 am__fastdepCXX_TRUE
691 CXXDEPMODE
692 ac_ct_CXX
693 CXXFLAGS
694 CXX
695 am__fastdepCC_FALSE
696 am__fastdepCC_TRUE
697 CCDEPMODE
698 AMDEPBACKSLASH
699 AMDEP_FALSE
700 AMDEP_TRUE
701 am__quote
702 am__include
703 DEPDIR
704 OBJEXT
705 EXEEXT
706 ac_ct_CC
707 CPPFLAGS
708 LDFLAGS
709 CFLAGS
710 CC
711 GC_VERSION
712 MAINT
713 MAINTAINER_MODE_FALSE
714 MAINTAINER_MODE_TRUE
715 am__untar
716 am__tar
717 AMTAR
718 am__leading_dot
719 SET_MAKE
720 AWK
721 mkdir_p
722 MKDIR_P
723 INSTALL_STRIP_PROGRAM
724 STRIP
725 install_sh
726 MAKEINFO
727 AUTOHEADER
728 AUTOMAKE
729 AUTOCONF
730 ACLOCAL
731 VERSION
732 PACKAGE
733 CYGPATH_W
734 am__isrc
735 INSTALL_DATA
736 INSTALL_SCRIPT
737 INSTALL_PROGRAM
738 target_os
739 target_vendor
740 target_cpu
741 target
742 host_os
743 host_vendor
744 host_cpu
745 host
746 build_os
747 build_vendor
748 build_cpu
749 build
750 target_alias
751 host_alias
752 build_alias
753 LIBS
754 ECHO_T
755 ECHO_N
756 ECHO_C
757 DEFS
758 mandir
759 localedir
760 libdir
761 psdir
762 pdfdir
763 dvidir
764 htmldir
765 infodir
766 docdir
767 oldincludedir
768 includedir
769 localstatedir
770 sharedstatedir
771 sysconfdir
772 datadir
773 datarootdir
774 libexecdir
775 sbindir
776 bindir
777 program_transform_name
778 prefix
779 exec_prefix
780 PACKAGE_URL
781 PACKAGE_BUGREPORT
782 PACKAGE_STRING
783 PACKAGE_VERSION
784 PACKAGE_TARNAME
785 PACKAGE_NAME
786 PATH_SEPARATOR
787 SHELL'
788 ac_subst_files=''
789 ac_user_opts='
790 enable_option_checking
791 enable_maintainer_mode
792 enable_dependency_tracking
793 enable_threads
794 enable_parallel_mark
795 enable_cplusplus
796 with_ecos
797 enable_shared
798 enable_static
799 with_pic
800 enable_fast_install
801 with_gnu_ld
802 with_sysroot
803 enable_libtool_lock
804 with_target_subdir
805 with_cross_host
806 enable_gcj_support
807 enable_gc_debug
808 enable_java_finalization
809 enable_atomic_uncollectable
810 enable_redirect_malloc
811 enable_large_config
812 enable_handle_fork
813 enable_gc_assertions
814 enable_munmap
815 with_libatomic_ops
816 '
817       ac_precious_vars='build_alias
818 host_alias
819 target_alias
820 CC
821 CFLAGS
822 LDFLAGS
823 LIBS
824 CPPFLAGS
825 CXX
826 CXXFLAGS
827 CCC
828 CCAS
829 CCASFLAGS
830 CPP
831 CXXCPP
832 PKG_CONFIG
833 ATOMIC_OPS_CFLAGS
834 ATOMIC_OPS_LIBS'
835 ac_subdirs_all='libatomic_ops'
836
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 ac_unrecognized_opts=
841 ac_unrecognized_sep=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
844 cache_file=/dev/null
845 exec_prefix=NONE
846 no_create=
847 no_recursion=
848 prefix=NONE
849 program_prefix=NONE
850 program_suffix=NONE
851 program_transform_name=s,x,x,
852 silent=
853 site=
854 srcdir=
855 verbose=
856 x_includes=NONE
857 x_libraries=NONE
858
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
884
885 ac_prev=
886 ac_dashdash=
887 for ac_option
888 do
889   # If the previous option needs an argument, assign it.
890   if test -n "$ac_prev"; then
891     eval $ac_prev=\$ac_option
892     ac_prev=
893     continue
894   fi
895
896   case $ac_option in
897   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898   *=)   ac_optarg= ;;
899   *)    ac_optarg=yes ;;
900   esac
901
902   # Accept the important Cygnus configure options, so we can diagnose typos.
903
904   case $ac_dashdash$ac_option in
905   --)
906     ac_dashdash=yes ;;
907
908   -bindir | --bindir | --bindi | --bind | --bin | --bi)
909     ac_prev=bindir ;;
910   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911     bindir=$ac_optarg ;;
912
913   -build | --build | --buil | --bui | --bu)
914     ac_prev=build_alias ;;
915   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916     build_alias=$ac_optarg ;;
917
918   -cache-file | --cache-file | --cache-fil | --cache-fi \
919   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920     ac_prev=cache_file ;;
921   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923     cache_file=$ac_optarg ;;
924
925   --config-cache | -C)
926     cache_file=config.cache ;;
927
928   -datadir | --datadir | --datadi | --datad)
929     ac_prev=datadir ;;
930   -datadir=* | --datadir=* | --datadi=* | --datad=*)
931     datadir=$ac_optarg ;;
932
933   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934   | --dataroo | --dataro | --datar)
935     ac_prev=datarootdir ;;
936   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938     datarootdir=$ac_optarg ;;
939
940   -disable-* | --disable-*)
941     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942     # Reject names that are not valid shell variable names.
943     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944       as_fn_error $? "invalid feature name: $ac_useropt"
945     ac_useropt_orig=$ac_useropt
946     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947     case $ac_user_opts in
948       *"
949 "enable_$ac_useropt"
950 "*) ;;
951       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952          ac_unrecognized_sep=', ';;
953     esac
954     eval enable_$ac_useropt=no ;;
955
956   -docdir | --docdir | --docdi | --doc | --do)
957     ac_prev=docdir ;;
958   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959     docdir=$ac_optarg ;;
960
961   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962     ac_prev=dvidir ;;
963   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964     dvidir=$ac_optarg ;;
965
966   -enable-* | --enable-*)
967     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968     # Reject names that are not valid shell variable names.
969     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970       as_fn_error $? "invalid feature name: $ac_useropt"
971     ac_useropt_orig=$ac_useropt
972     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973     case $ac_user_opts in
974       *"
975 "enable_$ac_useropt"
976 "*) ;;
977       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978          ac_unrecognized_sep=', ';;
979     esac
980     eval enable_$ac_useropt=\$ac_optarg ;;
981
982   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984   | --exec | --exe | --ex)
985     ac_prev=exec_prefix ;;
986   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988   | --exec=* | --exe=* | --ex=*)
989     exec_prefix=$ac_optarg ;;
990
991   -gas | --gas | --ga | --g)
992     # Obsolete; use --with-gas.
993     with_gas=yes ;;
994
995   -help | --help | --hel | --he | -h)
996     ac_init_help=long ;;
997   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998     ac_init_help=recursive ;;
999   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000     ac_init_help=short ;;
1001
1002   -host | --host | --hos | --ho)
1003     ac_prev=host_alias ;;
1004   -host=* | --host=* | --hos=* | --ho=*)
1005     host_alias=$ac_optarg ;;
1006
1007   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008     ac_prev=htmldir ;;
1009   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010   | --ht=*)
1011     htmldir=$ac_optarg ;;
1012
1013   -includedir | --includedir | --includedi | --included | --include \
1014   | --includ | --inclu | --incl | --inc)
1015     ac_prev=includedir ;;
1016   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017   | --includ=* | --inclu=* | --incl=* | --inc=*)
1018     includedir=$ac_optarg ;;
1019
1020   -infodir | --infodir | --infodi | --infod | --info | --inf)
1021     ac_prev=infodir ;;
1022   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023     infodir=$ac_optarg ;;
1024
1025   -libdir | --libdir | --libdi | --libd)
1026     ac_prev=libdir ;;
1027   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028     libdir=$ac_optarg ;;
1029
1030   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031   | --libexe | --libex | --libe)
1032     ac_prev=libexecdir ;;
1033   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034   | --libexe=* | --libex=* | --libe=*)
1035     libexecdir=$ac_optarg ;;
1036
1037   -localedir | --localedir | --localedi | --localed | --locale)
1038     ac_prev=localedir ;;
1039   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040     localedir=$ac_optarg ;;
1041
1042   -localstatedir | --localstatedir | --localstatedi | --localstated \
1043   | --localstate | --localstat | --localsta | --localst | --locals)
1044     ac_prev=localstatedir ;;
1045   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047     localstatedir=$ac_optarg ;;
1048
1049   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050     ac_prev=mandir ;;
1051   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052     mandir=$ac_optarg ;;
1053
1054   -nfp | --nfp | --nf)
1055     # Obsolete; use --without-fp.
1056     with_fp=no ;;
1057
1058   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059   | --no-cr | --no-c | -n)
1060     no_create=yes ;;
1061
1062   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064     no_recursion=yes ;;
1065
1066   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068   | --oldin | --oldi | --old | --ol | --o)
1069     ac_prev=oldincludedir ;;
1070   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073     oldincludedir=$ac_optarg ;;
1074
1075   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076     ac_prev=prefix ;;
1077   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078     prefix=$ac_optarg ;;
1079
1080   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081   | --program-pre | --program-pr | --program-p)
1082     ac_prev=program_prefix ;;
1083   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085     program_prefix=$ac_optarg ;;
1086
1087   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088   | --program-suf | --program-su | --program-s)
1089     ac_prev=program_suffix ;;
1090   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092     program_suffix=$ac_optarg ;;
1093
1094   -program-transform-name | --program-transform-name \
1095   | --program-transform-nam | --program-transform-na \
1096   | --program-transform-n | --program-transform- \
1097   | --program-transform | --program-transfor \
1098   | --program-transfo | --program-transf \
1099   | --program-trans | --program-tran \
1100   | --progr-tra | --program-tr | --program-t)
1101     ac_prev=program_transform_name ;;
1102   -program-transform-name=* | --program-transform-name=* \
1103   | --program-transform-nam=* | --program-transform-na=* \
1104   | --program-transform-n=* | --program-transform-=* \
1105   | --program-transform=* | --program-transfor=* \
1106   | --program-transfo=* | --program-transf=* \
1107   | --program-trans=* | --program-tran=* \
1108   | --progr-tra=* | --program-tr=* | --program-t=*)
1109     program_transform_name=$ac_optarg ;;
1110
1111   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112     ac_prev=pdfdir ;;
1113   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114     pdfdir=$ac_optarg ;;
1115
1116   -psdir | --psdir | --psdi | --psd | --ps)
1117     ac_prev=psdir ;;
1118   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119     psdir=$ac_optarg ;;
1120
1121   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122   | -silent | --silent | --silen | --sile | --sil)
1123     silent=yes ;;
1124
1125   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126     ac_prev=sbindir ;;
1127   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128   | --sbi=* | --sb=*)
1129     sbindir=$ac_optarg ;;
1130
1131   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133   | --sharedst | --shareds | --shared | --share | --shar \
1134   | --sha | --sh)
1135     ac_prev=sharedstatedir ;;
1136   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139   | --sha=* | --sh=*)
1140     sharedstatedir=$ac_optarg ;;
1141
1142   -site | --site | --sit)
1143     ac_prev=site ;;
1144   -site=* | --site=* | --sit=*)
1145     site=$ac_optarg ;;
1146
1147   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148     ac_prev=srcdir ;;
1149   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150     srcdir=$ac_optarg ;;
1151
1152   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153   | --syscon | --sysco | --sysc | --sys | --sy)
1154     ac_prev=sysconfdir ;;
1155   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157     sysconfdir=$ac_optarg ;;
1158
1159   -target | --target | --targe | --targ | --tar | --ta | --t)
1160     ac_prev=target_alias ;;
1161   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162     target_alias=$ac_optarg ;;
1163
1164   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165     verbose=yes ;;
1166
1167   -version | --version | --versio | --versi | --vers | -V)
1168     ac_init_version=: ;;
1169
1170   -with-* | --with-*)
1171     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172     # Reject names that are not valid shell variable names.
1173     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174       as_fn_error $? "invalid package name: $ac_useropt"
1175     ac_useropt_orig=$ac_useropt
1176     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177     case $ac_user_opts in
1178       *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182          ac_unrecognized_sep=', ';;
1183     esac
1184     eval with_$ac_useropt=\$ac_optarg ;;
1185
1186   -without-* | --without-*)
1187     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188     # Reject names that are not valid shell variable names.
1189     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190       as_fn_error $? "invalid package name: $ac_useropt"
1191     ac_useropt_orig=$ac_useropt
1192     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193     case $ac_user_opts in
1194       *"
1195 "with_$ac_useropt"
1196 "*) ;;
1197       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198          ac_unrecognized_sep=', ';;
1199     esac
1200     eval with_$ac_useropt=no ;;
1201
1202   --x)
1203     # Obsolete; use --with-x.
1204     with_x=yes ;;
1205
1206   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207   | --x-incl | --x-inc | --x-in | --x-i)
1208     ac_prev=x_includes ;;
1209   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211     x_includes=$ac_optarg ;;
1212
1213   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215     ac_prev=x_libraries ;;
1216   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218     x_libraries=$ac_optarg ;;
1219
1220   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1221 Try \`$0 --help' for more information"
1222     ;;
1223
1224   *=*)
1225     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226     # Reject names that are not valid shell variable names.
1227     case $ac_envvar in #(
1228       '' | [0-9]* | *[!_$as_cr_alnum]* )
1229       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230     esac
1231     eval $ac_envvar=\$ac_optarg
1232     export $ac_envvar ;;
1233
1234   *)
1235     # FIXME: should be removed in autoconf 3.0.
1236     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1240     ;;
1241
1242   esac
1243 done
1244
1245 if test -n "$ac_prev"; then
1246   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247   as_fn_error $? "missing argument to $ac_option"
1248 fi
1249
1250 if test -n "$ac_unrecognized_opts"; then
1251   case $enable_option_checking in
1252     no) ;;
1253     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1254     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255   esac
1256 fi
1257
1258 # Check all directory arguments for consistency.
1259 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260                 datadir sysconfdir sharedstatedir localstatedir includedir \
1261                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262                 libdir localedir mandir
1263 do
1264   eval ac_val=\$$ac_var
1265   # Remove trailing slashes.
1266   case $ac_val in
1267     */ )
1268       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269       eval $ac_var=\$ac_val;;
1270   esac
1271   # Be sure to have absolute directory names.
1272   case $ac_val in
1273     [\\/$]* | ?:[\\/]* )  continue;;
1274     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275   esac
1276   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277 done
1278
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1282 build=$build_alias
1283 host=$host_alias
1284 target=$target_alias
1285
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288   if test "x$build_alias" = x; then
1289     cross_compiling=maybe
1290     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1291     If a cross compiler is detected then cross compile mode will be used" >&2
1292   elif test "x$build_alias" != "x$host_alias"; then
1293     cross_compiling=yes
1294   fi
1295 fi
1296
1297 ac_tool_prefix=
1298 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299
1300 test "$silent" = yes && exec 6>/dev/null
1301
1302
1303 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304 ac_ls_di=`ls -di .` &&
1305 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306   as_fn_error $? "working directory cannot be determined"
1307 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308   as_fn_error $? "pwd does not report name of working directory"
1309
1310
1311 # Find the source files, if location was not specified.
1312 if test -z "$srcdir"; then
1313   ac_srcdir_defaulted=yes
1314   # Try the directory containing this script, then the parent directory.
1315   ac_confdir=`$as_dirname -- "$as_myself" ||
1316 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317          X"$as_myself" : 'X\(//\)[^/]' \| \
1318          X"$as_myself" : 'X\(//\)$' \| \
1319          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320 $as_echo X"$as_myself" |
1321     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322             s//\1/
1323             q
1324           }
1325           /^X\(\/\/\)[^/].*/{
1326             s//\1/
1327             q
1328           }
1329           /^X\(\/\/\)$/{
1330             s//\1/
1331             q
1332           }
1333           /^X\(\/\).*/{
1334             s//\1/
1335             q
1336           }
1337           s/.*/./; q'`
1338   srcdir=$ac_confdir
1339   if test ! -r "$srcdir/$ac_unique_file"; then
1340     srcdir=..
1341   fi
1342 else
1343   ac_srcdir_defaulted=no
1344 fi
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1348 fi
1349 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350 ac_abs_confdir=`(
1351         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1352         pwd)`
1353 # When building in place, set srcdir=.
1354 if test "$ac_abs_confdir" = "$ac_pwd"; then
1355   srcdir=.
1356 fi
1357 # Remove unnecessary trailing slashes from srcdir.
1358 # Double slashes in file names in object file debugging info
1359 # mess up M-x gdb in Emacs.
1360 case $srcdir in
1361 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362 esac
1363 for ac_var in $ac_precious_vars; do
1364   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365   eval ac_env_${ac_var}_value=\$${ac_var}
1366   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368 done
1369
1370 #
1371 # Report the --help message.
1372 #
1373 if test "$ac_init_help" = "long"; then
1374   # Omit some internal or obsolete options to make the list less imposing.
1375   # This message is too long to be a string in the A/UX 3.1 sh.
1376   cat <<_ACEOF
1377 \`configure' configures gc 7.2 to adapt to many kinds of systems.
1378
1379 Usage: $0 [OPTION]... [VAR=VALUE]...
1380
1381 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382 VAR=VALUE.  See below for descriptions of some of the useful variables.
1383
1384 Defaults for the options are specified in brackets.
1385
1386 Configuration:
1387   -h, --help              display this help and exit
1388       --help=short        display options specific to this package
1389       --help=recursive    display the short help of all the included packages
1390   -V, --version           display version information and exit
1391   -q, --quiet, --silent   do not print \`checking ...' messages
1392       --cache-file=FILE   cache test results in FILE [disabled]
1393   -C, --config-cache      alias for \`--cache-file=config.cache'
1394   -n, --no-create         do not create output files
1395       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1396
1397 Installation directories:
1398   --prefix=PREFIX         install architecture-independent files in PREFIX
1399                           [$ac_default_prefix]
1400   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1401                           [PREFIX]
1402
1403 By default, \`make install' will install all the files in
1404 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1405 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1406 for instance \`--prefix=\$HOME'.
1407
1408 For better control, use the options below.
1409
1410 Fine tuning of the installation directories:
1411   --bindir=DIR            user executables [EPREFIX/bin]
1412   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1413   --libexecdir=DIR        program executables [EPREFIX/libexec]
1414   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1415   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1416   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1417   --libdir=DIR            object code libraries [EPREFIX/lib]
1418   --includedir=DIR        C header files [PREFIX/include]
1419   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1420   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1421   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1422   --infodir=DIR           info documentation [DATAROOTDIR/info]
1423   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1424   --mandir=DIR            man documentation [DATAROOTDIR/man]
1425   --docdir=DIR            documentation root [DATAROOTDIR/doc/gc]
1426   --htmldir=DIR           html documentation [DOCDIR]
1427   --dvidir=DIR            dvi documentation [DOCDIR]
1428   --pdfdir=DIR            pdf documentation [DOCDIR]
1429   --psdir=DIR             ps documentation [DOCDIR]
1430 _ACEOF
1431
1432   cat <<\_ACEOF
1433
1434 Program names:
1435   --program-prefix=PREFIX            prepend PREFIX to installed program names
1436   --program-suffix=SUFFIX            append SUFFIX to installed program names
1437   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1438
1439 System types:
1440   --build=BUILD     configure for building on BUILD [guessed]
1441   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1442   --target=TARGET   configure for building compilers for TARGET [HOST]
1443 _ACEOF
1444 fi
1445
1446 if test -n "$ac_init_help"; then
1447   case $ac_init_help in
1448      short | recursive ) echo "Configuration of gc 7.2:";;
1449    esac
1450   cat <<\_ACEOF
1451
1452 Optional Features:
1453   --disable-option-checking  ignore unrecognized --enable/--with options
1454   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1455   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1456   --enable-maintainer-mode  enable make rules and dependencies not useful
1457                           (and sometimes confusing) to the casual installer
1458   --disable-dependency-tracking  speeds up one-time build
1459   --enable-dependency-tracking   do not reject slow dependency extractors
1460   --enable-threads=TYPE   choose threading package
1461   --enable-parallel-mark  parallelize marking and free list construction
1462   --enable-cplusplus      install C++ support
1463   --enable-shared[=PKGS]  build shared libraries [default=yes]
1464   --enable-static[=PKGS]  build static libraries [default=yes]
1465   --enable-fast-install[=PKGS]
1466                           optimize for fast installation [default=yes]
1467   --disable-libtool-lock  avoid locking (might break parallel builds)
1468   --disable-gcj-support   Disable support for gcj.
1469   --enable-gc-debug       include full support for pointer backtracing etc.
1470   --disable-java-finalization
1471                           Disable support for java finalization.
1472   --disable-atomic-uncollectible
1473                           Disable support for atomic uncollectible allocation.
1474   --enable-redirect-malloc
1475                           Redirect malloc and friends to GC routines
1476   --enable-large-config   Optimize for large (> 100 MB) heap or root set
1477   --enable-handle-fork    Attempt to ensure a usable collector after fork() in
1478                           multi-threaded programs.
1479   --enable-gc-assertions  collector-internal assertion checking
1480   --enable-munmap=N       return page to the os if empty for N collections
1481
1482 Optional Packages:
1483   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1484   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1485   --with-ecos             enable runtime eCos target support
1486   --with-pic              try to use only PIC/non-PIC objects [default=use
1487                           both]
1488   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1489   --with-sysroot=DIR Search for dependent libraries within DIR
1490                         (or the compiler's sysroot if not specified).
1491   --with-target-subdir=SUBDIR
1492                           configuring with a cross compiler
1493   --with-cross-host=HOST  configuring with a cross compiler
1494   --with-libatomic-ops=yes|no|check
1495                           Use a external libatomic_ops? (default: check)
1496
1497 Some influential environment variables:
1498   CC          C compiler command
1499   CFLAGS      C compiler flags
1500   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1501               nonstandard directory <lib dir>
1502   LIBS        libraries to pass to the linker, e.g. -l<library>
1503   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1504               you have headers in a nonstandard directory <include dir>
1505   CXX         C++ compiler command
1506   CXXFLAGS    C++ compiler flags
1507   CCAS        assembler compiler command (defaults to CC)
1508   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1509   CPP         C preprocessor
1510   CXXCPP      C++ preprocessor
1511   PKG_CONFIG  path to pkg-config utility
1512   ATOMIC_OPS_CFLAGS
1513               C compiler flags for ATOMIC_OPS, overriding pkg-config
1514   ATOMIC_OPS_LIBS
1515               linker flags for ATOMIC_OPS, overriding pkg-config
1516
1517 Use these variables to override the choices made by `configure' or to help
1518 it to find libraries and programs with nonstandard names/locations.
1519
1520 Report bugs to <gc@linux.hpl.hp.com>.
1521 _ACEOF
1522 ac_status=$?
1523 fi
1524
1525 if test "$ac_init_help" = "recursive"; then
1526   # If there are subdirs, report their specific --help.
1527   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528     test -d "$ac_dir" ||
1529       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1530       continue
1531     ac_builddir=.
1532
1533 case "$ac_dir" in
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *)
1536   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1537   # A ".." for each directory in $ac_dir_suffix.
1538   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1539   case $ac_top_builddir_sub in
1540   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542   esac ;;
1543 esac
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1548
1549 case $srcdir in
1550   .)  # We are building in place.
1551     ac_srcdir=.
1552     ac_top_srcdir=$ac_top_builddir_sub
1553     ac_abs_top_srcdir=$ac_pwd ;;
1554   [\\/]* | ?:[\\/]* )  # Absolute name.
1555     ac_srcdir=$srcdir$ac_dir_suffix;
1556     ac_top_srcdir=$srcdir
1557     ac_abs_top_srcdir=$srcdir ;;
1558   *) # Relative name.
1559     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560     ac_top_srcdir=$ac_top_build_prefix$srcdir
1561     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562 esac
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564
1565     cd "$ac_dir" || { ac_status=$?; continue; }
1566     # Check for guested configure.
1567     if test -f "$ac_srcdir/configure.gnu"; then
1568       echo &&
1569       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570     elif test -f "$ac_srcdir/configure"; then
1571       echo &&
1572       $SHELL "$ac_srcdir/configure" --help=recursive
1573     else
1574       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575     fi || ac_status=$?
1576     cd "$ac_pwd" || { ac_status=$?; break; }
1577   done
1578 fi
1579
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1582   cat <<\_ACEOF
1583 gc configure 7.2
1584 generated by GNU Autoconf 2.68
1585
1586 Copyright (C) 2010 Free Software Foundation, Inc.
1587 This configure script is free software; the Free Software Foundation
1588 gives unlimited permission to copy, distribute and modify it.
1589 _ACEOF
1590   exit
1591 fi
1592
1593 ## ------------------------ ##
1594 ## Autoconf initialization. ##
1595 ## ------------------------ ##
1596
1597 # ac_fn_c_try_compile LINENO
1598 # --------------------------
1599 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1600 ac_fn_c_try_compile ()
1601 {
1602   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603   rm -f conftest.$ac_objext
1604   if { { ac_try="$ac_compile"
1605 case "(($ac_try" in
1606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607   *) ac_try_echo=$ac_try;;
1608 esac
1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 $as_echo "$ac_try_echo"; } >&5
1611   (eval "$ac_compile") 2>conftest.err
1612   ac_status=$?
1613   if test -s conftest.err; then
1614     grep -v '^ *+' conftest.err >conftest.er1
1615     cat conftest.er1 >&5
1616     mv -f conftest.er1 conftest.err
1617   fi
1618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619   test $ac_status = 0; } && {
1620          test -z "$ac_c_werror_flag" ||
1621          test ! -s conftest.err
1622        } && test -s conftest.$ac_objext; then :
1623   ac_retval=0
1624 else
1625   $as_echo "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1627
1628         ac_retval=1
1629 fi
1630   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631   as_fn_set_status $ac_retval
1632
1633 } # ac_fn_c_try_compile
1634
1635 # ac_fn_cxx_try_compile LINENO
1636 # ----------------------------
1637 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1638 ac_fn_cxx_try_compile ()
1639 {
1640   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641   rm -f conftest.$ac_objext
1642   if { { ac_try="$ac_compile"
1643 case "(($ac_try" in
1644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645   *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649   (eval "$ac_compile") 2>conftest.err
1650   ac_status=$?
1651   if test -s conftest.err; then
1652     grep -v '^ *+' conftest.err >conftest.er1
1653     cat conftest.er1 >&5
1654     mv -f conftest.er1 conftest.err
1655   fi
1656   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657   test $ac_status = 0; } && {
1658          test -z "$ac_cxx_werror_flag" ||
1659          test ! -s conftest.err
1660        } && test -s conftest.$ac_objext; then :
1661   ac_retval=0
1662 else
1663   $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1665
1666         ac_retval=1
1667 fi
1668   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669   as_fn_set_status $ac_retval
1670
1671 } # ac_fn_cxx_try_compile
1672
1673 # ac_fn_c_try_link LINENO
1674 # -----------------------
1675 # Try to link conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_c_try_link ()
1677 {
1678   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679   rm -f conftest.$ac_objext conftest$ac_exeext
1680   if { { ac_try="$ac_link"
1681 case "(($ac_try" in
1682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683   *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687   (eval "$ac_link") 2>conftest.err
1688   ac_status=$?
1689   if test -s conftest.err; then
1690     grep -v '^ *+' conftest.err >conftest.er1
1691     cat conftest.er1 >&5
1692     mv -f conftest.er1 conftest.err
1693   fi
1694   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695   test $ac_status = 0; } && {
1696          test -z "$ac_c_werror_flag" ||
1697          test ! -s conftest.err
1698        } && test -s conftest$ac_exeext && {
1699          test "$cross_compiling" = yes ||
1700          $as_test_x conftest$ac_exeext
1701        }; then :
1702   ac_retval=0
1703 else
1704   $as_echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1706
1707         ac_retval=1
1708 fi
1709   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1710   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1711   # interfere with the next link command; also delete a directory that is
1712   # left behind by Apple's compiler.  We do this before executing the actions.
1713   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1714   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715   as_fn_set_status $ac_retval
1716
1717 } # ac_fn_c_try_link
1718
1719 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1720 # -------------------------------------------------------
1721 # Tests whether HEADER exists and can be compiled using the include files in
1722 # INCLUDES, setting the cache variable VAR accordingly.
1723 ac_fn_c_check_header_compile ()
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 $4
1734 #include <$2>
1735 _ACEOF
1736 if ac_fn_c_try_compile "$LINENO"; then :
1737   eval "$3=yes"
1738 else
1739   eval "$3=no"
1740 fi
1741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1742 fi
1743 eval ac_res=\$$3
1744                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1745 $as_echo "$ac_res" >&6; }
1746   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747
1748 } # ac_fn_c_check_header_compile
1749
1750 # ac_fn_c_try_cpp LINENO
1751 # ----------------------
1752 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1753 ac_fn_c_try_cpp ()
1754 {
1755   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756   if { { ac_try="$ac_cpp conftest.$ac_ext"
1757 case "(($ac_try" in
1758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759   *) ac_try_echo=$ac_try;;
1760 esac
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1764   ac_status=$?
1765   if test -s conftest.err; then
1766     grep -v '^ *+' conftest.err >conftest.er1
1767     cat conftest.er1 >&5
1768     mv -f conftest.er1 conftest.err
1769   fi
1770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771   test $ac_status = 0; } > conftest.i && {
1772          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1773          test ! -s conftest.err
1774        }; then :
1775   ac_retval=0
1776 else
1777   $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1779
1780     ac_retval=1
1781 fi
1782   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783   as_fn_set_status $ac_retval
1784
1785 } # ac_fn_c_try_cpp
1786
1787 # ac_fn_c_try_run LINENO
1788 # ----------------------
1789 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1790 # that executables *can* be run.
1791 ac_fn_c_try_run ()
1792 {
1793   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794   if { { ac_try="$ac_link"
1795 case "(($ac_try" in
1796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797   *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801   (eval "$ac_link") 2>&5
1802   ac_status=$?
1803   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1805   { { case "(($ac_try" in
1806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807   *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811   (eval "$ac_try") 2>&5
1812   ac_status=$?
1813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814   test $ac_status = 0; }; }; then :
1815   ac_retval=0
1816 else
1817   $as_echo "$as_me: program exited with status $ac_status" >&5
1818        $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1820
1821        ac_retval=$ac_status
1822 fi
1823   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825   as_fn_set_status $ac_retval
1826
1827 } # ac_fn_c_try_run
1828
1829 # ac_fn_c_check_func LINENO FUNC VAR
1830 # ----------------------------------
1831 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1832 ac_fn_c_check_func ()
1833 {
1834   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1836 $as_echo_n "checking for $2... " >&6; }
1837 if eval \${$3+:} false; then :
1838   $as_echo_n "(cached) " >&6
1839 else
1840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h.  */
1842 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1843    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1844 #define $2 innocuous_$2
1845
1846 /* System header to define __stub macros and hopefully few prototypes,
1847     which can conflict with char $2 (); below.
1848     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1849     <limits.h> exists even on freestanding compilers.  */
1850
1851 #ifdef __STDC__
1852 # include <limits.h>
1853 #else
1854 # include <assert.h>
1855 #endif
1856
1857 #undef $2
1858
1859 /* Override any GCC internal prototype to avoid an error.
1860    Use char because int might match the return type of a GCC
1861    builtin and then its argument prototype would still apply.  */
1862 #ifdef __cplusplus
1863 extern "C"
1864 #endif
1865 char $2 ();
1866 /* The GNU C library defines this for functions which it implements
1867     to always fail with ENOSYS.  Some functions are actually named
1868     something starting with __ and the normal name is an alias.  */
1869 #if defined __stub_$2 || defined __stub___$2
1870 choke me
1871 #endif
1872
1873 int
1874 main ()
1875 {
1876 return $2 ();
1877   ;
1878   return 0;
1879 }
1880 _ACEOF
1881 if ac_fn_c_try_link "$LINENO"; then :
1882   eval "$3=yes"
1883 else
1884   eval "$3=no"
1885 fi
1886 rm -f core conftest.err conftest.$ac_objext \
1887     conftest$ac_exeext conftest.$ac_ext
1888 fi
1889 eval ac_res=\$$3
1890                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893
1894 } # ac_fn_c_check_func
1895
1896 # ac_fn_cxx_try_cpp LINENO
1897 # ------------------------
1898 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1899 ac_fn_cxx_try_cpp ()
1900 {
1901   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902   if { { ac_try="$ac_cpp conftest.$ac_ext"
1903 case "(($ac_try" in
1904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905   *) ac_try_echo=$ac_try;;
1906 esac
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1910   ac_status=$?
1911   if test -s conftest.err; then
1912     grep -v '^ *+' conftest.err >conftest.er1
1913     cat conftest.er1 >&5
1914     mv -f conftest.er1 conftest.err
1915   fi
1916   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1917   test $ac_status = 0; } > conftest.i && {
1918          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1919          test ! -s conftest.err
1920        }; then :
1921   ac_retval=0
1922 else
1923   $as_echo "$as_me: failed program was:" >&5
1924 sed 's/^/| /' conftest.$ac_ext >&5
1925
1926     ac_retval=1
1927 fi
1928   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929   as_fn_set_status $ac_retval
1930
1931 } # ac_fn_cxx_try_cpp
1932
1933 # ac_fn_cxx_try_link LINENO
1934 # -------------------------
1935 # Try to link conftest.$ac_ext, and return whether this succeeded.
1936 ac_fn_cxx_try_link ()
1937 {
1938   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939   rm -f conftest.$ac_objext conftest$ac_exeext
1940   if { { ac_try="$ac_link"
1941 case "(($ac_try" in
1942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943   *) ac_try_echo=$ac_try;;
1944 esac
1945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946 $as_echo "$ac_try_echo"; } >&5
1947   (eval "$ac_link") 2>conftest.err
1948   ac_status=$?
1949   if test -s conftest.err; then
1950     grep -v '^ *+' conftest.err >conftest.er1
1951     cat conftest.er1 >&5
1952     mv -f conftest.er1 conftest.err
1953   fi
1954   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955   test $ac_status = 0; } && {
1956          test -z "$ac_cxx_werror_flag" ||
1957          test ! -s conftest.err
1958        } && test -s conftest$ac_exeext && {
1959          test "$cross_compiling" = yes ||
1960          $as_test_x conftest$ac_exeext
1961        }; then :
1962   ac_retval=0
1963 else
1964   $as_echo "$as_me: failed program was:" >&5
1965 sed 's/^/| /' conftest.$ac_ext >&5
1966
1967         ac_retval=1
1968 fi
1969   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1970   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1971   # interfere with the next link command; also delete a directory that is
1972   # left behind by Apple's compiler.  We do this before executing the actions.
1973   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1974   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975   as_fn_set_status $ac_retval
1976
1977 } # ac_fn_cxx_try_link
1978
1979 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1980 # -------------------------------------------------------
1981 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1982 # the include files in INCLUDES and setting the cache variable VAR
1983 # accordingly.
1984 ac_fn_c_check_header_mongrel ()
1985 {
1986   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987   if eval \${$3+:} false; then :
1988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989 $as_echo_n "checking for $2... " >&6; }
1990 if eval \${$3+:} false; then :
1991   $as_echo_n "(cached) " >&6
1992 fi
1993 eval ac_res=\$$3
1994                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996 else
1997   # Is the header compilable?
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1999 $as_echo_n "checking $2 usability... " >&6; }
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h.  */
2002 $4
2003 #include <$2>
2004 _ACEOF
2005 if ac_fn_c_try_compile "$LINENO"; then :
2006   ac_header_compiler=yes
2007 else
2008   ac_header_compiler=no
2009 fi
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2012 $as_echo "$ac_header_compiler" >&6; }
2013
2014 # Is the header present?
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2016 $as_echo_n "checking $2 presence... " >&6; }
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h.  */
2019 #include <$2>
2020 _ACEOF
2021 if ac_fn_c_try_cpp "$LINENO"; then :
2022   ac_header_preproc=yes
2023 else
2024   ac_header_preproc=no
2025 fi
2026 rm -f conftest.err conftest.i conftest.$ac_ext
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2028 $as_echo "$ac_header_preproc" >&6; }
2029
2030 # So?  What about this header?
2031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2032   yes:no: )
2033     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2034 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2035     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2036 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2037     ;;
2038   no:yes:* )
2039     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2040 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2041     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2042 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2043     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2044 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2045     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2046 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2047     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2048 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2049 ( $as_echo "## ---------------------------------- ##
2050 ## Report this to gc@linux.hpl.hp.com ##
2051 ## ---------------------------------- ##"
2052      ) | sed "s/^/$as_me: WARNING:     /" >&2
2053     ;;
2054 esac
2055   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056 $as_echo_n "checking for $2... " >&6; }
2057 if eval \${$3+:} false; then :
2058   $as_echo_n "(cached) " >&6
2059 else
2060   eval "$3=\$ac_header_compiler"
2061 fi
2062 eval ac_res=\$$3
2063                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064 $as_echo "$ac_res" >&6; }
2065 fi
2066   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2067
2068 } # ac_fn_c_check_header_mongrel
2069 cat >config.log <<_ACEOF
2070 This file contains any messages produced by compilers while
2071 running configure, to aid debugging if configure makes a mistake.
2072
2073 It was created by gc $as_me 7.2, which was
2074 generated by GNU Autoconf 2.68.  Invocation command line was
2075
2076   $ $0 $@
2077
2078 _ACEOF
2079 exec 5>>config.log
2080 {
2081 cat <<_ASUNAME
2082 ## --------- ##
2083 ## Platform. ##
2084 ## --------- ##
2085
2086 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2087 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2088 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2089 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2090 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2091
2092 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2093 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2094
2095 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2096 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2097 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2098 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2099 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2100 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2101 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2102
2103 _ASUNAME
2104
2105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 for as_dir in $PATH
2107 do
2108   IFS=$as_save_IFS
2109   test -z "$as_dir" && as_dir=.
2110     $as_echo "PATH: $as_dir"
2111   done
2112 IFS=$as_save_IFS
2113
2114 } >&5
2115
2116 cat >&5 <<_ACEOF
2117
2118
2119 ## ----------- ##
2120 ## Core tests. ##
2121 ## ----------- ##
2122
2123 _ACEOF
2124
2125
2126 # Keep a trace of the command line.
2127 # Strip out --no-create and --no-recursion so they do not pile up.
2128 # Strip out --silent because we don't want to record it for future runs.
2129 # Also quote any args containing shell meta-characters.
2130 # Make two passes to allow for proper duplicate-argument suppression.
2131 ac_configure_args=
2132 ac_configure_args0=
2133 ac_configure_args1=
2134 ac_must_keep_next=false
2135 for ac_pass in 1 2
2136 do
2137   for ac_arg
2138   do
2139     case $ac_arg in
2140     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2141     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2142     | -silent | --silent | --silen | --sile | --sil)
2143       continue ;;
2144     *\'*)
2145       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2146     esac
2147     case $ac_pass in
2148     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2149     2)
2150       as_fn_append ac_configure_args1 " '$ac_arg'"
2151       if test $ac_must_keep_next = true; then
2152         ac_must_keep_next=false # Got value, back to normal.
2153       else
2154         case $ac_arg in
2155           *=* | --config-cache | -C | -disable-* | --disable-* \
2156           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2157           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2158           | -with-* | --with-* | -without-* | --without-* | --x)
2159             case "$ac_configure_args0 " in
2160               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2161             esac
2162             ;;
2163           -* ) ac_must_keep_next=true ;;
2164         esac
2165       fi
2166       as_fn_append ac_configure_args " '$ac_arg'"
2167       ;;
2168     esac
2169   done
2170 done
2171 { ac_configure_args0=; unset ac_configure_args0;}
2172 { ac_configure_args1=; unset ac_configure_args1;}
2173
2174 # When interrupted or exit'd, cleanup temporary files, and complete
2175 # config.log.  We remove comments because anyway the quotes in there
2176 # would cause problems or look ugly.
2177 # WARNING: Use '\'' to represent an apostrophe within the trap.
2178 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2179 trap 'exit_status=$?
2180   # Save into config.log some information that might help in debugging.
2181   {
2182     echo
2183
2184     $as_echo "## ---------------- ##
2185 ## Cache variables. ##
2186 ## ---------------- ##"
2187     echo
2188     # The following way of writing the cache mishandles newlines in values,
2189 (
2190   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2191     eval ac_val=\$$ac_var
2192     case $ac_val in #(
2193     *${as_nl}*)
2194       case $ac_var in #(
2195       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2196 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2197       esac
2198       case $ac_var in #(
2199       _ | IFS | as_nl) ;; #(
2200       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2201       *) { eval $ac_var=; unset $ac_var;} ;;
2202       esac ;;
2203     esac
2204   done
2205   (set) 2>&1 |
2206     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2207     *${as_nl}ac_space=\ *)
2208       sed -n \
2209         "s/'\''/'\''\\\\'\'''\''/g;
2210           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2211       ;; #(
2212     *)
2213       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2214       ;;
2215     esac |
2216     sort
2217 )
2218     echo
2219
2220     $as_echo "## ----------------- ##
2221 ## Output variables. ##
2222 ## ----------------- ##"
2223     echo
2224     for ac_var in $ac_subst_vars
2225     do
2226       eval ac_val=\$$ac_var
2227       case $ac_val in
2228       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2229       esac
2230       $as_echo "$ac_var='\''$ac_val'\''"
2231     done | sort
2232     echo
2233
2234     if test -n "$ac_subst_files"; then
2235       $as_echo "## ------------------- ##
2236 ## File substitutions. ##
2237 ## ------------------- ##"
2238       echo
2239       for ac_var in $ac_subst_files
2240       do
2241         eval ac_val=\$$ac_var
2242         case $ac_val in
2243         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2244         esac
2245         $as_echo "$ac_var='\''$ac_val'\''"
2246       done | sort
2247       echo
2248     fi
2249
2250     if test -s confdefs.h; then
2251       $as_echo "## ----------- ##
2252 ## confdefs.h. ##
2253 ## ----------- ##"
2254       echo
2255       cat confdefs.h
2256       echo
2257     fi
2258     test "$ac_signal" != 0 &&
2259       $as_echo "$as_me: caught signal $ac_signal"
2260     $as_echo "$as_me: exit $exit_status"
2261   } >&5
2262   rm -f core *.core core.conftest.* &&
2263     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2264     exit $exit_status
2265 ' 0
2266 for ac_signal in 1 2 13 15; do
2267   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2268 done
2269 ac_signal=0
2270
2271 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2272 rm -f -r conftest* confdefs.h
2273
2274 $as_echo "/* confdefs.h */" > confdefs.h
2275
2276 # Predefined preprocessor variables.
2277
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_NAME "$PACKAGE_NAME"
2280 _ACEOF
2281
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2284 _ACEOF
2285
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2288 _ACEOF
2289
2290 cat >>confdefs.h <<_ACEOF
2291 #define PACKAGE_STRING "$PACKAGE_STRING"
2292 _ACEOF
2293
2294 cat >>confdefs.h <<_ACEOF
2295 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2296 _ACEOF
2297
2298 cat >>confdefs.h <<_ACEOF
2299 #define PACKAGE_URL "$PACKAGE_URL"
2300 _ACEOF
2301
2302
2303 # Let the site file select an alternate cache file if it wants to.
2304 # Prefer an explicitly selected file to automatically selected ones.
2305 ac_site_file1=NONE
2306 ac_site_file2=NONE
2307 if test -n "$CONFIG_SITE"; then
2308   # We do not want a PATH search for config.site.
2309   case $CONFIG_SITE in #((
2310     -*)  ac_site_file1=./$CONFIG_SITE;;
2311     */*) ac_site_file1=$CONFIG_SITE;;
2312     *)   ac_site_file1=./$CONFIG_SITE;;
2313   esac
2314 elif test "x$prefix" != xNONE; then
2315   ac_site_file1=$prefix/share/config.site
2316   ac_site_file2=$prefix/etc/config.site
2317 else
2318   ac_site_file1=$ac_default_prefix/share/config.site
2319   ac_site_file2=$ac_default_prefix/etc/config.site
2320 fi
2321 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2322 do
2323   test "x$ac_site_file" = xNONE && continue
2324   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2325     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2326 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2327     sed 's/^/| /' "$ac_site_file" >&5
2328     . "$ac_site_file" \
2329       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2331 as_fn_error $? "failed to load site script $ac_site_file
2332 See \`config.log' for more details" "$LINENO" 5; }
2333   fi
2334 done
2335
2336 if test -r "$cache_file"; then
2337   # Some versions of bash will fail to source /dev/null (special files
2338   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2339   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2340     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2341 $as_echo "$as_me: loading cache $cache_file" >&6;}
2342     case $cache_file in
2343       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2344       *)                      . "./$cache_file";;
2345     esac
2346   fi
2347 else
2348   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2349 $as_echo "$as_me: creating cache $cache_file" >&6;}
2350   >$cache_file
2351 fi
2352
2353 # Check that the precious variables saved in the cache have kept the same
2354 # value.
2355 ac_cache_corrupted=false
2356 for ac_var in $ac_precious_vars; do
2357   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2358   eval ac_new_set=\$ac_env_${ac_var}_set
2359   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2360   eval ac_new_val=\$ac_env_${ac_var}_value
2361   case $ac_old_set,$ac_new_set in
2362     set,)
2363       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2364 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2365       ac_cache_corrupted=: ;;
2366     ,set)
2367       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2368 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2369       ac_cache_corrupted=: ;;
2370     ,);;
2371     *)
2372       if test "x$ac_old_val" != "x$ac_new_val"; then
2373         # differences in whitespace do not lead to failure.
2374         ac_old_val_w=`echo x $ac_old_val`
2375         ac_new_val_w=`echo x $ac_new_val`
2376         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2377           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2378 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2379           ac_cache_corrupted=:
2380         else
2381           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2382 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2383           eval $ac_var=\$ac_old_val
2384         fi
2385         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2386 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2387         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2388 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2389       fi;;
2390   esac
2391   # Pass precious variables to config.status.
2392   if test "$ac_new_set" = set; then
2393     case $ac_new_val in
2394     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2395     *) ac_arg=$ac_var=$ac_new_val ;;
2396     esac
2397     case " $ac_configure_args " in
2398       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2399       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2400     esac
2401   fi
2402 done
2403 if $ac_cache_corrupted; then
2404   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2406   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2407 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2408   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2409 fi
2410 ## -------------------- ##
2411 ## Main body of script. ##
2412 ## -------------------- ##
2413
2414 ac_ext=c
2415 ac_cpp='$CPP $CPPFLAGS'
2416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2419
2420
2421     ## version must conform to [0-9]+[.][0-9]+(alpha[0-9]+)?
2422
2423
2424 ac_aux_dir=
2425 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2426   if test -f "$ac_dir/install-sh"; then
2427     ac_aux_dir=$ac_dir
2428     ac_install_sh="$ac_aux_dir/install-sh -c"
2429     break
2430   elif test -f "$ac_dir/install.sh"; then
2431     ac_aux_dir=$ac_dir
2432     ac_install_sh="$ac_aux_dir/install.sh -c"
2433     break
2434   elif test -f "$ac_dir/shtool"; then
2435     ac_aux_dir=$ac_dir
2436     ac_install_sh="$ac_aux_dir/shtool install -c"
2437     break
2438   fi
2439 done
2440 if test -z "$ac_aux_dir"; then
2441   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2442 fi
2443
2444 # These three variables are undocumented and unsupported,
2445 # and are intended to be withdrawn in a future Autoconf release.
2446 # They can cause serious problems if a builder's source tree is in a directory
2447 # whose full name contains unusual characters.
2448 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2449 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2450 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2451
2452
2453 # Make sure we can run config.sub.
2454 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2455   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2456
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2458 $as_echo_n "checking build system type... " >&6; }
2459 if ${ac_cv_build+:} false; then :
2460   $as_echo_n "(cached) " >&6
2461 else
2462   ac_build_alias=$build_alias
2463 test "x$ac_build_alias" = x &&
2464   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2465 test "x$ac_build_alias" = x &&
2466   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2467 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2468   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2469
2470 fi
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2472 $as_echo "$ac_cv_build" >&6; }
2473 case $ac_cv_build in
2474 *-*-*) ;;
2475 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2476 esac
2477 build=$ac_cv_build
2478 ac_save_IFS=$IFS; IFS='-'
2479 set x $ac_cv_build
2480 shift
2481 build_cpu=$1
2482 build_vendor=$2
2483 shift; shift
2484 # Remember, the first character of IFS is used to create $*,
2485 # except with old shells:
2486 build_os=$*
2487 IFS=$ac_save_IFS
2488 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2489
2490
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2492 $as_echo_n "checking host system type... " >&6; }
2493 if ${ac_cv_host+:} false; then :
2494   $as_echo_n "(cached) " >&6
2495 else
2496   if test "x$host_alias" = x; then
2497   ac_cv_host=$ac_cv_build
2498 else
2499   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2500     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2501 fi
2502
2503 fi
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2505 $as_echo "$ac_cv_host" >&6; }
2506 case $ac_cv_host in
2507 *-*-*) ;;
2508 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2509 esac
2510 host=$ac_cv_host
2511 ac_save_IFS=$IFS; IFS='-'
2512 set x $ac_cv_host
2513 shift
2514 host_cpu=$1
2515 host_vendor=$2
2516 shift; shift
2517 # Remember, the first character of IFS is used to create $*,
2518 # except with old shells:
2519 host_os=$*
2520 IFS=$ac_save_IFS
2521 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2522
2523
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2525 $as_echo_n "checking target system type... " >&6; }
2526 if ${ac_cv_target+:} false; then :
2527   $as_echo_n "(cached) " >&6
2528 else
2529   if test "x$target_alias" = x; then
2530   ac_cv_target=$ac_cv_host
2531 else
2532   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2533     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2534 fi
2535
2536 fi
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2538 $as_echo "$ac_cv_target" >&6; }
2539 case $ac_cv_target in
2540 *-*-*) ;;
2541 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2542 esac
2543 target=$ac_cv_target
2544 ac_save_IFS=$IFS; IFS='-'
2545 set x $ac_cv_target
2546 shift
2547 target_cpu=$1
2548 target_vendor=$2
2549 shift; shift
2550 # Remember, the first character of IFS is used to create $*,
2551 # except with old shells:
2552 target_os=$*
2553 IFS=$ac_save_IFS
2554 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2555
2556
2557 # The aliases save the names the user supplied, while $host etc.
2558 # will get canonicalized.
2559 test -n "$target_alias" &&
2560   test "$program_prefix$program_suffix$program_transform_name" = \
2561     NONENONEs,x,x, &&
2562   program_prefix=${target_alias}-
2563
2564
2565
2566   { $as_echo "$as_me:${as_lineno-$LINENO}: checking GC version numbers" >&5
2567 $as_echo_n "checking GC version numbers... " >&6; }
2568   GC_VERSION_MAJOR=`echo $PACKAGE_VERSION | sed 's/^\([0-9][0-9]*\)[.].*$/\1/g'`
2569   GC_VERSION_MINOR=`echo $PACKAGE_VERSION | sed 's/^[^.]*[.]\([0-9][0-9]*\).*$/\1/g'`
2570   GC_ALPHA_VERSION=`echo $PACKAGE_VERSION | sed 's/^[^.]*[.][0-9]*//'`
2571
2572   case "$GC_ALPHA_VERSION" in
2573     alpha*)
2574       GC_ALPHA_VERSION=`echo $GC_ALPHA_VERSION \
2575       | sed 's/alpha\([0-9][0-9]*\)/\1/'` ;;
2576     *)  GC_ALPHA_MAJOR='' ;;
2577   esac
2578
2579   if test :$GC_VERSION_MAJOR: = :: \
2580      -o   :$GC_VERSION_MINOR: = :: ;
2581   then
2582     { $as_echo "$as_me:${as_lineno-$LINENO}: result: invalid" >&5
2583 $as_echo "invalid" >&6; }
2584     as_fn_error $? "nonconforming PACKAGE_VERSION='$PACKAGE_VERSION'" "$LINENO" 5
2585   fi
2586
2587
2588 cat >>confdefs.h <<_ACEOF
2589 #define GC_VERSION_MAJOR $GC_VERSION_MAJOR
2590 _ACEOF
2591
2592
2593 cat >>confdefs.h <<_ACEOF
2594 #define GC_VERSION_MINOR $GC_VERSION_MINOR
2595 _ACEOF
2596
2597   if test :$GC_ALPHA_VERSION: != :: ; then
2598
2599 cat >>confdefs.h <<_ACEOF
2600 #define GC_ALPHA_VERSION $GC_ALPHA_VERSION
2601 _ACEOF
2602
2603   fi
2604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: major=$GC_VERSION_MAJOR minor=$GC_VERSION_MINOR \
2605 ${GC_ALPHA_VERSION:+alpha=}$GC_ALPHA_VERSION" >&5
2606 $as_echo "major=$GC_VERSION_MAJOR minor=$GC_VERSION_MINOR \
2607 ${GC_ALPHA_VERSION:+alpha=}$GC_ALPHA_VERSION" >&6; }
2608
2609 am__api_version='1.11'
2610
2611 # Find a good install program.  We prefer a C program (faster),
2612 # so one script is as good as another.  But avoid the broken or
2613 # incompatible versions:
2614 # SysV /etc/install, /usr/sbin/install
2615 # SunOS /usr/etc/install
2616 # IRIX /sbin/install
2617 # AIX /bin/install
2618 # AmigaOS /C/install, which installs bootblocks on floppy discs
2619 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2620 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2621 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2622 # OS/2's system install, which has a completely different semantic
2623 # ./install, which can be erroneously created by make from ./install.sh.
2624 # Reject install programs that cannot install multiple files.
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2626 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2627 if test -z "$INSTALL"; then
2628 if ${ac_cv_path_install+:} false; then :
2629   $as_echo_n "(cached) " >&6
2630 else
2631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2633 do
2634   IFS=$as_save_IFS
2635   test -z "$as_dir" && as_dir=.
2636     # Account for people who put trailing slashes in PATH elements.
2637 case $as_dir/ in #((
2638   ./ | .// | /[cC]/* | \
2639   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2640   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2641   /usr/ucb/* ) ;;
2642   *)
2643     # OSF1 and SCO ODT 3.0 have their own names for install.
2644     # Don't use installbsd from OSF since it installs stuff as root
2645     # by default.
2646     for ac_prog in ginstall scoinst install; do
2647       for ac_exec_ext in '' $ac_executable_extensions; do
2648         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2649           if test $ac_prog = install &&
2650             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2651             # AIX install.  It has an incompatible calling convention.
2652             :
2653           elif test $ac_prog = install &&
2654             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2655             # program-specific install script used by HP pwplus--don't use.
2656             :
2657           else
2658             rm -rf conftest.one conftest.two conftest.dir
2659             echo one > conftest.one
2660             echo two > conftest.two
2661             mkdir conftest.dir
2662             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2663               test -s conftest.one && test -s conftest.two &&
2664               test -s conftest.dir/conftest.one &&
2665               test -s conftest.dir/conftest.two
2666             then
2667               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2668               break 3
2669             fi
2670           fi
2671         fi
2672       done
2673     done
2674     ;;
2675 esac
2676
2677   done
2678 IFS=$as_save_IFS
2679
2680 rm -rf conftest.one conftest.two conftest.dir
2681
2682 fi
2683   if test "${ac_cv_path_install+set}" = set; then
2684     INSTALL=$ac_cv_path_install
2685   else
2686     # As a last resort, use the slow shell script.  Don't cache a
2687     # value for INSTALL within a source directory, because that will
2688     # break other packages using the cache if that directory is
2689     # removed, or if the value is a relative name.
2690     INSTALL=$ac_install_sh
2691   fi
2692 fi
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2694 $as_echo "$INSTALL" >&6; }
2695
2696 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2697 # It thinks the first close brace ends the variable substitution.
2698 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2699
2700 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2701
2702 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2703
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2705 $as_echo_n "checking whether build environment is sane... " >&6; }
2706 # Just in case
2707 sleep 1
2708 echo timestamp > conftest.file
2709 # Reject unsafe characters in $srcdir or the absolute working directory
2710 # name.  Accept space and tab only in the latter.
2711 am_lf='
2712 '
2713 case `pwd` in
2714   *[\\\"\#\$\&\'\`$am_lf]*)
2715     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2716 esac
2717 case $srcdir in
2718   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2719     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2720 esac
2721
2722 # Do `set' in a subshell so we don't clobber the current shell's
2723 # arguments.  Must try -L first in case configure is actually a
2724 # symlink; some systems play weird games with the mod time of symlinks
2725 # (eg FreeBSD returns the mod time of the symlink's containing
2726 # directory).
2727 if (
2728    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2729    if test "$*" = "X"; then
2730       # -L didn't work.
2731       set X `ls -t "$srcdir/configure" conftest.file`
2732    fi
2733    rm -f conftest.file
2734    if test "$*" != "X $srcdir/configure conftest.file" \
2735       && test "$*" != "X conftest.file $srcdir/configure"; then
2736
2737       # If neither matched, then we have a broken ls.  This can happen
2738       # if, for instance, CONFIG_SHELL is bash and it inherits a
2739       # broken ls alias from the environment.  This has actually
2740       # happened.  Such a system could not be considered "sane".
2741       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2742 alias in your environment" "$LINENO" 5
2743    fi
2744
2745    test "$2" = conftest.file
2746    )
2747 then
2748    # Ok.
2749    :
2750 else
2751    as_fn_error $? "newly created file is older than distributed files!
2752 Check your system clock" "$LINENO" 5
2753 fi
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2755 $as_echo "yes" >&6; }
2756 test "$program_prefix" != NONE &&
2757   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2758 # Use a double $ so make ignores it.
2759 test "$program_suffix" != NONE &&
2760   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2761 # Double any \ or $.
2762 # By default was `s,x,x', remove it if useless.
2763 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2764 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2765
2766 # expand $ac_aux_dir to an absolute path
2767 am_aux_dir=`cd $ac_aux_dir && pwd`
2768
2769 if test x"${MISSING+set}" != xset; then
2770   case $am_aux_dir in
2771   *\ * | *\     *)
2772     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2773   *)
2774     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2775   esac
2776 fi
2777 # Use eval to expand $SHELL
2778 if eval "$MISSING --run true"; then
2779   am_missing_run="$MISSING --run "
2780 else
2781   am_missing_run=
2782   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2783 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2784 fi
2785
2786 if test x"${install_sh}" != xset; then
2787   case $am_aux_dir in
2788   *\ * | *\     *)
2789     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2790   *)
2791     install_sh="\${SHELL} $am_aux_dir/install-sh"
2792   esac
2793 fi
2794
2795 # Installed binaries are usually stripped using `strip' when the user
2796 # run `make install-strip'.  However `strip' might not be the right
2797 # tool to use in cross-compilation environments, therefore Automake
2798 # will honor the `STRIP' environment variable to overrule this program.
2799 if test "$cross_compiling" != no; then
2800   if test -n "$ac_tool_prefix"; then
2801   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2802 set dummy ${ac_tool_prefix}strip; ac_word=$2
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804 $as_echo_n "checking for $ac_word... " >&6; }
2805 if ${ac_cv_prog_STRIP+:} false; then :
2806   $as_echo_n "(cached) " >&6
2807 else
2808   if test -n "$STRIP"; then
2809   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2810 else
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH
2813 do
2814   IFS=$as_save_IFS
2815   test -z "$as_dir" && as_dir=.
2816     for ac_exec_ext in '' $ac_executable_extensions; do
2817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820     break 2
2821   fi
2822 done
2823   done
2824 IFS=$as_save_IFS
2825
2826 fi
2827 fi
2828 STRIP=$ac_cv_prog_STRIP
2829 if test -n "$STRIP"; then
2830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2831 $as_echo "$STRIP" >&6; }
2832 else
2833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834 $as_echo "no" >&6; }
2835 fi
2836
2837
2838 fi
2839 if test -z "$ac_cv_prog_STRIP"; then
2840   ac_ct_STRIP=$STRIP
2841   # Extract the first word of "strip", so it can be a program name with args.
2842 set dummy strip; ac_word=$2
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2846   $as_echo_n "(cached) " >&6
2847 else
2848   if test -n "$ac_ct_STRIP"; then
2849   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2853 do
2854   IFS=$as_save_IFS
2855   test -z "$as_dir" && as_dir=.
2856     for ac_exec_ext in '' $ac_executable_extensions; do
2857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2858     ac_cv_prog_ac_ct_STRIP="strip"
2859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860     break 2
2861   fi
2862 done
2863   done
2864 IFS=$as_save_IFS
2865
2866 fi
2867 fi
2868 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2869 if test -n "$ac_ct_STRIP"; then
2870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2871 $as_echo "$ac_ct_STRIP" >&6; }
2872 else
2873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2875 fi
2876
2877   if test "x$ac_ct_STRIP" = x; then
2878     STRIP=":"
2879   else
2880     case $cross_compiling:$ac_tool_warned in
2881 yes:)
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2884 ac_tool_warned=yes ;;
2885 esac
2886     STRIP=$ac_ct_STRIP
2887   fi
2888 else
2889   STRIP="$ac_cv_prog_STRIP"
2890 fi
2891
2892 fi
2893 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2894
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2896 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2897 if test -z "$MKDIR_P"; then
2898   if ${ac_cv_path_mkdir+:} false; then :
2899   $as_echo_n "(cached) " >&6
2900 else
2901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2903 do
2904   IFS=$as_save_IFS
2905   test -z "$as_dir" && as_dir=.
2906     for ac_prog in mkdir gmkdir; do
2907          for ac_exec_ext in '' $ac_executable_extensions; do
2908            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2909            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2910              'mkdir (GNU coreutils) '* | \
2911              'mkdir (coreutils) '* | \
2912              'mkdir (fileutils) '4.1*)
2913                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2914                break 3;;
2915            esac
2916          done
2917        done
2918   done
2919 IFS=$as_save_IFS
2920
2921 fi
2922
2923   test -d ./--version && rmdir ./--version
2924   if test "${ac_cv_path_mkdir+set}" = set; then
2925     MKDIR_P="$ac_cv_path_mkdir -p"
2926   else
2927     # As a last resort, use the slow shell script.  Don't cache a
2928     # value for MKDIR_P within a source directory, because that will
2929     # break other packages using the cache if that directory is
2930     # removed, or if the value is a relative name.
2931     MKDIR_P="$ac_install_sh -d"
2932   fi
2933 fi
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2935 $as_echo "$MKDIR_P" >&6; }
2936
2937 mkdir_p="$MKDIR_P"
2938 case $mkdir_p in
2939   [\\/$]* | ?:[\\/]*) ;;
2940   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2941 esac
2942
2943 for ac_prog in gawk mawk nawk awk
2944 do
2945   # Extract the first word of "$ac_prog", so it can be a program name with args.
2946 set dummy $ac_prog; ac_word=$2
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if ${ac_cv_prog_AWK+:} false; then :
2950   $as_echo_n "(cached) " >&6
2951 else
2952   if test -n "$AWK"; then
2953   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2954 else
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2957 do
2958   IFS=$as_save_IFS
2959   test -z "$as_dir" && as_dir=.
2960     for ac_exec_ext in '' $ac_executable_extensions; do
2961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2962     ac_cv_prog_AWK="$ac_prog"
2963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964     break 2
2965   fi
2966 done
2967   done
2968 IFS=$as_save_IFS
2969
2970 fi
2971 fi
2972 AWK=$ac_cv_prog_AWK
2973 if test -n "$AWK"; then
2974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2975 $as_echo "$AWK" >&6; }
2976 else
2977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2979 fi
2980
2981
2982   test -n "$AWK" && break
2983 done
2984
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2986 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2987 set x ${MAKE-make}
2988 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2989 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2990   $as_echo_n "(cached) " >&6
2991 else
2992   cat >conftest.make <<\_ACEOF
2993 SHELL = /bin/sh
2994 all:
2995         @echo '@@@%%%=$(MAKE)=@@@%%%'
2996 _ACEOF
2997 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2998 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2999   *@@@%%%=?*=@@@%%%*)
3000     eval ac_cv_prog_make_${ac_make}_set=yes;;
3001   *)
3002     eval ac_cv_prog_make_${ac_make}_set=no;;
3003 esac
3004 rm -f conftest.make
3005 fi
3006 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3008 $as_echo "yes" >&6; }
3009   SET_MAKE=
3010 else
3011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3013   SET_MAKE="MAKE=${MAKE-make}"
3014 fi
3015
3016 rm -rf .tst 2>/dev/null
3017 mkdir .tst 2>/dev/null
3018 if test -d .tst; then
3019   am__leading_dot=.
3020 else
3021   am__leading_dot=_
3022 fi
3023 rmdir .tst 2>/dev/null
3024
3025 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3026   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3027   # is not polluted with repeated "-I."
3028   am__isrc=' -I$(srcdir)'
3029   # test to see if srcdir already configured
3030   if test -f $srcdir/config.status; then
3031     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3032   fi
3033 fi
3034
3035 # test whether we have cygpath
3036 if test -z "$CYGPATH_W"; then
3037   if (cygpath --version) >/dev/null 2>/dev/null; then
3038     CYGPATH_W='cygpath -w'
3039   else
3040     CYGPATH_W=echo
3041   fi
3042 fi
3043
3044
3045 # Define the identity of the package.
3046  PACKAGE='gc'
3047  VERSION='7.2'
3048
3049
3050 cat >>confdefs.h <<_ACEOF
3051 #define PACKAGE "$PACKAGE"
3052 _ACEOF
3053
3054
3055 cat >>confdefs.h <<_ACEOF
3056 #define VERSION "$VERSION"
3057 _ACEOF
3058
3059 # Some tools Automake needs.
3060
3061 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3062
3063
3064 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3065
3066
3067 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3068
3069
3070 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3071
3072
3073 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3074
3075 # We need awk for the "check" target.  The system "awk" is bad on
3076 # some platforms.
3077 # Always define AMTAR for backward compatibility.
3078
3079 AMTAR=${AMTAR-"${am_missing_run}tar"}
3080
3081 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3082
3083
3084
3085
3086
3087 ac_config_headers="$ac_config_headers include/private/config.h"
3088
3089
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3091 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3092     # Check whether --enable-maintainer-mode was given.
3093 if test "${enable_maintainer_mode+set}" = set; then :
3094   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3095 else
3096   USE_MAINTAINER_MODE=no
3097 fi
3098
3099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3100 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3101    if test $USE_MAINTAINER_MODE = yes; then
3102   MAINTAINER_MODE_TRUE=
3103   MAINTAINER_MODE_FALSE='#'
3104 else
3105   MAINTAINER_MODE_TRUE='#'
3106   MAINTAINER_MODE_FALSE=
3107 fi
3108
3109   MAINT=$MAINTAINER_MODE_TRUE
3110
3111
3112
3113
3114
3115
3116 DEPDIR="${am__leading_dot}deps"
3117
3118 ac_config_commands="$ac_config_commands depfiles"
3119
3120
3121 am_make=${MAKE-make}
3122 cat > confinc << 'END'
3123 am__doit:
3124         @echo this is the am__doit target
3125 .PHONY: am__doit
3126 END
3127 # If we don't find an include directive, just comment out the code.
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3129 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3130 am__include="#"
3131 am__quote=
3132 _am_result=none
3133 # First try GNU make style include.
3134 echo "include confinc" > confmf
3135 # Ignore all kinds of additional output from `make'.
3136 case `$am_make -s -f confmf 2> /dev/null` in #(
3137 *the\ am__doit\ target*)
3138   am__include=include
3139   am__quote=
3140   _am_result=GNU
3141   ;;
3142 esac
3143 # Now try BSD make style include.
3144 if test "$am__include" = "#"; then
3145    echo '.include "confinc"' > confmf
3146    case `$am_make -s -f confmf 2> /dev/null` in #(
3147    *the\ am__doit\ target*)
3148      am__include=.include
3149      am__quote="\""
3150      _am_result=BSD
3151      ;;
3152    esac
3153 fi
3154
3155
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3157 $as_echo "$_am_result" >&6; }
3158 rm -f confinc confmf
3159
3160 # Check whether --enable-dependency-tracking was given.
3161 if test "${enable_dependency_tracking+set}" = set; then :
3162   enableval=$enable_dependency_tracking;
3163 fi
3164
3165 if test "x$enable_dependency_tracking" != xno; then
3166   am_depcomp="$ac_aux_dir/depcomp"
3167   AMDEPBACKSLASH='\'
3168 fi
3169  if test "x$enable_dependency_tracking" != xno; then
3170   AMDEP_TRUE=
3171   AMDEP_FALSE='#'
3172 else
3173   AMDEP_TRUE='#'
3174   AMDEP_FALSE=
3175 fi
3176
3177
3178 ac_ext=c
3179 ac_cpp='$CPP $CPPFLAGS'
3180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3183 if test -n "$ac_tool_prefix"; then
3184   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3185 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if ${ac_cv_prog_CC+:} false; then :
3189   $as_echo_n "(cached) " >&6
3190 else
3191   if test -n "$CC"; then
3192   ac_cv_prog_CC="$CC" # Let the user override the test.
3193 else
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 for as_dir in $PATH
3196 do
3197   IFS=$as_save_IFS
3198   test -z "$as_dir" && as_dir=.
3199     for ac_exec_ext in '' $ac_executable_extensions; do
3200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3201     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3203     break 2
3204   fi
3205 done
3206   done
3207 IFS=$as_save_IFS
3208
3209 fi
3210 fi
3211 CC=$ac_cv_prog_CC
3212 if test -n "$CC"; then
3213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3214 $as_echo "$CC" >&6; }
3215 else
3216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3218 fi
3219
3220
3221 fi
3222 if test -z "$ac_cv_prog_CC"; then
3223   ac_ct_CC=$CC
3224   # Extract the first word of "gcc", so it can be a program name with args.
3225 set dummy gcc; ac_word=$2
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227 $as_echo_n "checking for $ac_word... " >&6; }
3228 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3229   $as_echo_n "(cached) " >&6
3230 else
3231   if test -n "$ac_ct_CC"; then
3232   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3233 else
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH
3236 do
3237   IFS=$as_save_IFS
3238   test -z "$as_dir" && as_dir=.
3239     for ac_exec_ext in '' $ac_executable_extensions; do
3240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3241     ac_cv_prog_ac_ct_CC="gcc"
3242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3243     break 2
3244   fi
3245 done
3246   done
3247 IFS=$as_save_IFS
3248
3249 fi
3250 fi
3251 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3252 if test -n "$ac_ct_CC"; then
3253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3254 $as_echo "$ac_ct_CC" >&6; }
3255 else
3256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3258 fi
3259
3260   if test "x$ac_ct_CC" = x; then
3261     CC=""
3262   else
3263     case $cross_compiling:$ac_tool_warned in
3264 yes:)
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3267 ac_tool_warned=yes ;;
3268 esac
3269     CC=$ac_ct_CC
3270   fi
3271 else
3272   CC="$ac_cv_prog_CC"
3273 fi
3274
3275 if test -z "$CC"; then
3276           if test -n "$ac_tool_prefix"; then
3277     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3278 set dummy ${ac_tool_prefix}cc; ac_word=$2
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280 $as_echo_n "checking for $ac_word... " >&6; }
3281 if ${ac_cv_prog_CC+:} false; then :
3282   $as_echo_n "(cached) " >&6
3283 else
3284   if test -n "$CC"; then
3285   ac_cv_prog_CC="$CC" # Let the user override the test.
3286 else
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH
3289 do
3290   IFS=$as_save_IFS
3291   test -z "$as_dir" && as_dir=.
3292     for ac_exec_ext in '' $ac_executable_extensions; do
3293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3294     ac_cv_prog_CC="${ac_tool_prefix}cc"
3295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296     break 2
3297   fi
3298 done
3299   done
3300 IFS=$as_save_IFS
3301
3302 fi
3303 fi
3304 CC=$ac_cv_prog_CC
3305 if test -n "$CC"; then
3306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3307 $as_echo "$CC" >&6; }
3308 else
3309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 $as_echo "no" >&6; }
3311 fi
3312
3313
3314   fi
3315 fi
3316 if test -z "$CC"; then
3317   # Extract the first word of "cc", so it can be a program name with args.
3318 set dummy cc; ac_word=$2
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 $as_echo_n "checking for $ac_word... " >&6; }
3321 if ${ac_cv_prog_CC+:} false; then :
3322   $as_echo_n "(cached) " >&6
3323 else
3324   if test -n "$CC"; then
3325   ac_cv_prog_CC="$CC" # Let the user override the test.
3326 else
3327   ac_prog_rejected=no
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 for as_dir in $PATH
3330 do
3331   IFS=$as_save_IFS
3332   test -z "$as_dir" && as_dir=.
3333     for ac_exec_ext in '' $ac_executable_extensions; do
3334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3335     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3336        ac_prog_rejected=yes
3337        continue
3338      fi
3339     ac_cv_prog_CC="cc"
3340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3341     break 2
3342   fi
3343 done
3344   done
3345 IFS=$as_save_IFS
3346
3347 if test $ac_prog_rejected = yes; then
3348   # We found a bogon in the path, so make sure we never use it.
3349   set dummy $ac_cv_prog_CC
3350   shift
3351   if test $# != 0; then
3352     # We chose a different compiler from the bogus one.
3353     # However, it has the same basename, so the bogon will be chosen
3354     # first if we set CC to just the basename; use the full file name.
3355     shift
3356     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3357   fi
3358 fi
3359 fi
3360 fi
3361 CC=$ac_cv_prog_CC
3362 if test -n "$CC"; then
3363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3364 $as_echo "$CC" >&6; }
3365 else
3366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3368 fi
3369
3370
3371 fi
3372 if test -z "$CC"; then
3373   if test -n "$ac_tool_prefix"; then
3374   for ac_prog in cl.exe
3375   do
3376     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3377 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379 $as_echo_n "checking for $ac_word... " >&6; }
3380 if ${ac_cv_prog_CC+:} false; then :
3381   $as_echo_n "(cached) " >&6
3382 else
3383   if test -n "$CC"; then
3384   ac_cv_prog_CC="$CC" # Let the user override the test.
3385 else
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3388 do
3389   IFS=$as_save_IFS
3390   test -z "$as_dir" && as_dir=.
3391     for ac_exec_ext in '' $ac_executable_extensions; do
3392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3393     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3395     break 2
3396   fi
3397 done
3398   done
3399 IFS=$as_save_IFS
3400
3401 fi
3402 fi
3403 CC=$ac_cv_prog_CC
3404 if test -n "$CC"; then
3405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3406 $as_echo "$CC" >&6; }
3407 else
3408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3410 fi
3411
3412
3413     test -n "$CC" && break
3414   done
3415 fi
3416 if test -z "$CC"; then
3417   ac_ct_CC=$CC
3418   for ac_prog in cl.exe
3419 do
3420   # Extract the first word of "$ac_prog", so it can be a program name with args.
3421 set dummy $ac_prog; ac_word=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3425   $as_echo_n "(cached) " >&6
3426 else
3427   if test -n "$ac_ct_CC"; then
3428   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3429 else
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433   IFS=$as_save_IFS
3434   test -z "$as_dir" && as_dir=.
3435     for ac_exec_ext in '' $ac_executable_extensions; do
3436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437     ac_cv_prog_ac_ct_CC="$ac_prog"
3438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439     break 2
3440   fi
3441 done
3442   done
3443 IFS=$as_save_IFS
3444
3445 fi
3446 fi
3447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3448 if test -n "$ac_ct_CC"; then
3449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3450 $as_echo "$ac_ct_CC" >&6; }
3451 else
3452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3454 fi
3455
3456
3457   test -n "$ac_ct_CC" && break
3458 done
3459
3460   if test "x$ac_ct_CC" = x; then
3461     CC=""
3462   else
3463     case $cross_compiling:$ac_tool_warned in
3464 yes:)
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3467 ac_tool_warned=yes ;;
3468 esac
3469     CC=$ac_ct_CC
3470   fi
3471 fi
3472
3473 fi
3474
3475
3476 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3478 as_fn_error $? "no acceptable C compiler found in \$PATH
3479 See \`config.log' for more details" "$LINENO" 5; }
3480
3481 # Provide some information about the compiler.
3482 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3483 set X $ac_compile
3484 ac_compiler=$2
3485 for ac_option in --version -v -V -qversion; do
3486   { { ac_try="$ac_compiler $ac_option >&5"
3487 case "(($ac_try" in
3488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489   *) ac_try_echo=$ac_try;;
3490 esac
3491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3492 $as_echo "$ac_try_echo"; } >&5
3493   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3494   ac_status=$?
3495   if test -s conftest.err; then
3496     sed '10a\
3497 ... rest of stderr output deleted ...
3498          10q' conftest.err >conftest.er1
3499     cat conftest.er1 >&5
3500   fi
3501   rm -f conftest.er1 conftest.err
3502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503   test $ac_status = 0; }
3504 done
3505
3506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507 /* end confdefs.h.  */
3508
3509 int
3510 main ()
3511 {
3512
3513   ;
3514   return 0;
3515 }
3516 _ACEOF
3517 ac_clean_files_save=$ac_clean_files
3518 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3519 # Try to create an executable without -o first, disregard a.out.
3520 # It will help us diagnose broken compilers, and finding out an intuition
3521 # of exeext.
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3523 $as_echo_n "checking whether the C compiler works... " >&6; }
3524 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3525
3526 # The possible output files:
3527 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3528
3529 ac_rmfiles=
3530 for ac_file in $ac_files
3531 do
3532   case $ac_file in
3533     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3534     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3535   esac
3536 done
3537 rm -f $ac_rmfiles
3538
3539 if { { ac_try="$ac_link_default"
3540 case "(($ac_try" in
3541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542   *) ac_try_echo=$ac_try;;
3543 esac
3544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3545 $as_echo "$ac_try_echo"; } >&5
3546   (eval "$ac_link_default") 2>&5
3547   ac_status=$?
3548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3549   test $ac_status = 0; }; then :
3550   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3551 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3552 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3553 # so that the user can short-circuit this test for compilers unknown to
3554 # Autoconf.
3555 for ac_file in $ac_files ''
3556 do
3557   test -f "$ac_file" || continue
3558   case $ac_file in
3559     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3560         ;;
3561     [ab].out )
3562         # We found the default executable, but exeext='' is most
3563         # certainly right.
3564         break;;
3565     *.* )
3566         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3567         then :; else
3568            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3569         fi
3570         # We set ac_cv_exeext here because the later test for it is not
3571         # safe: cross compilers may not add the suffix if given an `-o'
3572         # argument, so we may need to know it at that point already.
3573         # Even if this section looks crufty: it has the advantage of
3574         # actually working.
3575         break;;
3576     * )
3577         break;;
3578   esac
3579 done
3580 test "$ac_cv_exeext" = no && ac_cv_exeext=
3581
3582 else
3583   ac_file=''
3584 fi
3585 if test -z "$ac_file"; then :
3586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587 $as_echo "no" >&6; }
3588 $as_echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3590
3591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593 as_fn_error 77 "C compiler cannot create executables
3594 See \`config.log' for more details" "$LINENO" 5; }
3595 else
3596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3597 $as_echo "yes" >&6; }
3598 fi
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3600 $as_echo_n "checking for C compiler default output file name... " >&6; }
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3602 $as_echo "$ac_file" >&6; }
3603 ac_exeext=$ac_cv_exeext
3604
3605 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3606 ac_clean_files=$ac_clean_files_save
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3608 $as_echo_n "checking for suffix of executables... " >&6; }
3609 if { { ac_try="$ac_link"
3610 case "(($ac_try" in
3611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612   *) ac_try_echo=$ac_try;;
3613 esac
3614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615 $as_echo "$ac_try_echo"; } >&5
3616   (eval "$ac_link") 2>&5
3617   ac_status=$?
3618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619   test $ac_status = 0; }; then :
3620   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3621 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3622 # work properly (i.e., refer to `conftest.exe'), while it won't with
3623 # `rm'.
3624 for ac_file in conftest.exe conftest conftest.*; do
3625   test -f "$ac_file" || continue
3626   case $ac_file in
3627     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3628     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3629           break;;
3630     * ) break;;
3631   esac
3632 done
3633 else
3634   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3636 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3637 See \`config.log' for more details" "$LINENO" 5; }
3638 fi
3639 rm -f conftest conftest$ac_cv_exeext
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3641 $as_echo "$ac_cv_exeext" >&6; }
3642
3643 rm -f conftest.$ac_ext
3644 EXEEXT=$ac_cv_exeext
3645 ac_exeext=$EXEEXT
3646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647 /* end confdefs.h.  */
3648 #include <stdio.h>
3649 int
3650 main ()
3651 {
3652 FILE *f = fopen ("conftest.out", "w");
3653  return ferror (f) || fclose (f) != 0;
3654
3655   ;
3656   return 0;
3657 }
3658 _ACEOF
3659 ac_clean_files="$ac_clean_files conftest.out"
3660 # Check that the compiler produces executables we can run.  If not, either
3661 # the compiler is broken, or we cross compile.
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3663 $as_echo_n "checking whether we are cross compiling... " >&6; }
3664 if test "$cross_compiling" != yes; then
3665   { { ac_try="$ac_link"
3666 case "(($ac_try" in
3667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668   *) ac_try_echo=$ac_try;;
3669 esac
3670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3671 $as_echo "$ac_try_echo"; } >&5
3672   (eval "$ac_link") 2>&5
3673   ac_status=$?
3674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3675   test $ac_status = 0; }
3676   if { ac_try='./conftest$ac_cv_exeext'
3677   { { case "(($ac_try" in
3678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679   *) ac_try_echo=$ac_try;;
3680 esac
3681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682 $as_echo "$ac_try_echo"; } >&5
3683   (eval "$ac_try") 2>&5
3684   ac_status=$?
3685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686   test $ac_status = 0; }; }; then
3687     cross_compiling=no
3688   else
3689     if test "$cross_compiling" = maybe; then
3690         cross_compiling=yes
3691     else
3692         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694 as_fn_error $? "cannot run C compiled programs.
3695 If you meant to cross compile, use \`--host'.
3696 See \`config.log' for more details" "$LINENO" 5; }
3697     fi
3698   fi
3699 fi
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3701 $as_echo "$cross_compiling" >&6; }
3702
3703 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3704 ac_clean_files=$ac_clean_files_save
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3706 $as_echo_n "checking for suffix of object files... " >&6; }
3707 if ${ac_cv_objext+:} false; then :
3708   $as_echo_n "(cached) " >&6
3709 else
3710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h.  */
3712
3713 int
3714 main ()
3715 {
3716
3717   ;
3718   return 0;
3719 }
3720 _ACEOF
3721 rm -f conftest.o conftest.obj
3722 if { { ac_try="$ac_compile"
3723 case "(($ac_try" in
3724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725   *) ac_try_echo=$ac_try;;
3726 esac
3727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3728 $as_echo "$ac_try_echo"; } >&5
3729   (eval "$ac_compile") 2>&5
3730   ac_status=$?
3731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3732   test $ac_status = 0; }; then :
3733   for ac_file in conftest.o conftest.obj conftest.*; do
3734   test -f "$ac_file" || continue;
3735   case $ac_file in
3736     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3737     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3738        break;;
3739   esac
3740 done
3741 else
3742   $as_echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.$ac_ext >&5
3744
3745 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3747 as_fn_error $? "cannot compute suffix of object files: cannot compile
3748 See \`config.log' for more details" "$LINENO" 5; }
3749 fi
3750 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3751 fi
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3753 $as_echo "$ac_cv_objext" >&6; }
3754 OBJEXT=$ac_cv_objext
3755 ac_objext=$OBJEXT
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3757 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3758 if ${ac_cv_c_compiler_gnu+:} false; then :
3759   $as_echo_n "(cached) " >&6
3760 else
3761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h.  */
3763
3764 int
3765 main ()
3766 {
3767 #ifndef __GNUC__
3768        choke me
3769 #endif
3770
3771   ;
3772   return 0;
3773 }
3774 _ACEOF
3775 if ac_fn_c_try_compile "$LINENO"; then :
3776   ac_compiler_gnu=yes
3777 else
3778   ac_compiler_gnu=no
3779 fi
3780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3781 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3782
3783 fi
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3785 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3786 if test $ac_compiler_gnu = yes; then
3787   GCC=yes
3788 else
3789   GCC=
3790 fi
3791 ac_test_CFLAGS=${CFLAGS+set}
3792 ac_save_CFLAGS=$CFLAGS
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3794 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3795 if ${ac_cv_prog_cc_g+:} false; then :
3796   $as_echo_n "(cached) " >&6
3797 else
3798   ac_save_c_werror_flag=$ac_c_werror_flag
3799    ac_c_werror_flag=yes
3800    ac_cv_prog_cc_g=no
3801    CFLAGS="-g"
3802    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803 /* end confdefs.h.  */
3804
3805 int
3806 main ()
3807 {
3808
3809   ;
3810   return 0;
3811 }
3812 _ACEOF
3813 if ac_fn_c_try_compile "$LINENO"; then :
3814   ac_cv_prog_cc_g=yes
3815 else
3816   CFLAGS=""
3817       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h.  */
3819
3820 int
3821 main ()
3822 {
3823
3824   ;
3825   return 0;
3826 }
3827 _ACEOF
3828 if ac_fn_c_try_compile "$LINENO"; then :
3829
3830 else
3831   ac_c_werror_flag=$ac_save_c_werror_flag
3832          CFLAGS="-g"
3833          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h.  */
3835
3836 int
3837 main ()
3838 {
3839
3840   ;
3841   return 0;
3842 }
3843 _ACEOF
3844 if ac_fn_c_try_compile "$LINENO"; then :
3845   ac_cv_prog_cc_g=yes
3846 fi
3847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848 fi
3849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3850 fi
3851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3852    ac_c_werror_flag=$ac_save_c_werror_flag
3853 fi
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3855 $as_echo "$ac_cv_prog_cc_g" >&6; }
3856 if test "$ac_test_CFLAGS" = set; then
3857   CFLAGS=$ac_save_CFLAGS
3858 elif test $ac_cv_prog_cc_g = yes; then
3859   if test "$GCC" = yes; then
3860     CFLAGS="-g -O2"
3861   else
3862     CFLAGS="-g"
3863   fi
3864 else
3865   if test "$GCC" = yes; then
3866     CFLAGS="-O2"
3867   else
3868     CFLAGS=
3869   fi
3870 fi
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3872 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3873 if ${ac_cv_prog_cc_c89+:} false; then :
3874   $as_echo_n "(cached) " >&6
3875 else
3876   ac_cv_prog_cc_c89=no
3877 ac_save_CC=$CC
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h.  */
3880 #include <stdarg.h>
3881 #include <stdio.h>
3882 #include <sys/types.h>
3883 #include <sys/stat.h>
3884 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3885 struct buf { int x; };
3886 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3887 static char *e (p, i)
3888      char **p;
3889      int i;
3890 {
3891   return p[i];
3892 }
3893 static char *f (char * (*g) (char **, int), char **p, ...)
3894 {
3895   char *s;
3896   va_list v;
3897   va_start (v,p);
3898   s = g (p, va_arg (v,int));
3899   va_end (v);
3900   return s;
3901 }
3902
3903 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3904    function prototypes and stuff, but not '\xHH' hex character constants.
3905    These don't provoke an error unfortunately, instead are silently treated
3906    as 'x'.  The following induces an error, until -std is added to get
3907    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3908    array size at least.  It's necessary to write '\x00'==0 to get something
3909    that's true only with -std.  */
3910 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3911
3912 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3913    inside strings and character constants.  */
3914 #define FOO(x) 'x'
3915 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3916
3917 int test (int i, double x);
3918 struct s1 {int (*f) (int a);};
3919 struct s2 {int (*f) (double a);};
3920 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3921 int argc;
3922 char **argv;
3923 int
3924 main ()
3925 {
3926 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3927   ;
3928   return 0;
3929 }
3930 _ACEOF
3931 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3932         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3933 do
3934   CC="$ac_save_CC $ac_arg"
3935   if ac_fn_c_try_compile "$LINENO"; then :
3936   ac_cv_prog_cc_c89=$ac_arg
3937 fi
3938 rm -f core conftest.err conftest.$ac_objext
3939   test "x$ac_cv_prog_cc_c89" != "xno" && break
3940 done
3941 rm -f conftest.$ac_ext
3942 CC=$ac_save_CC
3943
3944 fi
3945 # AC_CACHE_VAL
3946 case "x$ac_cv_prog_cc_c89" in
3947   x)
3948     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3949 $as_echo "none needed" >&6; } ;;
3950   xno)
3951     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3952 $as_echo "unsupported" >&6; } ;;
3953   *)
3954     CC="$CC $ac_cv_prog_cc_c89"
3955     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3956 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3957 esac
3958 if test "x$ac_cv_prog_cc_c89" != xno; then :
3959
3960 fi
3961
3962 ac_ext=c
3963 ac_cpp='$CPP $CPPFLAGS'
3964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3967
3968 depcc="$CC"   am_compiler_list=
3969
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3971 $as_echo_n "checking dependency style of $depcc... " >&6; }
3972 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3973   $as_echo_n "(cached) " >&6
3974 else
3975   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3976   # We make a subdir and do the tests there.  Otherwise we can end up
3977   # making bogus files that we don't know about and never remove.  For
3978   # instance it was reported that on HP-UX the gcc test will end up
3979   # making a dummy file named `D' -- because `-MD' means `put the output
3980   # in D'.
3981   mkdir conftest.dir
3982   # Copy depcomp to subdir because otherwise we won't find it if we're
3983   # using a relative directory.
3984   cp "$am_depcomp" conftest.dir
3985   cd conftest.dir
3986   # We will build objects and dependencies in a subdirectory because
3987   # it helps to detect inapplicable dependency modes.  For instance
3988   # both Tru64's cc and ICC support -MD to output dependencies as a
3989   # side effect of compilation, but ICC will put the dependencies in
3990   # the current directory while Tru64 will put them in the object
3991   # directory.
3992   mkdir sub
3993
3994   am_cv_CC_dependencies_compiler_type=none
3995   if test "$am_compiler_list" = ""; then
3996      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3997   fi
3998   am__universal=false
3999   case " $depcc " in #(
4000      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4001      esac
4002
4003   for depmode in $am_compiler_list; do
4004     # Setup a source with many dependencies, because some compilers
4005     # like to wrap large dependency lists on column 80 (with \), and
4006     # we should not choose a depcomp mode which is confused by this.
4007     #
4008     # We need to recreate these files for each test, as the compiler may
4009     # overwrite some of them when testing with obscure command lines.
4010     # This happens at least with the AIX C compiler.
4011     : > sub/conftest.c
4012     for i in 1 2 3 4 5 6; do
4013       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4014       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4015       # Solaris 8's {/usr,}/bin/sh.
4016       touch sub/conftst$i.h
4017     done
4018     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4019
4020     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4021     # mode.  It turns out that the SunPro C++ compiler does not properly
4022     # handle `-M -o', and we need to detect this.  Also, some Intel
4023     # versions had trouble with output in subdirs
4024     am__obj=sub/conftest.${OBJEXT-o}
4025     am__minus_obj="-o $am__obj"
4026     case $depmode in
4027     gcc)
4028       # This depmode causes a compiler race in universal mode.
4029       test "$am__universal" = false || continue
4030       ;;
4031     nosideeffect)
4032       # after this tag, mechanisms are not by side-effect, so they'll
4033       # only be used when explicitly requested
4034       if test "x$enable_dependency_tracking" = xyes; then
4035         continue
4036       else
4037         break
4038       fi
4039       ;;
4040     msvisualcpp | msvcmsys)
4041       # This compiler won't grok `-c -o', but also, the minuso test has
4042       # not run yet.  These depmodes are late enough in the game, and
4043       # so weak that their functioning should not be impacted.
4044       am__obj=conftest.${OBJEXT-o}
4045       am__minus_obj=
4046       ;;
4047     none) break ;;
4048     esac
4049     if depmode=$depmode \
4050        source=sub/conftest.c object=$am__obj \
4051        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4052        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4053          >/dev/null 2>conftest.err &&
4054        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4055        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4056        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4057        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4058       # icc doesn't choke on unknown options, it will just issue warnings
4059       # or remarks (even with -Werror).  So we grep stderr for any message
4060       # that says an option was ignored or not supported.
4061       # When given -MP, icc 7.0 and 7.1 complain thusly:
4062       #   icc: Command line warning: ignoring option '-M'; no argument required
4063       # The diagnosis changed in icc 8.0:
4064       #   icc: Command line remark: option '-MP' not supported
4065       if (grep 'ignoring option' conftest.err ||
4066           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4067         am_cv_CC_dependencies_compiler_type=$depmode
4068         break
4069       fi
4070     fi
4071   done
4072
4073   cd ..
4074   rm -rf conftest.dir
4075 else
4076   am_cv_CC_dependencies_compiler_type=none
4077 fi
4078
4079 fi
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4081 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4082 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4083
4084  if
4085   test "x$enable_dependency_tracking" != xno \
4086   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4087   am__fastdepCC_TRUE=
4088   am__fastdepCC_FALSE='#'
4089 else
4090   am__fastdepCC_TRUE='#'
4091   am__fastdepCC_FALSE=
4092 fi
4093
4094
4095 if test "x$CC" != xcc; then
4096   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4097 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4098 else
4099   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4100 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4101 fi
4102 set dummy $CC; ac_cc=`$as_echo "$2" |
4103                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4104 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4105   $as_echo_n "(cached) " >&6
4106 else
4107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h.  */
4109
4110 int
4111 main ()
4112 {
4113
4114   ;
4115   return 0;
4116 }
4117 _ACEOF
4118 # Make sure it works both with $CC and with simple cc.
4119 # We do the test twice because some compilers refuse to overwrite an
4120 # existing .o file with -o, though they will create one.
4121 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4122 rm -f conftest2.*
4123 if { { case "(($ac_try" in
4124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125   *) ac_try_echo=$ac_try;;
4126 esac
4127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4128 $as_echo "$ac_try_echo"; } >&5
4129   (eval "$ac_try") 2>&5
4130   ac_status=$?
4131   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4132   test $ac_status = 0; } &&
4133    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135   *) ac_try_echo=$ac_try;;
4136 esac
4137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4138 $as_echo "$ac_try_echo"; } >&5
4139   (eval "$ac_try") 2>&5
4140   ac_status=$?
4141   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4142   test $ac_status = 0; };
4143 then
4144   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4145   if test "x$CC" != xcc; then
4146     # Test first that cc exists at all.
4147     if { ac_try='cc -c conftest.$ac_ext >&5'
4148   { { case "(($ac_try" in
4149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150   *) ac_try_echo=$ac_try;;
4151 esac
4152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4153 $as_echo "$ac_try_echo"; } >&5
4154   (eval "$ac_try") 2>&5
4155   ac_status=$?
4156   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4157   test $ac_status = 0; }; }; then
4158       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4159       rm -f conftest2.*
4160       if { { case "(($ac_try" in
4161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162   *) ac_try_echo=$ac_try;;
4163 esac
4164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4165 $as_echo "$ac_try_echo"; } >&5
4166   (eval "$ac_try") 2>&5
4167   ac_status=$?
4168   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4169   test $ac_status = 0; } &&
4170          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172   *) ac_try_echo=$ac_try;;
4173 esac
4174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4175 $as_echo "$ac_try_echo"; } >&5
4176   (eval "$ac_try") 2>&5
4177   ac_status=$?
4178   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4179   test $ac_status = 0; };
4180       then
4181         # cc works too.
4182         :
4183       else
4184         # cc exists but doesn't like -o.
4185         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4186       fi
4187     fi
4188   fi
4189 else
4190   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4191 fi
4192 rm -f core conftest*
4193
4194 fi
4195 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4197 $as_echo "yes" >&6; }
4198 else
4199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 $as_echo "no" >&6; }
4201
4202 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4203
4204 fi
4205
4206 # FIXME: we rely on the cache variable name because
4207 # there is no other way.
4208 set dummy $CC
4209 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4210 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4211 if test "$am_t" != yes; then
4212    # Losing compiler, so override with the script.
4213    # FIXME: It is wrong to rewrite CC.
4214    # But if we don't then we get into trouble of one sort or another.
4215    # A longer-term fix would be to have automake use am__CC in this case,
4216    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4217    CC="$am_aux_dir/compile $CC"
4218 fi
4219
4220
4221 ac_ext=cpp
4222 ac_cpp='$CXXCPP $CPPFLAGS'
4223 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4224 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4225 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4226 if test -z "$CXX"; then
4227   if test -n "$CCC"; then
4228     CXX=$CCC
4229   else
4230     if test -n "$ac_tool_prefix"; then
4231   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4232   do
4233     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4234 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 $as_echo_n "checking for $ac_word... " >&6; }
4237 if ${ac_cv_prog_CXX+:} false; then :
4238   $as_echo_n "(cached) " >&6
4239 else
4240   if test -n "$CXX"; then
4241   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4242 else
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH
4245 do
4246   IFS=$as_save_IFS
4247   test -z "$as_dir" && as_dir=.
4248     for ac_exec_ext in '' $ac_executable_extensions; do
4249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4250     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4252     break 2
4253   fi
4254 done
4255   done
4256 IFS=$as_save_IFS
4257
4258 fi
4259 fi
4260 CXX=$ac_cv_prog_CXX
4261 if test -n "$CXX"; then
4262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4263 $as_echo "$CXX" >&6; }
4264 else
4265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 $as_echo "no" >&6; }
4267 fi
4268
4269
4270     test -n "$CXX" && break
4271   done
4272 fi
4273 if test -z "$CXX"; then
4274   ac_ct_CXX=$CXX
4275   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4276 do
4277   # Extract the first word of "$ac_prog", so it can be a program name with args.
4278 set dummy $ac_prog; ac_word=$2
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4280 $as_echo_n "checking for $ac_word... " >&6; }
4281 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4282   $as_echo_n "(cached) " >&6
4283 else
4284   if test -n "$ac_ct_CXX"; then
4285   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4286 else
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4289 do
4290   IFS=$as_save_IFS
4291   test -z "$as_dir" && as_dir=.
4292     for ac_exec_ext in '' $ac_executable_extensions; do
4293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4294     ac_cv_prog_ac_ct_CXX="$ac_prog"
4295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4296     break 2
4297   fi
4298 done
4299   done
4300 IFS=$as_save_IFS
4301
4302 fi
4303 fi
4304 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4305 if test -n "$ac_ct_CXX"; then
4306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4307 $as_echo "$ac_ct_CXX" >&6; }
4308 else
4309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4311 fi
4312
4313
4314   test -n "$ac_ct_CXX" && break
4315 done
4316
4317   if test "x$ac_ct_CXX" = x; then
4318     CXX="g++"
4319   else
4320     case $cross_compiling:$ac_tool_warned in
4321 yes:)
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4324 ac_tool_warned=yes ;;
4325 esac
4326     CXX=$ac_ct_CXX
4327   fi
4328 fi
4329
4330   fi
4331 fi
4332 # Provide some information about the compiler.
4333 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4334 set X $ac_compile
4335 ac_compiler=$2
4336 for ac_option in --version -v -V -qversion; do
4337   { { ac_try="$ac_compiler $ac_option >&5"
4338 case "(($ac_try" in
4339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340   *) ac_try_echo=$ac_try;;
4341 esac
4342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4343 $as_echo "$ac_try_echo"; } >&5
4344   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4345   ac_status=$?
4346   if test -s conftest.err; then
4347     sed '10a\
4348 ... rest of stderr output deleted ...
4349          10q' conftest.err >conftest.er1
4350     cat conftest.er1 >&5
4351   fi
4352   rm -f conftest.er1 conftest.err
4353   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4354   test $ac_status = 0; }
4355 done
4356
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4358 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4359 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4360   $as_echo_n "(cached) " >&6
4361 else
4362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h.  */
4364
4365 int
4366 main ()
4367 {
4368 #ifndef __GNUC__
4369        choke me
4370 #endif
4371
4372   ;
4373   return 0;
4374 }
4375 _ACEOF
4376 if ac_fn_cxx_try_compile "$LINENO"; then :
4377   ac_compiler_gnu=yes
4378 else
4379   ac_compiler_gnu=no
4380 fi
4381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4383
4384 fi
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4386 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4387 if test $ac_compiler_gnu = yes; then
4388   GXX=yes
4389 else
4390   GXX=
4391 fi
4392 ac_test_CXXFLAGS=${CXXFLAGS+set}
4393 ac_save_CXXFLAGS=$CXXFLAGS
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4395 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4396 if ${ac_cv_prog_cxx_g+:} false; then :
4397   $as_echo_n "(cached) " >&6
4398 else
4399   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4400    ac_cxx_werror_flag=yes
4401    ac_cv_prog_cxx_g=no
4402    CXXFLAGS="-g"
4403    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h.  */
4405
4406 int
4407 main ()
4408 {
4409
4410   ;
4411   return 0;
4412 }
4413 _ACEOF
4414 if ac_fn_cxx_try_compile "$LINENO"; then :
4415   ac_cv_prog_cxx_g=yes
4416 else
4417   CXXFLAGS=""
4418       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h.  */
4420
4421 int
4422 main ()
4423 {
4424
4425   ;
4426   return 0;
4427 }
4428 _ACEOF
4429 if ac_fn_cxx_try_compile "$LINENO"; then :
4430
4431 else
4432   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4433          CXXFLAGS="-g"
4434          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435 /* end confdefs.h.  */
4436
4437 int
4438 main ()
4439 {
4440
4441   ;
4442   return 0;
4443 }
4444 _ACEOF
4445 if ac_fn_cxx_try_compile "$LINENO"; then :
4446   ac_cv_prog_cxx_g=yes
4447 fi
4448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4449 fi
4450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4451 fi
4452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4453    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4454 fi
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4456 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4457 if test "$ac_test_CXXFLAGS" = set; then
4458   CXXFLAGS=$ac_save_CXXFLAGS
4459 elif test $ac_cv_prog_cxx_g = yes; then
4460   if test "$GXX" = yes; then
4461     CXXFLAGS="-g -O2"
4462   else
4463     CXXFLAGS="-g"
4464   fi
4465 else
4466   if test "$GXX" = yes; then
4467     CXXFLAGS="-O2"
4468   else
4469     CXXFLAGS=
4470   fi
4471 fi
4472 ac_ext=c
4473 ac_cpp='$CPP $CPPFLAGS'
4474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4477
4478 depcc="$CXX"  am_compiler_list=
4479
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4481 $as_echo_n "checking dependency style of $depcc... " >&6; }
4482 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4483   $as_echo_n "(cached) " >&6
4484 else
4485   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4486   # We make a subdir and do the tests there.  Otherwise we can end up
4487   # making bogus files that we don't know about and never remove.  For
4488   # instance it was reported that on HP-UX the gcc test will end up
4489   # making a dummy file named `D' -- because `-MD' means `put the output
4490   # in D'.
4491   mkdir conftest.dir
4492   # Copy depcomp to subdir because otherwise we won't find it if we're
4493   # using a relative directory.
4494   cp "$am_depcomp" conftest.dir
4495   cd conftest.dir
4496   # We will build objects and dependencies in a subdirectory because
4497   # it helps to detect inapplicable dependency modes.  For instance
4498   # both Tru64's cc and ICC support -MD to output dependencies as a
4499   # side effect of compilation, but ICC will put the dependencies in
4500   # the current directory while Tru64 will put them in the object
4501   # directory.
4502   mkdir sub
4503
4504   am_cv_CXX_dependencies_compiler_type=none
4505   if test "$am_compiler_list" = ""; then
4506      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4507   fi
4508   am__universal=false
4509   case " $depcc " in #(
4510      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4511      esac
4512
4513   for depmode in $am_compiler_list; do
4514     # Setup a source with many dependencies, because some compilers
4515     # like to wrap large dependency lists on column 80 (with \), and
4516     # we should not choose a depcomp mode which is confused by this.
4517     #
4518     # We need to recreate these files for each test, as the compiler may
4519     # overwrite some of them when testing with obscure command lines.
4520     # This happens at least with the AIX C compiler.
4521     : > sub/conftest.c
4522     for i in 1 2 3 4 5 6; do
4523       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4524       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4525       # Solaris 8's {/usr,}/bin/sh.
4526       touch sub/conftst$i.h
4527     done
4528     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4529
4530     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4531     # mode.  It turns out that the SunPro C++ compiler does not properly
4532     # handle `-M -o', and we need to detect this.  Also, some Intel
4533     # versions had trouble with output in subdirs
4534     am__obj=sub/conftest.${OBJEXT-o}
4535     am__minus_obj="-o $am__obj"
4536     case $depmode in
4537     gcc)
4538       # This depmode causes a compiler race in universal mode.
4539       test "$am__universal" = false || continue
4540       ;;
4541     nosideeffect)
4542       # after this tag, mechanisms are not by side-effect, so they'll
4543       # only be used when explicitly requested
4544       if test "x$enable_dependency_tracking" = xyes; then
4545         continue
4546       else
4547         break
4548       fi
4549       ;;
4550     msvisualcpp | msvcmsys)
4551       # This compiler won't grok `-c -o', but also, the minuso test has
4552       # not run yet.  These depmodes are late enough in the game, and
4553       # so weak that their functioning should not be impacted.
4554       am__obj=conftest.${OBJEXT-o}
4555       am__minus_obj=
4556       ;;
4557     none) break ;;
4558     esac
4559     if depmode=$depmode \
4560        source=sub/conftest.c object=$am__obj \
4561        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4562        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4563          >/dev/null 2>conftest.err &&
4564        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4565        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4566        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4567        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4568       # icc doesn't choke on unknown options, it will just issue warnings
4569       # or remarks (even with -Werror).  So we grep stderr for any message
4570       # that says an option was ignored or not supported.
4571       # When given -MP, icc 7.0 and 7.1 complain thusly:
4572       #   icc: Command line warning: ignoring option '-M'; no argument required
4573       # The diagnosis changed in icc 8.0:
4574       #   icc: Command line remark: option '-MP' not supported
4575       if (grep 'ignoring option' conftest.err ||
4576           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4577         am_cv_CXX_dependencies_compiler_type=$depmode
4578         break
4579       fi
4580     fi
4581   done
4582
4583   cd ..
4584   rm -rf conftest.dir
4585 else
4586   am_cv_CXX_dependencies_compiler_type=none
4587 fi
4588
4589 fi
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4591 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4592 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4593
4594  if
4595   test "x$enable_dependency_tracking" != xno \
4596   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4597   am__fastdepCXX_TRUE=
4598   am__fastdepCXX_FALSE='#'
4599 else
4600   am__fastdepCXX_TRUE='#'
4601   am__fastdepCXX_FALSE=
4602 fi
4603
4604
4605
4606 # By default we simply use the C compiler to build assembly code.
4607
4608 test "${CCAS+set}" = set || CCAS=$CC
4609 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4610
4611
4612
4613 depcc="$CCAS"   am_compiler_list=
4614
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4616 $as_echo_n "checking dependency style of $depcc... " >&6; }
4617 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4618   $as_echo_n "(cached) " >&6
4619 else
4620   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4621   # We make a subdir and do the tests there.  Otherwise we can end up
4622   # making bogus files that we don't know about and never remove.  For
4623   # instance it was reported that on HP-UX the gcc test will end up
4624   # making a dummy file named `D' -- because `-MD' means `put the output
4625   # in D'.
4626   mkdir conftest.dir
4627   # Copy depcomp to subdir because otherwise we won't find it if we're
4628   # using a relative directory.
4629   cp "$am_depcomp" conftest.dir
4630   cd conftest.dir
4631   # We will build objects and dependencies in a subdirectory because
4632   # it helps to detect inapplicable dependency modes.  For instance
4633   # both Tru64's cc and ICC support -MD to output dependencies as a
4634   # side effect of compilation, but ICC will put the dependencies in
4635   # the current directory while Tru64 will put them in the object
4636   # directory.
4637   mkdir sub
4638
4639   am_cv_CCAS_dependencies_compiler_type=none
4640   if test "$am_compiler_list" = ""; then
4641      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4642   fi
4643   am__universal=false
4644
4645
4646   for depmode in $am_compiler_list; do
4647     # Setup a source with many dependencies, because some compilers
4648     # like to wrap large dependency lists on column 80 (with \), and
4649     # we should not choose a depcomp mode which is confused by this.
4650     #
4651     # We need to recreate these files for each test, as the compiler may
4652     # overwrite some of them when testing with obscure command lines.
4653     # This happens at least with the AIX C compiler.
4654     : > sub/conftest.c
4655     for i in 1 2 3 4 5 6; do
4656       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4657       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4658       # Solaris 8's {/usr,}/bin/sh.
4659       touch sub/conftst$i.h
4660     done
4661     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4662
4663     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4664     # mode.  It turns out that the SunPro C++ compiler does not properly
4665     # handle `-M -o', and we need to detect this.  Also, some Intel
4666     # versions had trouble with output in subdirs
4667     am__obj=sub/conftest.${OBJEXT-o}
4668     am__minus_obj="-o $am__obj"
4669     case $depmode in
4670     gcc)
4671       # This depmode causes a compiler race in universal mode.
4672       test "$am__universal" = false || continue
4673       ;;
4674     nosideeffect)
4675       # after this tag, mechanisms are not by side-effect, so they'll
4676       # only be used when explicitly requested
4677       if test "x$enable_dependency_tracking" = xyes; then
4678         continue
4679       else
4680         break
4681       fi
4682       ;;
4683     msvisualcpp | msvcmsys)
4684       # This compiler won't grok `-c -o', but also, the minuso test has
4685       # not run yet.  These depmodes are late enough in the game, and
4686       # so weak that their functioning should not be impacted.
4687       am__obj=conftest.${OBJEXT-o}
4688       am__minus_obj=
4689       ;;
4690     none) break ;;
4691     esac
4692     if depmode=$depmode \
4693        source=sub/conftest.c object=$am__obj \
4694        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4695        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4696          >/dev/null 2>conftest.err &&
4697        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4698        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4699        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4700        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4701       # icc doesn't choke on unknown options, it will just issue warnings
4702       # or remarks (even with -Werror).  So we grep stderr for any message
4703       # that says an option was ignored or not supported.
4704       # When given -MP, icc 7.0 and 7.1 complain thusly:
4705       #   icc: Command line warning: ignoring option '-M'; no argument required
4706       # The diagnosis changed in icc 8.0:
4707       #   icc: Command line remark: option '-MP' not supported
4708       if (grep 'ignoring option' conftest.err ||
4709           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4710         am_cv_CCAS_dependencies_compiler_type=$depmode
4711         break
4712       fi
4713     fi
4714   done
4715
4716   cd ..
4717   rm -rf conftest.dir
4718 else
4719   am_cv_CCAS_dependencies_compiler_type=none
4720 fi
4721
4722 fi
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4724 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4725 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4726
4727  if
4728   test "x$enable_dependency_tracking" != xno \
4729   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4730   am__fastdepCCAS_TRUE=
4731   am__fastdepCCAS_FALSE='#'
4732 else
4733   am__fastdepCCAS_TRUE='#'
4734   am__fastdepCCAS_FALSE=
4735 fi
4736
4737
4738
4739
4740
4741 . ${srcdir}/configure.host
4742
4743 GC_CFLAGS=${gc_cflags}
4744
4745
4746 # Check whether --enable-threads was given.
4747 if test "${enable_threads+set}" = set; then :
4748   enableval=$enable_threads; THREADS=$enableval
4749 else
4750    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
4751 $as_echo_n "checking for thread model used by GCC... " >&6; }
4752     THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4753     if test -z "$THREADS"; then
4754       THREADS=no
4755     fi
4756     if test "$THREADS" = "posix"; then
4757       case "$host" in
4758         *-*-mingw*)
4759           # Adjust thread model if cross-compiling for MinGW.
4760           THREADS=win32
4761           ;;
4762       esac
4763     fi
4764     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
4765 $as_echo "$THREADS" >&6; }
4766 fi
4767
4768
4769 # Check whether --enable-parallel-mark was given.
4770 if test "${enable_parallel_mark+set}" = set; then :
4771   enableval=$enable_parallel_mark; case "$THREADS" in
4772       no | none | single)
4773         as_fn_error $? "Parallel mark requires --enable-threads=x spec" "$LINENO" 5
4774         ;;
4775     esac
4776
4777 fi
4778
4779
4780 # Check whether --enable-cplusplus was given.
4781 if test "${enable_cplusplus+set}" = set; then :
4782   enableval=$enable_cplusplus;
4783 fi
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4813 $as_echo_n "checking for inline... " >&6; }
4814 if ${ac_cv_c_inline+:} false; then :
4815   $as_echo_n "(cached) " >&6
4816 else
4817   ac_cv_c_inline=no
4818 for ac_kw in inline __inline__ __inline; do
4819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h.  */
4821 #ifndef __cplusplus
4822 typedef int foo_t;
4823 static $ac_kw foo_t static_foo () {return 0; }
4824 $ac_kw foo_t foo () {return 0; }
4825 #endif
4826
4827 _ACEOF
4828 if ac_fn_c_try_compile "$LINENO"; then :
4829   ac_cv_c_inline=$ac_kw
4830 fi
4831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4832   test "$ac_cv_c_inline" != no && break
4833 done
4834
4835 fi
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4837 $as_echo "$ac_cv_c_inline" >&6; }
4838
4839 case $ac_cv_c_inline in
4840   inline | yes) ;;
4841   *)
4842     case $ac_cv_c_inline in
4843       no) ac_val=;;
4844       *) ac_val=$ac_cv_c_inline;;
4845     esac
4846     cat >>confdefs.h <<_ACEOF
4847 #ifndef __cplusplus
4848 #define inline $ac_val
4849 #endif
4850 _ACEOF
4851     ;;
4852 esac
4853
4854
4855 THREADDLLIBS=
4856 need_atomic_ops_asm=false
4857 ## Libraries needed to support dynamic loading and/or threads.
4858 case "$THREADS" in
4859  no | none | single)
4860     THREADS=none
4861     ;;
4862  posix | pthreads)
4863     THREADS=posix
4864     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
4865 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
4866 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
4867   $as_echo_n "(cached) " >&6
4868 else
4869   ac_check_lib_save_LIBS=$LIBS
4870 LIBS="-lpthread  $LIBS"
4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h.  */
4873
4874 /* Override any GCC internal prototype to avoid an error.
4875    Use char because int might match the return type of a GCC
4876    builtin and then its argument prototype would still apply.  */
4877 #ifdef __cplusplus
4878 extern "C"
4879 #endif
4880 char pthread_self ();
4881 int
4882 main ()
4883 {
4884 return pthread_self ();
4885   ;
4886   return 0;
4887 }
4888 _ACEOF
4889 if ac_fn_c_try_link "$LINENO"; then :
4890   ac_cv_lib_pthread_pthread_self=yes
4891 else
4892   ac_cv_lib_pthread_pthread_self=no
4893 fi
4894 rm -f core conftest.err conftest.$ac_objext \
4895     conftest$ac_exeext conftest.$ac_ext
4896 LIBS=$ac_check_lib_save_LIBS
4897 fi
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
4899 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
4900 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
4901   THREADDLLIBS="-lpthread"
4902 fi
4903
4904     case "$host" in
4905      x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* \
4906      | x86_64-*-linux* | alpha-*-linux* | sparc*-*-linux*)
4907         $as_echo "#define GC_LINUX_THREADS 1" >>confdefs.h
4908
4909         $as_echo "#define _REENTRANT 1" >>confdefs.h
4910
4911         if test "${enable_parallel_mark}" = yes; then
4912           $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
4913
4914         fi
4915         $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
4916
4917         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&5
4918 $as_echo "$as_me: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&2;};
4919         ;;
4920      *-*-linux*)
4921         $as_echo "#define GC_LINUX_THREADS 1" >>confdefs.h
4922
4923         $as_echo "#define _REENTRANT 1" >>confdefs.h
4924
4925         ;;
4926      *-*-aix*)
4927         $as_echo "#define GC_AIX_THREADS 1" >>confdefs.h
4928
4929         $as_echo "#define _REENTRANT 1" >>confdefs.h
4930
4931         ;;
4932      *-*-hpux11*)
4933         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Only HP/UX 11 POSIX threads are supported.\"" >&5
4934 $as_echo "$as_me: WARNING: \"Only HP/UX 11 POSIX threads are supported.\"" >&2;}
4935         $as_echo "#define GC_HPUX_THREADS 1" >>confdefs.h
4936
4937         $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
4938
4939         if test "${enable_parallel_mark}" = yes; then
4940           $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
4941
4942         fi
4943         $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
4944
4945         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&5
4946 $as_echo "$as_me: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&2;};
4947         THREADDLLIBS="-lpthread -lrt"
4948         # HPUX needs REENTRANT for the _r calls.
4949
4950 $as_echo "#define _REENTRANT 1" >>confdefs.h
4951
4952         ;;
4953      *-*-hpux10*)
4954         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
4955 $as_echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
4956         ;;
4957      *-*-openbsd*)
4958         $as_echo "#define GC_OPENBSD_THREADS 1" >>confdefs.h
4959
4960         THREADDLLIBS=-pthread
4961         INCLUDES="$INCLUDES -pthread"
4962         openbsd_threads=true
4963         ;;
4964      *-*-freebsd*)
4965         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
4966 $as_echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
4967         $as_echo "#define GC_FREEBSD_THREADS 1" >>confdefs.h
4968
4969         INCLUDES="$INCLUDES -pthread"
4970         ;;
4971      *-*-kfreebsd*-gnu)
4972         $as_echo "#define GC_FREEBSD_THREADS 1" >>confdefs.h
4973
4974         INCLUDES="$INCLUDES -pthread"
4975         THREADDLLIBS=-pthread
4976         $as_echo "#define _REENTRANT 1" >>confdefs.h
4977
4978         if test "${enable_parallel_mark}" = yes; then
4979           $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
4980
4981         fi
4982         $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
4983
4984         $as_echo "#define USE_COMPILER_TLS 1" >>confdefs.h
4985
4986         ;;
4987      *-*-gnu*)
4988         $as_echo "#define GC_GNU_THREADS 1" >>confdefs.h
4989
4990         $as_echo "#define _REENTRANT 1" >>confdefs.h
4991
4992         $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
4993
4994         ;;
4995      *-*-netbsd*)
4996         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Only on NetBSD 2.0 or later.\"" >&5
4997 $as_echo "$as_me: WARNING: \"Only on NetBSD 2.0 or later.\"" >&2;}
4998         $as_echo "#define GC_NETBSD_THREADS 1" >>confdefs.h
4999
5000         $as_echo "#define _REENTRANT 1" >>confdefs.h
5001
5002         $as_echo "#define _PTHREADS 1" >>confdefs.h
5003
5004         THREADDLLIBS="-lpthread -lrt"
5005         ;;
5006      *-*-solaris*)
5007         $as_echo "#define GC_SOLARIS_THREADS 1" >>confdefs.h
5008
5009         if test "${enable_parallel_mark}" = yes; then
5010           $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
5011
5012         fi
5013         $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5014
5015         # Need to use alternate thread library, otherwise gctest hangs
5016         # on Solaris 8.
5017         multi_os_directory=`$CC -print-multi-os-directory`
5018         THREADDLLIBS="-L/usr/lib/lwp/$multi_os_directory \
5019                       -R/usr/lib/lwp/$multi_os_directory -lpthread -lrt"
5020         ;;
5021      *-*-irix*)
5022         $as_echo "#define GC_IRIX_THREADS 1" >>confdefs.h
5023
5024         ;;
5025      *-*-cygwin*)
5026         $as_echo "#define GC_WIN32_THREADS 1" >>confdefs.h
5027
5028         if test "${enable_parallel_mark}" = yes; then
5029           $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
5030
5031         fi
5032         $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5033
5034         # Cygwin doesn't have a real libpthread, so Libtool can't link
5035         # against it.
5036         THREADDLLIBS=""
5037         win32_threads=true
5038         ;;
5039      *-*-mingw*)
5040         $as_echo "#define GC_WIN32_PTHREADS 1" >>confdefs.h
5041
5042         # Using win32-pthreads
5043         if test "${enable_parallel_mark}" = yes; then
5044           $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
5045
5046         fi
5047         $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5048
5049         THREADDLLIBS="-lpthread"
5050         win32_threads=true
5051         ;;
5052      *-*-darwin*)
5053         $as_echo "#define GC_DARWIN_THREADS 1" >>confdefs.h
5054
5055         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&5
5056 $as_echo "$as_me: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&2;};
5057         # Parallel-mark is not well-tested on Darwin
5058         if test "${enable_parallel_mark}" = yes; then
5059           $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
5060
5061         fi
5062         $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5063
5064         darwin_threads=true
5065         ;;
5066      *-*-osf*)
5067         $as_echo "#define GC_OSF1_THREADS 1" >>confdefs.h
5068
5069         if test "${enable_parallel_mark}" = yes; then
5070           $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
5071
5072           $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5073
5074           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&5
5075 $as_echo "$as_me: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&2;};
5076           # May want to enable it in other cases, too.
5077           # Measurements have not yet been done.
5078         fi
5079         INCLUDES="$INCLUDES -pthread"
5080         THREADDLLIBS="-lpthread -lrt"
5081         ;;
5082       *)
5083         as_fn_error $? "\"Pthreads not supported by the GC on this platform.\"" "$LINENO" 5
5084         ;;
5085     esac
5086     case "$host" in
5087      sparc*-*-solaris*)
5088         if test "$GCC" != yes; then
5089           CFLAGS="$CFLAGS -O"
5090           need_atomic_ops_asm=true
5091         fi
5092         ;;
5093     esac
5094     ;;
5095  win32)
5096     $as_echo "#define GC_WIN32_THREADS 1" >>confdefs.h
5097
5098     if test "${enable_parallel_mark}" = yes; then
5099       $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
5100
5101       $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5102
5103     else
5104       if test "${enable_shared}" != yes || test "${enable_static}" != no; then
5105         # Imply THREAD_LOCAL_ALLOC unless GC_DLL.
5106         $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5107
5108       fi
5109     fi
5110     win32_threads=true
5111
5112 $as_echo "#define EMPTY_GETENV_RESULTS 1" >>confdefs.h
5113
5114     ;;
5115  dgux386)
5116     THREADS=dgux386
5117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADDLLIBS" >&5
5118 $as_echo "$THREADDLLIBS" >&6; }
5119     # Use pthread GCC switch
5120     THREADDLLIBS=-pthread
5121     if test "${enable_parallel_mark}" = yes; then
5122         $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
5123
5124     fi
5125     $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5126
5127     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&5
5128 $as_echo "$as_me: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&2;};
5129
5130 $as_echo "#define GC_DGUX386_THREADS 1" >>confdefs.h
5131
5132
5133 $as_echo "#define DGUX_THREADS 1" >>confdefs.h
5134
5135     # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
5136     INCLUDES="-pthread $INCLUDES"
5137     ;;
5138  aix)
5139     THREADS=posix
5140     THREADDLLIBS=-lpthread
5141     $as_echo "#define GC_AIX_THREADS 1" >>confdefs.h
5142
5143     $as_echo "#define _REENTRANT 1" >>confdefs.h
5144
5145     ;;
5146  rtems)
5147     THREADS=posix
5148     $as_echo "#define GC_RTEMS_PTHREADS 1" >>confdefs.h
5149
5150     $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5151
5152     ;;
5153  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
5154     as_fn_error $? "thread package $THREADS not yet supported" "$LINENO" 5
5155     ;;
5156  *)
5157     as_fn_error $? "$THREADS is an unknown thread package" "$LINENO" 5
5158     ;;
5159 esac
5160
5161  if test x$THREADS != xnone; then
5162   THREADS_TRUE=
5163   THREADS_FALSE='#'
5164 else
5165   THREADS_TRUE='#'
5166   THREADS_FALSE=
5167 fi
5168
5169  if test x$THREADS = xposix; then
5170   PTHREADS_TRUE=
5171   PTHREADS_FALSE='#'
5172 else
5173   PTHREADS_TRUE='#'
5174   PTHREADS_FALSE=
5175 fi
5176
5177  if test x$darwin_threads = xtrue; then
5178   DARWIN_THREADS_TRUE=
5179   DARWIN_THREADS_FALSE='#'
5180 else
5181   DARWIN_THREADS_TRUE='#'
5182   DARWIN_THREADS_FALSE=
5183 fi
5184
5185  if test x$win32_threads = xtrue; then
5186   WIN32_THREADS_TRUE=
5187   WIN32_THREADS_FALSE='#'
5188 else
5189   WIN32_THREADS_TRUE='#'
5190   WIN32_THREADS_FALSE=
5191 fi
5192
5193  if test x$openbsd_threads = xtrue; then
5194   OPENBSD_THREADS_TRUE=
5195   OPENBSD_THREADS_FALSE='#'
5196 else
5197   OPENBSD_THREADS_TRUE='#'
5198   OPENBSD_THREADS_FALSE=
5199 fi
5200
5201
5202 case "$host" in
5203    powerpc-*-darwin*)
5204       powerpc_darwin=true
5205       ;;
5206 esac
5207
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xlc" >&5
5209 $as_echo_n "checking for xlc... " >&6; }
5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h.  */
5212
5213 int
5214 main ()
5215 {
5216
5217  #ifndef __xlC__
5218  # error
5219  #endif
5220
5221   ;
5222   return 0;
5223 }
5224 _ACEOF
5225 if ac_fn_c_try_compile "$LINENO"; then :
5226   compiler_xlc=yes
5227 else
5228   compiler_xlc=no
5229 fi
5230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compiler_xlc" >&5
5232 $as_echo "$compiler_xlc" >&6; }
5233  if test $compiler_xlc = yes; then
5234   COMPILER_XLC_TRUE=
5235   COMPILER_XLC_FALSE='#'
5236 else
5237   COMPILER_XLC_TRUE='#'
5238   COMPILER_XLC_FALSE=
5239 fi
5240
5241 if test $compiler_xlc = yes -a "$powerpc_darwin" = true; then
5242   # the darwin stack-frame-walking code is completely broken on xlc
5243
5244 $as_echo "#define DARWIN_DONT_PARSE_STACK 1" >>confdefs.h
5245
5246 fi
5247
5248 if test "$GCC" == yes; then
5249   # Disable aliasing optimization unless forced to.
5250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports -fno-strict-aliasing" >&5
5251 $as_echo_n "checking whether gcc supports -fno-strict-aliasing... " >&6; }
5252   ac_cv_fno_strict_aliasing=no
5253   for cflag in $CFLAGS; do
5254     case "$cflag" in
5255       -fstrict-aliasing)
5256         # Opposite option already present
5257         ac_cv_fno_strict_aliasing=skipped
5258         break
5259         ;;
5260     esac
5261   done
5262   if test "$ac_cv_fno_strict_aliasing" != skipped; then
5263     old_CFLAGS="$CFLAGS"
5264     CFLAGS="$CFLAGS -fno-strict-aliasing"
5265     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266 /* end confdefs.h.  */
5267
5268 int
5269 main ()
5270 {
5271
5272   ;
5273   return 0;
5274 }
5275 _ACEOF
5276 if ac_fn_c_try_compile "$LINENO"; then :
5277   ac_cv_fno_strict_aliasing=yes
5278 fi
5279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5280     CFLAGS="$old_CFLAGS"
5281     if test "$ac_cv_fno_strict_aliasing" = yes; then :
5282   CFLAGS="$CFLAGS -fno-strict-aliasing"
5283 fi
5284   fi
5285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fno_strict_aliasing" >&5
5286 $as_echo "$ac_cv_fno_strict_aliasing" >&6; }
5287 fi
5288
5289 case "$host" in
5290 # While IRIX 6 has libdl for the O32 and N32 ABIs, it's missing for N64
5291 # and unnecessary everywhere.
5292   mips-sgi-irix6*) ;;
5293 # We never want libdl on darwin. It is a fake libdl that just ends up making
5294 # dyld calls anyway.  The same applies to Cygwin.
5295   *-*-darwin*) ;;
5296   *-*-cygwin*) ;;
5297   *)
5298     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5299 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5300 if ${ac_cv_lib_dl_dlopen+:} false; then :
5301   $as_echo_n "(cached) " >&6
5302 else
5303   ac_check_lib_save_LIBS=$LIBS
5304 LIBS="-ldl  $LIBS"
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306 /* end confdefs.h.  */
5307
5308 /* Override any GCC internal prototype to avoid an error.
5309    Use char because int might match the return type of a GCC
5310    builtin and then its argument prototype would still apply.  */
5311 #ifdef __cplusplus
5312 extern "C"
5313 #endif
5314 char dlopen ();
5315 int
5316 main ()
5317 {
5318 return dlopen ();
5319   ;
5320   return 0;
5321 }
5322 _ACEOF
5323 if ac_fn_c_try_link "$LINENO"; then :
5324   ac_cv_lib_dl_dlopen=yes
5325 else
5326   ac_cv_lib_dl_dlopen=no
5327 fi
5328 rm -f core conftest.err conftest.$ac_objext \
5329     conftest$ac_exeext conftest.$ac_ext
5330 LIBS=$ac_check_lib_save_LIBS
5331 fi
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5333 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5334 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5335   THREADDLLIBS="$THREADDLLIBS -ldl"
5336 fi
5337
5338     ;;
5339 esac
5340
5341 case "$host" in
5342   *-*-hpux*)
5343     avoid_cpp_lib=yes;;
5344   *)
5345     avoid_cpp_lib=no;
5346     ;;
5347 esac
5348  if test $avoid_cpp_lib = yes; then
5349   AVOID_CPP_LIB_TRUE=
5350   AVOID_CPP_LIB_FALSE='#'
5351 else
5352   AVOID_CPP_LIB_TRUE='#'
5353   AVOID_CPP_LIB_FALSE=
5354 fi
5355
5356
5357 # extra LD Flags which are required for targets
5358 case "${host}" in
5359   *-*-darwin*)
5360     extra_ldflags_libgc=-Wl,-single_module
5361     ;;
5362 esac
5363
5364
5365
5366
5367 target_all=libgc.la
5368
5369
5370 TARGET_ECOS="no"
5371
5372 # Check whether --with-ecos was given.
5373 if test "${with_ecos+set}" = set; then :
5374   withval=$with_ecos; TARGET_ECOS="$with_ecos"
5375
5376 fi
5377
5378
5379 addobjs=
5380 addlibs=
5381 CXXINCLUDES=
5382 case "$TARGET_ECOS" in
5383    no)
5384       ;;
5385    *)
5386
5387 $as_echo "#define ECOS 1" >>confdefs.h
5388
5389       CXXINCLUDES="-I${TARGET_ECOS}/include"
5390       addobjs="$addobjs ecos.lo"
5391       ;;
5392 esac
5393
5394  if test "${enable_cplusplus}" = yes; then
5395   CPLUSPLUS_TRUE=
5396   CPLUSPLUS_FALSE='#'
5397 else
5398   CPLUSPLUS_TRUE='#'
5399   CPLUSPLUS_FALSE=
5400 fi
5401
5402
5403
5404
5405
5406
5407
5408 # Configuration of shared libraries
5409 #
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
5411 $as_echo_n "checking whether to build shared libraries... " >&6; }
5412 # Check whether --enable-shared was given.
5413 if test "${enable_shared+set}" = set; then :
5414   enableval=$enable_shared; p=${PACKAGE-default}
5415     case $enableval in
5416     yes) enable_shared=yes ;;
5417     no) enable_shared=no ;;
5418     *)
5419       enable_shared=no
5420       # Look at the argument we got.  We use all the common list separators.
5421       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5422       for pkg in $enableval; do
5423         IFS="$lt_save_ifs"
5424         if test "X$pkg" = "X$p"; then
5425           enable_shared=yes
5426         fi
5427       done
5428       IFS="$lt_save_ifs"
5429       ;;
5430     esac
5431 else
5432   enable_shared=yes
5433 fi
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444 case "$host" in
5445  alpha-*-openbsd*)
5446      enable_shared=no
5447      ;;
5448  *)
5449      ;;
5450 esac
5451
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
5453 $as_echo "$enable_shared" >&6; }
5454
5455 # Compile with GC_DLL defined unless building static libraries.
5456 if test "${enable_shared}" == yes; then
5457   if test "${enable_static}" == no; then
5458     $as_echo "#define GC_DLL 1" >>confdefs.h
5459
5460     # FIXME: Also pass -fvisibility=hidden option if GCC v4+ and not Win32.
5461   fi
5462 fi
5463
5464 # Configuration of machine-dependent code
5465 #
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which machine-dependent code should be used" >&5
5467 $as_echo_n "checking which machine-dependent code should be used... " >&6; }
5468 machdep=
5469 case "$host" in
5470  alpha-*-openbsd*)
5471     machdep="mach_dep.lo"
5472     if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
5473        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
5474 $as_echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
5475     fi
5476     ;;
5477  alpha*-*-linux*)
5478     machdep="mach_dep.lo"
5479     ;;
5480  i?86-*-solaris2.[89])
5481     # PROC_VDB appears to work in 2.8 and 2.9 but not in 2.10+ (for now).
5482
5483 $as_echo "#define SOLARIS25_PROC_VDB_BUG_FIXED 1" >>confdefs.h
5484
5485     ;;
5486  mipstx39-*-elf*)
5487     machdep="mach_dep.lo"
5488     ;;
5489  mips-dec-ultrix*)
5490     machdep="mach-dep.lo"
5491     ;;
5492  mips-nec-sysv*|mips-unknown-sysv*)
5493     ;;
5494  mips*-*-linux*)
5495     ;;
5496  mips-*-*)
5497     machdep="mach_dep.lo"
5498                 ;;
5499  sparc*-*-linux*)
5500     machdep="mach_dep.lo sparc_mach_dep.lo"
5501     ;;
5502  sparc-*-netbsd*)
5503     machdep="mach_dep.lo sparc_netbsd_mach_dep.lo"
5504     ;;
5505  sparc64-*-netbsd*)
5506     machdep="mach_dep.lo sparc_mach_dep.lo"
5507     ;;
5508  sparc*-*-openbsd*)
5509     machdep="mach_dep.lo sparc_mach_dep.lo"
5510     ;;
5511  sparc-sun-solaris2.3)
5512     machdep="mach_dep.lo sparc_mach_dep.lo"
5513
5514 $as_echo "#define SUNOS53_SHARED_LIB 1" >>confdefs.h
5515
5516     ;;
5517  sparc*-sun-solaris2*)
5518     machdep="mach_dep.lo sparc_mach_dep.lo"
5519     ;;
5520  ia64-*-*)
5521     machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
5522     ;;
5523 esac
5524 if test x"$machdep" = x; then
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $machdep" >&5
5526 $as_echo "$machdep" >&6; }
5527    machdep="mach_dep.lo"
5528 fi
5529 addobjs="$addobjs $machdep"
5530
5531
5532
5533 case `pwd` in
5534   *\ * | *\     *)
5535     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5536 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5537 esac
5538
5539
5540
5541 macro_version='2.4'
5542 macro_revision='1.3293'
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556 ltmain="$ac_aux_dir/ltmain.sh"
5557
5558 # Backslashify metacharacters that are still active within
5559 # double-quoted strings.
5560 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5561
5562 # Same as above, but do not quote variable references.
5563 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5564
5565 # Sed substitution to delay expansion of an escaped shell variable in a
5566 # double_quote_subst'ed string.
5567 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5568
5569 # Sed substitution to delay expansion of an escaped single quote.
5570 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5571
5572 # Sed substitution to avoid accidental globbing in evaled expressions
5573 no_glob_subst='s/\*/\\\*/g'
5574
5575 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5576 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5577 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5578
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5580 $as_echo_n "checking how to print strings... " >&6; }
5581 # Test print first, because it will be a builtin if present.
5582 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5583    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5584   ECHO='print -r --'
5585 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5586   ECHO='printf %s\n'
5587 else
5588   # Use this function as a fallback that always works.
5589   func_fallback_echo ()
5590   {
5591     eval 'cat <<_LTECHO_EOF
5592 $1
5593 _LTECHO_EOF'
5594   }
5595   ECHO='func_fallback_echo'
5596 fi
5597
5598 # func_echo_all arg...
5599 # Invoke $ECHO with all args, space-separated.
5600 func_echo_all ()
5601 {
5602     $ECHO ""
5603 }
5604
5605 case "$ECHO" in
5606   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5607 $as_echo "printf" >&6; } ;;
5608   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5609 $as_echo "print -r" >&6; } ;;
5610   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5611 $as_echo "cat" >&6; } ;;
5612 esac
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5628 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5629 if ${ac_cv_path_SED+:} false; then :
5630   $as_echo_n "(cached) " >&6
5631 else
5632             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5633      for ac_i in 1 2 3 4 5 6 7; do
5634        ac_script="$ac_script$as_nl$ac_script"
5635      done
5636      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5637      { ac_script=; unset ac_script;}
5638      if test -z "$SED"; then
5639   ac_path_SED_found=false
5640   # Loop through the user's path and test for each of PROGNAME-LIST
5641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH
5643 do
5644   IFS=$as_save_IFS
5645   test -z "$as_dir" && as_dir=.
5646     for ac_prog in sed gsed; do
5647     for ac_exec_ext in '' $ac_executable_extensions; do
5648       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5649       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5650 # Check for GNU ac_path_SED and select it if it is found.
5651   # Check for GNU $ac_path_SED
5652 case `"$ac_path_SED" --version 2>&1` in
5653 *GNU*)
5654   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5655 *)
5656   ac_count=0
5657   $as_echo_n 0123456789 >"conftest.in"
5658   while :
5659   do
5660     cat "conftest.in" "conftest.in" >"conftest.tmp"
5661     mv "conftest.tmp" "conftest.in"
5662     cp "conftest.in" "conftest.nl"
5663     $as_echo '' >> "conftest.nl"
5664     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5665     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5666     as_fn_arith $ac_count + 1 && ac_count=$as_val
5667     if test $ac_count -gt ${ac_path_SED_max-0}; then
5668       # Best one so far, save it but keep looking for a better one
5669       ac_cv_path_SED="$ac_path_SED"
5670       ac_path_SED_max=$ac_count
5671     fi
5672     # 10*(2^10) chars as input seems more than enough
5673     test $ac_count -gt 10 && break
5674   done
5675   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5676 esac
5677
5678       $ac_path_SED_found && break 3
5679     done
5680   done
5681   done
5682 IFS=$as_save_IFS
5683   if test -z "$ac_cv_path_SED"; then
5684     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5685   fi
5686 else
5687   ac_cv_path_SED=$SED
5688 fi
5689
5690 fi
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5692 $as_echo "$ac_cv_path_SED" >&6; }
5693  SED="$ac_cv_path_SED"
5694   rm -f conftest.sed
5695
5696 test -z "$SED" && SED=sed
5697 Xsed="$SED -e 1s/^X//"
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5710 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5711 if ${ac_cv_path_GREP+:} false; then :
5712   $as_echo_n "(cached) " >&6
5713 else
5714   if test -z "$GREP"; then
5715   ac_path_GREP_found=false
5716   # Loop through the user's path and test for each of PROGNAME-LIST
5717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5719 do
5720   IFS=$as_save_IFS
5721   test -z "$as_dir" && as_dir=.
5722     for ac_prog in grep ggrep; do
5723     for ac_exec_ext in '' $ac_executable_extensions; do
5724       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5725       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5726 # Check for GNU ac_path_GREP and select it if it is found.
5727   # Check for GNU $ac_path_GREP
5728 case `"$ac_path_GREP" --version 2>&1` in
5729 *GNU*)
5730   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5731 *)
5732   ac_count=0
5733   $as_echo_n 0123456789 >"conftest.in"
5734   while :
5735   do
5736     cat "conftest.in" "conftest.in" >"conftest.tmp"
5737     mv "conftest.tmp" "conftest.in"
5738     cp "conftest.in" "conftest.nl"
5739     $as_echo 'GREP' >> "conftest.nl"
5740     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5741     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5742     as_fn_arith $ac_count + 1 && ac_count=$as_val
5743     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5744       # Best one so far, save it but keep looking for a better one
5745       ac_cv_path_GREP="$ac_path_GREP"
5746       ac_path_GREP_max=$ac_count
5747     fi
5748     # 10*(2^10) chars as input seems more than enough
5749     test $ac_count -gt 10 && break
5750   done
5751   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5752 esac
5753
5754       $ac_path_GREP_found && break 3
5755     done
5756   done
5757   done
5758 IFS=$as_save_IFS
5759   if test -z "$ac_cv_path_GREP"; then
5760     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5761   fi
5762 else
5763   ac_cv_path_GREP=$GREP
5764 fi
5765
5766 fi
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5768 $as_echo "$ac_cv_path_GREP" >&6; }
5769  GREP="$ac_cv_path_GREP"
5770
5771
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5773 $as_echo_n "checking for egrep... " >&6; }
5774 if ${ac_cv_path_EGREP+:} false; then :
5775   $as_echo_n "(cached) " >&6
5776 else
5777   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5778    then ac_cv_path_EGREP="$GREP -E"
5779    else
5780      if test -z "$EGREP"; then
5781   ac_path_EGREP_found=false
5782   # Loop through the user's path and test for each of PROGNAME-LIST
5783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5785 do
5786   IFS=$as_save_IFS
5787   test -z "$as_dir" && as_dir=.
5788     for ac_prog in egrep; do
5789     for ac_exec_ext in '' $ac_executable_extensions; do
5790       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5791       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5792 # Check for GNU ac_path_EGREP and select it if it is found.
5793   # Check for GNU $ac_path_EGREP
5794 case `"$ac_path_EGREP" --version 2>&1` in
5795 *GNU*)
5796   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5797 *)
5798   ac_count=0
5799   $as_echo_n 0123456789 >"conftest.in"
5800   while :
5801   do
5802     cat "conftest.in" "conftest.in" >"conftest.tmp"
5803     mv "conftest.tmp" "conftest.in"
5804     cp "conftest.in" "conftest.nl"
5805     $as_echo 'EGREP' >> "conftest.nl"
5806     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5807     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5808     as_fn_arith $ac_count + 1 && ac_count=$as_val
5809     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5810       # Best one so far, save it but keep looking for a better one
5811       ac_cv_path_EGREP="$ac_path_EGREP"
5812       ac_path_EGREP_max=$ac_count
5813     fi
5814     # 10*(2^10) chars as input seems more than enough
5815     test $ac_count -gt 10 && break
5816   done
5817   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5818 esac
5819
5820       $ac_path_EGREP_found && break 3
5821     done
5822   done
5823   done
5824 IFS=$as_save_IFS
5825   if test -z "$ac_cv_path_EGREP"; then
5826     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5827   fi
5828 else
5829   ac_cv_path_EGREP=$EGREP
5830 fi
5831
5832    fi
5833 fi
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5835 $as_echo "$ac_cv_path_EGREP" >&6; }
5836  EGREP="$ac_cv_path_EGREP"
5837
5838
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5840 $as_echo_n "checking for fgrep... " >&6; }
5841 if ${ac_cv_path_FGREP+:} false; then :
5842   $as_echo_n "(cached) " >&6
5843 else
5844   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5845    then ac_cv_path_FGREP="$GREP -F"
5846    else
5847      if test -z "$FGREP"; then
5848   ac_path_FGREP_found=false
5849   # Loop through the user's path and test for each of PROGNAME-LIST
5850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5852 do
5853   IFS=$as_save_IFS
5854   test -z "$as_dir" && as_dir=.
5855     for ac_prog in fgrep; do
5856     for ac_exec_ext in '' $ac_executable_extensions; do
5857       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5858       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5859 # Check for GNU ac_path_FGREP and select it if it is found.
5860   # Check for GNU $ac_path_FGREP
5861 case `"$ac_path_FGREP" --version 2>&1` in
5862 *GNU*)
5863   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5864 *)
5865   ac_count=0
5866   $as_echo_n 0123456789 >"conftest.in"
5867   while :
5868   do
5869     cat "conftest.in" "conftest.in" >"conftest.tmp"
5870     mv "conftest.tmp" "conftest.in"
5871     cp "conftest.in" "conftest.nl"
5872     $as_echo 'FGREP' >> "conftest.nl"
5873     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5874     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5875     as_fn_arith $ac_count + 1 && ac_count=$as_val
5876     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5877       # Best one so far, save it but keep looking for a better one
5878       ac_cv_path_FGREP="$ac_path_FGREP"
5879       ac_path_FGREP_max=$ac_count
5880     fi
5881     # 10*(2^10) chars as input seems more than enough
5882     test $ac_count -gt 10 && break
5883   done
5884   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5885 esac
5886
5887       $ac_path_FGREP_found && break 3
5888     done
5889   done
5890   done
5891 IFS=$as_save_IFS
5892   if test -z "$ac_cv_path_FGREP"; then
5893     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5894   fi
5895 else
5896   ac_cv_path_FGREP=$FGREP
5897 fi
5898
5899    fi
5900 fi
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5902 $as_echo "$ac_cv_path_FGREP" >&6; }
5903  FGREP="$ac_cv_path_FGREP"
5904
5905
5906 test -z "$GREP" && GREP=grep
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926 # Check whether --with-gnu-ld was given.
5927 if test "${with_gnu_ld+set}" = set; then :
5928   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5929 else
5930   with_gnu_ld=no
5931 fi
5932
5933 ac_prog=ld
5934 if test "$GCC" = yes; then
5935   # Check if gcc -print-prog-name=ld gives a path.
5936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5937 $as_echo_n "checking for ld used by $CC... " >&6; }
5938   case $host in
5939   *-*-mingw*)
5940     # gcc leaves a trailing carriage return which upsets mingw
5941     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5942   *)
5943     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5944   esac
5945   case $ac_prog in
5946     # Accept absolute paths.
5947     [\\/]* | ?:[\\/]*)
5948       re_direlt='/[^/][^/]*/\.\./'
5949       # Canonicalize the pathname of ld
5950       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5951       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5952         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5953       done
5954       test -z "$LD" && LD="$ac_prog"
5955       ;;
5956   "")
5957     # If it fails, then pretend we aren't using GCC.
5958     ac_prog=ld
5959     ;;
5960   *)
5961     # If it is relative, then search for the first ld in PATH.
5962     with_gnu_ld=unknown
5963     ;;
5964   esac
5965 elif test "$with_gnu_ld" = yes; then
5966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5967 $as_echo_n "checking for GNU ld... " >&6; }
5968 else
5969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5970 $as_echo_n "checking for non-GNU ld... " >&6; }
5971 fi
5972 if ${lt_cv_path_LD+:} false; then :
5973   $as_echo_n "(cached) " >&6
5974 else
5975   if test -z "$LD"; then
5976   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5977   for ac_dir in $PATH; do
5978     IFS="$lt_save_ifs"
5979     test -z "$ac_dir" && ac_dir=.
5980     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5981       lt_cv_path_LD="$ac_dir/$ac_prog"
5982       # Check to see if the program is GNU ld.  I'd rather use --version,
5983       # but apparently some variants of GNU ld only accept -v.
5984       # Break only if it was the GNU/non-GNU ld that we prefer.
5985       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5986       *GNU* | *'with BFD'*)
5987         test "$with_gnu_ld" != no && break
5988         ;;
5989       *)
5990         test "$with_gnu_ld" != yes && break
5991         ;;
5992       esac
5993     fi
5994   done
5995   IFS="$lt_save_ifs"
5996 else
5997   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5998 fi
5999 fi
6000
6001 LD="$lt_cv_path_LD"
6002 if test -n "$LD"; then
6003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6004 $as_echo "$LD" >&6; }
6005 else
6006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6007 $as_echo "no" >&6; }
6008 fi
6009 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6011 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6012 if ${lt_cv_prog_gnu_ld+:} false; then :
6013   $as_echo_n "(cached) " >&6
6014 else
6015   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6016 case `$LD -v 2>&1 </dev/null` in
6017 *GNU* | *'with BFD'*)
6018   lt_cv_prog_gnu_ld=yes
6019   ;;
6020 *)
6021   lt_cv_prog_gnu_ld=no
6022   ;;
6023 esac
6024 fi
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6026 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6027 with_gnu_ld=$lt_cv_prog_gnu_ld
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6038 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6039 if ${lt_cv_path_NM+:} false; then :
6040   $as_echo_n "(cached) " >&6
6041 else
6042   if test -n "$NM"; then
6043   # Let the user override the test.
6044   lt_cv_path_NM="$NM"
6045 else
6046   lt_nm_to_check="${ac_tool_prefix}nm"
6047   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6048     lt_nm_to_check="$lt_nm_to_check nm"
6049   fi
6050   for lt_tmp_nm in $lt_nm_to_check; do
6051     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6052     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6053       IFS="$lt_save_ifs"
6054       test -z "$ac_dir" && ac_dir=.
6055       tmp_nm="$ac_dir/$lt_tmp_nm"
6056       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6057         # Check to see if the nm accepts a BSD-compat flag.
6058         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6059         #   nm: unknown option "B" ignored
6060         # Tru64's nm complains that /dev/null is an invalid object file
6061         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6062         */dev/null* | *'Invalid file or object type'*)
6063           lt_cv_path_NM="$tmp_nm -B"
6064           break
6065           ;;
6066         *)
6067           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6068           */dev/null*)
6069             lt_cv_path_NM="$tmp_nm -p"
6070             break
6071             ;;
6072           *)
6073             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6074             continue # so that we can try to find one that supports BSD flags
6075             ;;
6076           esac
6077           ;;
6078         esac
6079       fi
6080     done
6081     IFS="$lt_save_ifs"
6082   done
6083   : ${lt_cv_path_NM=no}
6084 fi
6085 fi
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6087 $as_echo "$lt_cv_path_NM" >&6; }
6088 if test "$lt_cv_path_NM" != "no"; then
6089   NM="$lt_cv_path_NM"
6090 else
6091   # Didn't find any BSD compatible name lister, look for dumpbin.
6092   if test -n "$DUMPBIN"; then :
6093     # Let the user override the test.
6094   else
6095     if test -n "$ac_tool_prefix"; then
6096   for ac_prog in dumpbin "link -dump"
6097   do
6098     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6099 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if ${ac_cv_prog_DUMPBIN+:} false; then :
6103   $as_echo_n "(cached) " >&6
6104 else
6105   if test -n "$DUMPBIN"; then
6106   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6107 else
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH
6110 do
6111   IFS=$as_save_IFS
6112   test -z "$as_dir" && as_dir=.
6113     for ac_exec_ext in '' $ac_executable_extensions; do
6114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6115     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6117     break 2
6118   fi
6119 done
6120   done
6121 IFS=$as_save_IFS
6122
6123 fi
6124 fi
6125 DUMPBIN=$ac_cv_prog_DUMPBIN
6126 if test -n "$DUMPBIN"; then
6127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6128 $as_echo "$DUMPBIN" >&6; }
6129 else
6130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131 $as_echo "no" >&6; }
6132 fi
6133
6134
6135     test -n "$DUMPBIN" && break
6136   done
6137 fi
6138 if test -z "$DUMPBIN"; then
6139   ac_ct_DUMPBIN=$DUMPBIN
6140   for ac_prog in dumpbin "link -dump"
6141 do
6142   # Extract the first word of "$ac_prog", so it can be a program name with args.
6143 set dummy $ac_prog; ac_word=$2
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6145 $as_echo_n "checking for $ac_word... " >&6; }
6146 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6147   $as_echo_n "(cached) " >&6
6148 else
6149   if test -n "$ac_ct_DUMPBIN"; then
6150   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6151 else
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH
6154 do
6155   IFS=$as_save_IFS
6156   test -z "$as_dir" && as_dir=.
6157     for ac_exec_ext in '' $ac_executable_extensions; do
6158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6159     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6161     break 2
6162   fi
6163 done
6164   done
6165 IFS=$as_save_IFS
6166
6167 fi
6168 fi
6169 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6170 if test -n "$ac_ct_DUMPBIN"; then
6171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6172 $as_echo "$ac_ct_DUMPBIN" >&6; }
6173 else
6174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175 $as_echo "no" >&6; }
6176 fi
6177
6178
6179   test -n "$ac_ct_DUMPBIN" && break
6180 done
6181
6182   if test "x$ac_ct_DUMPBIN" = x; then
6183     DUMPBIN=":"
6184   else
6185     case $cross_compiling:$ac_tool_warned in
6186 yes:)
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6189 ac_tool_warned=yes ;;
6190 esac
6191     DUMPBIN=$ac_ct_DUMPBIN
6192   fi
6193 fi
6194
6195     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6196     *COFF*)
6197       DUMPBIN="$DUMPBIN -symbols"
6198       ;;
6199     *)
6200       DUMPBIN=:
6201       ;;
6202     esac
6203   fi
6204
6205   if test "$DUMPBIN" != ":"; then
6206     NM="$DUMPBIN"
6207   fi
6208 fi
6209 test -z "$NM" && NM=nm
6210
6211
6212
6213
6214
6215
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6217 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6218 if ${lt_cv_nm_interface+:} false; then :
6219   $as_echo_n "(cached) " >&6
6220 else
6221   lt_cv_nm_interface="BSD nm"
6222   echo "int some_variable = 0;" > conftest.$ac_ext
6223   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6224   (eval "$ac_compile" 2>conftest.err)
6225   cat conftest.err >&5
6226   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6227   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6228   cat conftest.err >&5
6229   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6230   cat conftest.out >&5
6231   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6232     lt_cv_nm_interface="MS dumpbin"
6233   fi
6234   rm -f conftest*
6235 fi
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6237 $as_echo "$lt_cv_nm_interface" >&6; }
6238
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6240 $as_echo_n "checking whether ln -s works... " >&6; }
6241 LN_S=$as_ln_s
6242 if test "$LN_S" = "ln -s"; then
6243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6244 $as_echo "yes" >&6; }
6245 else
6246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6247 $as_echo "no, using $LN_S" >&6; }
6248 fi
6249
6250 # find the maximum length of command line arguments
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6252 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6253 if ${lt_cv_sys_max_cmd_len+:} false; then :
6254   $as_echo_n "(cached) " >&6
6255 else
6256     i=0
6257   teststring="ABCD"
6258
6259   case $build_os in
6260   msdosdjgpp*)
6261     # On DJGPP, this test can blow up pretty badly due to problems in libc
6262     # (any single argument exceeding 2000 bytes causes a buffer overrun
6263     # during glob expansion).  Even if it were fixed, the result of this
6264     # check would be larger than it should be.
6265     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6266     ;;
6267
6268   gnu*)
6269     # Under GNU Hurd, this test is not required because there is
6270     # no limit to the length of command line arguments.
6271     # Libtool will interpret -1 as no limit whatsoever
6272     lt_cv_sys_max_cmd_len=-1;
6273     ;;
6274
6275   cygwin* | mingw* | cegcc*)
6276     # On Win9x/ME, this test blows up -- it succeeds, but takes
6277     # about 5 minutes as the teststring grows exponentially.
6278     # Worse, since 9x/ME are not pre-emptively multitasking,
6279     # you end up with a "frozen" computer, even though with patience
6280     # the test eventually succeeds (with a max line length of 256k).
6281     # Instead, let's just punt: use the minimum linelength reported by
6282     # all of the supported platforms: 8192 (on NT/2K/XP).
6283     lt_cv_sys_max_cmd_len=8192;
6284     ;;
6285
6286   mint*)
6287     # On MiNT this can take a long time and run out of memory.
6288     lt_cv_sys_max_cmd_len=8192;
6289     ;;
6290
6291   amigaos*)
6292     # On AmigaOS with pdksh, this test takes hours, literally.
6293     # So we just punt and use a minimum line length of 8192.
6294     lt_cv_sys_max_cmd_len=8192;
6295     ;;
6296
6297   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6298     # This has been around since 386BSD, at least.  Likely further.
6299     if test -x /sbin/sysctl; then
6300       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6301     elif test -x /usr/sbin/sysctl; then
6302       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6303     else
6304       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6305     fi
6306     # And add a safety zone
6307     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6308     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6309     ;;
6310
6311   interix*)
6312     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6313     lt_cv_sys_max_cmd_len=196608
6314     ;;
6315
6316   osf*)
6317     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6318     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6319     # nice to cause kernel panics so lets avoid the loop below.
6320     # First set a reasonable default.
6321     lt_cv_sys_max_cmd_len=16384
6322     #
6323     if test -x /sbin/sysconfig; then
6324       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6325         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6326       esac
6327     fi
6328     ;;
6329   sco3.2v5*)
6330     lt_cv_sys_max_cmd_len=102400
6331     ;;
6332   sysv5* | sco5v6* | sysv4.2uw2*)
6333     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6334     if test -n "$kargmax"; then
6335       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6336     else
6337       lt_cv_sys_max_cmd_len=32768
6338     fi
6339     ;;
6340   *)
6341     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6342     if test -n "$lt_cv_sys_max_cmd_len"; then
6343       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6344       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6345     else
6346       # Make teststring a little bigger before we do anything with it.
6347       # a 1K string should be a reasonable start.
6348       for i in 1 2 3 4 5 6 7 8 ; do
6349         teststring=$teststring$teststring
6350       done
6351       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6352       # If test is not a shell built-in, we'll probably end up computing a
6353       # maximum length that is only half of the actual maximum length, but
6354       # we can't tell.
6355       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6356                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6357               test $i != 17 # 1/2 MB should be enough
6358       do
6359         i=`expr $i + 1`
6360         teststring=$teststring$teststring
6361       done
6362       # Only check the string length outside the loop.
6363       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6364       teststring=
6365       # Add a significant safety factor because C++ compilers can tack on
6366       # massive amounts of additional arguments before passing them to the
6367       # linker.  It appears as though 1/2 is a usable value.
6368       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6369     fi
6370     ;;
6371   esac
6372
6373 fi
6374
6375 if test -n $lt_cv_sys_max_cmd_len ; then
6376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6377 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6378 else
6379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6380 $as_echo "none" >&6; }
6381 fi
6382 max_cmd_len=$lt_cv_sys_max_cmd_len
6383
6384
6385
6386
6387
6388
6389 : ${CP="cp -f"}
6390 : ${MV="mv -f"}
6391 : ${RM="rm -f"}
6392
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6394 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6395 # Try some XSI features
6396 xsi_shell=no
6397 ( _lt_dummy="a/b/c"
6398   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6399       = c,a/b,b/c, \
6400     && eval 'test $(( 1 + 1 )) -eq 2 \
6401     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6402   && xsi_shell=yes
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6404 $as_echo "$xsi_shell" >&6; }
6405
6406
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6408 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6409 lt_shell_append=no
6410 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6411     >/dev/null 2>&1 \
6412   && lt_shell_append=yes
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6414 $as_echo "$lt_shell_append" >&6; }
6415
6416
6417 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6418   lt_unset=unset
6419 else
6420   lt_unset=false
6421 fi
6422
6423
6424
6425
6426
6427 # test EBCDIC or ASCII
6428 case `echo X|tr X '\101'` in
6429  A) # ASCII based system
6430     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6431   lt_SP2NL='tr \040 \012'
6432   lt_NL2SP='tr \015\012 \040\040'
6433   ;;
6434  *) # EBCDIC based system
6435   lt_SP2NL='tr \100 \n'
6436   lt_NL2SP='tr \r\n \100\100'
6437   ;;
6438 esac
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6449 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6450 if ${lt_cv_to_host_file_cmd+:} false; then :
6451   $as_echo_n "(cached) " >&6
6452 else
6453   case $host in
6454   *-*-mingw* )
6455     case $build in
6456       *-*-mingw* ) # actually msys
6457         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6458         ;;
6459       *-*-cygwin* )
6460         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6461         ;;
6462       * ) # otherwise, assume *nix
6463         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6464         ;;
6465     esac
6466     ;;
6467   *-*-cygwin* )
6468     case $build in
6469       *-*-mingw* ) # actually msys
6470         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6471         ;;
6472       *-*-cygwin* )
6473         lt_cv_to_host_file_cmd=func_convert_file_noop
6474         ;;
6475       * ) # otherwise, assume *nix
6476         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6477         ;;
6478     esac
6479     ;;
6480   * ) # unhandled hosts (and "normal" native builds)
6481     lt_cv_to_host_file_cmd=func_convert_file_noop
6482     ;;
6483 esac
6484
6485 fi
6486
6487 to_host_file_cmd=$lt_cv_to_host_file_cmd
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6489 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6490
6491
6492
6493
6494
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6496 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6497 if ${lt_cv_to_tool_file_cmd+:} false; then :
6498   $as_echo_n "(cached) " >&6
6499 else
6500   #assume ordinary cross tools, or native build.
6501 lt_cv_to_tool_file_cmd=func_convert_file_noop
6502 case $host in
6503   *-*-mingw* )
6504     case $build in
6505       *-*-mingw* ) # actually msys
6506         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6507         ;;
6508     esac
6509     ;;
6510 esac
6511
6512 fi
6513
6514 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6516 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6517
6518
6519
6520
6521
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6523 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6524 if ${lt_cv_ld_reload_flag+:} false; then :
6525   $as_echo_n "(cached) " >&6
6526 else
6527   lt_cv_ld_reload_flag='-r'
6528 fi
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6530 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6531 reload_flag=$lt_cv_ld_reload_flag
6532 case $reload_flag in
6533 "" | " "*) ;;
6534 *) reload_flag=" $reload_flag" ;;
6535 esac
6536 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6537 case $host_os in
6538   cygwin* | mingw* | pw32* | cegcc*)
6539     if test "$GCC" != yes; then
6540       reload_cmds=false
6541     fi
6542     ;;
6543   darwin*)
6544     if test "$GCC" = yes; then
6545       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6546     else
6547       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6548     fi
6549     ;;
6550 esac
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560 if test -n "$ac_tool_prefix"; then
6561   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6562 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6564 $as_echo_n "checking for $ac_word... " >&6; }
6565 if ${ac_cv_prog_OBJDUMP+:} false; then :
6566   $as_echo_n "(cached) " >&6
6567 else
6568   if test -n "$OBJDUMP"; then
6569   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6570 else
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 for as_dir in $PATH
6573 do
6574   IFS=$as_save_IFS
6575   test -z "$as_dir" && as_dir=.
6576     for ac_exec_ext in '' $ac_executable_extensions; do
6577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6578     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6580     break 2
6581   fi
6582 done
6583   done
6584 IFS=$as_save_IFS
6585
6586 fi
6587 fi
6588 OBJDUMP=$ac_cv_prog_OBJDUMP
6589 if test -n "$OBJDUMP"; then
6590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6591 $as_echo "$OBJDUMP" >&6; }
6592 else
6593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594 $as_echo "no" >&6; }
6595 fi
6596
6597
6598 fi
6599 if test -z "$ac_cv_prog_OBJDUMP"; then
6600   ac_ct_OBJDUMP=$OBJDUMP
6601   # Extract the first word of "objdump", so it can be a program name with args.
6602 set dummy objdump; ac_word=$2
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604 $as_echo_n "checking for $ac_word... " >&6; }
6605 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6606   $as_echo_n "(cached) " >&6
6607 else
6608   if test -n "$ac_ct_OBJDUMP"; then
6609   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6610 else
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 for as_dir in $PATH
6613 do
6614   IFS=$as_save_IFS
6615   test -z "$as_dir" && as_dir=.
6616     for ac_exec_ext in '' $ac_executable_extensions; do
6617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6618     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6620     break 2
6621   fi
6622 done
6623   done
6624 IFS=$as_save_IFS
6625
6626 fi
6627 fi
6628 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6629 if test -n "$ac_ct_OBJDUMP"; then
6630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6631 $as_echo "$ac_ct_OBJDUMP" >&6; }
6632 else
6633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; }
6635 fi
6636
6637   if test "x$ac_ct_OBJDUMP" = x; then
6638     OBJDUMP="false"
6639   else
6640     case $cross_compiling:$ac_tool_warned in
6641 yes:)
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6644 ac_tool_warned=yes ;;
6645 esac
6646     OBJDUMP=$ac_ct_OBJDUMP
6647   fi
6648 else
6649   OBJDUMP="$ac_cv_prog_OBJDUMP"
6650 fi
6651
6652 test -z "$OBJDUMP" && OBJDUMP=objdump
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6663 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6664 if ${lt_cv_deplibs_check_method+:} false; then :
6665   $as_echo_n "(cached) " >&6
6666 else
6667   lt_cv_file_magic_cmd='$MAGIC_CMD'
6668 lt_cv_file_magic_test_file=
6669 lt_cv_deplibs_check_method='unknown'
6670 # Need to set the preceding variable on all platforms that support
6671 # interlibrary dependencies.
6672 # 'none' -- dependencies not supported.
6673 # `unknown' -- same as none, but documents that we really don't know.
6674 # 'pass_all' -- all dependencies passed with no checks.
6675 # 'test_compile' -- check by making test program.
6676 # 'file_magic [[regex]]' -- check by looking for files in library path
6677 # which responds to the $file_magic_cmd with a given extended regex.
6678 # If you have `file' or equivalent on your system and you're not sure
6679 # whether `pass_all' will *always* work, you probably want this one.
6680
6681 case $host_os in
6682 aix[4-9]*)
6683   lt_cv_deplibs_check_method=pass_all
6684   ;;
6685
6686 beos*)
6687   lt_cv_deplibs_check_method=pass_all
6688   ;;
6689
6690 bsdi[45]*)
6691   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6692   lt_cv_file_magic_cmd='/usr/bin/file -L'
6693   lt_cv_file_magic_test_file=/shlib/libc.so
6694   ;;
6695
6696 cygwin*)
6697   # func_win32_libid is a shell function defined in ltmain.sh
6698   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6699   lt_cv_file_magic_cmd='func_win32_libid'
6700   ;;
6701
6702 mingw* | pw32*)
6703   # Base MSYS/MinGW do not provide the 'file' command needed by
6704   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6705   # unless we find 'file', for example because we are cross-compiling.
6706   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6707   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6708     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6709     lt_cv_file_magic_cmd='func_win32_libid'
6710   else
6711     # Keep this pattern in sync with the one in func_win32_libid.
6712     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6713     lt_cv_file_magic_cmd='$OBJDUMP -f'
6714   fi
6715   ;;
6716
6717 cegcc*)
6718   # use the weaker test based on 'objdump'. See mingw*.
6719   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6720   lt_cv_file_magic_cmd='$OBJDUMP -f'
6721   ;;
6722
6723 darwin* | rhapsody*)
6724   lt_cv_deplibs_check_method=pass_all
6725   ;;
6726
6727 freebsd* | dragonfly*)
6728   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6729     case $host_cpu in
6730     i*86 )
6731       # Not sure whether the presence of OpenBSD here was a mistake.
6732       # Let's accept both of them until this is cleared up.
6733       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6734       lt_cv_file_magic_cmd=/usr/bin/file
6735       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6736       ;;
6737     esac
6738   else
6739     lt_cv_deplibs_check_method=pass_all
6740   fi
6741   ;;
6742
6743 gnu*)
6744   lt_cv_deplibs_check_method=pass_all
6745   ;;
6746
6747 haiku*)
6748   lt_cv_deplibs_check_method=pass_all
6749   ;;
6750
6751 hpux10.20* | hpux11*)
6752   lt_cv_file_magic_cmd=/usr/bin/file
6753   case $host_cpu in
6754   ia64*)
6755     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6756     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6757     ;;
6758   hppa*64*)
6759     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]'
6760     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6761     ;;
6762   *)
6763     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6764     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6765     ;;
6766   esac
6767   ;;
6768
6769 interix[3-9]*)
6770   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6771   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6772   ;;
6773
6774 irix5* | irix6* | nonstopux*)
6775   case $LD in
6776   *-32|*"-32 ") libmagic=32-bit;;
6777   *-n32|*"-n32 ") libmagic=N32;;
6778   *-64|*"-64 ") libmagic=64-bit;;
6779   *) libmagic=never-match;;
6780   esac
6781   lt_cv_deplibs_check_method=pass_all
6782   ;;
6783
6784 # This must be Linux ELF.
6785 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6786   lt_cv_deplibs_check_method=pass_all
6787   ;;
6788
6789 netbsd*)
6790   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6791     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6792   else
6793     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6794   fi
6795   ;;
6796
6797 newos6*)
6798   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6799   lt_cv_file_magic_cmd=/usr/bin/file
6800   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6801   ;;
6802
6803 *nto* | *qnx*)
6804   lt_cv_deplibs_check_method=pass_all
6805   ;;
6806
6807 openbsd*)
6808   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6809     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6810   else
6811     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6812   fi
6813   ;;
6814
6815 osf3* | osf4* | osf5*)
6816   lt_cv_deplibs_check_method=pass_all
6817   ;;
6818
6819 rdos*)
6820   lt_cv_deplibs_check_method=pass_all
6821   ;;
6822
6823 solaris*)
6824   lt_cv_deplibs_check_method=pass_all
6825   ;;
6826
6827 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6828   lt_cv_deplibs_check_method=pass_all
6829   ;;
6830
6831 sysv4 | sysv4.3*)
6832   case $host_vendor in
6833   motorola)
6834     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]'
6835     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6836     ;;
6837   ncr)
6838     lt_cv_deplibs_check_method=pass_all
6839     ;;
6840   sequent)
6841     lt_cv_file_magic_cmd='/bin/file'
6842     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6843     ;;
6844   sni)
6845     lt_cv_file_magic_cmd='/bin/file'
6846     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6847     lt_cv_file_magic_test_file=/lib/libc.so
6848     ;;
6849   siemens)
6850     lt_cv_deplibs_check_method=pass_all
6851     ;;
6852   pc)
6853     lt_cv_deplibs_check_method=pass_all
6854     ;;
6855   esac
6856   ;;
6857
6858 tpf*)
6859   lt_cv_deplibs_check_method=pass_all
6860   ;;
6861 esac
6862
6863 fi
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6865 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6866
6867 file_magic_glob=
6868 want_nocaseglob=no
6869 if test "$build" = "$host"; then
6870   case $host_os in
6871   mingw* | pw32*)
6872     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6873       want_nocaseglob=yes
6874     else
6875       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6876     fi
6877     ;;
6878   esac
6879 fi
6880
6881 file_magic_cmd=$lt_cv_file_magic_cmd
6882 deplibs_check_method=$lt_cv_deplibs_check_method
6883 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906 if test -n "$ac_tool_prefix"; then
6907   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6908 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6910 $as_echo_n "checking for $ac_word... " >&6; }
6911 if ${ac_cv_prog_DLLTOOL+:} false; then :
6912   $as_echo_n "(cached) " >&6
6913 else
6914   if test -n "$DLLTOOL"; then
6915   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6916 else
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 for as_dir in $PATH
6919 do
6920   IFS=$as_save_IFS
6921   test -z "$as_dir" && as_dir=.
6922     for ac_exec_ext in '' $ac_executable_extensions; do
6923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6924     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6926     break 2
6927   fi
6928 done
6929   done
6930 IFS=$as_save_IFS
6931
6932 fi
6933 fi
6934 DLLTOOL=$ac_cv_prog_DLLTOOL
6935 if test -n "$DLLTOOL"; then
6936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6937 $as_echo "$DLLTOOL" >&6; }
6938 else
6939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940 $as_echo "no" >&6; }
6941 fi
6942
6943
6944 fi
6945 if test -z "$ac_cv_prog_DLLTOOL"; then
6946   ac_ct_DLLTOOL=$DLLTOOL
6947   # Extract the first word of "dlltool", so it can be a program name with args.
6948 set dummy dlltool; ac_word=$2
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6950 $as_echo_n "checking for $ac_word... " >&6; }
6951 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6952   $as_echo_n "(cached) " >&6
6953 else
6954   if test -n "$ac_ct_DLLTOOL"; then
6955   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6956 else
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 for as_dir in $PATH
6959 do
6960   IFS=$as_save_IFS
6961   test -z "$as_dir" && as_dir=.
6962     for ac_exec_ext in '' $ac_executable_extensions; do
6963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6964     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6966     break 2
6967   fi
6968 done
6969   done
6970 IFS=$as_save_IFS
6971
6972 fi
6973 fi
6974 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6975 if test -n "$ac_ct_DLLTOOL"; then
6976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6977 $as_echo "$ac_ct_DLLTOOL" >&6; }
6978 else
6979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980 $as_echo "no" >&6; }
6981 fi
6982
6983   if test "x$ac_ct_DLLTOOL" = x; then
6984     DLLTOOL="false"
6985   else
6986     case $cross_compiling:$ac_tool_warned in
6987 yes:)
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6990 ac_tool_warned=yes ;;
6991 esac
6992     DLLTOOL=$ac_ct_DLLTOOL
6993   fi
6994 else
6995   DLLTOOL="$ac_cv_prog_DLLTOOL"
6996 fi
6997
6998 test -z "$DLLTOOL" && DLLTOOL=dlltool
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7010 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7011 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7012   $as_echo_n "(cached) " >&6
7013 else
7014   lt_cv_sharedlib_from_linklib_cmd='unknown'
7015
7016 case $host_os in
7017 cygwin* | mingw* | pw32* | cegcc*)
7018   # two different shell functions defined in ltmain.sh
7019   # decide which to use based on capabilities of $DLLTOOL
7020   case `$DLLTOOL --help 2>&1` in
7021   *--identify-strict*)
7022     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7023     ;;
7024   *)
7025     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7026     ;;
7027   esac
7028   ;;
7029 *)
7030   # fallback: assume linklib IS sharedlib
7031   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7032   ;;
7033 esac
7034
7035 fi
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7037 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7038 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7039 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7040
7041
7042
7043
7044
7045
7046
7047 if test -n "$ac_tool_prefix"; then
7048   for ac_prog in ar
7049   do
7050     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7051 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7053 $as_echo_n "checking for $ac_word... " >&6; }
7054 if ${ac_cv_prog_AR+:} false; then :
7055   $as_echo_n "(cached) " >&6
7056 else
7057   if test -n "$AR"; then
7058   ac_cv_prog_AR="$AR" # Let the user override the test.
7059 else
7060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 for as_dir in $PATH
7062 do
7063   IFS=$as_save_IFS
7064   test -z "$as_dir" && as_dir=.
7065     for ac_exec_ext in '' $ac_executable_extensions; do
7066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7067     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7069     break 2
7070   fi
7071 done
7072   done
7073 IFS=$as_save_IFS
7074
7075 fi
7076 fi
7077 AR=$ac_cv_prog_AR
7078 if test -n "$AR"; then
7079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7080 $as_echo "$AR" >&6; }
7081 else
7082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083 $as_echo "no" >&6; }
7084 fi
7085
7086
7087     test -n "$AR" && break
7088   done
7089 fi
7090 if test -z "$AR"; then
7091   ac_ct_AR=$AR
7092   for ac_prog in ar
7093 do
7094   # Extract the first word of "$ac_prog", so it can be a program name with args.
7095 set dummy $ac_prog; ac_word=$2
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097 $as_echo_n "checking for $ac_word... " >&6; }
7098 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7099   $as_echo_n "(cached) " >&6
7100 else
7101   if test -n "$ac_ct_AR"; then
7102   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7103 else
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7106 do
7107   IFS=$as_save_IFS
7108   test -z "$as_dir" && as_dir=.
7109     for ac_exec_ext in '' $ac_executable_extensions; do
7110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7111     ac_cv_prog_ac_ct_AR="$ac_prog"
7112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113     break 2
7114   fi
7115 done
7116   done
7117 IFS=$as_save_IFS
7118
7119 fi
7120 fi
7121 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7122 if test -n "$ac_ct_AR"; then
7123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7124 $as_echo "$ac_ct_AR" >&6; }
7125 else
7126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127 $as_echo "no" >&6; }
7128 fi
7129
7130
7131   test -n "$ac_ct_AR" && break
7132 done
7133
7134   if test "x$ac_ct_AR" = x; then
7135     AR="false"
7136   else
7137     case $cross_compiling:$ac_tool_warned in
7138 yes:)
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7141 ac_tool_warned=yes ;;
7142 esac
7143     AR=$ac_ct_AR
7144   fi
7145 fi
7146
7147 : ${AR=ar}
7148 : ${AR_FLAGS=cru}
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7161 $as_echo_n "checking for archiver @FILE support... " >&6; }
7162 if ${lt_cv_ar_at_file+:} false; then :
7163   $as_echo_n "(cached) " >&6
7164 else
7165   lt_cv_ar_at_file=no
7166    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h.  */
7168
7169 int
7170 main ()
7171 {
7172
7173   ;
7174   return 0;
7175 }
7176 _ACEOF
7177 if ac_fn_c_try_compile "$LINENO"; then :
7178   echo conftest.$ac_objext > conftest.lst
7179       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7180       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7181   (eval $lt_ar_try) 2>&5
7182   ac_status=$?
7183   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7184   test $ac_status = 0; }
7185       if test "$ac_status" -eq 0; then
7186         # Ensure the archiver fails upon bogus file names.
7187         rm -f conftest.$ac_objext libconftest.a
7188         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7189   (eval $lt_ar_try) 2>&5
7190   ac_status=$?
7191   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7192   test $ac_status = 0; }
7193         if test "$ac_status" -ne 0; then
7194           lt_cv_ar_at_file=@
7195         fi
7196       fi
7197       rm -f conftest.* libconftest.a
7198
7199 fi
7200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7201
7202 fi
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7204 $as_echo "$lt_cv_ar_at_file" >&6; }
7205
7206 if test "x$lt_cv_ar_at_file" = xno; then
7207   archiver_list_spec=
7208 else
7209   archiver_list_spec=$lt_cv_ar_at_file
7210 fi
7211
7212
7213
7214
7215
7216
7217
7218 if test -n "$ac_tool_prefix"; then
7219   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7220 set dummy ${ac_tool_prefix}strip; ac_word=$2
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7222 $as_echo_n "checking for $ac_word... " >&6; }
7223 if ${ac_cv_prog_STRIP+:} false; then :
7224   $as_echo_n "(cached) " >&6
7225 else
7226   if test -n "$STRIP"; then
7227   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7228 else
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 for as_dir in $PATH
7231 do
7232   IFS=$as_save_IFS
7233   test -z "$as_dir" && as_dir=.
7234     for ac_exec_ext in '' $ac_executable_extensions; do
7235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7236     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7238     break 2
7239   fi
7240 done
7241   done
7242 IFS=$as_save_IFS
7243
7244 fi
7245 fi
7246 STRIP=$ac_cv_prog_STRIP
7247 if test -n "$STRIP"; then
7248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7249 $as_echo "$STRIP" >&6; }
7250 else
7251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252 $as_echo "no" >&6; }
7253 fi
7254
7255
7256 fi
7257 if test -z "$ac_cv_prog_STRIP"; then
7258   ac_ct_STRIP=$STRIP
7259   # Extract the first word of "strip", so it can be a program name with args.
7260 set dummy strip; ac_word=$2
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262 $as_echo_n "checking for $ac_word... " >&6; }
7263 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7264   $as_echo_n "(cached) " >&6
7265 else
7266   if test -n "$ac_ct_STRIP"; then
7267   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7268 else
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 for as_dir in $PATH
7271 do
7272   IFS=$as_save_IFS
7273   test -z "$as_dir" && as_dir=.
7274     for ac_exec_ext in '' $ac_executable_extensions; do
7275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7276     ac_cv_prog_ac_ct_STRIP="strip"
7277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7278     break 2
7279   fi
7280 done
7281   done
7282 IFS=$as_save_IFS
7283
7284 fi
7285 fi
7286 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7287 if test -n "$ac_ct_STRIP"; then
7288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7289 $as_echo "$ac_ct_STRIP" >&6; }
7290 else
7291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292 $as_echo "no" >&6; }
7293 fi
7294
7295   if test "x$ac_ct_STRIP" = x; then
7296     STRIP=":"
7297   else
7298     case $cross_compiling:$ac_tool_warned in
7299 yes:)
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7302 ac_tool_warned=yes ;;
7303 esac
7304     STRIP=$ac_ct_STRIP
7305   fi
7306 else
7307   STRIP="$ac_cv_prog_STRIP"
7308 fi
7309
7310 test -z "$STRIP" && STRIP=:
7311
7312
7313
7314
7315
7316
7317 if test -n "$ac_tool_prefix"; then
7318   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7319 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321 $as_echo_n "checking for $ac_word... " >&6; }
7322 if ${ac_cv_prog_RANLIB+:} false; then :
7323   $as_echo_n "(cached) " >&6
7324 else
7325   if test -n "$RANLIB"; then
7326   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7327 else
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 for as_dir in $PATH
7330 do
7331   IFS=$as_save_IFS
7332   test -z "$as_dir" && as_dir=.
7333     for ac_exec_ext in '' $ac_executable_extensions; do
7334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7335     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337     break 2
7338   fi
7339 done
7340   done
7341 IFS=$as_save_IFS
7342
7343 fi
7344 fi
7345 RANLIB=$ac_cv_prog_RANLIB
7346 if test -n "$RANLIB"; then
7347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7348 $as_echo "$RANLIB" >&6; }
7349 else
7350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7352 fi
7353
7354
7355 fi
7356 if test -z "$ac_cv_prog_RANLIB"; then
7357   ac_ct_RANLIB=$RANLIB
7358   # Extract the first word of "ranlib", so it can be a program name with args.
7359 set dummy ranlib; ac_word=$2
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7361 $as_echo_n "checking for $ac_word... " >&6; }
7362 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7363   $as_echo_n "(cached) " >&6
7364 else
7365   if test -n "$ac_ct_RANLIB"; then
7366   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7367 else
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 for as_dir in $PATH
7370 do
7371   IFS=$as_save_IFS
7372   test -z "$as_dir" && as_dir=.
7373     for ac_exec_ext in '' $ac_executable_extensions; do
7374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7375     ac_cv_prog_ac_ct_RANLIB="ranlib"
7376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7377     break 2
7378   fi
7379 done
7380   done
7381 IFS=$as_save_IFS
7382
7383 fi
7384 fi
7385 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7386 if test -n "$ac_ct_RANLIB"; then
7387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7388 $as_echo "$ac_ct_RANLIB" >&6; }
7389 else
7390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7391 $as_echo "no" >&6; }
7392 fi
7393
7394   if test "x$ac_ct_RANLIB" = x; then
7395     RANLIB=":"
7396   else
7397     case $cross_compiling:$ac_tool_warned in
7398 yes:)
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7401 ac_tool_warned=yes ;;
7402 esac
7403     RANLIB=$ac_ct_RANLIB
7404   fi
7405 else
7406   RANLIB="$ac_cv_prog_RANLIB"
7407 fi
7408
7409 test -z "$RANLIB" && RANLIB=:
7410
7411
7412
7413
7414
7415
7416 # Determine commands to create old-style static archives.
7417 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7418 old_postinstall_cmds='chmod 644 $oldlib'
7419 old_postuninstall_cmds=
7420
7421 if test -n "$RANLIB"; then
7422   case $host_os in
7423   openbsd*)
7424     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7425     ;;
7426   *)
7427     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7428     ;;
7429   esac
7430   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7431 fi
7432
7433 case $host_os in
7434   darwin*)
7435     lock_old_archive_extraction=yes ;;
7436   *)
7437     lock_old_archive_extraction=no ;;
7438 esac
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478 # If no C compiler was specified, use CC.
7479 LTCC=${LTCC-"$CC"}
7480
7481 # If no C compiler flags were specified, use CFLAGS.
7482 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7483
7484 # Allow CC to be a program name with arguments.
7485 compiler=$CC
7486
7487
7488 # Check for command to grab the raw symbol name followed by C symbol from nm.
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7490 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7491 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7492   $as_echo_n "(cached) " >&6
7493 else
7494
7495 # These are sane defaults that work on at least a few old systems.
7496 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7497
7498 # Character class describing NM global symbol codes.
7499 symcode='[BCDEGRST]'
7500
7501 # Regexp to match symbols that can be accessed directly from C.
7502 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7503
7504 # Define system-specific variables.
7505 case $host_os in
7506 aix*)
7507   symcode='[BCDT]'
7508   ;;
7509 cygwin* | mingw* | pw32* | cegcc*)
7510   symcode='[ABCDGISTW]'
7511   ;;
7512 hpux*)
7513   if test "$host_cpu" = ia64; then
7514     symcode='[ABCDEGRST]'
7515   fi
7516   ;;
7517 irix* | nonstopux*)
7518   symcode='[BCDEGRST]'
7519   ;;
7520 osf*)
7521   symcode='[BCDEGQRST]'
7522   ;;
7523 solaris*)
7524   symcode='[BDRT]'
7525   ;;
7526 sco3.2v5*)
7527   symcode='[DT]'
7528   ;;
7529 sysv4.2uw2*)
7530   symcode='[DT]'
7531   ;;
7532 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7533   symcode='[ABDT]'
7534   ;;
7535 sysv4)
7536   symcode='[DFNSTU]'
7537   ;;
7538 esac
7539
7540 # If we're using GNU nm, then use its standard symbol codes.
7541 case `$NM -V 2>&1` in
7542 *GNU* | *'with BFD'*)
7543   symcode='[ABCDGIRSTW]' ;;
7544 esac
7545
7546 # Transform an extracted symbol line into a proper C declaration.
7547 # Some systems (esp. on ia64) link data and code symbols differently,
7548 # so use this general approach.
7549 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7550
7551 # Transform an extracted symbol line into symbol name and symbol address
7552 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7553 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'"
7554
7555 # Handle CRLF in mingw tool chain
7556 opt_cr=
7557 case $build_os in
7558 mingw*)
7559   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7560   ;;
7561 esac
7562
7563 # Try without a prefix underscore, then with it.
7564 for ac_symprfx in "" "_"; do
7565
7566   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7567   symxfrm="\\1 $ac_symprfx\\2 \\2"
7568
7569   # Write the raw and C identifiers.
7570   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7571     # Fake it for dumpbin and say T for any non-static function
7572     # and D for any global variable.
7573     # Also find C++ and __fastcall symbols from MSVC++,
7574     # which start with @ or ?.
7575     lt_cv_sys_global_symbol_pipe="$AWK '"\
7576 "     {last_section=section; section=\$ 3};"\
7577 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7578 "     \$ 0!~/External *\|/{next};"\
7579 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7580 "     {if(hide[section]) next};"\
7581 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7582 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7583 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7584 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7585 "     ' prfx=^$ac_symprfx"
7586   else
7587     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7588   fi
7589   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7590
7591   # Check to see that the pipe works correctly.
7592   pipe_works=no
7593
7594   rm -f conftest*
7595   cat > conftest.$ac_ext <<_LT_EOF
7596 #ifdef __cplusplus
7597 extern "C" {
7598 #endif
7599 char nm_test_var;
7600 void nm_test_func(void);
7601 void nm_test_func(void){}
7602 #ifdef __cplusplus
7603 }
7604 #endif
7605 int main(){nm_test_var='a';nm_test_func();return(0);}
7606 _LT_EOF
7607
7608   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7609   (eval $ac_compile) 2>&5
7610   ac_status=$?
7611   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7612   test $ac_status = 0; }; then
7613     # Now try to grab the symbols.
7614     nlist=conftest.nm
7615     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7616   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7617   ac_status=$?
7618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7619   test $ac_status = 0; } && test -s "$nlist"; then
7620       # Try sorting and uniquifying the output.
7621       if sort "$nlist" | uniq > "$nlist"T; then
7622         mv -f "$nlist"T "$nlist"
7623       else
7624         rm -f "$nlist"T
7625       fi
7626
7627       # Make sure that we snagged all the symbols we need.
7628       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7629         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7630           cat <<_LT_EOF > conftest.$ac_ext
7631 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7632 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7633 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7634    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7635 # define LT_DLSYM_CONST
7636 #elif defined(__osf__)
7637 /* This system does not cope well with relocations in const data.  */
7638 # define LT_DLSYM_CONST
7639 #else
7640 # define LT_DLSYM_CONST const
7641 #endif
7642
7643 #ifdef __cplusplus
7644 extern "C" {
7645 #endif
7646
7647 _LT_EOF
7648           # Now generate the symbol file.
7649           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7650
7651           cat <<_LT_EOF >> conftest.$ac_ext
7652
7653 /* The mapping between symbol names and symbols.  */
7654 LT_DLSYM_CONST struct {
7655   const char *name;
7656   void       *address;
7657 }
7658 lt__PROGRAM__LTX_preloaded_symbols[] =
7659 {
7660   { "@PROGRAM@", (void *) 0 },
7661 _LT_EOF
7662           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7663           cat <<\_LT_EOF >> conftest.$ac_ext
7664   {0, (void *) 0}
7665 };
7666
7667 /* This works around a problem in FreeBSD linker */
7668 #ifdef FREEBSD_WORKAROUND
7669 static const void *lt_preloaded_setup() {
7670   return lt__PROGRAM__LTX_preloaded_symbols;
7671 }
7672 #endif
7673
7674 #ifdef __cplusplus
7675 }
7676 #endif
7677 _LT_EOF
7678           # Now try linking the two files.
7679           mv conftest.$ac_objext conftstm.$ac_objext
7680           lt_globsym_save_LIBS=$LIBS
7681           lt_globsym_save_CFLAGS=$CFLAGS
7682           LIBS="conftstm.$ac_objext"
7683           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7684           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7685   (eval $ac_link) 2>&5
7686   ac_status=$?
7687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7688   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7689             pipe_works=yes
7690           fi
7691           LIBS=$lt_globsym_save_LIBS
7692           CFLAGS=$lt_globsym_save_CFLAGS
7693         else
7694           echo "cannot find nm_test_func in $nlist" >&5
7695         fi
7696       else
7697         echo "cannot find nm_test_var in $nlist" >&5
7698       fi
7699     else
7700       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7701     fi
7702   else
7703     echo "$progname: failed program was:" >&5
7704     cat conftest.$ac_ext >&5
7705   fi
7706   rm -rf conftest* conftst*
7707
7708   # Do not use the global_symbol_pipe unless it works.
7709   if test "$pipe_works" = yes; then
7710     break
7711   else
7712     lt_cv_sys_global_symbol_pipe=
7713   fi
7714 done
7715
7716 fi
7717
7718 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7719   lt_cv_sys_global_symbol_to_cdecl=
7720 fi
7721 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7723 $as_echo "failed" >&6; }
7724 else
7725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7726 $as_echo "ok" >&6; }
7727 fi
7728
7729 # Response file support.
7730 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7731   nm_file_list_spec='@'
7732 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7733   nm_file_list_spec='@'
7734 fi
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7763 $as_echo_n "checking for sysroot... " >&6; }
7764
7765 # Check whether --with-sysroot was given.
7766 if test "${with_sysroot+set}" = set; then :
7767   withval=$with_sysroot;
7768 else
7769   with_sysroot=no
7770 fi
7771
7772
7773 lt_sysroot=
7774 case ${with_sysroot} in #(
7775  yes)
7776    if test "$GCC" = yes; then
7777      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7778    fi
7779    ;; #(
7780  /*)
7781    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7782    ;; #(
7783  no|'')
7784    ;; #(
7785  *)
7786    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7787 $as_echo "${with_sysroot}" >&6; }
7788    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7789    ;;
7790 esac
7791
7792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7793 $as_echo "${lt_sysroot:-no}" >&6; }
7794
7795
7796
7797
7798
7799 # Check whether --enable-libtool-lock was given.
7800 if test "${enable_libtool_lock+set}" = set; then :
7801   enableval=$enable_libtool_lock;
7802 fi
7803
7804 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7805
7806 # Some flags need to be propagated to the compiler or linker for good
7807 # libtool support.
7808 case $host in
7809 ia64-*-hpux*)
7810   # Find out which ABI we are using.
7811   echo 'int i;' > conftest.$ac_ext
7812   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7813   (eval $ac_compile) 2>&5
7814   ac_status=$?
7815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7816   test $ac_status = 0; }; then
7817     case `/usr/bin/file conftest.$ac_objext` in
7818       *ELF-32*)
7819         HPUX_IA64_MODE="32"
7820         ;;
7821       *ELF-64*)
7822         HPUX_IA64_MODE="64"
7823         ;;
7824     esac
7825   fi
7826   rm -rf conftest*
7827   ;;
7828 *-*-irix6*)
7829   # Find out which ABI we are using.
7830   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7831   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7832   (eval $ac_compile) 2>&5
7833   ac_status=$?
7834   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7835   test $ac_status = 0; }; then
7836     if test "$lt_cv_prog_gnu_ld" = yes; then
7837       case `/usr/bin/file conftest.$ac_objext` in
7838         *32-bit*)
7839           LD="${LD-ld} -melf32bsmip"
7840           ;;
7841         *N32*)
7842           LD="${LD-ld} -melf32bmipn32"
7843           ;;
7844         *64-bit*)
7845           LD="${LD-ld} -melf64bmip"
7846         ;;
7847       esac
7848     else
7849       case `/usr/bin/file conftest.$ac_objext` in
7850         *32-bit*)
7851           LD="${LD-ld} -32"
7852           ;;
7853         *N32*)
7854           LD="${LD-ld} -n32"
7855           ;;
7856         *64-bit*)
7857           LD="${LD-ld} -64"
7858           ;;
7859       esac
7860     fi
7861   fi
7862   rm -rf conftest*
7863   ;;
7864
7865 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7866 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7867   # Find out which ABI we are using.
7868   echo 'int i;' > conftest.$ac_ext
7869   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7870   (eval $ac_compile) 2>&5
7871   ac_status=$?
7872   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7873   test $ac_status = 0; }; then
7874     case `/usr/bin/file conftest.o` in
7875       *32-bit*)
7876         case $host in
7877           x86_64-*kfreebsd*-gnu)
7878             LD="${LD-ld} -m elf_i386_fbsd"
7879             ;;
7880           x86_64-*linux*)
7881             LD="${LD-ld} -m elf_i386"
7882             ;;
7883           ppc64-*linux*|powerpc64-*linux*)
7884             LD="${LD-ld} -m elf32ppclinux"
7885             ;;
7886           s390x-*linux*)
7887             LD="${LD-ld} -m elf_s390"
7888             ;;
7889           sparc64-*linux*)
7890             LD="${LD-ld} -m elf32_sparc"
7891             ;;
7892         esac
7893         ;;
7894       *64-bit*)
7895         case $host in
7896           x86_64-*kfreebsd*-gnu)
7897             LD="${LD-ld} -m elf_x86_64_fbsd"
7898             ;;
7899           x86_64-*linux*)
7900             LD="${LD-ld} -m elf_x86_64"
7901             ;;
7902           ppc*-*linux*|powerpc*-*linux*)
7903             LD="${LD-ld} -m elf64ppc"
7904             ;;
7905           s390*-*linux*|s390*-*tpf*)
7906             LD="${LD-ld} -m elf64_s390"
7907             ;;
7908           sparc*-*linux*)
7909             LD="${LD-ld} -m elf64_sparc"
7910             ;;
7911         esac
7912         ;;
7913     esac
7914   fi
7915   rm -rf conftest*
7916   ;;
7917
7918 *-*-sco3.2v5*)
7919   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7920   SAVE_CFLAGS="$CFLAGS"
7921   CFLAGS="$CFLAGS -belf"
7922   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7923 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7924 if ${lt_cv_cc_needs_belf+:} false; then :
7925   $as_echo_n "(cached) " >&6
7926 else
7927   ac_ext=c
7928 ac_cpp='$CPP $CPPFLAGS'
7929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7932
7933      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h.  */
7935
7936 int
7937 main ()
7938 {
7939
7940   ;
7941   return 0;
7942 }
7943 _ACEOF
7944 if ac_fn_c_try_link "$LINENO"; then :
7945   lt_cv_cc_needs_belf=yes
7946 else
7947   lt_cv_cc_needs_belf=no
7948 fi
7949 rm -f core conftest.err conftest.$ac_objext \
7950     conftest$ac_exeext conftest.$ac_ext
7951      ac_ext=c
7952 ac_cpp='$CPP $CPPFLAGS'
7953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7956
7957 fi
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7959 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7960   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7961     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7962     CFLAGS="$SAVE_CFLAGS"
7963   fi
7964   ;;
7965 sparc*-*solaris*)
7966   # Find out which ABI we are using.
7967   echo 'int i;' > conftest.$ac_ext
7968   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7969   (eval $ac_compile) 2>&5
7970   ac_status=$?
7971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7972   test $ac_status = 0; }; then
7973     case `/usr/bin/file conftest.o` in
7974     *64-bit*)
7975       case $lt_cv_prog_gnu_ld in
7976       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7977       *)
7978         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7979           LD="${LD-ld} -64"
7980         fi
7981         ;;
7982       esac
7983       ;;
7984     esac
7985   fi
7986   rm -rf conftest*
7987   ;;
7988 esac
7989
7990 need_locks="$enable_libtool_lock"
7991
7992 if test -n "$ac_tool_prefix"; then
7993   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7994 set dummy ${ac_tool_prefix}mt; ac_word=$2
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7996 $as_echo_n "checking for $ac_word... " >&6; }
7997 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7998   $as_echo_n "(cached) " >&6
7999 else
8000   if test -n "$MANIFEST_TOOL"; then
8001   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8002 else
8003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8004 for as_dir in $PATH
8005 do
8006   IFS=$as_save_IFS
8007   test -z "$as_dir" && as_dir=.
8008     for ac_exec_ext in '' $ac_executable_extensions; do
8009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8010     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8012     break 2
8013   fi
8014 done
8015   done
8016 IFS=$as_save_IFS
8017
8018 fi
8019 fi
8020 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8021 if test -n "$MANIFEST_TOOL"; then
8022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8023 $as_echo "$MANIFEST_TOOL" >&6; }
8024 else
8025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8027 fi
8028
8029
8030 fi
8031 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8032   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8033   # Extract the first word of "mt", so it can be a program name with args.
8034 set dummy mt; ac_word=$2
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8036 $as_echo_n "checking for $ac_word... " >&6; }
8037 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8038   $as_echo_n "(cached) " >&6
8039 else
8040   if test -n "$ac_ct_MANIFEST_TOOL"; then
8041   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8042 else
8043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044 for as_dir in $PATH
8045 do
8046   IFS=$as_save_IFS
8047   test -z "$as_dir" && as_dir=.
8048     for ac_exec_ext in '' $ac_executable_extensions; do
8049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8050     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8052     break 2
8053   fi
8054 done
8055   done
8056 IFS=$as_save_IFS
8057
8058 fi
8059 fi
8060 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8061 if test -n "$ac_ct_MANIFEST_TOOL"; then
8062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8063 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8064 else
8065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066 $as_echo "no" >&6; }
8067 fi
8068
8069   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8070     MANIFEST_TOOL=":"
8071   else
8072     case $cross_compiling:$ac_tool_warned in
8073 yes:)
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8076 ac_tool_warned=yes ;;
8077 esac
8078     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8079   fi
8080 else
8081   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8082 fi
8083
8084 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8086 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8087 if ${lt_cv_path_mainfest_tool+:} false; then :
8088   $as_echo_n "(cached) " >&6
8089 else
8090   lt_cv_path_mainfest_tool=no
8091   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8092   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8093   cat conftest.err >&5
8094   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8095     lt_cv_path_mainfest_tool=yes
8096   fi
8097   rm -f conftest*
8098 fi
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8100 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8101 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8102   MANIFEST_TOOL=:
8103 fi
8104
8105
8106
8107
8108
8109
8110   case $host_os in
8111     rhapsody* | darwin*)
8112     if test -n "$ac_tool_prefix"; then
8113   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8114 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116 $as_echo_n "checking for $ac_word... " >&6; }
8117 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8118   $as_echo_n "(cached) " >&6
8119 else
8120   if test -n "$DSYMUTIL"; then
8121   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8122 else
8123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124 for as_dir in $PATH
8125 do
8126   IFS=$as_save_IFS
8127   test -z "$as_dir" && as_dir=.
8128     for ac_exec_ext in '' $ac_executable_extensions; do
8129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8130     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8132     break 2
8133   fi
8134 done
8135   done
8136 IFS=$as_save_IFS
8137
8138 fi
8139 fi
8140 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8141 if test -n "$DSYMUTIL"; then
8142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8143 $as_echo "$DSYMUTIL" >&6; }
8144 else
8145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146 $as_echo "no" >&6; }
8147 fi
8148
8149
8150 fi
8151 if test -z "$ac_cv_prog_DSYMUTIL"; then
8152   ac_ct_DSYMUTIL=$DSYMUTIL
8153   # Extract the first word of "dsymutil", so it can be a program name with args.
8154 set dummy dsymutil; ac_word=$2
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8156 $as_echo_n "checking for $ac_word... " >&6; }
8157 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8158   $as_echo_n "(cached) " >&6
8159 else
8160   if test -n "$ac_ct_DSYMUTIL"; then
8161   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8162 else
8163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8164 for as_dir in $PATH
8165 do
8166   IFS=$as_save_IFS
8167   test -z "$as_dir" && as_dir=.
8168     for ac_exec_ext in '' $ac_executable_extensions; do
8169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8170     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8172     break 2
8173   fi
8174 done
8175   done
8176 IFS=$as_save_IFS
8177
8178 fi
8179 fi
8180 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8181 if test -n "$ac_ct_DSYMUTIL"; then
8182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8183 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8184 else
8185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186 $as_echo "no" >&6; }
8187 fi
8188
8189   if test "x$ac_ct_DSYMUTIL" = x; then
8190     DSYMUTIL=":"
8191   else
8192     case $cross_compiling:$ac_tool_warned in
8193 yes:)
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8196 ac_tool_warned=yes ;;
8197 esac
8198     DSYMUTIL=$ac_ct_DSYMUTIL
8199   fi
8200 else
8201   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8202 fi
8203
8204     if test -n "$ac_tool_prefix"; then
8205   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8206 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8208 $as_echo_n "checking for $ac_word... " >&6; }
8209 if ${ac_cv_prog_NMEDIT+:} false; then :
8210   $as_echo_n "(cached) " >&6
8211 else
8212   if test -n "$NMEDIT"; then
8213   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8214 else
8215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216 for as_dir in $PATH
8217 do
8218   IFS=$as_save_IFS
8219   test -z "$as_dir" && as_dir=.
8220     for ac_exec_ext in '' $ac_executable_extensions; do
8221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8222     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8224     break 2
8225   fi
8226 done
8227   done
8228 IFS=$as_save_IFS
8229
8230 fi
8231 fi
8232 NMEDIT=$ac_cv_prog_NMEDIT
8233 if test -n "$NMEDIT"; then
8234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8235 $as_echo "$NMEDIT" >&6; }
8236 else
8237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8238 $as_echo "no" >&6; }
8239 fi
8240
8241
8242 fi
8243 if test -z "$ac_cv_prog_NMEDIT"; then
8244   ac_ct_NMEDIT=$NMEDIT
8245   # Extract the first word of "nmedit", so it can be a program name with args.
8246 set dummy nmedit; ac_word=$2
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8248 $as_echo_n "checking for $ac_word... " >&6; }
8249 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8250   $as_echo_n "(cached) " >&6
8251 else
8252   if test -n "$ac_ct_NMEDIT"; then
8253   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8254 else
8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256 for as_dir in $PATH
8257 do
8258   IFS=$as_save_IFS
8259   test -z "$as_dir" && as_dir=.
8260     for ac_exec_ext in '' $ac_executable_extensions; do
8261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8262     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8264     break 2
8265   fi
8266 done
8267   done
8268 IFS=$as_save_IFS
8269
8270 fi
8271 fi
8272 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8273 if test -n "$ac_ct_NMEDIT"; then
8274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8275 $as_echo "$ac_ct_NMEDIT" >&6; }
8276 else
8277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278 $as_echo "no" >&6; }
8279 fi
8280
8281   if test "x$ac_ct_NMEDIT" = x; then
8282     NMEDIT=":"
8283   else
8284     case $cross_compiling:$ac_tool_warned in
8285 yes:)
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8288 ac_tool_warned=yes ;;
8289 esac
8290     NMEDIT=$ac_ct_NMEDIT
8291   fi
8292 else
8293   NMEDIT="$ac_cv_prog_NMEDIT"
8294 fi
8295
8296     if test -n "$ac_tool_prefix"; then
8297   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8298 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8300 $as_echo_n "checking for $ac_word... " >&6; }
8301 if ${ac_cv_prog_LIPO+:} false; then :
8302   $as_echo_n "(cached) " >&6
8303 else
8304   if test -n "$LIPO"; then
8305   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8306 else
8307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308 for as_dir in $PATH
8309 do
8310   IFS=$as_save_IFS
8311   test -z "$as_dir" && as_dir=.
8312     for ac_exec_ext in '' $ac_executable_extensions; do
8313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8314     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8315     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8316     break 2
8317   fi
8318 done
8319   done
8320 IFS=$as_save_IFS
8321
8322 fi
8323 fi
8324 LIPO=$ac_cv_prog_LIPO
8325 if test -n "$LIPO"; then
8326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8327 $as_echo "$LIPO" >&6; }
8328 else
8329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330 $as_echo "no" >&6; }
8331 fi
8332
8333
8334 fi
8335 if test -z "$ac_cv_prog_LIPO"; then
8336   ac_ct_LIPO=$LIPO
8337   # Extract the first word of "lipo", so it can be a program name with args.
8338 set dummy lipo; ac_word=$2
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8340 $as_echo_n "checking for $ac_word... " >&6; }
8341 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8342   $as_echo_n "(cached) " >&6
8343 else
8344   if test -n "$ac_ct_LIPO"; then
8345   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8346 else
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348 for as_dir in $PATH
8349 do
8350   IFS=$as_save_IFS
8351   test -z "$as_dir" && as_dir=.
8352     for ac_exec_ext in '' $ac_executable_extensions; do
8353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8354     ac_cv_prog_ac_ct_LIPO="lipo"
8355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8356     break 2
8357   fi
8358 done
8359   done
8360 IFS=$as_save_IFS
8361
8362 fi
8363 fi
8364 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8365 if test -n "$ac_ct_LIPO"; then
8366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8367 $as_echo "$ac_ct_LIPO" >&6; }
8368 else
8369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8370 $as_echo "no" >&6; }
8371 fi
8372
8373   if test "x$ac_ct_LIPO" = x; then
8374     LIPO=":"
8375   else
8376     case $cross_compiling:$ac_tool_warned in
8377 yes:)
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8380 ac_tool_warned=yes ;;
8381 esac
8382     LIPO=$ac_ct_LIPO
8383   fi
8384 else
8385   LIPO="$ac_cv_prog_LIPO"
8386 fi
8387
8388     if test -n "$ac_tool_prefix"; then
8389   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8390 set dummy ${ac_tool_prefix}otool; ac_word=$2
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8392 $as_echo_n "checking for $ac_word... " >&6; }
8393 if ${ac_cv_prog_OTOOL+:} false; then :
8394   $as_echo_n "(cached) " >&6
8395 else
8396   if test -n "$OTOOL"; then
8397   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8398 else
8399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8400 for as_dir in $PATH
8401 do
8402   IFS=$as_save_IFS
8403   test -z "$as_dir" && as_dir=.
8404     for ac_exec_ext in '' $ac_executable_extensions; do
8405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8406     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8408     break 2
8409   fi
8410 done
8411   done
8412 IFS=$as_save_IFS
8413
8414 fi
8415 fi
8416 OTOOL=$ac_cv_prog_OTOOL
8417 if test -n "$OTOOL"; then
8418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8419 $as_echo "$OTOOL" >&6; }
8420 else
8421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8422 $as_echo "no" >&6; }
8423 fi
8424
8425
8426 fi
8427 if test -z "$ac_cv_prog_OTOOL"; then
8428   ac_ct_OTOOL=$OTOOL
8429   # Extract the first word of "otool", so it can be a program name with args.
8430 set dummy otool; ac_word=$2
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8432 $as_echo_n "checking for $ac_word... " >&6; }
8433 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8434   $as_echo_n "(cached) " >&6
8435 else
8436   if test -n "$ac_ct_OTOOL"; then
8437   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8438 else
8439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8440 for as_dir in $PATH
8441 do
8442   IFS=$as_save_IFS
8443   test -z "$as_dir" && as_dir=.
8444     for ac_exec_ext in '' $ac_executable_extensions; do
8445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8446     ac_cv_prog_ac_ct_OTOOL="otool"
8447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8448     break 2
8449   fi
8450 done
8451   done
8452 IFS=$as_save_IFS
8453
8454 fi
8455 fi
8456 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8457 if test -n "$ac_ct_OTOOL"; then
8458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8459 $as_echo "$ac_ct_OTOOL" >&6; }
8460 else
8461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8462 $as_echo "no" >&6; }
8463 fi
8464
8465   if test "x$ac_ct_OTOOL" = x; then
8466     OTOOL=":"
8467   else
8468     case $cross_compiling:$ac_tool_warned in
8469 yes:)
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8472 ac_tool_warned=yes ;;
8473 esac
8474     OTOOL=$ac_ct_OTOOL
8475   fi
8476 else
8477   OTOOL="$ac_cv_prog_OTOOL"
8478 fi
8479
8480     if test -n "$ac_tool_prefix"; then
8481   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8482 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8484 $as_echo_n "checking for $ac_word... " >&6; }
8485 if ${ac_cv_prog_OTOOL64+:} false; then :
8486   $as_echo_n "(cached) " >&6
8487 else
8488   if test -n "$OTOOL64"; then
8489   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8490 else
8491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8492 for as_dir in $PATH
8493 do
8494   IFS=$as_save_IFS
8495   test -z "$as_dir" && as_dir=.
8496     for ac_exec_ext in '' $ac_executable_extensions; do
8497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8498     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8500     break 2
8501   fi
8502 done
8503   done
8504 IFS=$as_save_IFS
8505
8506 fi
8507 fi
8508 OTOOL64=$ac_cv_prog_OTOOL64
8509 if test -n "$OTOOL64"; then
8510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8511 $as_echo "$OTOOL64" >&6; }
8512 else
8513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8514 $as_echo "no" >&6; }
8515 fi
8516
8517
8518 fi
8519 if test -z "$ac_cv_prog_OTOOL64"; then
8520   ac_ct_OTOOL64=$OTOOL64
8521   # Extract the first word of "otool64", so it can be a program name with args.
8522 set dummy otool64; ac_word=$2
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8524 $as_echo_n "checking for $ac_word... " >&6; }
8525 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8526   $as_echo_n "(cached) " >&6
8527 else
8528   if test -n "$ac_ct_OTOOL64"; then
8529   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8530 else
8531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8532 for as_dir in $PATH
8533 do
8534   IFS=$as_save_IFS
8535   test -z "$as_dir" && as_dir=.
8536     for ac_exec_ext in '' $ac_executable_extensions; do
8537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8538     ac_cv_prog_ac_ct_OTOOL64="otool64"
8539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8540     break 2
8541   fi
8542 done
8543   done
8544 IFS=$as_save_IFS
8545
8546 fi
8547 fi
8548 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8549 if test -n "$ac_ct_OTOOL64"; then
8550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8551 $as_echo "$ac_ct_OTOOL64" >&6; }
8552 else
8553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8554 $as_echo "no" >&6; }
8555 fi
8556
8557   if test "x$ac_ct_OTOOL64" = x; then
8558     OTOOL64=":"
8559   else
8560     case $cross_compiling:$ac_tool_warned in
8561 yes:)
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8564 ac_tool_warned=yes ;;
8565 esac
8566     OTOOL64=$ac_ct_OTOOL64
8567   fi
8568 else
8569   OTOOL64="$ac_cv_prog_OTOOL64"
8570 fi
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8599 $as_echo_n "checking for -single_module linker flag... " >&6; }
8600 if ${lt_cv_apple_cc_single_mod+:} false; then :
8601   $as_echo_n "(cached) " >&6
8602 else
8603   lt_cv_apple_cc_single_mod=no
8604       if test -z "${LT_MULTI_MODULE}"; then
8605         # By default we will add the -single_module flag. You can override
8606         # by either setting the environment variable LT_MULTI_MODULE
8607         # non-empty at configure time, or by adding -multi_module to the
8608         # link flags.
8609         rm -rf libconftest.dylib*
8610         echo "int foo(void){return 1;}" > conftest.c
8611         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8612 -dynamiclib -Wl,-single_module conftest.c" >&5
8613         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8614           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8615         _lt_result=$?
8616         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8617           lt_cv_apple_cc_single_mod=yes
8618         else
8619           cat conftest.err >&5
8620         fi
8621         rm -rf libconftest.dylib*
8622         rm -f conftest.*
8623       fi
8624 fi
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8626 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8627     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8628 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8629 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8630   $as_echo_n "(cached) " >&6
8631 else
8632   lt_cv_ld_exported_symbols_list=no
8633       save_LDFLAGS=$LDFLAGS
8634       echo "_main" > conftest.sym
8635       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8636       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h.  */
8638
8639 int
8640 main ()
8641 {
8642
8643   ;
8644   return 0;
8645 }
8646 _ACEOF
8647 if ac_fn_c_try_link "$LINENO"; then :
8648   lt_cv_ld_exported_symbols_list=yes
8649 else
8650   lt_cv_ld_exported_symbols_list=no
8651 fi
8652 rm -f core conftest.err conftest.$ac_objext \
8653     conftest$ac_exeext conftest.$ac_ext
8654         LDFLAGS="$save_LDFLAGS"
8655
8656 fi
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8658 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8659     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8660 $as_echo_n "checking for -force_load linker flag... " >&6; }
8661 if ${lt_cv_ld_force_load+:} false; then :
8662   $as_echo_n "(cached) " >&6
8663 else
8664   lt_cv_ld_force_load=no
8665       cat > conftest.c << _LT_EOF
8666 int forced_loaded() { return 2;}
8667 _LT_EOF
8668       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8669       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8670       echo "$AR cru libconftest.a conftest.o" >&5
8671       $AR cru libconftest.a conftest.o 2>&5
8672       echo "$RANLIB libconftest.a" >&5
8673       $RANLIB libconftest.a 2>&5
8674       cat > conftest.c << _LT_EOF
8675 int main() { return 0;}
8676 _LT_EOF
8677       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8678       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8679       _lt_result=$?
8680       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8681         lt_cv_ld_force_load=yes
8682       else
8683         cat conftest.err >&5
8684       fi
8685         rm -f conftest.err libconftest.a conftest conftest.c
8686         rm -rf conftest.dSYM
8687
8688 fi
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8690 $as_echo "$lt_cv_ld_force_load" >&6; }
8691     case $host_os in
8692     rhapsody* | darwin1.[012])
8693       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8694     darwin1.*)
8695       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8696     darwin*) # darwin 5.x on
8697       # if running on 10.5 or later, the deployment target defaults
8698       # to the OS version, if on x86, and 10.4, the deployment
8699       # target defaults to 10.4. Don't you love it?
8700       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8701         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8702           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8703         10.[012]*)
8704           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8705         10.*)
8706           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8707       esac
8708     ;;
8709   esac
8710     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8711       _lt_dar_single_mod='$single_module'
8712     fi
8713     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8714       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8715     else
8716       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8717     fi
8718     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8719       _lt_dsymutil='~$DSYMUTIL $lib || :'
8720     else
8721       _lt_dsymutil=
8722     fi
8723     ;;
8724   esac
8725
8726 ac_ext=c
8727 ac_cpp='$CPP $CPPFLAGS'
8728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8732 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8733 # On Suns, sometimes $CPP names a directory.
8734 if test -n "$CPP" && test -d "$CPP"; then
8735   CPP=
8736 fi
8737 if test -z "$CPP"; then
8738   if ${ac_cv_prog_CPP+:} false; then :
8739   $as_echo_n "(cached) " >&6
8740 else
8741       # Double quotes because CPP needs to be expanded
8742     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8743     do
8744       ac_preproc_ok=false
8745 for ac_c_preproc_warn_flag in '' yes
8746 do
8747   # Use a header file that comes with gcc, so configuring glibc
8748   # with a fresh cross-compiler works.
8749   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8750   # <limits.h> exists even on freestanding compilers.
8751   # On the NeXT, cc -E runs the code through the compiler's parser,
8752   # not just through cpp. "Syntax error" is here to catch this case.
8753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754 /* end confdefs.h.  */
8755 #ifdef __STDC__
8756 # include <limits.h>
8757 #else
8758 # include <assert.h>
8759 #endif
8760                      Syntax error
8761 _ACEOF
8762 if ac_fn_c_try_cpp "$LINENO"; then :
8763
8764 else
8765   # Broken: fails on valid input.
8766 continue
8767 fi
8768 rm -f conftest.err conftest.i conftest.$ac_ext
8769
8770   # OK, works on sane cases.  Now check whether nonexistent headers
8771   # can be detected and how.
8772   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8773 /* end confdefs.h.  */
8774 #include <ac_nonexistent.h>
8775 _ACEOF
8776 if ac_fn_c_try_cpp "$LINENO"; then :
8777   # Broken: success on invalid input.
8778 continue
8779 else
8780   # Passes both tests.
8781 ac_preproc_ok=:
8782 break
8783 fi
8784 rm -f conftest.err conftest.i conftest.$ac_ext
8785
8786 done
8787 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8788 rm -f conftest.i conftest.err conftest.$ac_ext
8789 if $ac_preproc_ok; then :
8790   break
8791 fi
8792
8793     done
8794     ac_cv_prog_CPP=$CPP
8795
8796 fi
8797   CPP=$ac_cv_prog_CPP
8798 else
8799   ac_cv_prog_CPP=$CPP
8800 fi
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8802 $as_echo "$CPP" >&6; }
8803 ac_preproc_ok=false
8804 for ac_c_preproc_warn_flag in '' yes
8805 do
8806   # Use a header file that comes with gcc, so configuring glibc
8807   # with a fresh cross-compiler works.
8808   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8809   # <limits.h> exists even on freestanding compilers.
8810   # On the NeXT, cc -E runs the code through the compiler's parser,
8811   # not just through cpp. "Syntax error" is here to catch this case.
8812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8813 /* end confdefs.h.  */
8814 #ifdef __STDC__
8815 # include <limits.h>
8816 #else
8817 # include <assert.h>
8818 #endif
8819                      Syntax error
8820 _ACEOF
8821 if ac_fn_c_try_cpp "$LINENO"; then :
8822
8823 else
8824   # Broken: fails on valid input.
8825 continue
8826 fi
8827 rm -f conftest.err conftest.i conftest.$ac_ext
8828
8829   # OK, works on sane cases.  Now check whether nonexistent headers
8830   # can be detected and how.
8831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832 /* end confdefs.h.  */
8833 #include <ac_nonexistent.h>
8834 _ACEOF
8835 if ac_fn_c_try_cpp "$LINENO"; then :
8836   # Broken: success on invalid input.
8837 continue
8838 else
8839   # Passes both tests.
8840 ac_preproc_ok=:
8841 break
8842 fi
8843 rm -f conftest.err conftest.i conftest.$ac_ext
8844
8845 done
8846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8847 rm -f conftest.i conftest.err conftest.$ac_ext
8848 if $ac_preproc_ok; then :
8849
8850 else
8851   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8853 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8854 See \`config.log' for more details" "$LINENO" 5; }
8855 fi
8856
8857 ac_ext=c
8858 ac_cpp='$CPP $CPPFLAGS'
8859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8862
8863
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8865 $as_echo_n "checking for ANSI C header files... " >&6; }
8866 if ${ac_cv_header_stdc+:} false; then :
8867   $as_echo_n "(cached) " >&6
8868 else
8869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h.  */
8871 #include <stdlib.h>
8872 #include <stdarg.h>
8873 #include <string.h>
8874 #include <float.h>
8875
8876 int
8877 main ()
8878 {
8879
8880   ;
8881   return 0;
8882 }
8883 _ACEOF
8884 if ac_fn_c_try_compile "$LINENO"; then :
8885   ac_cv_header_stdc=yes
8886 else
8887   ac_cv_header_stdc=no
8888 fi
8889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8890
8891 if test $ac_cv_header_stdc = yes; then
8892   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8894 /* end confdefs.h.  */
8895 #include <string.h>
8896
8897 _ACEOF
8898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8899   $EGREP "memchr" >/dev/null 2>&1; then :
8900
8901 else
8902   ac_cv_header_stdc=no
8903 fi
8904 rm -f conftest*
8905
8906 fi
8907
8908 if test $ac_cv_header_stdc = yes; then
8909   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8911 /* end confdefs.h.  */
8912 #include <stdlib.h>
8913
8914 _ACEOF
8915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8916   $EGREP "free" >/dev/null 2>&1; then :
8917
8918 else
8919   ac_cv_header_stdc=no
8920 fi
8921 rm -f conftest*
8922
8923 fi
8924
8925 if test $ac_cv_header_stdc = yes; then
8926   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8927   if test "$cross_compiling" = yes; then :
8928   :
8929 else
8930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h.  */
8932 #include <ctype.h>
8933 #include <stdlib.h>
8934 #if ((' ' & 0x0FF) == 0x020)
8935 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8936 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8937 #else
8938 # define ISLOWER(c) \
8939                    (('a' <= (c) && (c) <= 'i') \
8940                      || ('j' <= (c) && (c) <= 'r') \
8941                      || ('s' <= (c) && (c) <= 'z'))
8942 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8943 #endif
8944
8945 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8946 int
8947 main ()
8948 {
8949   int i;
8950   for (i = 0; i < 256; i++)
8951     if (XOR (islower (i), ISLOWER (i))
8952         || toupper (i) != TOUPPER (i))
8953       return 2;
8954   return 0;
8955 }
8956 _ACEOF
8957 if ac_fn_c_try_run "$LINENO"; then :
8958
8959 else
8960   ac_cv_header_stdc=no
8961 fi
8962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8963   conftest.$ac_objext conftest.beam conftest.$ac_ext
8964 fi
8965
8966 fi
8967 fi
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8969 $as_echo "$ac_cv_header_stdc" >&6; }
8970 if test $ac_cv_header_stdc = yes; then
8971
8972 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8973
8974 fi
8975
8976 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8977 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8978                   inttypes.h stdint.h unistd.h
8979 do :
8980   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8981 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8982 "
8983 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8984   cat >>confdefs.h <<_ACEOF
8985 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8986 _ACEOF
8987
8988 fi
8989
8990 done
8991
8992
8993 for ac_header in dlfcn.h
8994 do :
8995   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8996 "
8997 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8998   cat >>confdefs.h <<_ACEOF
8999 #define HAVE_DLFCN_H 1
9000 _ACEOF
9001
9002 fi
9003
9004 done
9005
9006
9007
9008
9009 func_stripname_cnf ()
9010 {
9011   case ${2} in
9012   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9013   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9014   esac
9015 } # func_stripname_cnf
9016
9017
9018
9019
9020
9021 # Set options
9022
9023
9024
9025         enable_dlopen=no
9026
9027
9028   enable_win32_dll=no
9029
9030
9031
9032   # Check whether --enable-static was given.
9033 if test "${enable_static+set}" = set; then :
9034   enableval=$enable_static; p=${PACKAGE-default}
9035     case $enableval in
9036     yes) enable_static=yes ;;
9037     no) enable_static=no ;;
9038     *)
9039      enable_static=no
9040       # Look at the argument we got.  We use all the common list separators.
9041       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9042       for pkg in $enableval; do
9043         IFS="$lt_save_ifs"
9044         if test "X$pkg" = "X$p"; then
9045           enable_static=yes
9046         fi
9047       done
9048       IFS="$lt_save_ifs"
9049       ;;
9050     esac
9051 else
9052   enable_static=yes
9053 fi
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064 # Check whether --with-pic was given.
9065 if test "${with_pic+set}" = set; then :
9066   withval=$with_pic; pic_mode="$withval"
9067 else
9068   pic_mode=default
9069 fi
9070
9071
9072 test -z "$pic_mode" && pic_mode=default
9073
9074
9075
9076
9077
9078
9079
9080   # Check whether --enable-fast-install was given.
9081 if test "${enable_fast_install+set}" = set; then :
9082   enableval=$enable_fast_install; p=${PACKAGE-default}
9083     case $enableval in
9084     yes) enable_fast_install=yes ;;
9085     no) enable_fast_install=no ;;
9086     *)
9087       enable_fast_install=no
9088       # Look at the argument we got.  We use all the common list separators.
9089       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9090       for pkg in $enableval; do
9091         IFS="$lt_save_ifs"
9092         if test "X$pkg" = "X$p"; then
9093           enable_fast_install=yes
9094         fi
9095       done
9096       IFS="$lt_save_ifs"
9097       ;;
9098     esac
9099 else
9100   enable_fast_install=yes
9101 fi
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113 # This can be used to rebuild libtool when needed
9114 LIBTOOL_DEPS="$ltmain"
9115
9116 # Always use our own libtool.
9117 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144 test -z "$LN_S" && LN_S="ln -s"
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159 if test -n "${ZSH_VERSION+set}" ; then
9160    setopt NO_GLOB_SUBST
9161 fi
9162
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9164 $as_echo_n "checking for objdir... " >&6; }
9165 if ${lt_cv_objdir+:} false; then :
9166   $as_echo_n "(cached) " >&6
9167 else
9168   rm -f .libs 2>/dev/null
9169 mkdir .libs 2>/dev/null
9170 if test -d .libs; then
9171   lt_cv_objdir=.libs
9172 else
9173   # MS-DOS does not allow filenames that begin with a dot.
9174   lt_cv_objdir=_libs
9175 fi
9176 rmdir .libs 2>/dev/null
9177 fi
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9179 $as_echo "$lt_cv_objdir" >&6; }
9180 objdir=$lt_cv_objdir
9181
9182
9183
9184
9185
9186 cat >>confdefs.h <<_ACEOF
9187 #define LT_OBJDIR "$lt_cv_objdir/"
9188 _ACEOF
9189
9190
9191
9192
9193 case $host_os in
9194 aix3*)
9195   # AIX sometimes has problems with the GCC collect2 program.  For some
9196   # reason, if we set the COLLECT_NAMES environment variable, the problems
9197   # vanish in a puff of smoke.
9198   if test "X${COLLECT_NAMES+set}" != Xset; then
9199     COLLECT_NAMES=
9200     export COLLECT_NAMES
9201   fi
9202   ;;
9203 esac
9204
9205 # Global variables:
9206 ofile=libtool
9207 can_build_shared=yes
9208
9209 # All known linkers require a `.a' archive for static linking (except MSVC,
9210 # which needs '.lib').
9211 libext=a
9212
9213 with_gnu_ld="$lt_cv_prog_gnu_ld"
9214
9215 old_CC="$CC"
9216 old_CFLAGS="$CFLAGS"
9217
9218 # Set sane defaults for various variables
9219 test -z "$CC" && CC=cc
9220 test -z "$LTCC" && LTCC=$CC
9221 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9222 test -z "$LD" && LD=ld
9223 test -z "$ac_objext" && ac_objext=o
9224
9225 for cc_temp in $compiler""; do
9226   case $cc_temp in
9227     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9228     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9229     \-*) ;;
9230     *) break;;
9231   esac
9232 done
9233 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9234
9235
9236 # Only perform the check for file, if the check method requires it
9237 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9238 case $deplibs_check_method in
9239 file_magic*)
9240   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9241     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9242 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9243 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9244   $as_echo_n "(cached) " >&6
9245 else
9246   case $MAGIC_CMD in
9247 [\\/*] |  ?:[\\/]*)
9248   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9249   ;;
9250 *)
9251   lt_save_MAGIC_CMD="$MAGIC_CMD"
9252   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9253   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9254   for ac_dir in $ac_dummy; do
9255     IFS="$lt_save_ifs"
9256     test -z "$ac_dir" && ac_dir=.
9257     if test -f $ac_dir/${ac_tool_prefix}file; then
9258       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9259       if test -n "$file_magic_test_file"; then
9260         case $deplibs_check_method in
9261         "file_magic "*)
9262           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9263           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9264           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9265             $EGREP "$file_magic_regex" > /dev/null; then
9266             :
9267           else
9268             cat <<_LT_EOF 1>&2
9269
9270 *** Warning: the command libtool uses to detect shared libraries,
9271 *** $file_magic_cmd, produces output that libtool cannot recognize.
9272 *** The result is that libtool may fail to recognize shared libraries
9273 *** as such.  This will affect the creation of libtool libraries that
9274 *** depend on shared libraries, but programs linked with such libtool
9275 *** libraries will work regardless of this problem.  Nevertheless, you
9276 *** may want to report the problem to your system manager and/or to
9277 *** bug-libtool@gnu.org
9278
9279 _LT_EOF
9280           fi ;;
9281         esac
9282       fi
9283       break
9284     fi
9285   done
9286   IFS="$lt_save_ifs"
9287   MAGIC_CMD="$lt_save_MAGIC_CMD"
9288   ;;
9289 esac
9290 fi
9291
9292 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9293 if test -n "$MAGIC_CMD"; then
9294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9295 $as_echo "$MAGIC_CMD" >&6; }
9296 else
9297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9298 $as_echo "no" >&6; }
9299 fi
9300
9301
9302
9303
9304
9305 if test -z "$lt_cv_path_MAGIC_CMD"; then
9306   if test -n "$ac_tool_prefix"; then
9307     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9308 $as_echo_n "checking for file... " >&6; }
9309 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9310   $as_echo_n "(cached) " >&6
9311 else
9312   case $MAGIC_CMD in
9313 [\\/*] |  ?:[\\/]*)
9314   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9315   ;;
9316 *)
9317   lt_save_MAGIC_CMD="$MAGIC_CMD"
9318   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9319   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9320   for ac_dir in $ac_dummy; do
9321     IFS="$lt_save_ifs"
9322     test -z "$ac_dir" && ac_dir=.
9323     if test -f $ac_dir/file; then
9324       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9325       if test -n "$file_magic_test_file"; then
9326         case $deplibs_check_method in
9327         "file_magic "*)
9328           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9329           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9330           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9331             $EGREP "$file_magic_regex" > /dev/null; then
9332             :
9333           else
9334             cat <<_LT_EOF 1>&2
9335
9336 *** Warning: the command libtool uses to detect shared libraries,
9337 *** $file_magic_cmd, produces output that libtool cannot recognize.
9338 *** The result is that libtool may fail to recognize shared libraries
9339 *** as such.  This will affect the creation of libtool libraries that
9340 *** depend on shared libraries, but programs linked with such libtool
9341 *** libraries will work regardless of this problem.  Nevertheless, you
9342 *** may want to report the problem to your system manager and/or to
9343 *** bug-libtool@gnu.org
9344
9345 _LT_EOF
9346           fi ;;
9347         esac
9348       fi
9349       break
9350     fi
9351   done
9352   IFS="$lt_save_ifs"
9353   MAGIC_CMD="$lt_save_MAGIC_CMD"
9354   ;;
9355 esac
9356 fi
9357
9358 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9359 if test -n "$MAGIC_CMD"; then
9360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9361 $as_echo "$MAGIC_CMD" >&6; }
9362 else
9363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9364 $as_echo "no" >&6; }
9365 fi
9366
9367
9368   else
9369     MAGIC_CMD=:
9370   fi
9371 fi
9372
9373   fi
9374   ;;
9375 esac
9376
9377 # Use C for the default configuration in the libtool script
9378
9379 lt_save_CC="$CC"
9380 ac_ext=c
9381 ac_cpp='$CPP $CPPFLAGS'
9382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9385
9386
9387 # Source file extension for C test sources.
9388 ac_ext=c
9389
9390 # Object file extension for compiled C test sources.
9391 objext=o
9392 objext=$objext
9393
9394 # Code to be used in simple compile tests
9395 lt_simple_compile_test_code="int some_variable = 0;"
9396
9397 # Code to be used in simple link tests
9398 lt_simple_link_test_code='int main(){return(0);}'
9399
9400
9401
9402
9403
9404
9405
9406 # If no C compiler was specified, use CC.
9407 LTCC=${LTCC-"$CC"}
9408
9409 # If no C compiler flags were specified, use CFLAGS.
9410 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9411
9412 # Allow CC to be a program name with arguments.
9413 compiler=$CC
9414
9415 # Save the default compiler, since it gets overwritten when the other
9416 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9417 compiler_DEFAULT=$CC
9418
9419 # save warnings/boilerplate of simple test code
9420 ac_outfile=conftest.$ac_objext
9421 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9422 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9423 _lt_compiler_boilerplate=`cat conftest.err`
9424 $RM conftest*
9425
9426 ac_outfile=conftest.$ac_objext
9427 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9428 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9429 _lt_linker_boilerplate=`cat conftest.err`
9430 $RM -r conftest*
9431
9432
9433 ## CAVEAT EMPTOR:
9434 ## There is no encapsulation within the following macros, do not change
9435 ## the running order or otherwise move them around unless you know exactly
9436 ## what you are doing...
9437 if test -n "$compiler"; then
9438
9439 lt_prog_compiler_no_builtin_flag=
9440
9441 if test "$GCC" = yes; then
9442   case $cc_basename in
9443   nvcc*)
9444     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9445   *)
9446     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9447   esac
9448
9449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9450 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9451 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9452   $as_echo_n "(cached) " >&6
9453 else
9454   lt_cv_prog_compiler_rtti_exceptions=no
9455    ac_outfile=conftest.$ac_objext
9456    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9457    lt_compiler_flag="-fno-rtti -fno-exceptions"
9458    # Insert the option either (1) after the last *FLAGS variable, or
9459    # (2) before a word containing "conftest.", or (3) at the end.
9460    # Note that $ac_compile itself does not contain backslashes and begins
9461    # with a dollar sign (not a hyphen), so the echo should work correctly.
9462    # The option is referenced via a variable to avoid confusing sed.
9463    lt_compile=`echo "$ac_compile" | $SED \
9464    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9465    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9466    -e 's:$: $lt_compiler_flag:'`
9467    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9468    (eval "$lt_compile" 2>conftest.err)
9469    ac_status=$?
9470    cat conftest.err >&5
9471    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472    if (exit $ac_status) && test -s "$ac_outfile"; then
9473      # The compiler can only warn and ignore the option if not recognized
9474      # So say no if there are warnings other than the usual output.
9475      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9476      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9477      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9478        lt_cv_prog_compiler_rtti_exceptions=yes
9479      fi
9480    fi
9481    $RM conftest*
9482
9483 fi
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9485 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9486
9487 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9488     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9489 else
9490     :
9491 fi
9492
9493 fi
9494
9495
9496
9497
9498
9499
9500   lt_prog_compiler_wl=
9501 lt_prog_compiler_pic=
9502 lt_prog_compiler_static=
9503
9504
9505   if test "$GCC" = yes; then
9506     lt_prog_compiler_wl='-Wl,'
9507     lt_prog_compiler_static='-static'
9508
9509     case $host_os in
9510       aix*)
9511       # All AIX code is PIC.
9512       if test "$host_cpu" = ia64; then
9513         # AIX 5 now supports IA64 processor
9514         lt_prog_compiler_static='-Bstatic'
9515       fi
9516       ;;
9517
9518     amigaos*)
9519       case $host_cpu in
9520       powerpc)
9521             # see comment about AmigaOS4 .so support
9522             lt_prog_compiler_pic='-fPIC'
9523         ;;
9524       m68k)
9525             # FIXME: we need at least 68020 code to build shared libraries, but
9526             # adding the `-m68020' flag to GCC prevents building anything better,
9527             # like `-m68040'.
9528             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9529         ;;
9530       esac
9531       ;;
9532
9533     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9534       # PIC is the default for these OSes.
9535       ;;
9536
9537     mingw* | cygwin* | pw32* | os2* | cegcc*)
9538       # This hack is so that the source file can tell whether it is being
9539       # built for inclusion in a dll (and should export symbols for example).
9540       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9541       # (--disable-auto-import) libraries
9542       lt_prog_compiler_pic='-DDLL_EXPORT'
9543       ;;
9544
9545     darwin* | rhapsody*)
9546       # PIC is the default on this platform
9547       # Common symbols not allowed in MH_DYLIB files
9548       lt_prog_compiler_pic='-fno-common'
9549       ;;
9550
9551     haiku*)
9552       # PIC is the default for Haiku.
9553       # The "-static" flag exists, but is broken.
9554       lt_prog_compiler_static=
9555       ;;
9556
9557     hpux*)
9558       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9559       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9560       # sets the default TLS model and affects inlining.
9561       case $host_cpu in
9562       hppa*64*)
9563         # +Z the default
9564         ;;
9565       *)
9566         lt_prog_compiler_pic='-fPIC'
9567         ;;
9568       esac
9569       ;;
9570
9571     interix[3-9]*)
9572       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9573       # Instead, we relocate shared libraries at runtime.
9574       ;;
9575
9576     msdosdjgpp*)
9577       # Just because we use GCC doesn't mean we suddenly get shared libraries
9578       # on systems that don't support them.
9579       lt_prog_compiler_can_build_shared=no
9580       enable_shared=no
9581       ;;
9582
9583     *nto* | *qnx*)
9584       # QNX uses GNU C++, but need to define -shared option too, otherwise
9585       # it will coredump.
9586       lt_prog_compiler_pic='-fPIC -shared'
9587       ;;
9588
9589     sysv4*MP*)
9590       if test -d /usr/nec; then
9591         lt_prog_compiler_pic=-Kconform_pic
9592       fi
9593       ;;
9594
9595     *)
9596       lt_prog_compiler_pic='-fPIC'
9597       ;;
9598     esac
9599
9600     case $cc_basename in
9601     nvcc*) # Cuda Compiler Driver 2.2
9602       lt_prog_compiler_wl='-Xlinker '
9603       lt_prog_compiler_pic='-Xcompiler -fPIC'
9604       ;;
9605     esac
9606   else
9607     # PORTME Check for flag to pass linker flags through the system compiler.
9608     case $host_os in
9609     aix*)
9610       lt_prog_compiler_wl='-Wl,'
9611       if test "$host_cpu" = ia64; then
9612         # AIX 5 now supports IA64 processor
9613         lt_prog_compiler_static='-Bstatic'
9614       else
9615         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9616       fi
9617       ;;
9618
9619     mingw* | cygwin* | pw32* | os2* | cegcc*)
9620       # This hack is so that the source file can tell whether it is being
9621       # built for inclusion in a dll (and should export symbols for example).
9622       lt_prog_compiler_pic='-DDLL_EXPORT'
9623       ;;
9624
9625     hpux9* | hpux10* | hpux11*)
9626       lt_prog_compiler_wl='-Wl,'
9627       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9628       # not for PA HP-UX.
9629       case $host_cpu in
9630       hppa*64*|ia64*)
9631         # +Z the default
9632         ;;
9633       *)
9634         lt_prog_compiler_pic='+Z'
9635         ;;
9636       esac
9637       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9638       lt_prog_compiler_static='${wl}-a ${wl}archive'
9639       ;;
9640
9641     irix5* | irix6* | nonstopux*)
9642       lt_prog_compiler_wl='-Wl,'
9643       # PIC (with -KPIC) is the default.
9644       lt_prog_compiler_static='-non_shared'
9645       ;;
9646
9647     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9648       case $cc_basename in
9649       # old Intel for x86_64 which still supported -KPIC.
9650       ecc*)
9651         lt_prog_compiler_wl='-Wl,'
9652         lt_prog_compiler_pic='-KPIC'
9653         lt_prog_compiler_static='-static'
9654         ;;
9655       # icc used to be incompatible with GCC.
9656       # ICC 10 doesn't accept -KPIC any more.
9657       icc* | ifort*)
9658         lt_prog_compiler_wl='-Wl,'
9659         lt_prog_compiler_pic='-fPIC'
9660         lt_prog_compiler_static='-static'
9661         ;;
9662       # Lahey Fortran 8.1.
9663       lf95*)
9664         lt_prog_compiler_wl='-Wl,'
9665         lt_prog_compiler_pic='--shared'
9666         lt_prog_compiler_static='--static'
9667         ;;
9668       nagfor*)
9669         # NAG Fortran compiler
9670         lt_prog_compiler_wl='-Wl,-Wl,,'
9671         lt_prog_compiler_pic='-PIC'
9672         lt_prog_compiler_static='-Bstatic'
9673         ;;
9674       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9675         # Portland Group compilers (*not* the Pentium gcc compiler,
9676         # which looks to be a dead project)
9677         lt_prog_compiler_wl='-Wl,'
9678         lt_prog_compiler_pic='-fpic'
9679         lt_prog_compiler_static='-Bstatic'
9680         ;;
9681       ccc*)
9682         lt_prog_compiler_wl='-Wl,'
9683         # All Alpha code is PIC.
9684         lt_prog_compiler_static='-non_shared'
9685         ;;
9686       xl* | bgxl* | bgf* | mpixl*)
9687         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9688         lt_prog_compiler_wl='-Wl,'
9689         lt_prog_compiler_pic='-qpic'
9690         lt_prog_compiler_static='-qstaticlink'
9691         ;;
9692       *)
9693         case `$CC -V 2>&1 | sed 5q` in
9694         *Sun\ F* | *Sun*Fortran*)
9695           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9696           lt_prog_compiler_pic='-KPIC'
9697           lt_prog_compiler_static='-Bstatic'
9698           lt_prog_compiler_wl=''
9699           ;;
9700         *Sun\ C*)
9701           # Sun C 5.9
9702           lt_prog_compiler_pic='-KPIC'
9703           lt_prog_compiler_static='-Bstatic'
9704           lt_prog_compiler_wl='-Wl,'
9705           ;;
9706         esac
9707         ;;
9708       esac
9709       ;;
9710
9711     newsos6)
9712       lt_prog_compiler_pic='-KPIC'
9713       lt_prog_compiler_static='-Bstatic'
9714       ;;
9715
9716     *nto* | *qnx*)
9717       # QNX uses GNU C++, but need to define -shared option too, otherwise
9718       # it will coredump.
9719       lt_prog_compiler_pic='-fPIC -shared'
9720       ;;
9721
9722     osf3* | osf4* | osf5*)
9723       lt_prog_compiler_wl='-Wl,'
9724       # All OSF/1 code is PIC.
9725       lt_prog_compiler_static='-non_shared'
9726       ;;
9727
9728     rdos*)
9729       lt_prog_compiler_static='-non_shared'
9730       ;;
9731
9732     solaris*)
9733       lt_prog_compiler_pic='-KPIC'
9734       lt_prog_compiler_static='-Bstatic'
9735       case $cc_basename in
9736       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9737         lt_prog_compiler_wl='-Qoption ld ';;
9738       *)
9739         lt_prog_compiler_wl='-Wl,';;
9740       esac
9741       ;;
9742
9743     sunos4*)
9744       lt_prog_compiler_wl='-Qoption ld '
9745       lt_prog_compiler_pic='-PIC'
9746       lt_prog_compiler_static='-Bstatic'
9747       ;;
9748
9749     sysv4 | sysv4.2uw2* | sysv4.3*)
9750       lt_prog_compiler_wl='-Wl,'
9751       lt_prog_compiler_pic='-KPIC'
9752       lt_prog_compiler_static='-Bstatic'
9753       ;;
9754
9755     sysv4*MP*)
9756       if test -d /usr/nec ;then
9757         lt_prog_compiler_pic='-Kconform_pic'
9758         lt_prog_compiler_static='-Bstatic'
9759       fi
9760       ;;
9761
9762     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9763       lt_prog_compiler_wl='-Wl,'
9764       lt_prog_compiler_pic='-KPIC'
9765       lt_prog_compiler_static='-Bstatic'
9766       ;;
9767
9768     unicos*)
9769       lt_prog_compiler_wl='-Wl,'
9770       lt_prog_compiler_can_build_shared=no
9771       ;;
9772
9773     uts4*)
9774       lt_prog_compiler_pic='-pic'
9775       lt_prog_compiler_static='-Bstatic'
9776       ;;
9777
9778     *)
9779       lt_prog_compiler_can_build_shared=no
9780       ;;
9781     esac
9782   fi
9783
9784 case $host_os in
9785   # For platforms which do not support PIC, -DPIC is meaningless:
9786   *djgpp*)
9787     lt_prog_compiler_pic=
9788     ;;
9789   *)
9790     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9791     ;;
9792 esac
9793
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9795 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9796 if ${lt_cv_prog_compiler_pic+:} false; then :
9797   $as_echo_n "(cached) " >&6
9798 else
9799   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9800 fi
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9802 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9803 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9804
9805 #
9806 # Check to make sure the PIC flag actually works.
9807 #
9808 if test -n "$lt_prog_compiler_pic"; then
9809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9810 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9811 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9812   $as_echo_n "(cached) " >&6
9813 else
9814   lt_cv_prog_compiler_pic_works=no
9815    ac_outfile=conftest.$ac_objext
9816    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9817    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9818    # Insert the option either (1) after the last *FLAGS variable, or
9819    # (2) before a word containing "conftest.", or (3) at the end.
9820    # Note that $ac_compile itself does not contain backslashes and begins
9821    # with a dollar sign (not a hyphen), so the echo should work correctly.
9822    # The option is referenced via a variable to avoid confusing sed.
9823    lt_compile=`echo "$ac_compile" | $SED \
9824    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9825    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9826    -e 's:$: $lt_compiler_flag:'`
9827    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9828    (eval "$lt_compile" 2>conftest.err)
9829    ac_status=$?
9830    cat conftest.err >&5
9831    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832    if (exit $ac_status) && test -s "$ac_outfile"; then
9833      # The compiler can only warn and ignore the option if not recognized
9834      # So say no if there are warnings other than the usual output.
9835      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9836      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9837      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9838        lt_cv_prog_compiler_pic_works=yes
9839      fi
9840    fi
9841    $RM conftest*
9842
9843 fi
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9845 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9846
9847 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9848     case $lt_prog_compiler_pic in
9849      "" | " "*) ;;
9850      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9851      esac
9852 else
9853     lt_prog_compiler_pic=
9854      lt_prog_compiler_can_build_shared=no
9855 fi
9856
9857 fi
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869 #
9870 # Check to make sure the static flag actually works.
9871 #
9872 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9874 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9875 if ${lt_cv_prog_compiler_static_works+:} false; then :
9876   $as_echo_n "(cached) " >&6
9877 else
9878   lt_cv_prog_compiler_static_works=no
9879    save_LDFLAGS="$LDFLAGS"
9880    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9881    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9882    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9883      # The linker can only warn and ignore the option if not recognized
9884      # So say no if there are warnings
9885      if test -s conftest.err; then
9886        # Append any errors to the config.log.
9887        cat conftest.err 1>&5
9888        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9889        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9890        if diff conftest.exp conftest.er2 >/dev/null; then
9891          lt_cv_prog_compiler_static_works=yes
9892        fi
9893      else
9894        lt_cv_prog_compiler_static_works=yes
9895      fi
9896    fi
9897    $RM -r conftest*
9898    LDFLAGS="$save_LDFLAGS"
9899
9900 fi
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9902 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9903
9904 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9905     :
9906 else
9907     lt_prog_compiler_static=
9908 fi
9909
9910
9911
9912
9913
9914
9915
9916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9917 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9918 if ${lt_cv_prog_compiler_c_o+:} false; then :
9919   $as_echo_n "(cached) " >&6
9920 else
9921   lt_cv_prog_compiler_c_o=no
9922    $RM -r conftest 2>/dev/null
9923    mkdir conftest
9924    cd conftest
9925    mkdir out
9926    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9927
9928    lt_compiler_flag="-o out/conftest2.$ac_objext"
9929    # Insert the option either (1) after the last *FLAGS variable, or
9930    # (2) before a word containing "conftest.", or (3) at the end.
9931    # Note that $ac_compile itself does not contain backslashes and begins
9932    # with a dollar sign (not a hyphen), so the echo should work correctly.
9933    lt_compile=`echo "$ac_compile" | $SED \
9934    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9935    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9936    -e 's:$: $lt_compiler_flag:'`
9937    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9938    (eval "$lt_compile" 2>out/conftest.err)
9939    ac_status=$?
9940    cat out/conftest.err >&5
9941    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9943    then
9944      # The compiler can only warn and ignore the option if not recognized
9945      # So say no if there are warnings
9946      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9947      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9948      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9949        lt_cv_prog_compiler_c_o=yes
9950      fi
9951    fi
9952    chmod u+w . 2>&5
9953    $RM conftest*
9954    # SGI C++ compiler will create directory out/ii_files/ for
9955    # template instantiation
9956    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9957    $RM out/* && rmdir out
9958    cd ..
9959    $RM -r conftest
9960    $RM conftest*
9961
9962 fi
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9964 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9965
9966
9967
9968
9969
9970
9971   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9972 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9973 if ${lt_cv_prog_compiler_c_o+:} false; then :
9974   $as_echo_n "(cached) " >&6
9975 else
9976   lt_cv_prog_compiler_c_o=no
9977    $RM -r conftest 2>/dev/null
9978    mkdir conftest
9979    cd conftest
9980    mkdir out
9981    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9982
9983    lt_compiler_flag="-o out/conftest2.$ac_objext"
9984    # Insert the option either (1) after the last *FLAGS variable, or
9985    # (2) before a word containing "conftest.", or (3) at the end.
9986    # Note that $ac_compile itself does not contain backslashes and begins
9987    # with a dollar sign (not a hyphen), so the echo should work correctly.
9988    lt_compile=`echo "$ac_compile" | $SED \
9989    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9990    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9991    -e 's:$: $lt_compiler_flag:'`
9992    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9993    (eval "$lt_compile" 2>out/conftest.err)
9994    ac_status=$?
9995    cat out/conftest.err >&5
9996    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9998    then
9999      # The compiler can only warn and ignore the option if not recognized
10000      # So say no if there are warnings
10001      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10002      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10003      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10004        lt_cv_prog_compiler_c_o=yes
10005      fi
10006    fi
10007    chmod u+w . 2>&5
10008    $RM conftest*
10009    # SGI C++ compiler will create directory out/ii_files/ for
10010    # template instantiation
10011    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10012    $RM out/* && rmdir out
10013    cd ..
10014    $RM -r conftest
10015    $RM conftest*
10016
10017 fi
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10019 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10020
10021
10022
10023
10024 hard_links="nottested"
10025 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10026   # do not overwrite the value of need_locks provided by the user
10027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10028 $as_echo_n "checking if we can lock with hard links... " >&6; }
10029   hard_links=yes
10030   $RM conftest*
10031   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10032   touch conftest.a
10033   ln conftest.a conftest.b 2>&5 || hard_links=no
10034   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10036 $as_echo "$hard_links" >&6; }
10037   if test "$hard_links" = no; then
10038     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10039 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10040     need_locks=warn
10041   fi
10042 else
10043   need_locks=no
10044 fi
10045
10046
10047
10048
10049
10050
10051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10052 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10053
10054   runpath_var=
10055   allow_undefined_flag=
10056   always_export_symbols=no
10057   archive_cmds=
10058   archive_expsym_cmds=
10059   compiler_needs_object=no
10060   enable_shared_with_static_runtimes=no
10061   export_dynamic_flag_spec=
10062   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10063   hardcode_automatic=no
10064   hardcode_direct=no
10065   hardcode_direct_absolute=no
10066   hardcode_libdir_flag_spec=
10067   hardcode_libdir_flag_spec_ld=
10068   hardcode_libdir_separator=
10069   hardcode_minus_L=no
10070   hardcode_shlibpath_var=unsupported
10071   inherit_rpath=no
10072   link_all_deplibs=unknown
10073   module_cmds=
10074   module_expsym_cmds=
10075   old_archive_from_new_cmds=
10076   old_archive_from_expsyms_cmds=
10077   thread_safe_flag_spec=
10078   whole_archive_flag_spec=
10079   # include_expsyms should be a list of space-separated symbols to be *always*
10080   # included in the symbol list
10081   include_expsyms=
10082   # exclude_expsyms can be an extended regexp of symbols to exclude
10083   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10084   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10085   # as well as any symbol that contains `d'.
10086   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10087   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10088   # platforms (ab)use it in PIC code, but their linkers get confused if
10089   # the symbol is explicitly referenced.  Since portable code cannot
10090   # rely on this symbol name, it's probably fine to never include it in
10091   # preloaded symbol tables.
10092   # Exclude shared library initialization/finalization symbols.
10093   extract_expsyms_cmds=
10094
10095   case $host_os in
10096   cygwin* | mingw* | pw32* | cegcc*)
10097     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10098     # When not using gcc, we currently assume that we are using
10099     # Microsoft Visual C++.
10100     if test "$GCC" != yes; then
10101       with_gnu_ld=no
10102     fi
10103     ;;
10104   interix*)
10105     # we just hope/assume this is gcc and not c89 (= MSVC++)
10106     with_gnu_ld=yes
10107     ;;
10108   openbsd*)
10109     with_gnu_ld=no
10110     ;;
10111   esac
10112
10113   ld_shlibs=yes
10114
10115   # On some targets, GNU ld is compatible enough with the native linker
10116   # that we're better off using the native interface for both.
10117   lt_use_gnu_ld_interface=no
10118   if test "$with_gnu_ld" = yes; then
10119     case $host_os in
10120       aix*)
10121         # The AIX port of GNU ld has always aspired to compatibility
10122         # with the native linker.  However, as the warning in the GNU ld
10123         # block says, versions before 2.19.5* couldn't really create working
10124         # shared libraries, regardless of the interface used.
10125         case `$LD -v 2>&1` in
10126           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10127           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10128           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10129           *)
10130             lt_use_gnu_ld_interface=yes
10131             ;;
10132         esac
10133         ;;
10134       *)
10135         lt_use_gnu_ld_interface=yes
10136         ;;
10137     esac
10138   fi
10139
10140   if test "$lt_use_gnu_ld_interface" = yes; then
10141     # If archive_cmds runs LD, not CC, wlarc should be empty
10142     wlarc='${wl}'
10143
10144     # Set some defaults for GNU ld with shared library support. These
10145     # are reset later if shared libraries are not supported. Putting them
10146     # here allows them to be overridden if necessary.
10147     runpath_var=LD_RUN_PATH
10148     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10149     export_dynamic_flag_spec='${wl}--export-dynamic'
10150     # ancient GNU ld didn't support --whole-archive et. al.
10151     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10152       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10153     else
10154       whole_archive_flag_spec=
10155     fi
10156     supports_anon_versioning=no
10157     case `$LD -v 2>&1` in
10158       *GNU\ gold*) supports_anon_versioning=yes ;;
10159       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10160       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10161       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10162       *\ 2.11.*) ;; # other 2.11 versions
10163       *) supports_anon_versioning=yes ;;
10164     esac
10165
10166     # See if GNU ld supports shared libraries.
10167     case $host_os in
10168     aix[3-9]*)
10169       # On AIX/PPC, the GNU linker is very broken
10170       if test "$host_cpu" != ia64; then
10171         ld_shlibs=no
10172         cat <<_LT_EOF 1>&2
10173
10174 *** Warning: the GNU linker, at least up to release 2.19, is reported
10175 *** to be unable to reliably create shared libraries on AIX.
10176 *** Therefore, libtool is disabling shared libraries support.  If you
10177 *** really care for shared libraries, you may want to install binutils
10178 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10179 *** You will then need to restart the configuration process.
10180
10181 _LT_EOF
10182       fi
10183       ;;
10184
10185     amigaos*)
10186       case $host_cpu in
10187       powerpc)
10188             # see comment about AmigaOS4 .so support
10189             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10190             archive_expsym_cmds=''
10191         ;;
10192       m68k)
10193             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)'
10194             hardcode_libdir_flag_spec='-L$libdir'
10195             hardcode_minus_L=yes
10196         ;;
10197       esac
10198       ;;
10199
10200     beos*)
10201       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10202         allow_undefined_flag=unsupported
10203         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10204         # support --undefined.  This deserves some investigation.  FIXME
10205         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10206       else
10207         ld_shlibs=no
10208       fi
10209       ;;
10210
10211     cygwin* | mingw* | pw32* | cegcc*)
10212       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10213       # as there is no search path for DLLs.
10214       hardcode_libdir_flag_spec='-L$libdir'
10215       export_dynamic_flag_spec='${wl}--export-all-symbols'
10216       allow_undefined_flag=unsupported
10217       always_export_symbols=no
10218       enable_shared_with_static_runtimes=yes
10219       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'
10220       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10221
10222       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10223         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10224         # If the export-symbols file already is a .def file (1st line
10225         # is EXPORTS), use it as is; otherwise, prepend...
10226         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10227           cp $export_symbols $output_objdir/$soname.def;
10228         else
10229           echo EXPORTS > $output_objdir/$soname.def;
10230           cat $export_symbols >> $output_objdir/$soname.def;
10231         fi~
10232         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10233       else
10234         ld_shlibs=no
10235       fi
10236       ;;
10237
10238     haiku*)
10239       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10240       link_all_deplibs=yes
10241       ;;
10242
10243     interix[3-9]*)
10244       hardcode_direct=no
10245       hardcode_shlibpath_var=no
10246       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10247       export_dynamic_flag_spec='${wl}-E'
10248       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10249       # Instead, shared libraries are loaded at an image base (0x10000000 by
10250       # default) and relocated if they conflict, which is a slow very memory
10251       # consuming and fragmenting process.  To avoid this, we pick a random,
10252       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10253       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10254       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10255       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'
10256       ;;
10257
10258     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10259       tmp_diet=no
10260       if test "$host_os" = linux-dietlibc; then
10261         case $cc_basename in
10262           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10263         esac
10264       fi
10265       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10266          && test "$tmp_diet" = no
10267       then
10268         tmp_addflag=' $pic_flag'
10269         tmp_sharedflag='-shared'
10270         case $cc_basename,$host_cpu in
10271         pgcc*)                          # Portland Group C compiler
10272           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'
10273           tmp_addflag=' $pic_flag'
10274           ;;
10275         pgf77* | pgf90* | pgf95* | pgfortran*)
10276                                         # Portland Group f77 and f90 compilers
10277           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'
10278           tmp_addflag=' $pic_flag -Mnomain' ;;
10279         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10280           tmp_addflag=' -i_dynamic' ;;
10281         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10282           tmp_addflag=' -i_dynamic -nofor_main' ;;
10283         ifc* | ifort*)                  # Intel Fortran compiler
10284           tmp_addflag=' -nofor_main' ;;
10285         lf95*)                          # Lahey Fortran 8.1
10286           whole_archive_flag_spec=
10287           tmp_sharedflag='--shared' ;;
10288         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10289           tmp_sharedflag='-qmkshrobj'
10290           tmp_addflag= ;;
10291         nvcc*)  # Cuda Compiler Driver 2.2
10292           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'
10293           compiler_needs_object=yes
10294           ;;
10295         esac
10296         case `$CC -V 2>&1 | sed 5q` in
10297         *Sun\ C*)                       # Sun C 5.9
10298           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'
10299           compiler_needs_object=yes
10300           tmp_sharedflag='-G' ;;
10301         *Sun\ F*)                       # Sun Fortran 8.3
10302           tmp_sharedflag='-G' ;;
10303         esac
10304         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10305
10306         if test "x$supports_anon_versioning" = xyes; then
10307           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10308             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10309             echo "local: *; };" >> $output_objdir/$libname.ver~
10310             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10311         fi
10312
10313         case $cc_basename in
10314         xlf* | bgf* | bgxlf* | mpixlf*)
10315           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10316           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10317           hardcode_libdir_flag_spec=
10318           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10319           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10320           if test "x$supports_anon_versioning" = xyes; then
10321             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10322               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10323               echo "local: *; };" >> $output_objdir/$libname.ver~
10324               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10325           fi
10326           ;;
10327         esac
10328       else
10329         ld_shlibs=no
10330       fi
10331       ;;
10332
10333     netbsd*)
10334       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10335         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10336         wlarc=
10337       else
10338         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10339         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10340       fi
10341       ;;
10342
10343     solaris*)
10344       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10345         ld_shlibs=no
10346         cat <<_LT_EOF 1>&2
10347
10348 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10349 *** create shared libraries on Solaris systems.  Therefore, libtool
10350 *** is disabling shared libraries support.  We urge you to upgrade GNU
10351 *** binutils to release 2.9.1 or newer.  Another option is to modify
10352 *** your PATH or compiler configuration so that the native linker is
10353 *** used, and then restart.
10354
10355 _LT_EOF
10356       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10357         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10358         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10359       else
10360         ld_shlibs=no
10361       fi
10362       ;;
10363
10364     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10365       case `$LD -v 2>&1` in
10366         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10367         ld_shlibs=no
10368         cat <<_LT_EOF 1>&2
10369
10370 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10371 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10372 *** is disabling shared libraries support.  We urge you to upgrade GNU
10373 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10374 *** your PATH or compiler configuration so that the native linker is
10375 *** used, and then restart.
10376
10377 _LT_EOF
10378         ;;
10379         *)
10380           # For security reasons, it is highly recommended that you always
10381           # use absolute paths for naming shared libraries, and exclude the
10382           # DT_RUNPATH tag from executables and libraries.  But doing so
10383           # requires that you compile everything twice, which is a pain.
10384           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10385             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10386             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10387             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10388           else
10389             ld_shlibs=no
10390           fi
10391         ;;
10392       esac
10393       ;;
10394
10395     sunos4*)
10396       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10397       wlarc=
10398       hardcode_direct=yes
10399       hardcode_shlibpath_var=no
10400       ;;
10401
10402     *)
10403       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10404         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10405         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10406       else
10407         ld_shlibs=no
10408       fi
10409       ;;
10410     esac
10411
10412     if test "$ld_shlibs" = no; then
10413       runpath_var=
10414       hardcode_libdir_flag_spec=
10415       export_dynamic_flag_spec=
10416       whole_archive_flag_spec=
10417     fi
10418   else
10419     # PORTME fill in a description of your system's linker (not GNU ld)
10420     case $host_os in
10421     aix3*)
10422       allow_undefined_flag=unsupported
10423       always_export_symbols=yes
10424       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'
10425       # Note: this linker hardcodes the directories in LIBPATH if there
10426       # are no directories specified by -L.
10427       hardcode_minus_L=yes
10428       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10429         # Neither direct hardcoding nor static linking is supported with a
10430         # broken collect2.
10431         hardcode_direct=unsupported
10432       fi
10433       ;;
10434
10435     aix[4-9]*)
10436       if test "$host_cpu" = ia64; then
10437         # On IA64, the linker does run time linking by default, so we don't
10438         # have to do anything special.
10439         aix_use_runtimelinking=no
10440         exp_sym_flag='-Bexport'
10441         no_entry_flag=""
10442       else
10443         # If we're using GNU nm, then we don't want the "-C" option.
10444         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10445         # Also, AIX nm treats weak defined symbols like other global
10446         # defined symbols, whereas GNU nm marks them as "W".
10447         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10448           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'
10449         else
10450           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'
10451         fi
10452         aix_use_runtimelinking=no
10453
10454         # Test if we are trying to use run time linking or normal
10455         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10456         # need to do runtime linking.
10457         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10458           for ld_flag in $LDFLAGS; do
10459           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10460             aix_use_runtimelinking=yes
10461             break
10462           fi
10463           done
10464           ;;
10465         esac
10466
10467         exp_sym_flag='-bexport'
10468         no_entry_flag='-bnoentry'
10469       fi
10470
10471       # When large executables or shared objects are built, AIX ld can
10472       # have problems creating the table of contents.  If linking a library
10473       # or program results in "error TOC overflow" add -mminimal-toc to
10474       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10475       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10476
10477       archive_cmds=''
10478       hardcode_direct=yes
10479       hardcode_direct_absolute=yes
10480       hardcode_libdir_separator=':'
10481       link_all_deplibs=yes
10482       file_list_spec='${wl}-f,'
10483
10484       if test "$GCC" = yes; then
10485         case $host_os in aix4.[012]|aix4.[012].*)
10486         # We only want to do this on AIX 4.2 and lower, the check
10487         # below for broken collect2 doesn't work under 4.3+
10488           collect2name=`${CC} -print-prog-name=collect2`
10489           if test -f "$collect2name" &&
10490            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10491           then
10492           # We have reworked collect2
10493           :
10494           else
10495           # We have old collect2
10496           hardcode_direct=unsupported
10497           # It fails to find uninstalled libraries when the uninstalled
10498           # path is not listed in the libpath.  Setting hardcode_minus_L
10499           # to unsupported forces relinking
10500           hardcode_minus_L=yes
10501           hardcode_libdir_flag_spec='-L$libdir'
10502           hardcode_libdir_separator=
10503           fi
10504           ;;
10505         esac
10506         shared_flag='-shared'
10507         if test "$aix_use_runtimelinking" = yes; then
10508           shared_flag="$shared_flag "'${wl}-G'
10509         fi
10510       else
10511         # not using gcc
10512         if test "$host_cpu" = ia64; then
10513         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10514         # chokes on -Wl,-G. The following line is correct:
10515           shared_flag='-G'
10516         else
10517           if test "$aix_use_runtimelinking" = yes; then
10518             shared_flag='${wl}-G'
10519           else
10520             shared_flag='${wl}-bM:SRE'
10521           fi
10522         fi
10523       fi
10524
10525       export_dynamic_flag_spec='${wl}-bexpall'
10526       # It seems that -bexpall does not export symbols beginning with
10527       # underscore (_), so it is better to generate a list of symbols to export.
10528       always_export_symbols=yes
10529       if test "$aix_use_runtimelinking" = yes; then
10530         # Warning - without using the other runtime loading flags (-brtl),
10531         # -berok will link without error, but may produce a broken library.
10532         allow_undefined_flag='-berok'
10533         # Determine the default libpath from the value encoded in an
10534         # empty executable.
10535         if test "${lt_cv_aix_libpath+set}" = set; then
10536   aix_libpath=$lt_cv_aix_libpath
10537 else
10538   if ${lt_cv_aix_libpath_+:} false; then :
10539   $as_echo_n "(cached) " >&6
10540 else
10541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10542 /* end confdefs.h.  */
10543
10544 int
10545 main ()
10546 {
10547
10548   ;
10549   return 0;
10550 }
10551 _ACEOF
10552 if ac_fn_c_try_link "$LINENO"; then :
10553
10554   lt_aix_libpath_sed='
10555       /Import File Strings/,/^$/ {
10556           /^0/ {
10557               s/^0  *\([^ ]*\) *$/\1/
10558               p
10559           }
10560       }'
10561   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10562   # Check for a 64-bit object if we didn't find anything.
10563   if test -z "$lt_cv_aix_libpath_"; then
10564     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10565   fi
10566 fi
10567 rm -f core conftest.err conftest.$ac_objext \
10568     conftest$ac_exeext conftest.$ac_ext
10569   if test -z "$lt_cv_aix_libpath_"; then
10570     lt_cv_aix_libpath_="/usr/lib:/lib"
10571   fi
10572
10573 fi
10574
10575   aix_libpath=$lt_cv_aix_libpath_
10576 fi
10577
10578         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10579         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"
10580       else
10581         if test "$host_cpu" = ia64; then
10582           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10583           allow_undefined_flag="-z nodefs"
10584           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"
10585         else
10586          # Determine the default libpath from the value encoded in an
10587          # empty executable.
10588          if test "${lt_cv_aix_libpath+set}" = set; then
10589   aix_libpath=$lt_cv_aix_libpath
10590 else
10591   if ${lt_cv_aix_libpath_+:} false; then :
10592   $as_echo_n "(cached) " >&6
10593 else
10594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10595 /* end confdefs.h.  */
10596
10597 int
10598 main ()
10599 {
10600
10601   ;
10602   return 0;
10603 }
10604 _ACEOF
10605 if ac_fn_c_try_link "$LINENO"; then :
10606
10607   lt_aix_libpath_sed='
10608       /Import File Strings/,/^$/ {
10609           /^0/ {
10610               s/^0  *\([^ ]*\) *$/\1/
10611               p
10612           }
10613       }'
10614   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10615   # Check for a 64-bit object if we didn't find anything.
10616   if test -z "$lt_cv_aix_libpath_"; then
10617     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10618   fi
10619 fi
10620 rm -f core conftest.err conftest.$ac_objext \
10621     conftest$ac_exeext conftest.$ac_ext
10622   if test -z "$lt_cv_aix_libpath_"; then
10623     lt_cv_aix_libpath_="/usr/lib:/lib"
10624   fi
10625
10626 fi
10627
10628   aix_libpath=$lt_cv_aix_libpath_
10629 fi
10630
10631          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10632           # Warning - without using the other run time loading flags,
10633           # -berok will link without error, but may produce a broken library.
10634           no_undefined_flag=' ${wl}-bernotok'
10635           allow_undefined_flag=' ${wl}-berok'
10636           if test "$with_gnu_ld" = yes; then
10637             # We only use this code for GNU lds that support --whole-archive.
10638             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10639           else
10640             # Exported symbols can be pulled into shared objects from archives
10641             whole_archive_flag_spec='$convenience'
10642           fi
10643           archive_cmds_need_lc=yes
10644           # This is similar to how AIX traditionally builds its shared libraries.
10645           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'
10646         fi
10647       fi
10648       ;;
10649
10650     amigaos*)
10651       case $host_cpu in
10652       powerpc)
10653             # see comment about AmigaOS4 .so support
10654             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10655             archive_expsym_cmds=''
10656         ;;
10657       m68k)
10658             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)'
10659             hardcode_libdir_flag_spec='-L$libdir'
10660             hardcode_minus_L=yes
10661         ;;
10662       esac
10663       ;;
10664
10665     bsdi[45]*)
10666       export_dynamic_flag_spec=-rdynamic
10667       ;;
10668
10669     cygwin* | mingw* | pw32* | cegcc*)
10670       # When not using gcc, we currently assume that we are using
10671       # Microsoft Visual C++.
10672       # hardcode_libdir_flag_spec is actually meaningless, as there is
10673       # no search path for DLLs.
10674       case $cc_basename in
10675       cl*)
10676         # Native MSVC
10677         hardcode_libdir_flag_spec=' '
10678         allow_undefined_flag=unsupported
10679         always_export_symbols=yes
10680         file_list_spec='@'
10681         # Tell ltmain to make .lib files, not .a files.
10682         libext=lib
10683         # Tell ltmain to make .dll files, not .so files.
10684         shrext_cmds=".dll"
10685         # FIXME: Setting linknames here is a bad hack.
10686         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10687         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10688             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10689           else
10690             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10691           fi~
10692           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10693           linknames='
10694         # The linker will not automatically build a static lib if we build a DLL.
10695         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10696         enable_shared_with_static_runtimes=yes
10697         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10698         # Don't use ranlib
10699         old_postinstall_cmds='chmod 644 $oldlib'
10700         postlink_cmds='lt_outputfile="@OUTPUT@"~
10701           lt_tool_outputfile="@TOOL_OUTPUT@"~
10702           case $lt_outputfile in
10703             *.exe|*.EXE) ;;
10704             *)
10705               lt_outputfile="$lt_outputfile.exe"
10706               lt_tool_outputfile="$lt_tool_outputfile.exe"
10707               ;;
10708           esac~
10709           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10710             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10711             $RM "$lt_outputfile.manifest";
10712           fi'
10713         ;;
10714       *)
10715         # Assume MSVC wrapper
10716         hardcode_libdir_flag_spec=' '
10717         allow_undefined_flag=unsupported
10718         # Tell ltmain to make .lib files, not .a files.
10719         libext=lib
10720         # Tell ltmain to make .dll files, not .so files.
10721         shrext_cmds=".dll"
10722         # FIXME: Setting linknames here is a bad hack.
10723         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10724         # The linker will automatically build a .lib file if we build a DLL.
10725         old_archive_from_new_cmds='true'
10726         # FIXME: Should let the user specify the lib program.
10727         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10728         enable_shared_with_static_runtimes=yes
10729         ;;
10730       esac
10731       ;;
10732
10733     darwin* | rhapsody*)
10734
10735
10736   archive_cmds_need_lc=no
10737   hardcode_direct=no
10738   hardcode_automatic=yes
10739   hardcode_shlibpath_var=unsupported
10740   if test "$lt_cv_ld_force_load" = "yes"; then
10741     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\"`'
10742   else
10743     whole_archive_flag_spec=''
10744   fi
10745   link_all_deplibs=yes
10746   allow_undefined_flag="$_lt_dar_allow_undefined"
10747   case $cc_basename in
10748      ifort*) _lt_dar_can_shared=yes ;;
10749      *) _lt_dar_can_shared=$GCC ;;
10750   esac
10751   if test "$_lt_dar_can_shared" = "yes"; then
10752     output_verbose_link_cmd=func_echo_all
10753     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10754     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10755     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}"
10756     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}"
10757
10758   else
10759   ld_shlibs=no
10760   fi
10761
10762       ;;
10763
10764     dgux*)
10765       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10766       hardcode_libdir_flag_spec='-L$libdir'
10767       hardcode_shlibpath_var=no
10768       ;;
10769
10770     freebsd1*)
10771       ld_shlibs=no
10772       ;;
10773
10774     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10775     # support.  Future versions do this automatically, but an explicit c++rt0.o
10776     # does not break anything, and helps significantly (at the cost of a little
10777     # extra space).
10778     freebsd2.2*)
10779       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10780       hardcode_libdir_flag_spec='-R$libdir'
10781       hardcode_direct=yes
10782       hardcode_shlibpath_var=no
10783       ;;
10784
10785     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10786     freebsd2*)
10787       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10788       hardcode_direct=yes
10789       hardcode_minus_L=yes
10790       hardcode_shlibpath_var=no
10791       ;;
10792
10793     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10794     freebsd* | dragonfly*)
10795       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10796       hardcode_libdir_flag_spec='-R$libdir'
10797       hardcode_direct=yes
10798       hardcode_shlibpath_var=no
10799       ;;
10800
10801     hpux9*)
10802       if test "$GCC" = yes; then
10803         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'
10804       else
10805         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'
10806       fi
10807       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10808       hardcode_libdir_separator=:
10809       hardcode_direct=yes
10810
10811       # hardcode_minus_L: Not really in the search PATH,
10812       # but as the default location of the library.
10813       hardcode_minus_L=yes
10814       export_dynamic_flag_spec='${wl}-E'
10815       ;;
10816
10817     hpux10*)
10818       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10819         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10820       else
10821         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10822       fi
10823       if test "$with_gnu_ld" = no; then
10824         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10825         hardcode_libdir_flag_spec_ld='+b $libdir'
10826         hardcode_libdir_separator=:
10827         hardcode_direct=yes
10828         hardcode_direct_absolute=yes
10829         export_dynamic_flag_spec='${wl}-E'
10830         # hardcode_minus_L: Not really in the search PATH,
10831         # but as the default location of the library.
10832         hardcode_minus_L=yes
10833       fi
10834       ;;
10835
10836     hpux11*)
10837       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10838         case $host_cpu in
10839         hppa*64*)
10840           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10841           ;;
10842         ia64*)
10843           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10844           ;;
10845         *)
10846           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10847           ;;
10848         esac
10849       else
10850         case $host_cpu in
10851         hppa*64*)
10852           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10853           ;;
10854         ia64*)
10855           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10856           ;;
10857         *)
10858
10859           # Older versions of the 11.00 compiler do not understand -b yet
10860           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10861           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10862 $as_echo_n "checking if $CC understands -b... " >&6; }
10863 if ${lt_cv_prog_compiler__b+:} false; then :
10864   $as_echo_n "(cached) " >&6
10865 else
10866   lt_cv_prog_compiler__b=no
10867    save_LDFLAGS="$LDFLAGS"
10868    LDFLAGS="$LDFLAGS -b"
10869    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10870    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10871      # The linker can only warn and ignore the option if not recognized
10872      # So say no if there are warnings
10873      if test -s conftest.err; then
10874        # Append any errors to the config.log.
10875        cat conftest.err 1>&5
10876        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10877        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10878        if diff conftest.exp conftest.er2 >/dev/null; then
10879          lt_cv_prog_compiler__b=yes
10880        fi
10881      else
10882        lt_cv_prog_compiler__b=yes
10883      fi
10884    fi
10885    $RM -r conftest*
10886    LDFLAGS="$save_LDFLAGS"
10887
10888 fi
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10890 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10891
10892 if test x"$lt_cv_prog_compiler__b" = xyes; then
10893     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10894 else
10895     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10896 fi
10897
10898           ;;
10899         esac
10900       fi
10901       if test "$with_gnu_ld" = no; then
10902         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10903         hardcode_libdir_separator=:
10904
10905         case $host_cpu in
10906         hppa*64*|ia64*)
10907           hardcode_direct=no
10908           hardcode_shlibpath_var=no
10909           ;;
10910         *)
10911           hardcode_direct=yes
10912           hardcode_direct_absolute=yes
10913           export_dynamic_flag_spec='${wl}-E'
10914
10915           # hardcode_minus_L: Not really in the search PATH,
10916           # but as the default location of the library.
10917           hardcode_minus_L=yes
10918           ;;
10919         esac
10920       fi
10921       ;;
10922
10923     irix5* | irix6* | nonstopux*)
10924       if test "$GCC" = yes; then
10925         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'
10926         # Try to use the -exported_symbol ld option, if it does not
10927         # work, assume that -exports_file does not work either and
10928         # implicitly export all symbols.
10929         # This should be the same for all languages, so no per-tag cache variable.
10930         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10931 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10932 if ${lt_cv_irix_exported_symbol+:} false; then :
10933   $as_echo_n "(cached) " >&6
10934 else
10935   save_LDFLAGS="$LDFLAGS"
10936            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10937            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10938 /* end confdefs.h.  */
10939 int foo (void) { return 0; }
10940 _ACEOF
10941 if ac_fn_c_try_link "$LINENO"; then :
10942   lt_cv_irix_exported_symbol=yes
10943 else
10944   lt_cv_irix_exported_symbol=no
10945 fi
10946 rm -f core conftest.err conftest.$ac_objext \
10947     conftest$ac_exeext conftest.$ac_ext
10948            LDFLAGS="$save_LDFLAGS"
10949 fi
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10951 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10952         if test "$lt_cv_irix_exported_symbol" = yes; then
10953           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'
10954         fi
10955       else
10956         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'
10957         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'
10958       fi
10959       archive_cmds_need_lc='no'
10960       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10961       hardcode_libdir_separator=:
10962       inherit_rpath=yes
10963       link_all_deplibs=yes
10964       ;;
10965
10966     netbsd*)
10967       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10968         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10969       else
10970         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10971       fi
10972       hardcode_libdir_flag_spec='-R$libdir'
10973       hardcode_direct=yes
10974       hardcode_shlibpath_var=no
10975       ;;
10976
10977     newsos6)
10978       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10979       hardcode_direct=yes
10980       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10981       hardcode_libdir_separator=:
10982       hardcode_shlibpath_var=no
10983       ;;
10984
10985     *nto* | *qnx*)
10986       ;;
10987
10988     openbsd*)
10989       if test -f /usr/libexec/ld.so; then
10990         hardcode_direct=yes
10991         hardcode_shlibpath_var=no
10992         hardcode_direct_absolute=yes
10993         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10994           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10995           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10996           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10997           export_dynamic_flag_spec='${wl}-E'
10998         else
10999           case $host_os in
11000            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11001              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11002              hardcode_libdir_flag_spec='-R$libdir'
11003              ;;
11004            *)
11005              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11006              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11007              ;;
11008           esac
11009         fi
11010       else
11011         ld_shlibs=no
11012       fi
11013       ;;
11014
11015     os2*)
11016       hardcode_libdir_flag_spec='-L$libdir'
11017       hardcode_minus_L=yes
11018       allow_undefined_flag=unsupported
11019       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'
11020       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11021       ;;
11022
11023     osf3*)
11024       if test "$GCC" = yes; then
11025         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11026         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'
11027       else
11028         allow_undefined_flag=' -expect_unresolved \*'
11029         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'
11030       fi
11031       archive_cmds_need_lc='no'
11032       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11033       hardcode_libdir_separator=:
11034       ;;
11035
11036     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11037       if test "$GCC" = yes; then
11038         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11039         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'
11040         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11041       else
11042         allow_undefined_flag=' -expect_unresolved \*'
11043         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'
11044         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~
11045         $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'
11046
11047         # Both c and cxx compiler support -rpath directly
11048         hardcode_libdir_flag_spec='-rpath $libdir'
11049       fi
11050       archive_cmds_need_lc='no'
11051       hardcode_libdir_separator=:
11052       ;;
11053
11054     solaris*)
11055       no_undefined_flag=' -z defs'
11056       if test "$GCC" = yes; then
11057         wlarc='${wl}'
11058         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11059         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11060           $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'
11061       else
11062         case `$CC -V 2>&1` in
11063         *"Compilers 5.0"*)
11064           wlarc=''
11065           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11066           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11067           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11068           ;;
11069         *)
11070           wlarc='${wl}'
11071           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11072           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11073           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11074           ;;
11075         esac
11076       fi
11077       hardcode_libdir_flag_spec='-R$libdir'
11078       hardcode_shlibpath_var=no
11079       case $host_os in
11080       solaris2.[0-5] | solaris2.[0-5].*) ;;
11081       *)
11082         # The compiler driver will combine and reorder linker options,
11083         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11084         # but is careful enough not to reorder.
11085         # Supported since Solaris 2.6 (maybe 2.5.1?)
11086         if test "$GCC" = yes; then
11087           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11088         else
11089           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11090         fi
11091         ;;
11092       esac
11093       link_all_deplibs=yes
11094       ;;
11095
11096     sunos4*)
11097       if test "x$host_vendor" = xsequent; then
11098         # Use $CC to link under sequent, because it throws in some extra .o
11099         # files that make .init and .fini sections work.
11100         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11101       else
11102         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11103       fi
11104       hardcode_libdir_flag_spec='-L$libdir'
11105       hardcode_direct=yes
11106       hardcode_minus_L=yes
11107       hardcode_shlibpath_var=no
11108       ;;
11109
11110     sysv4)
11111       case $host_vendor in
11112         sni)
11113           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11114           hardcode_direct=yes # is this really true???
11115         ;;
11116         siemens)
11117           ## LD is ld it makes a PLAMLIB
11118           ## CC just makes a GrossModule.
11119           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11120           reload_cmds='$CC -r -o $output$reload_objs'
11121           hardcode_direct=no
11122         ;;
11123         motorola)
11124           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11125           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11126         ;;
11127       esac
11128       runpath_var='LD_RUN_PATH'
11129       hardcode_shlibpath_var=no
11130       ;;
11131
11132     sysv4.3*)
11133       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11134       hardcode_shlibpath_var=no
11135       export_dynamic_flag_spec='-Bexport'
11136       ;;
11137
11138     sysv4*MP*)
11139       if test -d /usr/nec; then
11140         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11141         hardcode_shlibpath_var=no
11142         runpath_var=LD_RUN_PATH
11143         hardcode_runpath_var=yes
11144         ld_shlibs=yes
11145       fi
11146       ;;
11147
11148     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11149       no_undefined_flag='${wl}-z,text'
11150       archive_cmds_need_lc=no
11151       hardcode_shlibpath_var=no
11152       runpath_var='LD_RUN_PATH'
11153
11154       if test "$GCC" = yes; then
11155         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11156         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11157       else
11158         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11159         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11160       fi
11161       ;;
11162
11163     sysv5* | sco3.2v5* | sco5v6*)
11164       # Note: We can NOT use -z defs as we might desire, because we do not
11165       # link with -lc, and that would cause any symbols used from libc to
11166       # always be unresolved, which means just about no library would
11167       # ever link correctly.  If we're not using GNU ld we use -z text
11168       # though, which does catch some bad symbols but isn't as heavy-handed
11169       # as -z defs.
11170       no_undefined_flag='${wl}-z,text'
11171       allow_undefined_flag='${wl}-z,nodefs'
11172       archive_cmds_need_lc=no
11173       hardcode_shlibpath_var=no
11174       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11175       hardcode_libdir_separator=':'
11176       link_all_deplibs=yes
11177       export_dynamic_flag_spec='${wl}-Bexport'
11178       runpath_var='LD_RUN_PATH'
11179
11180       if test "$GCC" = yes; then
11181         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11182         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11183       else
11184         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11185         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11186       fi
11187       ;;
11188
11189     uts4*)
11190       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11191       hardcode_libdir_flag_spec='-L$libdir'
11192       hardcode_shlibpath_var=no
11193       ;;
11194
11195     *)
11196       ld_shlibs=no
11197       ;;
11198     esac
11199
11200     if test x$host_vendor = xsni; then
11201       case $host in
11202       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11203         export_dynamic_flag_spec='${wl}-Blargedynsym'
11204         ;;
11205       esac
11206     fi
11207   fi
11208
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11210 $as_echo "$ld_shlibs" >&6; }
11211 test "$ld_shlibs" = no && can_build_shared=no
11212
11213 with_gnu_ld=$with_gnu_ld
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229 #
11230 # Do we need to explicitly link libc?
11231 #
11232 case "x$archive_cmds_need_lc" in
11233 x|xyes)
11234   # Assume -lc should be added
11235   archive_cmds_need_lc=yes
11236
11237   if test "$enable_shared" = yes && test "$GCC" = yes; then
11238     case $archive_cmds in
11239     *'~'*)
11240       # FIXME: we may have to deal with multi-command sequences.
11241       ;;
11242     '$CC '*)
11243       # Test whether the compiler implicitly links with -lc since on some
11244       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11245       # to ld, don't add -lc before -lgcc.
11246       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11247 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11248 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11249   $as_echo_n "(cached) " >&6
11250 else
11251   $RM conftest*
11252         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11253
11254         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11255   (eval $ac_compile) 2>&5
11256   ac_status=$?
11257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11258   test $ac_status = 0; } 2>conftest.err; then
11259           soname=conftest
11260           lib=conftest
11261           libobjs=conftest.$ac_objext
11262           deplibs=
11263           wl=$lt_prog_compiler_wl
11264           pic_flag=$lt_prog_compiler_pic
11265           compiler_flags=-v
11266           linker_flags=-v
11267           verstring=
11268           output_objdir=.
11269           libname=conftest
11270           lt_save_allow_undefined_flag=$allow_undefined_flag
11271           allow_undefined_flag=
11272           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11273   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11274   ac_status=$?
11275   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11276   test $ac_status = 0; }
11277           then
11278             lt_cv_archive_cmds_need_lc=no
11279           else
11280             lt_cv_archive_cmds_need_lc=yes
11281           fi
11282           allow_undefined_flag=$lt_save_allow_undefined_flag
11283         else
11284           cat conftest.err 1>&5
11285         fi
11286         $RM conftest*
11287
11288 fi
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11290 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11291       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11292       ;;
11293     esac
11294   fi
11295   ;;
11296 esac
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11455 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11456
11457 if test "$GCC" = yes; then
11458   case $host_os in
11459     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11460     *) lt_awk_arg="/^libraries:/" ;;
11461   esac
11462   case $host_os in
11463     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11464     *) lt_sed_strip_eq="s,=/,/,g" ;;
11465   esac
11466   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11467   case $lt_search_path_spec in
11468   *\;*)
11469     # if the path contains ";" then we assume it to be the separator
11470     # otherwise default to the standard path separator (i.e. ":") - it is
11471     # assumed that no part of a normal pathname contains ";" but that should
11472     # okay in the real world where ";" in dirpaths is itself problematic.
11473     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11474     ;;
11475   *)
11476     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11477     ;;
11478   esac
11479   # Ok, now we have the path, separated by spaces, we can step through it
11480   # and add multilib dir if necessary.
11481   lt_tmp_lt_search_path_spec=
11482   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11483   for lt_sys_path in $lt_search_path_spec; do
11484     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11485       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11486     else
11487       test -d "$lt_sys_path" && \
11488         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11489     fi
11490   done
11491   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11492 BEGIN {RS=" "; FS="/|\n";} {
11493   lt_foo="";
11494   lt_count=0;
11495   for (lt_i = NF; lt_i > 0; lt_i--) {
11496     if ($lt_i != "" && $lt_i != ".") {
11497       if ($lt_i == "..") {
11498         lt_count++;
11499       } else {
11500         if (lt_count == 0) {
11501           lt_foo="/" $lt_i lt_foo;
11502         } else {
11503           lt_count--;
11504         }
11505       }
11506     }
11507   }
11508   if (lt_foo != "") { lt_freq[lt_foo]++; }
11509   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11510 }'`
11511   # AWK program above erroneously prepends '/' to C:/dos/paths
11512   # for these hosts.
11513   case $host_os in
11514     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11515       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11516   esac
11517   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11518 else
11519   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11520 fi
11521 library_names_spec=
11522 libname_spec='lib$name'
11523 soname_spec=
11524 shrext_cmds=".so"
11525 postinstall_cmds=
11526 postuninstall_cmds=
11527 finish_cmds=
11528 finish_eval=
11529 shlibpath_var=
11530 shlibpath_overrides_runpath=unknown
11531 version_type=none
11532 dynamic_linker="$host_os ld.so"
11533 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11534 need_lib_prefix=unknown
11535 hardcode_into_libs=no
11536
11537 # when you set need_version to no, make sure it does not cause -set_version
11538 # flags to be left without arguments
11539 need_version=unknown
11540
11541 case $host_os in
11542 aix3*)
11543   version_type=linux
11544   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11545   shlibpath_var=LIBPATH
11546
11547   # AIX 3 has no versioning support, so we append a major version to the name.
11548   soname_spec='${libname}${release}${shared_ext}$major'
11549   ;;
11550
11551 aix[4-9]*)
11552   version_type=linux
11553   need_lib_prefix=no
11554   need_version=no
11555   hardcode_into_libs=yes
11556   if test "$host_cpu" = ia64; then
11557     # AIX 5 supports IA64
11558     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11559     shlibpath_var=LD_LIBRARY_PATH
11560   else
11561     # With GCC up to 2.95.x, collect2 would create an import file
11562     # for dependence libraries.  The import file would start with
11563     # the line `#! .'.  This would cause the generated library to
11564     # depend on `.', always an invalid library.  This was fixed in
11565     # development snapshots of GCC prior to 3.0.
11566     case $host_os in
11567       aix4 | aix4.[01] | aix4.[01].*)
11568       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11569            echo ' yes '
11570            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11571         :
11572       else
11573         can_build_shared=no
11574       fi
11575       ;;
11576     esac
11577     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11578     # soname into executable. Probably we can add versioning support to
11579     # collect2, so additional links can be useful in future.
11580     if test "$aix_use_runtimelinking" = yes; then
11581       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11582       # instead of lib<name>.a to let people know that these are not
11583       # typical AIX shared libraries.
11584       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11585     else
11586       # We preserve .a as extension for shared libraries through AIX4.2
11587       # and later when we are not doing run time linking.
11588       library_names_spec='${libname}${release}.a $libname.a'
11589       soname_spec='${libname}${release}${shared_ext}$major'
11590     fi
11591     shlibpath_var=LIBPATH
11592   fi
11593   ;;
11594
11595 amigaos*)
11596   case $host_cpu in
11597   powerpc)
11598     # Since July 2007 AmigaOS4 officially supports .so libraries.
11599     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11600     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11601     ;;
11602   m68k)
11603     library_names_spec='$libname.ixlibrary $libname.a'
11604     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11605     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'
11606     ;;
11607   esac
11608   ;;
11609
11610 beos*)
11611   library_names_spec='${libname}${shared_ext}'
11612   dynamic_linker="$host_os ld.so"
11613   shlibpath_var=LIBRARY_PATH
11614   ;;
11615
11616 bsdi[45]*)
11617   version_type=linux
11618   need_version=no
11619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11620   soname_spec='${libname}${release}${shared_ext}$major'
11621   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11622   shlibpath_var=LD_LIBRARY_PATH
11623   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11624   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11625   # the default ld.so.conf also contains /usr/contrib/lib and
11626   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11627   # libtool to hard-code these into programs
11628   ;;
11629
11630 cygwin* | mingw* | pw32* | cegcc*)
11631   version_type=windows
11632   shrext_cmds=".dll"
11633   need_version=no
11634   need_lib_prefix=no
11635
11636   case $GCC,$cc_basename in
11637   yes,*)
11638     # gcc
11639     library_names_spec='$libname.dll.a'
11640     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11641     postinstall_cmds='base_file=`basename \${file}`~
11642       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11643       dldir=$destdir/`dirname \$dlpath`~
11644       test -d \$dldir || mkdir -p \$dldir~
11645       $install_prog $dir/$dlname \$dldir/$dlname~
11646       chmod a+x \$dldir/$dlname~
11647       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11648         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11649       fi'
11650     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11651       dlpath=$dir/\$dldll~
11652        $RM \$dlpath'
11653     shlibpath_overrides_runpath=yes
11654
11655     case $host_os in
11656     cygwin*)
11657       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11658       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11659
11660       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11661       ;;
11662     mingw* | cegcc*)
11663       # MinGW DLLs use traditional 'lib' prefix
11664       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11665       ;;
11666     pw32*)
11667       # pw32 DLLs use 'pw' prefix rather than 'lib'
11668       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11669       ;;
11670     esac
11671     dynamic_linker='Win32 ld.exe'
11672     ;;
11673
11674   *,cl*)
11675     # Native MSVC
11676     libname_spec='$name'
11677     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11678     library_names_spec='${libname}.dll.lib'
11679
11680     case $build_os in
11681     mingw*)
11682       sys_lib_search_path_spec=
11683       lt_save_ifs=$IFS
11684       IFS=';'
11685       for lt_path in $LIB
11686       do
11687         IFS=$lt_save_ifs
11688         # Let DOS variable expansion print the short 8.3 style file name.
11689         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11690         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11691       done
11692       IFS=$lt_save_ifs
11693       # Convert to MSYS style.
11694       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11695       ;;
11696     cygwin*)
11697       # Convert to unix form, then to dos form, then back to unix form
11698       # but this time dos style (no spaces!) so that the unix form looks
11699       # like /cygdrive/c/PROGRA~1:/cygdr...
11700       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11701       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11702       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11703       ;;
11704     *)
11705       sys_lib_search_path_spec="$LIB"
11706       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11707         # It is most probably a Windows format PATH.
11708         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11709       else
11710         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11711       fi
11712       # FIXME: find the short name or the path components, as spaces are
11713       # common. (e.g. "Program Files" -> "PROGRA~1")
11714       ;;
11715     esac
11716
11717     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11718     postinstall_cmds='base_file=`basename \${file}`~
11719       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11720       dldir=$destdir/`dirname \$dlpath`~
11721       test -d \$dldir || mkdir -p \$dldir~
11722       $install_prog $dir/$dlname \$dldir/$dlname'
11723     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11724       dlpath=$dir/\$dldll~
11725        $RM \$dlpath'
11726     shlibpath_overrides_runpath=yes
11727     dynamic_linker='Win32 link.exe'
11728     ;;
11729
11730   *)
11731     # Assume MSVC wrapper
11732     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11733     dynamic_linker='Win32 ld.exe'
11734     ;;
11735   esac
11736   # FIXME: first we should search . and the directory the executable is in
11737   shlibpath_var=PATH
11738   ;;
11739
11740 darwin* | rhapsody*)
11741   dynamic_linker="$host_os dyld"
11742   version_type=darwin
11743   need_lib_prefix=no
11744   need_version=no
11745   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11746   soname_spec='${libname}${release}${major}$shared_ext'
11747   shlibpath_overrides_runpath=yes
11748   shlibpath_var=DYLD_LIBRARY_PATH
11749   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11750
11751   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11752   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11753   ;;
11754
11755 dgux*)
11756   version_type=linux
11757   need_lib_prefix=no
11758   need_version=no
11759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11760   soname_spec='${libname}${release}${shared_ext}$major'
11761   shlibpath_var=LD_LIBRARY_PATH
11762   ;;
11763
11764 freebsd1*)
11765   dynamic_linker=no
11766   ;;
11767
11768 freebsd* | dragonfly*)
11769   # DragonFly does not have aout.  When/if they implement a new
11770   # versioning mechanism, adjust this.
11771   if test -x /usr/bin/objformat; then
11772     objformat=`/usr/bin/objformat`
11773   else
11774     case $host_os in
11775     freebsd[123]*) objformat=aout ;;
11776     *) objformat=elf ;;
11777     esac
11778   fi
11779   version_type=freebsd-$objformat
11780   case $version_type in
11781     freebsd-elf*)
11782       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11783       need_version=no
11784       need_lib_prefix=no
11785       ;;
11786     freebsd-*)
11787       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11788       need_version=yes
11789       ;;
11790   esac
11791   shlibpath_var=LD_LIBRARY_PATH
11792   case $host_os in
11793   freebsd2*)
11794     shlibpath_overrides_runpath=yes
11795     ;;
11796   freebsd3.[01]* | freebsdelf3.[01]*)
11797     shlibpath_overrides_runpath=yes
11798     hardcode_into_libs=yes
11799     ;;
11800   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11801   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11802     shlibpath_overrides_runpath=no
11803     hardcode_into_libs=yes
11804     ;;
11805   *) # from 4.6 on, and DragonFly
11806     shlibpath_overrides_runpath=yes
11807     hardcode_into_libs=yes
11808     ;;
11809   esac
11810   ;;
11811
11812 gnu*)
11813   version_type=linux
11814   need_lib_prefix=no
11815   need_version=no
11816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11817   soname_spec='${libname}${release}${shared_ext}$major'
11818   shlibpath_var=LD_LIBRARY_PATH
11819   hardcode_into_libs=yes
11820   ;;
11821
11822 haiku*)
11823   version_type=linux
11824   need_lib_prefix=no
11825   need_version=no
11826   dynamic_linker="$host_os runtime_loader"
11827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11828   soname_spec='${libname}${release}${shared_ext}$major'
11829   shlibpath_var=LIBRARY_PATH
11830   shlibpath_overrides_runpath=yes
11831   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11832   hardcode_into_libs=yes
11833   ;;
11834
11835 hpux9* | hpux10* | hpux11*)
11836   # Give a soname corresponding to the major version so that dld.sl refuses to
11837   # link against other versions.
11838   version_type=sunos
11839   need_lib_prefix=no
11840   need_version=no
11841   case $host_cpu in
11842   ia64*)
11843     shrext_cmds='.so'
11844     hardcode_into_libs=yes
11845     dynamic_linker="$host_os dld.so"
11846     shlibpath_var=LD_LIBRARY_PATH
11847     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11848     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11849     soname_spec='${libname}${release}${shared_ext}$major'
11850     if test "X$HPUX_IA64_MODE" = X32; then
11851       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11852     else
11853       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11854     fi
11855     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11856     ;;
11857   hppa*64*)
11858     shrext_cmds='.sl'
11859     hardcode_into_libs=yes
11860     dynamic_linker="$host_os dld.sl"
11861     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11862     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11863     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11864     soname_spec='${libname}${release}${shared_ext}$major'
11865     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11866     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11867     ;;
11868   *)
11869     shrext_cmds='.sl'
11870     dynamic_linker="$host_os dld.sl"
11871     shlibpath_var=SHLIB_PATH
11872     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11873     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11874     soname_spec='${libname}${release}${shared_ext}$major'
11875     ;;
11876   esac
11877   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11878   postinstall_cmds='chmod 555 $lib'
11879   # or fails outright, so override atomically:
11880   install_override_mode=555
11881   ;;
11882
11883 interix[3-9]*)
11884   version_type=linux
11885   need_lib_prefix=no
11886   need_version=no
11887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11888   soname_spec='${libname}${release}${shared_ext}$major'
11889   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11890   shlibpath_var=LD_LIBRARY_PATH
11891   shlibpath_overrides_runpath=no
11892   hardcode_into_libs=yes
11893   ;;
11894
11895 irix5* | irix6* | nonstopux*)
11896   case $host_os in
11897     nonstopux*) version_type=nonstopux ;;
11898     *)
11899         if test "$lt_cv_prog_gnu_ld" = yes; then
11900                 version_type=linux
11901         else
11902                 version_type=irix
11903         fi ;;
11904   esac
11905   need_lib_prefix=no
11906   need_version=no
11907   soname_spec='${libname}${release}${shared_ext}$major'
11908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11909   case $host_os in
11910   irix5* | nonstopux*)
11911     libsuff= shlibsuff=
11912     ;;
11913   *)
11914     case $LD in # libtool.m4 will add one of these switches to LD
11915     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11916       libsuff= shlibsuff= libmagic=32-bit;;
11917     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11918       libsuff=32 shlibsuff=N32 libmagic=N32;;
11919     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11920       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11921     *) libsuff= shlibsuff= libmagic=never-match;;
11922     esac
11923     ;;
11924   esac
11925   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11926   shlibpath_overrides_runpath=no
11927   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11928   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11929   hardcode_into_libs=yes
11930   ;;
11931
11932 # No shared lib support for Linux oldld, aout, or coff.
11933 linux*oldld* | linux*aout* | linux*coff*)
11934   dynamic_linker=no
11935   ;;
11936
11937 # This must be Linux ELF.
11938 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11939   version_type=linux
11940   need_lib_prefix=no
11941   need_version=no
11942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11943   soname_spec='${libname}${release}${shared_ext}$major'
11944   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11945   shlibpath_var=LD_LIBRARY_PATH
11946   shlibpath_overrides_runpath=no
11947
11948   # Some binutils ld are patched to set DT_RUNPATH
11949   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11950   $as_echo_n "(cached) " >&6
11951 else
11952   lt_cv_shlibpath_overrides_runpath=no
11953     save_LDFLAGS=$LDFLAGS
11954     save_libdir=$libdir
11955     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11956          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11957     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11958 /* end confdefs.h.  */
11959
11960 int
11961 main ()
11962 {
11963
11964   ;
11965   return 0;
11966 }
11967 _ACEOF
11968 if ac_fn_c_try_link "$LINENO"; then :
11969   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11970   lt_cv_shlibpath_overrides_runpath=yes
11971 fi
11972 fi
11973 rm -f core conftest.err conftest.$ac_objext \
11974     conftest$ac_exeext conftest.$ac_ext
11975     LDFLAGS=$save_LDFLAGS
11976     libdir=$save_libdir
11977
11978 fi
11979
11980   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11981
11982   # This implies no fast_install, which is unacceptable.
11983   # Some rework will be needed to allow for fast_install
11984   # before this can be enabled.
11985   hardcode_into_libs=yes
11986
11987   # Append ld.so.conf contents to the search path
11988   if test -f /etc/ld.so.conf; then
11989     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' ' '`
11990     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11991   fi
11992
11993   # We used to test for /lib/ld.so.1 and disable shared libraries on
11994   # powerpc, because MkLinux only supported shared libraries with the
11995   # GNU dynamic linker.  Since this was broken with cross compilers,
11996   # most powerpc-linux boxes support dynamic linking these days and
11997   # people can always --disable-shared, the test was removed, and we
11998   # assume the GNU/Linux dynamic linker is in use.
11999   dynamic_linker='GNU/Linux ld.so'
12000   ;;
12001
12002 netbsd*)
12003   version_type=sunos
12004   need_lib_prefix=no
12005   need_version=no
12006   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12007     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12008     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12009     dynamic_linker='NetBSD (a.out) ld.so'
12010   else
12011     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12012     soname_spec='${libname}${release}${shared_ext}$major'
12013     dynamic_linker='NetBSD ld.elf_so'
12014   fi
12015   shlibpath_var=LD_LIBRARY_PATH
12016   shlibpath_overrides_runpath=yes
12017   hardcode_into_libs=yes
12018   ;;
12019
12020 newsos6)
12021   version_type=linux
12022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12023   shlibpath_var=LD_LIBRARY_PATH
12024   shlibpath_overrides_runpath=yes
12025   ;;
12026
12027 *nto* | *qnx*)
12028   version_type=qnx
12029   need_lib_prefix=no
12030   need_version=no
12031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12032   soname_spec='${libname}${release}${shared_ext}$major'
12033   shlibpath_var=LD_LIBRARY_PATH
12034   shlibpath_overrides_runpath=no
12035   hardcode_into_libs=yes
12036   dynamic_linker='ldqnx.so'
12037   ;;
12038
12039 openbsd*)
12040   version_type=sunos
12041   sys_lib_dlsearch_path_spec="/usr/lib"
12042   need_lib_prefix=no
12043   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12044   case $host_os in
12045     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12046     *)                          need_version=no  ;;
12047   esac
12048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12049   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12050   shlibpath_var=LD_LIBRARY_PATH
12051   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12052     case $host_os in
12053       openbsd2.[89] | openbsd2.[89].*)
12054         shlibpath_overrides_runpath=no
12055         ;;
12056       *)
12057         shlibpath_overrides_runpath=yes
12058         ;;
12059       esac
12060   else
12061     shlibpath_overrides_runpath=yes
12062   fi
12063   ;;
12064
12065 os2*)
12066   libname_spec='$name'
12067   shrext_cmds=".dll"
12068   need_lib_prefix=no
12069   library_names_spec='$libname${shared_ext} $libname.a'
12070   dynamic_linker='OS/2 ld.exe'
12071   shlibpath_var=LIBPATH
12072   ;;
12073
12074 osf3* | osf4* | osf5*)
12075   version_type=osf
12076   need_lib_prefix=no
12077   need_version=no
12078   soname_spec='${libname}${release}${shared_ext}$major'
12079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12080   shlibpath_var=LD_LIBRARY_PATH
12081   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12082   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12083   ;;
12084
12085 rdos*)
12086   dynamic_linker=no
12087   ;;
12088
12089 solaris*)
12090   version_type=linux
12091   need_lib_prefix=no
12092   need_version=no
12093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12094   soname_spec='${libname}${release}${shared_ext}$major'
12095   shlibpath_var=LD_LIBRARY_PATH
12096   shlibpath_overrides_runpath=yes
12097   hardcode_into_libs=yes
12098   # ldd complains unless libraries are executable
12099   postinstall_cmds='chmod +x $lib'
12100   ;;
12101
12102 sunos4*)
12103   version_type=sunos
12104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12105   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12106   shlibpath_var=LD_LIBRARY_PATH
12107   shlibpath_overrides_runpath=yes
12108   if test "$with_gnu_ld" = yes; then
12109     need_lib_prefix=no
12110   fi
12111   need_version=yes
12112   ;;
12113
12114 sysv4 | sysv4.3*)
12115   version_type=linux
12116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12117   soname_spec='${libname}${release}${shared_ext}$major'
12118   shlibpath_var=LD_LIBRARY_PATH
12119   case $host_vendor in
12120     sni)
12121       shlibpath_overrides_runpath=no
12122       need_lib_prefix=no
12123       runpath_var=LD_RUN_PATH
12124       ;;
12125     siemens)
12126       need_lib_prefix=no
12127       ;;
12128     motorola)
12129       need_lib_prefix=no
12130       need_version=no
12131       shlibpath_overrides_runpath=no
12132       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12133       ;;
12134   esac
12135   ;;
12136
12137 sysv4*MP*)
12138   if test -d /usr/nec ;then
12139     version_type=linux
12140     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12141     soname_spec='$libname${shared_ext}.$major'
12142     shlibpath_var=LD_LIBRARY_PATH
12143   fi
12144   ;;
12145
12146 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12147   version_type=freebsd-elf
12148   need_lib_prefix=no
12149   need_version=no
12150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12151   soname_spec='${libname}${release}${shared_ext}$major'
12152   shlibpath_var=LD_LIBRARY_PATH
12153   shlibpath_overrides_runpath=yes
12154   hardcode_into_libs=yes
12155   if test "$with_gnu_ld" = yes; then
12156     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12157   else
12158     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12159     case $host_os in
12160       sco3.2v5*)
12161         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12162         ;;
12163     esac
12164   fi
12165   sys_lib_dlsearch_path_spec='/usr/lib'
12166   ;;
12167
12168 tpf*)
12169   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12170   version_type=linux
12171   need_lib_prefix=no
12172   need_version=no
12173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12174   shlibpath_var=LD_LIBRARY_PATH
12175   shlibpath_overrides_runpath=no
12176   hardcode_into_libs=yes
12177   ;;
12178
12179 uts4*)
12180   version_type=linux
12181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12182   soname_spec='${libname}${release}${shared_ext}$major'
12183   shlibpath_var=LD_LIBRARY_PATH
12184   ;;
12185
12186 *)
12187   dynamic_linker=no
12188   ;;
12189 esac
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12191 $as_echo "$dynamic_linker" >&6; }
12192 test "$dynamic_linker" = no && can_build_shared=no
12193
12194 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12195 if test "$GCC" = yes; then
12196   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12197 fi
12198
12199 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12200   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12201 fi
12202 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12203   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12204 fi
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12298 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12299 hardcode_action=
12300 if test -n "$hardcode_libdir_flag_spec" ||
12301    test -n "$runpath_var" ||
12302    test "X$hardcode_automatic" = "Xyes" ; then
12303
12304   # We can hardcode non-existent directories.
12305   if test "$hardcode_direct" != no &&
12306      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12307      # have to relink, otherwise we might link with an installed library
12308      # when we should be linking with a yet-to-be-installed one
12309      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12310      test "$hardcode_minus_L" != no; then
12311     # Linking always hardcodes the temporary library directory.
12312     hardcode_action=relink
12313   else
12314     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12315     hardcode_action=immediate
12316   fi
12317 else
12318   # We cannot hardcode anything, or else we can only hardcode existing
12319   # directories.
12320   hardcode_action=unsupported
12321 fi
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12323 $as_echo "$hardcode_action" >&6; }
12324
12325 if test "$hardcode_action" = relink ||
12326    test "$inherit_rpath" = yes; then
12327   # Fast installation is not supported
12328   enable_fast_install=no
12329 elif test "$shlibpath_overrides_runpath" = yes ||
12330      test "$enable_shared" = no; then
12331   # Fast installation is not necessary
12332   enable_fast_install=needless
12333 fi
12334
12335
12336
12337
12338
12339
12340   if test "x$enable_dlopen" != xyes; then
12341   enable_dlopen=unknown
12342   enable_dlopen_self=unknown
12343   enable_dlopen_self_static=unknown
12344 else
12345   lt_cv_dlopen=no
12346   lt_cv_dlopen_libs=
12347
12348   case $host_os in
12349   beos*)
12350     lt_cv_dlopen="load_add_on"
12351     lt_cv_dlopen_libs=
12352     lt_cv_dlopen_self=yes
12353     ;;
12354
12355   mingw* | pw32* | cegcc*)
12356     lt_cv_dlopen="LoadLibrary"
12357     lt_cv_dlopen_libs=
12358     ;;
12359
12360   cygwin*)
12361     lt_cv_dlopen="dlopen"
12362     lt_cv_dlopen_libs=
12363     ;;
12364
12365   darwin*)
12366   # if libdl is installed we need to link against it
12367     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12368 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12369 if ${ac_cv_lib_dl_dlopen+:} false; then :
12370   $as_echo_n "(cached) " >&6
12371 else
12372   ac_check_lib_save_LIBS=$LIBS
12373 LIBS="-ldl  $LIBS"
12374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12375 /* end confdefs.h.  */
12376
12377 /* Override any GCC internal prototype to avoid an error.
12378    Use char because int might match the return type of a GCC
12379    builtin and then its argument prototype would still apply.  */
12380 #ifdef __cplusplus
12381 extern "C"
12382 #endif
12383 char dlopen ();
12384 int
12385 main ()
12386 {
12387 return dlopen ();
12388   ;
12389   return 0;
12390 }
12391 _ACEOF
12392 if ac_fn_c_try_link "$LINENO"; then :
12393   ac_cv_lib_dl_dlopen=yes
12394 else
12395   ac_cv_lib_dl_dlopen=no
12396 fi
12397 rm -f core conftest.err conftest.$ac_objext \
12398     conftest$ac_exeext conftest.$ac_ext
12399 LIBS=$ac_check_lib_save_LIBS
12400 fi
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12402 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12403 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12404   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12405 else
12406
12407     lt_cv_dlopen="dyld"
12408     lt_cv_dlopen_libs=
12409     lt_cv_dlopen_self=yes
12410
12411 fi
12412
12413     ;;
12414
12415   *)
12416     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12417 if test "x$ac_cv_func_shl_load" = xyes; then :
12418   lt_cv_dlopen="shl_load"
12419 else
12420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12421 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12422 if ${ac_cv_lib_dld_shl_load+:} false; then :
12423   $as_echo_n "(cached) " >&6
12424 else
12425   ac_check_lib_save_LIBS=$LIBS
12426 LIBS="-ldld  $LIBS"
12427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12428 /* end confdefs.h.  */
12429
12430 /* Override any GCC internal prototype to avoid an error.
12431    Use char because int might match the return type of a GCC
12432    builtin and then its argument prototype would still apply.  */
12433 #ifdef __cplusplus
12434 extern "C"
12435 #endif
12436 char shl_load ();
12437 int
12438 main ()
12439 {
12440 return shl_load ();
12441   ;
12442   return 0;
12443 }
12444 _ACEOF
12445 if ac_fn_c_try_link "$LINENO"; then :
12446   ac_cv_lib_dld_shl_load=yes
12447 else
12448   ac_cv_lib_dld_shl_load=no
12449 fi
12450 rm -f core conftest.err conftest.$ac_objext \
12451     conftest$ac_exeext conftest.$ac_ext
12452 LIBS=$ac_check_lib_save_LIBS
12453 fi
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12455 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12456 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12457   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12458 else
12459   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12460 if test "x$ac_cv_func_dlopen" = xyes; then :
12461   lt_cv_dlopen="dlopen"
12462 else
12463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12464 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12465 if ${ac_cv_lib_dl_dlopen+:} false; then :
12466   $as_echo_n "(cached) " >&6
12467 else
12468   ac_check_lib_save_LIBS=$LIBS
12469 LIBS="-ldl  $LIBS"
12470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12471 /* end confdefs.h.  */
12472
12473 /* Override any GCC internal prototype to avoid an error.
12474    Use char because int might match the return type of a GCC
12475    builtin and then its argument prototype would still apply.  */
12476 #ifdef __cplusplus
12477 extern "C"
12478 #endif
12479 char dlopen ();
12480 int
12481 main ()
12482 {
12483 return dlopen ();
12484   ;
12485   return 0;
12486 }
12487 _ACEOF
12488 if ac_fn_c_try_link "$LINENO"; then :
12489   ac_cv_lib_dl_dlopen=yes
12490 else
12491   ac_cv_lib_dl_dlopen=no
12492 fi
12493 rm -f core conftest.err conftest.$ac_objext \
12494     conftest$ac_exeext conftest.$ac_ext
12495 LIBS=$ac_check_lib_save_LIBS
12496 fi
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12498 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12499 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12500   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12501 else
12502   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12503 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12504 if ${ac_cv_lib_svld_dlopen+:} false; then :
12505   $as_echo_n "(cached) " >&6
12506 else
12507   ac_check_lib_save_LIBS=$LIBS
12508 LIBS="-lsvld  $LIBS"
12509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12510 /* end confdefs.h.  */
12511
12512 /* Override any GCC internal prototype to avoid an error.
12513    Use char because int might match the return type of a GCC
12514    builtin and then its argument prototype would still apply.  */
12515 #ifdef __cplusplus
12516 extern "C"
12517 #endif
12518 char dlopen ();
12519 int
12520 main ()
12521 {
12522 return dlopen ();
12523   ;
12524   return 0;
12525 }
12526 _ACEOF
12527 if ac_fn_c_try_link "$LINENO"; then :
12528   ac_cv_lib_svld_dlopen=yes
12529 else
12530   ac_cv_lib_svld_dlopen=no
12531 fi
12532 rm -f core conftest.err conftest.$ac_objext \
12533     conftest$ac_exeext conftest.$ac_ext
12534 LIBS=$ac_check_lib_save_LIBS
12535 fi
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12537 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12538 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12539   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12540 else
12541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12542 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12543 if ${ac_cv_lib_dld_dld_link+:} false; then :
12544   $as_echo_n "(cached) " >&6
12545 else
12546   ac_check_lib_save_LIBS=$LIBS
12547 LIBS="-ldld  $LIBS"
12548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12549 /* end confdefs.h.  */
12550
12551 /* Override any GCC internal prototype to avoid an error.
12552    Use char because int might match the return type of a GCC
12553    builtin and then its argument prototype would still apply.  */
12554 #ifdef __cplusplus
12555 extern "C"
12556 #endif
12557 char dld_link ();
12558 int
12559 main ()
12560 {
12561 return dld_link ();
12562   ;
12563   return 0;
12564 }
12565 _ACEOF
12566 if ac_fn_c_try_link "$LINENO"; then :
12567   ac_cv_lib_dld_dld_link=yes
12568 else
12569   ac_cv_lib_dld_dld_link=no
12570 fi
12571 rm -f core conftest.err conftest.$ac_objext \
12572     conftest$ac_exeext conftest.$ac_ext
12573 LIBS=$ac_check_lib_save_LIBS
12574 fi
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12576 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12577 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12578   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12579 fi
12580
12581
12582 fi
12583
12584
12585 fi
12586
12587
12588 fi
12589
12590
12591 fi
12592
12593
12594 fi
12595
12596     ;;
12597   esac
12598
12599   if test "x$lt_cv_dlopen" != xno; then
12600     enable_dlopen=yes
12601   else
12602     enable_dlopen=no
12603   fi
12604
12605   case $lt_cv_dlopen in
12606   dlopen)
12607     save_CPPFLAGS="$CPPFLAGS"
12608     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12609
12610     save_LDFLAGS="$LDFLAGS"
12611     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12612
12613     save_LIBS="$LIBS"
12614     LIBS="$lt_cv_dlopen_libs $LIBS"
12615
12616     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12617 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12618 if ${lt_cv_dlopen_self+:} false; then :
12619   $as_echo_n "(cached) " >&6
12620 else
12621           if test "$cross_compiling" = yes; then :
12622   lt_cv_dlopen_self=cross
12623 else
12624   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12625   lt_status=$lt_dlunknown
12626   cat > conftest.$ac_ext <<_LT_EOF
12627 #line $LINENO "configure"
12628 #include "confdefs.h"
12629
12630 #if HAVE_DLFCN_H
12631 #include <dlfcn.h>
12632 #endif
12633
12634 #include <stdio.h>
12635
12636 #ifdef RTLD_GLOBAL
12637 #  define LT_DLGLOBAL           RTLD_GLOBAL
12638 #else
12639 #  ifdef DL_GLOBAL
12640 #    define LT_DLGLOBAL         DL_GLOBAL
12641 #  else
12642 #    define LT_DLGLOBAL         0
12643 #  endif
12644 #endif
12645
12646 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12647    find out it does not work in some platform. */
12648 #ifndef LT_DLLAZY_OR_NOW
12649 #  ifdef RTLD_LAZY
12650 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12651 #  else
12652 #    ifdef DL_LAZY
12653 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12654 #    else
12655 #      ifdef RTLD_NOW
12656 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12657 #      else
12658 #        ifdef DL_NOW
12659 #          define LT_DLLAZY_OR_NOW      DL_NOW
12660 #        else
12661 #          define LT_DLLAZY_OR_NOW      0
12662 #        endif
12663 #      endif
12664 #    endif
12665 #  endif
12666 #endif
12667
12668 /* When -fvisbility=hidden is used, assume the code has been annotated
12669    correspondingly for the symbols needed.  */
12670 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12671 int fnord () __attribute__((visibility("default")));
12672 #endif
12673
12674 int fnord () { return 42; }
12675 int main ()
12676 {
12677   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12678   int status = $lt_dlunknown;
12679
12680   if (self)
12681     {
12682       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12683       else
12684         {
12685           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12686           else puts (dlerror ());
12687         }
12688       /* dlclose (self); */
12689     }
12690   else
12691     puts (dlerror ());
12692
12693   return status;
12694 }
12695 _LT_EOF
12696   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12697   (eval $ac_link) 2>&5
12698   ac_status=$?
12699   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12700   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12701     (./conftest; exit; ) >&5 2>/dev/null
12702     lt_status=$?
12703     case x$lt_status in
12704       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12705       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12706       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12707     esac
12708   else :
12709     # compilation failed
12710     lt_cv_dlopen_self=no
12711   fi
12712 fi
12713 rm -fr conftest*
12714
12715
12716 fi
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12718 $as_echo "$lt_cv_dlopen_self" >&6; }
12719
12720     if test "x$lt_cv_dlopen_self" = xyes; then
12721       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12722       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12723 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12724 if ${lt_cv_dlopen_self_static+:} false; then :
12725   $as_echo_n "(cached) " >&6
12726 else
12727           if test "$cross_compiling" = yes; then :
12728   lt_cv_dlopen_self_static=cross
12729 else
12730   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12731   lt_status=$lt_dlunknown
12732   cat > conftest.$ac_ext <<_LT_EOF
12733 #line $LINENO "configure"
12734 #include "confdefs.h"
12735
12736 #if HAVE_DLFCN_H
12737 #include <dlfcn.h>
12738 #endif
12739
12740 #include <stdio.h>
12741
12742 #ifdef RTLD_GLOBAL
12743 #  define LT_DLGLOBAL           RTLD_GLOBAL
12744 #else
12745 #  ifdef DL_GLOBAL
12746 #    define LT_DLGLOBAL         DL_GLOBAL
12747 #  else
12748 #    define LT_DLGLOBAL         0
12749 #  endif
12750 #endif
12751
12752 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12753    find out it does not work in some platform. */
12754 #ifndef LT_DLLAZY_OR_NOW
12755 #  ifdef RTLD_LAZY
12756 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12757 #  else
12758 #    ifdef DL_LAZY
12759 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12760 #    else
12761 #      ifdef RTLD_NOW
12762 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12763 #      else
12764 #        ifdef DL_NOW
12765 #          define LT_DLLAZY_OR_NOW      DL_NOW
12766 #        else
12767 #          define LT_DLLAZY_OR_NOW      0
12768 #        endif
12769 #      endif
12770 #    endif
12771 #  endif
12772 #endif
12773
12774 /* When -fvisbility=hidden is used, assume the code has been annotated
12775    correspondingly for the symbols needed.  */
12776 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12777 int fnord () __attribute__((visibility("default")));
12778 #endif
12779
12780 int fnord () { return 42; }
12781 int main ()
12782 {
12783   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12784   int status = $lt_dlunknown;
12785
12786   if (self)
12787     {
12788       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12789       else
12790         {
12791           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12792           else puts (dlerror ());
12793         }
12794       /* dlclose (self); */
12795     }
12796   else
12797     puts (dlerror ());
12798
12799   return status;
12800 }
12801 _LT_EOF
12802   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12803   (eval $ac_link) 2>&5
12804   ac_status=$?
12805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12806   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12807     (./conftest; exit; ) >&5 2>/dev/null
12808     lt_status=$?
12809     case x$lt_status in
12810       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12811       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12812       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12813     esac
12814   else :
12815     # compilation failed
12816     lt_cv_dlopen_self_static=no
12817   fi
12818 fi
12819 rm -fr conftest*
12820
12821
12822 fi
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12824 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12825     fi
12826
12827     CPPFLAGS="$save_CPPFLAGS"
12828     LDFLAGS="$save_LDFLAGS"
12829     LIBS="$save_LIBS"
12830     ;;
12831   esac
12832
12833   case $lt_cv_dlopen_self in
12834   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12835   *) enable_dlopen_self=unknown ;;
12836   esac
12837
12838   case $lt_cv_dlopen_self_static in
12839   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12840   *) enable_dlopen_self_static=unknown ;;
12841   esac
12842 fi
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860 striplib=
12861 old_striplib=
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12863 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12864 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12865   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12866   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12868 $as_echo "yes" >&6; }
12869 else
12870 # FIXME - insert some real tests, host_os isn't really good enough
12871   case $host_os in
12872   darwin*)
12873     if test -n "$STRIP" ; then
12874       striplib="$STRIP -x"
12875       old_striplib="$STRIP -S"
12876       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12877 $as_echo "yes" >&6; }
12878     else
12879       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12880 $as_echo "no" >&6; }
12881     fi
12882     ;;
12883   *)
12884     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12885 $as_echo "no" >&6; }
12886     ;;
12887   esac
12888 fi
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901   # Report which library types will actually be built
12902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12903 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12905 $as_echo "$can_build_shared" >&6; }
12906
12907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12908 $as_echo_n "checking whether to build shared libraries... " >&6; }
12909   test "$can_build_shared" = "no" && enable_shared=no
12910
12911   # On AIX, shared libraries and static libraries use the same namespace, and
12912   # are all built from PIC.
12913   case $host_os in
12914   aix3*)
12915     test "$enable_shared" = yes && enable_static=no
12916     if test -n "$RANLIB"; then
12917       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12918       postinstall_cmds='$RANLIB $lib'
12919     fi
12920     ;;
12921
12922   aix[4-9]*)
12923     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12924       test "$enable_shared" = yes && enable_static=no
12925     fi
12926     ;;
12927   esac
12928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12929 $as_echo "$enable_shared" >&6; }
12930
12931   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12932 $as_echo_n "checking whether to build static libraries... " >&6; }
12933   # Make sure either enable_shared or enable_static is yes.
12934   test "$enable_shared" = yes || enable_static=yes
12935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12936 $as_echo "$enable_static" >&6; }
12937
12938
12939
12940
12941 fi
12942 ac_ext=c
12943 ac_cpp='$CPP $CPPFLAGS'
12944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12947
12948 CC="$lt_save_CC"
12949
12950       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12951     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12952     (test "X$CXX" != "Xg++"))) ; then
12953   ac_ext=cpp
12954 ac_cpp='$CXXCPP $CPPFLAGS'
12955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12959 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12960 if test -z "$CXXCPP"; then
12961   if ${ac_cv_prog_CXXCPP+:} false; then :
12962   $as_echo_n "(cached) " >&6
12963 else
12964       # Double quotes because CXXCPP needs to be expanded
12965     for CXXCPP in "$CXX -E" "/lib/cpp"
12966     do
12967       ac_preproc_ok=false
12968 for ac_cxx_preproc_warn_flag in '' yes
12969 do
12970   # Use a header file that comes with gcc, so configuring glibc
12971   # with a fresh cross-compiler works.
12972   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12973   # <limits.h> exists even on freestanding compilers.
12974   # On the NeXT, cc -E runs the code through the compiler's parser,
12975   # not just through cpp. "Syntax error" is here to catch this case.
12976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977 /* end confdefs.h.  */
12978 #ifdef __STDC__
12979 # include <limits.h>
12980 #else
12981 # include <assert.h>
12982 #endif
12983                      Syntax error
12984 _ACEOF
12985 if ac_fn_cxx_try_cpp "$LINENO"; then :
12986
12987 else
12988   # Broken: fails on valid input.
12989 continue
12990 fi
12991 rm -f conftest.err conftest.i conftest.$ac_ext
12992
12993   # OK, works on sane cases.  Now check whether nonexistent headers
12994   # can be detected and how.
12995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12996 /* end confdefs.h.  */
12997 #include <ac_nonexistent.h>
12998 _ACEOF
12999 if ac_fn_cxx_try_cpp "$LINENO"; then :
13000   # Broken: success on invalid input.
13001 continue
13002 else
13003   # Passes both tests.
13004 ac_preproc_ok=:
13005 break
13006 fi
13007 rm -f conftest.err conftest.i conftest.$ac_ext
13008
13009 done
13010 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13011 rm -f conftest.i conftest.err conftest.$ac_ext
13012 if $ac_preproc_ok; then :
13013   break
13014 fi
13015
13016     done
13017     ac_cv_prog_CXXCPP=$CXXCPP
13018
13019 fi
13020   CXXCPP=$ac_cv_prog_CXXCPP
13021 else
13022   ac_cv_prog_CXXCPP=$CXXCPP
13023 fi
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13025 $as_echo "$CXXCPP" >&6; }
13026 ac_preproc_ok=false
13027 for ac_cxx_preproc_warn_flag in '' yes
13028 do
13029   # Use a header file that comes with gcc, so configuring glibc
13030   # with a fresh cross-compiler works.
13031   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13032   # <limits.h> exists even on freestanding compilers.
13033   # On the NeXT, cc -E runs the code through the compiler's parser,
13034   # not just through cpp. "Syntax error" is here to catch this case.
13035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13036 /* end confdefs.h.  */
13037 #ifdef __STDC__
13038 # include <limits.h>
13039 #else
13040 # include <assert.h>
13041 #endif
13042                      Syntax error
13043 _ACEOF
13044 if ac_fn_cxx_try_cpp "$LINENO"; then :
13045
13046 else
13047   # Broken: fails on valid input.
13048 continue
13049 fi
13050 rm -f conftest.err conftest.i conftest.$ac_ext
13051
13052   # OK, works on sane cases.  Now check whether nonexistent headers
13053   # can be detected and how.
13054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h.  */
13056 #include <ac_nonexistent.h>
13057 _ACEOF
13058 if ac_fn_cxx_try_cpp "$LINENO"; then :
13059   # Broken: success on invalid input.
13060 continue
13061 else
13062   # Passes both tests.
13063 ac_preproc_ok=:
13064 break
13065 fi
13066 rm -f conftest.err conftest.i conftest.$ac_ext
13067
13068 done
13069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13070 rm -f conftest.i conftest.err conftest.$ac_ext
13071 if $ac_preproc_ok; then :
13072
13073 else
13074   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13076 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13077 See \`config.log' for more details" "$LINENO" 5; }
13078 fi
13079
13080 ac_ext=c
13081 ac_cpp='$CPP $CPPFLAGS'
13082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13085
13086 else
13087   _lt_caught_CXX_error=yes
13088 fi
13089
13090 ac_ext=cpp
13091 ac_cpp='$CXXCPP $CPPFLAGS'
13092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13095
13096 archive_cmds_need_lc_CXX=no
13097 allow_undefined_flag_CXX=
13098 always_export_symbols_CXX=no
13099 archive_expsym_cmds_CXX=
13100 compiler_needs_object_CXX=no
13101 export_dynamic_flag_spec_CXX=
13102 hardcode_direct_CXX=no
13103 hardcode_direct_absolute_CXX=no
13104 hardcode_libdir_flag_spec_CXX=
13105 hardcode_libdir_flag_spec_ld_CXX=
13106 hardcode_libdir_separator_CXX=
13107 hardcode_minus_L_CXX=no
13108 hardcode_shlibpath_var_CXX=unsupported
13109 hardcode_automatic_CXX=no
13110 inherit_rpath_CXX=no
13111 module_cmds_CXX=
13112 module_expsym_cmds_CXX=
13113 link_all_deplibs_CXX=unknown
13114 old_archive_cmds_CXX=$old_archive_cmds
13115 reload_flag_CXX=$reload_flag
13116 reload_cmds_CXX=$reload_cmds
13117 no_undefined_flag_CXX=
13118 whole_archive_flag_spec_CXX=
13119 enable_shared_with_static_runtimes_CXX=no
13120
13121 # Source file extension for C++ test sources.
13122 ac_ext=cpp
13123
13124 # Object file extension for compiled C++ test sources.
13125 objext=o
13126 objext_CXX=$objext
13127
13128 # No sense in running all these tests if we already determined that
13129 # the CXX compiler isn't working.  Some variables (like enable_shared)
13130 # are currently assumed to apply to all compilers on this platform,
13131 # and will be corrupted by setting them based on a non-working compiler.
13132 if test "$_lt_caught_CXX_error" != yes; then
13133   # Code to be used in simple compile tests
13134   lt_simple_compile_test_code="int some_variable = 0;"
13135
13136   # Code to be used in simple link tests
13137   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13138
13139   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13140
13141
13142
13143
13144
13145
13146 # If no C compiler was specified, use CC.
13147 LTCC=${LTCC-"$CC"}
13148
13149 # If no C compiler flags were specified, use CFLAGS.
13150 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13151
13152 # Allow CC to be a program name with arguments.
13153 compiler=$CC
13154
13155
13156   # save warnings/boilerplate of simple test code
13157   ac_outfile=conftest.$ac_objext
13158 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13159 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13160 _lt_compiler_boilerplate=`cat conftest.err`
13161 $RM conftest*
13162
13163   ac_outfile=conftest.$ac_objext
13164 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13165 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13166 _lt_linker_boilerplate=`cat conftest.err`
13167 $RM -r conftest*
13168
13169
13170   # Allow CC to be a program name with arguments.
13171   lt_save_CC=$CC
13172   lt_save_CFLAGS=$CFLAGS
13173   lt_save_LD=$LD
13174   lt_save_GCC=$GCC
13175   GCC=$GXX
13176   lt_save_with_gnu_ld=$with_gnu_ld
13177   lt_save_path_LD=$lt_cv_path_LD
13178   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13179     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13180   else
13181     $as_unset lt_cv_prog_gnu_ld
13182   fi
13183   if test -n "${lt_cv_path_LDCXX+set}"; then
13184     lt_cv_path_LD=$lt_cv_path_LDCXX
13185   else
13186     $as_unset lt_cv_path_LD
13187   fi
13188   test -z "${LDCXX+set}" || LD=$LDCXX
13189   CC=${CXX-"c++"}
13190   CFLAGS=$CXXFLAGS
13191   compiler=$CC
13192   compiler_CXX=$CC
13193   for cc_temp in $compiler""; do
13194   case $cc_temp in
13195     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13196     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13197     \-*) ;;
13198     *) break;;
13199   esac
13200 done
13201 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13202
13203
13204   if test -n "$compiler"; then
13205     # We don't want -fno-exception when compiling C++ code, so set the
13206     # no_builtin_flag separately
13207     if test "$GXX" = yes; then
13208       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13209     else
13210       lt_prog_compiler_no_builtin_flag_CXX=
13211     fi
13212
13213     if test "$GXX" = yes; then
13214       # Set up default GNU C++ configuration
13215
13216
13217
13218 # Check whether --with-gnu-ld was given.
13219 if test "${with_gnu_ld+set}" = set; then :
13220   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13221 else
13222   with_gnu_ld=no
13223 fi
13224
13225 ac_prog=ld
13226 if test "$GCC" = yes; then
13227   # Check if gcc -print-prog-name=ld gives a path.
13228   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13229 $as_echo_n "checking for ld used by $CC... " >&6; }
13230   case $host in
13231   *-*-mingw*)
13232     # gcc leaves a trailing carriage return which upsets mingw
13233     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13234   *)
13235     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13236   esac
13237   case $ac_prog in
13238     # Accept absolute paths.
13239     [\\/]* | ?:[\\/]*)
13240       re_direlt='/[^/][^/]*/\.\./'
13241       # Canonicalize the pathname of ld
13242       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13243       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13244         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13245       done
13246       test -z "$LD" && LD="$ac_prog"
13247       ;;
13248   "")
13249     # If it fails, then pretend we aren't using GCC.
13250     ac_prog=ld
13251     ;;
13252   *)
13253     # If it is relative, then search for the first ld in PATH.
13254     with_gnu_ld=unknown
13255     ;;
13256   esac
13257 elif test "$with_gnu_ld" = yes; then
13258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13259 $as_echo_n "checking for GNU ld... " >&6; }
13260 else
13261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13262 $as_echo_n "checking for non-GNU ld... " >&6; }
13263 fi
13264 if ${lt_cv_path_LD+:} false; then :
13265   $as_echo_n "(cached) " >&6
13266 else
13267   if test -z "$LD"; then
13268   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13269   for ac_dir in $PATH; do
13270     IFS="$lt_save_ifs"
13271     test -z "$ac_dir" && ac_dir=.
13272     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13273       lt_cv_path_LD="$ac_dir/$ac_prog"
13274       # Check to see if the program is GNU ld.  I'd rather use --version,
13275       # but apparently some variants of GNU ld only accept -v.
13276       # Break only if it was the GNU/non-GNU ld that we prefer.
13277       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13278       *GNU* | *'with BFD'*)
13279         test "$with_gnu_ld" != no && break
13280         ;;
13281       *)
13282         test "$with_gnu_ld" != yes && break
13283         ;;
13284       esac
13285     fi
13286   done
13287   IFS="$lt_save_ifs"
13288 else
13289   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13290 fi
13291 fi
13292
13293 LD="$lt_cv_path_LD"
13294 if test -n "$LD"; then
13295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13296 $as_echo "$LD" >&6; }
13297 else
13298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13299 $as_echo "no" >&6; }
13300 fi
13301 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13303 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13304 if ${lt_cv_prog_gnu_ld+:} false; then :
13305   $as_echo_n "(cached) " >&6
13306 else
13307   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13308 case `$LD -v 2>&1 </dev/null` in
13309 *GNU* | *'with BFD'*)
13310   lt_cv_prog_gnu_ld=yes
13311   ;;
13312 *)
13313   lt_cv_prog_gnu_ld=no
13314   ;;
13315 esac
13316 fi
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13318 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13319 with_gnu_ld=$lt_cv_prog_gnu_ld
13320
13321
13322
13323
13324
13325
13326
13327       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13328       # archiving commands below assume that GNU ld is being used.
13329       if test "$with_gnu_ld" = yes; then
13330         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13331         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'
13332
13333         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13334         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13335
13336         # If archive_cmds runs LD, not CC, wlarc should be empty
13337         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13338         #     investigate it a little bit more. (MM)
13339         wlarc='${wl}'
13340
13341         # ancient GNU ld didn't support --whole-archive et. al.
13342         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13343           $GREP 'no-whole-archive' > /dev/null; then
13344           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13345         else
13346           whole_archive_flag_spec_CXX=
13347         fi
13348       else
13349         with_gnu_ld=no
13350         wlarc=
13351
13352         # A generic and very simple default shared library creation
13353         # command for GNU C++ for the case where it uses the native
13354         # linker, instead of GNU ld.  If possible, this setting should
13355         # overridden to take advantage of the native linker features on
13356         # the platform it is being used on.
13357         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13358       fi
13359
13360       # Commands to make compiler produce verbose output that lists
13361       # what "hidden" libraries, object files and flags are used when
13362       # linking a shared library.
13363       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13364
13365     else
13366       GXX=no
13367       with_gnu_ld=no
13368       wlarc=
13369     fi
13370
13371     # PORTME: fill in a description of your system's C++ link characteristics
13372     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13373 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13374     ld_shlibs_CXX=yes
13375     case $host_os in
13376       aix3*)
13377         # FIXME: insert proper C++ library support
13378         ld_shlibs_CXX=no
13379         ;;
13380       aix[4-9]*)
13381         if test "$host_cpu" = ia64; then
13382           # On IA64, the linker does run time linking by default, so we don't
13383           # have to do anything special.
13384           aix_use_runtimelinking=no
13385           exp_sym_flag='-Bexport'
13386           no_entry_flag=""
13387         else
13388           aix_use_runtimelinking=no
13389
13390           # Test if we are trying to use run time linking or normal
13391           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13392           # need to do runtime linking.
13393           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13394             for ld_flag in $LDFLAGS; do
13395               case $ld_flag in
13396               *-brtl*)
13397                 aix_use_runtimelinking=yes
13398                 break
13399                 ;;
13400               esac
13401             done
13402             ;;
13403           esac
13404
13405           exp_sym_flag='-bexport'
13406           no_entry_flag='-bnoentry'
13407         fi
13408
13409         # When large executables or shared objects are built, AIX ld can
13410         # have problems creating the table of contents.  If linking a library
13411         # or program results in "error TOC overflow" add -mminimal-toc to
13412         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13413         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13414
13415         archive_cmds_CXX=''
13416         hardcode_direct_CXX=yes
13417         hardcode_direct_absolute_CXX=yes
13418         hardcode_libdir_separator_CXX=':'
13419         link_all_deplibs_CXX=yes
13420         file_list_spec_CXX='${wl}-f,'
13421
13422         if test "$GXX" = yes; then
13423           case $host_os in aix4.[012]|aix4.[012].*)
13424           # We only want to do this on AIX 4.2 and lower, the check
13425           # below for broken collect2 doesn't work under 4.3+
13426           collect2name=`${CC} -print-prog-name=collect2`
13427           if test -f "$collect2name" &&
13428              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13429           then
13430             # We have reworked collect2
13431             :
13432           else
13433             # We have old collect2
13434             hardcode_direct_CXX=unsupported
13435             # It fails to find uninstalled libraries when the uninstalled
13436             # path is not listed in the libpath.  Setting hardcode_minus_L
13437             # to unsupported forces relinking
13438             hardcode_minus_L_CXX=yes
13439             hardcode_libdir_flag_spec_CXX='-L$libdir'
13440             hardcode_libdir_separator_CXX=
13441           fi
13442           esac
13443           shared_flag='-shared'
13444           if test "$aix_use_runtimelinking" = yes; then
13445             shared_flag="$shared_flag "'${wl}-G'
13446           fi
13447         else
13448           # not using gcc
13449           if test "$host_cpu" = ia64; then
13450           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13451           # chokes on -Wl,-G. The following line is correct:
13452           shared_flag='-G'
13453           else
13454             if test "$aix_use_runtimelinking" = yes; then
13455               shared_flag='${wl}-G'
13456             else
13457               shared_flag='${wl}-bM:SRE'
13458             fi
13459           fi
13460         fi
13461
13462         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13463         # It seems that -bexpall does not export symbols beginning with
13464         # underscore (_), so it is better to generate a list of symbols to
13465         # export.
13466         always_export_symbols_CXX=yes
13467         if test "$aix_use_runtimelinking" = yes; then
13468           # Warning - without using the other runtime loading flags (-brtl),
13469           # -berok will link without error, but may produce a broken library.
13470           allow_undefined_flag_CXX='-berok'
13471           # Determine the default libpath from the value encoded in an empty
13472           # executable.
13473           if test "${lt_cv_aix_libpath+set}" = set; then
13474   aix_libpath=$lt_cv_aix_libpath
13475 else
13476   if ${lt_cv_aix_libpath__CXX+:} false; then :
13477   $as_echo_n "(cached) " >&6
13478 else
13479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13480 /* end confdefs.h.  */
13481
13482 int
13483 main ()
13484 {
13485
13486   ;
13487   return 0;
13488 }
13489 _ACEOF
13490 if ac_fn_cxx_try_link "$LINENO"; then :
13491
13492   lt_aix_libpath_sed='
13493       /Import File Strings/,/^$/ {
13494           /^0/ {
13495               s/^0  *\([^ ]*\) *$/\1/
13496               p
13497           }
13498       }'
13499   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13500   # Check for a 64-bit object if we didn't find anything.
13501   if test -z "$lt_cv_aix_libpath__CXX"; then
13502     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13503   fi
13504 fi
13505 rm -f core conftest.err conftest.$ac_objext \
13506     conftest$ac_exeext conftest.$ac_ext
13507   if test -z "$lt_cv_aix_libpath__CXX"; then
13508     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13509   fi
13510
13511 fi
13512
13513   aix_libpath=$lt_cv_aix_libpath__CXX
13514 fi
13515
13516           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13517
13518           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"
13519         else
13520           if test "$host_cpu" = ia64; then
13521             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13522             allow_undefined_flag_CXX="-z nodefs"
13523             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"
13524           else
13525             # Determine the default libpath from the value encoded in an
13526             # empty executable.
13527             if test "${lt_cv_aix_libpath+set}" = set; then
13528   aix_libpath=$lt_cv_aix_libpath
13529 else
13530   if ${lt_cv_aix_libpath__CXX+:} false; then :
13531   $as_echo_n "(cached) " >&6
13532 else
13533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13534 /* end confdefs.h.  */
13535
13536 int
13537 main ()
13538 {
13539
13540   ;
13541   return 0;
13542 }
13543 _ACEOF
13544 if ac_fn_cxx_try_link "$LINENO"; then :
13545
13546   lt_aix_libpath_sed='
13547       /Import File Strings/,/^$/ {
13548           /^0/ {
13549               s/^0  *\([^ ]*\) *$/\1/
13550               p
13551           }
13552       }'
13553   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13554   # Check for a 64-bit object if we didn't find anything.
13555   if test -z "$lt_cv_aix_libpath__CXX"; then
13556     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13557   fi
13558 fi
13559 rm -f core conftest.err conftest.$ac_objext \
13560     conftest$ac_exeext conftest.$ac_ext
13561   if test -z "$lt_cv_aix_libpath__CXX"; then
13562     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13563   fi
13564
13565 fi
13566
13567   aix_libpath=$lt_cv_aix_libpath__CXX
13568 fi
13569
13570             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13571             # Warning - without using the other run time loading flags,
13572             # -berok will link without error, but may produce a broken library.
13573             no_undefined_flag_CXX=' ${wl}-bernotok'
13574             allow_undefined_flag_CXX=' ${wl}-berok'
13575             if test "$with_gnu_ld" = yes; then
13576               # We only use this code for GNU lds that support --whole-archive.
13577               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13578             else
13579               # Exported symbols can be pulled into shared objects from archives
13580               whole_archive_flag_spec_CXX='$convenience'
13581             fi
13582             archive_cmds_need_lc_CXX=yes
13583             # This is similar to how AIX traditionally builds its shared
13584             # libraries.
13585             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'
13586           fi
13587         fi
13588         ;;
13589
13590       beos*)
13591         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13592           allow_undefined_flag_CXX=unsupported
13593           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13594           # support --undefined.  This deserves some investigation.  FIXME
13595           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13596         else
13597           ld_shlibs_CXX=no
13598         fi
13599         ;;
13600
13601       chorus*)
13602         case $cc_basename in
13603           *)
13604           # FIXME: insert proper C++ library support
13605           ld_shlibs_CXX=no
13606           ;;
13607         esac
13608         ;;
13609
13610       cygwin* | mingw* | pw32* | cegcc*)
13611         case $GXX,$cc_basename in
13612         ,cl* | no,cl*)
13613           # Native MSVC
13614           # hardcode_libdir_flag_spec is actually meaningless, as there is
13615           # no search path for DLLs.
13616           hardcode_libdir_flag_spec_CXX=' '
13617           allow_undefined_flag_CXX=unsupported
13618           always_export_symbols_CXX=yes
13619           file_list_spec_CXX='@'
13620           # Tell ltmain to make .lib files, not .a files.
13621           libext=lib
13622           # Tell ltmain to make .dll files, not .so files.
13623           shrext_cmds=".dll"
13624           # FIXME: Setting linknames here is a bad hack.
13625           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13626           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13627               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13628             else
13629               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13630             fi~
13631             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13632             linknames='
13633           # The linker will not automatically build a static lib if we build a DLL.
13634           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13635           enable_shared_with_static_runtimes_CXX=yes
13636           # Don't use ranlib
13637           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13638           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13639             lt_tool_outputfile="@TOOL_OUTPUT@"~
13640             case $lt_outputfile in
13641               *.exe|*.EXE) ;;
13642               *)
13643                 lt_outputfile="$lt_outputfile.exe"
13644                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13645                 ;;
13646             esac~
13647             func_to_tool_file "$lt_outputfile"~
13648             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13649               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13650               $RM "$lt_outputfile.manifest";
13651             fi'
13652           ;;
13653         *)
13654           # g++
13655           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13656           # as there is no search path for DLLs.
13657           hardcode_libdir_flag_spec_CXX='-L$libdir'
13658           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13659           allow_undefined_flag_CXX=unsupported
13660           always_export_symbols_CXX=no
13661           enable_shared_with_static_runtimes_CXX=yes
13662
13663           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13664             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'
13665             # If the export-symbols file already is a .def file (1st line
13666             # is EXPORTS), use it as is; otherwise, prepend...
13667             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13668               cp $export_symbols $output_objdir/$soname.def;
13669             else
13670               echo EXPORTS > $output_objdir/$soname.def;
13671               cat $export_symbols >> $output_objdir/$soname.def;
13672             fi~
13673             $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'
13674           else
13675             ld_shlibs_CXX=no
13676           fi
13677           ;;
13678         esac
13679         ;;
13680       darwin* | rhapsody*)
13681
13682
13683   archive_cmds_need_lc_CXX=no
13684   hardcode_direct_CXX=no
13685   hardcode_automatic_CXX=yes
13686   hardcode_shlibpath_var_CXX=unsupported
13687   if test "$lt_cv_ld_force_load" = "yes"; then
13688     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\"`'
13689   else
13690     whole_archive_flag_spec_CXX=''
13691   fi
13692   link_all_deplibs_CXX=yes
13693   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13694   case $cc_basename in
13695      ifort*) _lt_dar_can_shared=yes ;;
13696      *) _lt_dar_can_shared=$GCC ;;
13697   esac
13698   if test "$_lt_dar_can_shared" = "yes"; then
13699     output_verbose_link_cmd=func_echo_all
13700     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}"
13701     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13702     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}"
13703     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}"
13704        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13705       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}"
13706       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}"
13707     fi
13708
13709   else
13710   ld_shlibs_CXX=no
13711   fi
13712
13713         ;;
13714
13715       dgux*)
13716         case $cc_basename in
13717           ec++*)
13718             # FIXME: insert proper C++ library support
13719             ld_shlibs_CXX=no
13720             ;;
13721           ghcx*)
13722             # Green Hills C++ Compiler
13723             # FIXME: insert proper C++ library support
13724             ld_shlibs_CXX=no
13725             ;;
13726           *)
13727             # FIXME: insert proper C++ library support
13728             ld_shlibs_CXX=no
13729             ;;
13730         esac
13731         ;;
13732
13733       freebsd[12]*)
13734         # C++ shared libraries reported to be fairly broken before
13735         # switch to ELF
13736         ld_shlibs_CXX=no
13737         ;;
13738
13739       freebsd-elf*)
13740         archive_cmds_need_lc_CXX=no
13741         ;;
13742
13743       freebsd* | dragonfly*)
13744         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13745         # conventions
13746         ld_shlibs_CXX=yes
13747         ;;
13748
13749       gnu*)
13750         ;;
13751
13752       haiku*)
13753         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13754         link_all_deplibs_CXX=yes
13755         ;;
13756
13757       hpux9*)
13758         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13759         hardcode_libdir_separator_CXX=:
13760         export_dynamic_flag_spec_CXX='${wl}-E'
13761         hardcode_direct_CXX=yes
13762         hardcode_minus_L_CXX=yes # Not in the search PATH,
13763                                              # but as the default
13764                                              # location of the library.
13765
13766         case $cc_basename in
13767           CC*)
13768             # FIXME: insert proper C++ library support
13769             ld_shlibs_CXX=no
13770             ;;
13771           aCC*)
13772             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'
13773             # Commands to make compiler produce verbose output that lists
13774             # what "hidden" libraries, object files and flags are used when
13775             # linking a shared library.
13776             #
13777             # There doesn't appear to be a way to prevent this compiler from
13778             # explicitly linking system object files so we need to strip them
13779             # from the output so that they don't get included in the library
13780             # dependencies.
13781             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"'
13782             ;;
13783           *)
13784             if test "$GXX" = yes; then
13785               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'
13786             else
13787               # FIXME: insert proper C++ library support
13788               ld_shlibs_CXX=no
13789             fi
13790             ;;
13791         esac
13792         ;;
13793
13794       hpux10*|hpux11*)
13795         if test $with_gnu_ld = no; then
13796           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13797           hardcode_libdir_separator_CXX=:
13798
13799           case $host_cpu in
13800             hppa*64*|ia64*)
13801               ;;
13802             *)
13803               export_dynamic_flag_spec_CXX='${wl}-E'
13804               ;;
13805           esac
13806         fi
13807         case $host_cpu in
13808           hppa*64*|ia64*)
13809             hardcode_direct_CXX=no
13810             hardcode_shlibpath_var_CXX=no
13811             ;;
13812           *)
13813             hardcode_direct_CXX=yes
13814             hardcode_direct_absolute_CXX=yes
13815             hardcode_minus_L_CXX=yes # Not in the search PATH,
13816                                                  # but as the default
13817                                                  # location of the library.
13818             ;;
13819         esac
13820
13821         case $cc_basename in
13822           CC*)
13823             # FIXME: insert proper C++ library support
13824             ld_shlibs_CXX=no
13825             ;;
13826           aCC*)
13827             case $host_cpu in
13828               hppa*64*)
13829                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13830                 ;;
13831               ia64*)
13832                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13833                 ;;
13834               *)
13835                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13836                 ;;
13837             esac
13838             # Commands to make compiler produce verbose output that lists
13839             # what "hidden" libraries, object files and flags are used when
13840             # linking a shared library.
13841             #
13842             # There doesn't appear to be a way to prevent this compiler from
13843             # explicitly linking system object files so we need to strip them
13844             # from the output so that they don't get included in the library
13845             # dependencies.
13846             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"'
13847             ;;
13848           *)
13849             if test "$GXX" = yes; then
13850               if test $with_gnu_ld = no; then
13851                 case $host_cpu in
13852                   hppa*64*)
13853                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13854                     ;;
13855                   ia64*)
13856                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13857                     ;;
13858                   *)
13859                     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'
13860                     ;;
13861                 esac
13862               fi
13863             else
13864               # FIXME: insert proper C++ library support
13865               ld_shlibs_CXX=no
13866             fi
13867             ;;
13868         esac
13869         ;;
13870
13871       interix[3-9]*)
13872         hardcode_direct_CXX=no
13873         hardcode_shlibpath_var_CXX=no
13874         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13875         export_dynamic_flag_spec_CXX='${wl}-E'
13876         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13877         # Instead, shared libraries are loaded at an image base (0x10000000 by
13878         # default) and relocated if they conflict, which is a slow very memory
13879         # consuming and fragmenting process.  To avoid this, we pick a random,
13880         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13881         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13882         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'
13883         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'
13884         ;;
13885       irix5* | irix6*)
13886         case $cc_basename in
13887           CC*)
13888             # SGI C++
13889             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'
13890
13891             # Archives containing C++ object files must be created using
13892             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13893             # necessary to make sure instantiated templates are included
13894             # in the archive.
13895             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13896             ;;
13897           *)
13898             if test "$GXX" = yes; then
13899               if test "$with_gnu_ld" = no; then
13900                 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'
13901               else
13902                 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'
13903               fi
13904             fi
13905             link_all_deplibs_CXX=yes
13906             ;;
13907         esac
13908         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13909         hardcode_libdir_separator_CXX=:
13910         inherit_rpath_CXX=yes
13911         ;;
13912
13913       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13914         case $cc_basename in
13915           KCC*)
13916             # Kuck and Associates, Inc. (KAI) C++ Compiler
13917
13918             # KCC will only create a shared library if the output file
13919             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13920             # to its proper name (with version) after linking.
13921             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'
13922             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'
13923             # Commands to make compiler produce verbose output that lists
13924             # what "hidden" libraries, object files and flags are used when
13925             # linking a shared library.
13926             #
13927             # There doesn't appear to be a way to prevent this compiler from
13928             # explicitly linking system object files so we need to strip them
13929             # from the output so that they don't get included in the library
13930             # dependencies.
13931             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"'
13932
13933             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13934             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13935
13936             # Archives containing C++ object files must be created using
13937             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13938             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13939             ;;
13940           icpc* | ecpc* )
13941             # Intel C++
13942             with_gnu_ld=yes
13943             # version 8.0 and above of icpc choke on multiply defined symbols
13944             # if we add $predep_objects and $postdep_objects, however 7.1 and
13945             # earlier do not add the objects themselves.
13946             case `$CC -V 2>&1` in
13947               *"Version 7."*)
13948                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13949                 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'
13950                 ;;
13951               *)  # Version 8.0 or newer
13952                 tmp_idyn=
13953                 case $host_cpu in
13954                   ia64*) tmp_idyn=' -i_dynamic';;
13955                 esac
13956                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13957                 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'
13958                 ;;
13959             esac
13960             archive_cmds_need_lc_CXX=no
13961             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13962             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13963             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13964             ;;
13965           pgCC* | pgcpp*)
13966             # Portland Group C++ compiler
13967             case `$CC -V` in
13968             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13969               prelink_cmds_CXX='tpldir=Template.dir~
13970                 rm -rf $tpldir~
13971                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13972                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13973               old_archive_cmds_CXX='tpldir=Template.dir~
13974                 rm -rf $tpldir~
13975                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13976                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13977                 $RANLIB $oldlib'
13978               archive_cmds_CXX='tpldir=Template.dir~
13979                 rm -rf $tpldir~
13980                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13981                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13982               archive_expsym_cmds_CXX='tpldir=Template.dir~
13983                 rm -rf $tpldir~
13984                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13985                 $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'
13986               ;;
13987             *) # Version 6 and above use weak symbols
13988               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13989               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'
13990               ;;
13991             esac
13992
13993             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13994             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13995             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'
13996             ;;
13997           cxx*)
13998             # Compaq C++
13999             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14000             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'
14001
14002             runpath_var=LD_RUN_PATH
14003             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14004             hardcode_libdir_separator_CXX=:
14005
14006             # Commands to make compiler produce verbose output that lists
14007             # what "hidden" libraries, object files and flags are used when
14008             # linking a shared library.
14009             #
14010             # There doesn't appear to be a way to prevent this compiler from
14011             # explicitly linking system object files so we need to strip them
14012             # from the output so that they don't get included in the library
14013             # dependencies.
14014             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'
14015             ;;
14016           xl* | mpixl* | bgxl*)
14017             # IBM XL 8.0 on PPC, with GNU ld
14018             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14019             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14020             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14021             if test "x$supports_anon_versioning" = xyes; then
14022               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14023                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14024                 echo "local: *; };" >> $output_objdir/$libname.ver~
14025                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14026             fi
14027             ;;
14028           *)
14029             case `$CC -V 2>&1 | sed 5q` in
14030             *Sun\ C*)
14031               # Sun C++ 5.9
14032               no_undefined_flag_CXX=' -zdefs'
14033               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14034               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'
14035               hardcode_libdir_flag_spec_CXX='-R$libdir'
14036               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'
14037               compiler_needs_object_CXX=yes
14038
14039               # Not sure whether something based on
14040               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14041               # would be better.
14042               output_verbose_link_cmd='func_echo_all'
14043
14044               # Archives containing C++ object files must be created using
14045               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14046               # necessary to make sure instantiated templates are included
14047               # in the archive.
14048               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14049               ;;
14050             esac
14051             ;;
14052         esac
14053         ;;
14054
14055       lynxos*)
14056         # FIXME: insert proper C++ library support
14057         ld_shlibs_CXX=no
14058         ;;
14059
14060       m88k*)
14061         # FIXME: insert proper C++ library support
14062         ld_shlibs_CXX=no
14063         ;;
14064
14065       mvs*)
14066         case $cc_basename in
14067           cxx*)
14068             # FIXME: insert proper C++ library support
14069             ld_shlibs_CXX=no
14070             ;;
14071           *)
14072             # FIXME: insert proper C++ library support
14073             ld_shlibs_CXX=no
14074             ;;
14075         esac
14076         ;;
14077
14078       netbsd*)
14079         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14080           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14081           wlarc=
14082           hardcode_libdir_flag_spec_CXX='-R$libdir'
14083           hardcode_direct_CXX=yes
14084           hardcode_shlibpath_var_CXX=no
14085         fi
14086         # Workaround some broken pre-1.5 toolchains
14087         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14088         ;;
14089
14090       *nto* | *qnx*)
14091         ld_shlibs_CXX=yes
14092         ;;
14093
14094       openbsd2*)
14095         # C++ shared libraries are fairly broken
14096         ld_shlibs_CXX=no
14097         ;;
14098
14099       openbsd*)
14100         if test -f /usr/libexec/ld.so; then
14101           hardcode_direct_CXX=yes
14102           hardcode_shlibpath_var_CXX=no
14103           hardcode_direct_absolute_CXX=yes
14104           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14105           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14106           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14107             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14108             export_dynamic_flag_spec_CXX='${wl}-E'
14109             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14110           fi
14111           output_verbose_link_cmd=func_echo_all
14112         else
14113           ld_shlibs_CXX=no
14114         fi
14115         ;;
14116
14117       osf3* | osf4* | osf5*)
14118         case $cc_basename in
14119           KCC*)
14120             # Kuck and Associates, Inc. (KAI) C++ Compiler
14121
14122             # KCC will only create a shared library if the output file
14123             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14124             # to its proper name (with version) after linking.
14125             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'
14126
14127             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14128             hardcode_libdir_separator_CXX=:
14129
14130             # Archives containing C++ object files must be created using
14131             # the KAI C++ compiler.
14132             case $host in
14133               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14134               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14135             esac
14136             ;;
14137           RCC*)
14138             # Rational C++ 2.4.1
14139             # FIXME: insert proper C++ library support
14140             ld_shlibs_CXX=no
14141             ;;
14142           cxx*)
14143             case $host in
14144               osf3*)
14145                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14146                 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'
14147                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14148                 ;;
14149               *)
14150                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14151                 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'
14152                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14153                   echo "-hidden">> $lib.exp~
14154                   $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~
14155                   $RM $lib.exp'
14156                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14157                 ;;
14158             esac
14159
14160             hardcode_libdir_separator_CXX=:
14161
14162             # Commands to make compiler produce verbose output that lists
14163             # what "hidden" libraries, object files and flags are used when
14164             # linking a shared library.
14165             #
14166             # There doesn't appear to be a way to prevent this compiler from
14167             # explicitly linking system object files so we need to strip them
14168             # from the output so that they don't get included in the library
14169             # dependencies.
14170             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"'
14171             ;;
14172           *)
14173             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14174               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14175               case $host in
14176                 osf3*)
14177                   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'
14178                   ;;
14179                 *)
14180                   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'
14181                   ;;
14182               esac
14183
14184               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14185               hardcode_libdir_separator_CXX=:
14186
14187               # Commands to make compiler produce verbose output that lists
14188               # what "hidden" libraries, object files and flags are used when
14189               # linking a shared library.
14190               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14191
14192             else
14193               # FIXME: insert proper C++ library support
14194               ld_shlibs_CXX=no
14195             fi
14196             ;;
14197         esac
14198         ;;
14199
14200       psos*)
14201         # FIXME: insert proper C++ library support
14202         ld_shlibs_CXX=no
14203         ;;
14204
14205       sunos4*)
14206         case $cc_basename in
14207           CC*)
14208             # Sun C++ 4.x
14209             # FIXME: insert proper C++ library support
14210             ld_shlibs_CXX=no
14211             ;;
14212           lcc*)
14213             # Lucid
14214             # FIXME: insert proper C++ library support
14215             ld_shlibs_CXX=no
14216             ;;
14217           *)
14218             # FIXME: insert proper C++ library support
14219             ld_shlibs_CXX=no
14220             ;;
14221         esac
14222         ;;
14223
14224       solaris*)
14225         case $cc_basename in
14226           CC* | sunCC*)
14227             # Sun C++ 4.2, 5.x and Centerline C++
14228             archive_cmds_need_lc_CXX=yes
14229             no_undefined_flag_CXX=' -zdefs'
14230             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14231             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14232               $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'
14233
14234             hardcode_libdir_flag_spec_CXX='-R$libdir'
14235             hardcode_shlibpath_var_CXX=no
14236             case $host_os in
14237               solaris2.[0-5] | solaris2.[0-5].*) ;;
14238               *)
14239                 # The compiler driver will combine and reorder linker options,
14240                 # but understands `-z linker_flag'.
14241                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14242                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14243                 ;;
14244             esac
14245             link_all_deplibs_CXX=yes
14246
14247             output_verbose_link_cmd='func_echo_all'
14248
14249             # Archives containing C++ object files must be created using
14250             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14251             # necessary to make sure instantiated templates are included
14252             # in the archive.
14253             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14254             ;;
14255           gcx*)
14256             # Green Hills C++ Compiler
14257             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14258
14259             # The C++ compiler must be used to create the archive.
14260             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14261             ;;
14262           *)
14263             # GNU C++ compiler with Solaris linker
14264             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14265               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14266               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14267                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14268                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14269                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14270
14271                 # Commands to make compiler produce verbose output that lists
14272                 # what "hidden" libraries, object files and flags are used when
14273                 # linking a shared library.
14274                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14275               else
14276                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14277                 # platform.
14278                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14279                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14280                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14281
14282                 # Commands to make compiler produce verbose output that lists
14283                 # what "hidden" libraries, object files and flags are used when
14284                 # linking a shared library.
14285                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14286               fi
14287
14288               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14289               case $host_os in
14290                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14291                 *)
14292                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14293                   ;;
14294               esac
14295             fi
14296             ;;
14297         esac
14298         ;;
14299
14300     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14301       no_undefined_flag_CXX='${wl}-z,text'
14302       archive_cmds_need_lc_CXX=no
14303       hardcode_shlibpath_var_CXX=no
14304       runpath_var='LD_RUN_PATH'
14305
14306       case $cc_basename in
14307         CC*)
14308           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14309           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14310           ;;
14311         *)
14312           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14313           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14314           ;;
14315       esac
14316       ;;
14317
14318       sysv5* | sco3.2v5* | sco5v6*)
14319         # Note: We can NOT use -z defs as we might desire, because we do not
14320         # link with -lc, and that would cause any symbols used from libc to
14321         # always be unresolved, which means just about no library would
14322         # ever link correctly.  If we're not using GNU ld we use -z text
14323         # though, which does catch some bad symbols but isn't as heavy-handed
14324         # as -z defs.
14325         no_undefined_flag_CXX='${wl}-z,text'
14326         allow_undefined_flag_CXX='${wl}-z,nodefs'
14327         archive_cmds_need_lc_CXX=no
14328         hardcode_shlibpath_var_CXX=no
14329         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14330         hardcode_libdir_separator_CXX=':'
14331         link_all_deplibs_CXX=yes
14332         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14333         runpath_var='LD_RUN_PATH'
14334
14335         case $cc_basename in
14336           CC*)
14337             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14338             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14339             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14340               '"$old_archive_cmds_CXX"
14341             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14342               '"$reload_cmds_CXX"
14343             ;;
14344           *)
14345             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14346             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14347             ;;
14348         esac
14349       ;;
14350
14351       tandem*)
14352         case $cc_basename in
14353           NCC*)
14354             # NonStop-UX NCC 3.20
14355             # FIXME: insert proper C++ library support
14356             ld_shlibs_CXX=no
14357             ;;
14358           *)
14359             # FIXME: insert proper C++ library support
14360             ld_shlibs_CXX=no
14361             ;;
14362         esac
14363         ;;
14364
14365       vxworks*)
14366         # FIXME: insert proper C++ library support
14367         ld_shlibs_CXX=no
14368         ;;
14369
14370       *)
14371         # FIXME: insert proper C++ library support
14372         ld_shlibs_CXX=no
14373         ;;
14374     esac
14375
14376     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14377 $as_echo "$ld_shlibs_CXX" >&6; }
14378     test "$ld_shlibs_CXX" = no && can_build_shared=no
14379
14380     GCC_CXX="$GXX"
14381     LD_CXX="$LD"
14382
14383     ## CAVEAT EMPTOR:
14384     ## There is no encapsulation within the following macros, do not change
14385     ## the running order or otherwise move them around unless you know exactly
14386     ## what you are doing...
14387     # Dependencies to place before and after the object being linked:
14388 predep_objects_CXX=
14389 postdep_objects_CXX=
14390 predeps_CXX=
14391 postdeps_CXX=
14392 compiler_lib_search_path_CXX=
14393
14394 cat > conftest.$ac_ext <<_LT_EOF
14395 class Foo
14396 {
14397 public:
14398   Foo (void) { a = 0; }
14399 private:
14400   int a;
14401 };
14402 _LT_EOF
14403
14404
14405 _lt_libdeps_save_CFLAGS=$CFLAGS
14406 case "$CC $CFLAGS " in #(
14407 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14408 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14409 esac
14410
14411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14412   (eval $ac_compile) 2>&5
14413   ac_status=$?
14414   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14415   test $ac_status = 0; }; then
14416   # Parse the compiler output and extract the necessary
14417   # objects, libraries and library flags.
14418
14419   # Sentinel used to keep track of whether or not we are before
14420   # the conftest object file.
14421   pre_test_object_deps_done=no
14422
14423   for p in `eval "$output_verbose_link_cmd"`; do
14424     case ${prev}${p} in
14425
14426     -L* | -R* | -l*)
14427        # Some compilers place space between "-{L,R}" and the path.
14428        # Remove the space.
14429        if test $p = "-L" ||
14430           test $p = "-R"; then
14431          prev=$p
14432          continue
14433        fi
14434
14435        # Expand the sysroot to ease extracting the directories later.
14436        if test -z "$prev"; then
14437          case $p in
14438          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14439          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14440          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14441          esac
14442        fi
14443        case $p in
14444        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14445        esac
14446        if test "$pre_test_object_deps_done" = no; then
14447          case ${prev} in
14448          -L | -R)
14449            # Internal compiler library paths should come after those
14450            # provided the user.  The postdeps already come after the
14451            # user supplied libs so there is no need to process them.
14452            if test -z "$compiler_lib_search_path_CXX"; then
14453              compiler_lib_search_path_CXX="${prev}${p}"
14454            else
14455              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14456            fi
14457            ;;
14458          # The "-l" case would never come before the object being
14459          # linked, so don't bother handling this case.
14460          esac
14461        else
14462          if test -z "$postdeps_CXX"; then
14463            postdeps_CXX="${prev}${p}"
14464          else
14465            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14466          fi
14467        fi
14468        prev=
14469        ;;
14470
14471     *.lto.$objext) ;; # Ignore GCC LTO objects
14472     *.$objext)
14473        # This assumes that the test object file only shows up
14474        # once in the compiler output.
14475        if test "$p" = "conftest.$objext"; then
14476          pre_test_object_deps_done=yes
14477          continue
14478        fi
14479
14480        if test "$pre_test_object_deps_done" = no; then
14481          if test -z "$predep_objects_CXX"; then
14482            predep_objects_CXX="$p"
14483          else
14484            predep_objects_CXX="$predep_objects_CXX $p"
14485          fi
14486        else
14487          if test -z "$postdep_objects_CXX"; then
14488            postdep_objects_CXX="$p"
14489          else
14490            postdep_objects_CXX="$postdep_objects_CXX $p"
14491          fi
14492        fi
14493        ;;
14494
14495     *) ;; # Ignore the rest.
14496
14497     esac
14498   done
14499
14500   # Clean up.
14501   rm -f a.out a.exe
14502 else
14503   echo "libtool.m4: error: problem compiling CXX test program"
14504 fi
14505
14506 $RM -f confest.$objext
14507 CFLAGS=$_lt_libdeps_save_CFLAGS
14508
14509 # PORTME: override above test on systems where it is broken
14510 case $host_os in
14511 interix[3-9]*)
14512   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14513   # hack all around it, let's just trust "g++" to DTRT.
14514   predep_objects_CXX=
14515   postdep_objects_CXX=
14516   postdeps_CXX=
14517   ;;
14518
14519 linux*)
14520   case `$CC -V 2>&1 | sed 5q` in
14521   *Sun\ C*)
14522     # Sun C++ 5.9
14523
14524     # The more standards-conforming stlport4 library is
14525     # incompatible with the Cstd library. Avoid specifying
14526     # it if it's in CXXFLAGS. Ignore libCrun as
14527     # -library=stlport4 depends on it.
14528     case " $CXX $CXXFLAGS " in
14529     *" -library=stlport4 "*)
14530       solaris_use_stlport4=yes
14531       ;;
14532     esac
14533
14534     if test "$solaris_use_stlport4" != yes; then
14535       postdeps_CXX='-library=Cstd -library=Crun'
14536     fi
14537     ;;
14538   esac
14539   ;;
14540
14541 solaris*)
14542   case $cc_basename in
14543   CC* | sunCC*)
14544     # The more standards-conforming stlport4 library is
14545     # incompatible with the Cstd library. Avoid specifying
14546     # it if it's in CXXFLAGS. Ignore libCrun as
14547     # -library=stlport4 depends on it.
14548     case " $CXX $CXXFLAGS " in
14549     *" -library=stlport4 "*)
14550       solaris_use_stlport4=yes
14551       ;;
14552     esac
14553
14554     # Adding this requires a known-good setup of shared libraries for
14555     # Sun compiler versions before 5.6, else PIC objects from an old
14556     # archive will be linked into the output, leading to subtle bugs.
14557     if test "$solaris_use_stlport4" != yes; then
14558       postdeps_CXX='-library=Cstd -library=Crun'
14559     fi
14560     ;;
14561   esac
14562   ;;
14563 esac
14564
14565
14566 case " $postdeps_CXX " in
14567 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14568 esac
14569  compiler_lib_search_dirs_CXX=
14570 if test -n "${compiler_lib_search_path_CXX}"; then
14571  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14572 fi
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604     lt_prog_compiler_wl_CXX=
14605 lt_prog_compiler_pic_CXX=
14606 lt_prog_compiler_static_CXX=
14607
14608
14609   # C++ specific cases for pic, static, wl, etc.
14610   if test "$GXX" = yes; then
14611     lt_prog_compiler_wl_CXX='-Wl,'
14612     lt_prog_compiler_static_CXX='-static'
14613
14614     case $host_os in
14615     aix*)
14616       # All AIX code is PIC.
14617       if test "$host_cpu" = ia64; then
14618         # AIX 5 now supports IA64 processor
14619         lt_prog_compiler_static_CXX='-Bstatic'
14620       fi
14621       ;;
14622
14623     amigaos*)
14624       case $host_cpu in
14625       powerpc)
14626             # see comment about AmigaOS4 .so support
14627             lt_prog_compiler_pic_CXX='-fPIC'
14628         ;;
14629       m68k)
14630             # FIXME: we need at least 68020 code to build shared libraries, but
14631             # adding the `-m68020' flag to GCC prevents building anything better,
14632             # like `-m68040'.
14633             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14634         ;;
14635       esac
14636       ;;
14637
14638     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14639       # PIC is the default for these OSes.
14640       ;;
14641     mingw* | cygwin* | os2* | pw32* | cegcc*)
14642       # This hack is so that the source file can tell whether it is being
14643       # built for inclusion in a dll (and should export symbols for example).
14644       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14645       # (--disable-auto-import) libraries
14646       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14647       ;;
14648     darwin* | rhapsody*)
14649       # PIC is the default on this platform
14650       # Common symbols not allowed in MH_DYLIB files
14651       lt_prog_compiler_pic_CXX='-fno-common'
14652       ;;
14653     *djgpp*)
14654       # DJGPP does not support shared libraries at all
14655       lt_prog_compiler_pic_CXX=
14656       ;;
14657     haiku*)
14658       # PIC is the default for Haiku.
14659       # The "-static" flag exists, but is broken.
14660       lt_prog_compiler_static_CXX=
14661       ;;
14662     interix[3-9]*)
14663       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14664       # Instead, we relocate shared libraries at runtime.
14665       ;;
14666     sysv4*MP*)
14667       if test -d /usr/nec; then
14668         lt_prog_compiler_pic_CXX=-Kconform_pic
14669       fi
14670       ;;
14671     hpux*)
14672       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14673       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14674       # sets the default TLS model and affects inlining.
14675       case $host_cpu in
14676       hppa*64*)
14677         ;;
14678       *)
14679         lt_prog_compiler_pic_CXX='-fPIC'
14680         ;;
14681       esac
14682       ;;
14683     *qnx* | *nto*)
14684       # QNX uses GNU C++, but need to define -shared option too, otherwise
14685       # it will coredump.
14686       lt_prog_compiler_pic_CXX='-fPIC -shared'
14687       ;;
14688     *)
14689       lt_prog_compiler_pic_CXX='-fPIC'
14690       ;;
14691     esac
14692   else
14693     case $host_os in
14694       aix[4-9]*)
14695         # All AIX code is PIC.
14696         if test "$host_cpu" = ia64; then
14697           # AIX 5 now supports IA64 processor
14698           lt_prog_compiler_static_CXX='-Bstatic'
14699         else
14700           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14701         fi
14702         ;;
14703       chorus*)
14704         case $cc_basename in
14705         cxch68*)
14706           # Green Hills C++ Compiler
14707           # _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"
14708           ;;
14709         esac
14710         ;;
14711       mingw* | cygwin* | os2* | pw32* | cegcc*)
14712         # This hack is so that the source file can tell whether it is being
14713         # built for inclusion in a dll (and should export symbols for example).
14714         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14715         ;;
14716       dgux*)
14717         case $cc_basename in
14718           ec++*)
14719             lt_prog_compiler_pic_CXX='-KPIC'
14720             ;;
14721           ghcx*)
14722             # Green Hills C++ Compiler
14723             lt_prog_compiler_pic_CXX='-pic'
14724             ;;
14725           *)
14726             ;;
14727         esac
14728         ;;
14729       freebsd* | dragonfly*)
14730         # FreeBSD uses GNU C++
14731         ;;
14732       hpux9* | hpux10* | hpux11*)
14733         case $cc_basename in
14734           CC*)
14735             lt_prog_compiler_wl_CXX='-Wl,'
14736             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14737             if test "$host_cpu" != ia64; then
14738               lt_prog_compiler_pic_CXX='+Z'
14739             fi
14740             ;;
14741           aCC*)
14742             lt_prog_compiler_wl_CXX='-Wl,'
14743             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14744             case $host_cpu in
14745             hppa*64*|ia64*)
14746               # +Z the default
14747               ;;
14748             *)
14749               lt_prog_compiler_pic_CXX='+Z'
14750               ;;
14751             esac
14752             ;;
14753           *)
14754             ;;
14755         esac
14756         ;;
14757       interix*)
14758         # This is c89, which is MS Visual C++ (no shared libs)
14759         # Anyone wants to do a port?
14760         ;;
14761       irix5* | irix6* | nonstopux*)
14762         case $cc_basename in
14763           CC*)
14764             lt_prog_compiler_wl_CXX='-Wl,'
14765             lt_prog_compiler_static_CXX='-non_shared'
14766             # CC pic flag -KPIC is the default.
14767             ;;
14768           *)
14769             ;;
14770         esac
14771         ;;
14772       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14773         case $cc_basename in
14774           KCC*)
14775             # KAI C++ Compiler
14776             lt_prog_compiler_wl_CXX='--backend -Wl,'
14777             lt_prog_compiler_pic_CXX='-fPIC'
14778             ;;
14779           ecpc* )
14780             # old Intel C++ for x86_64 which still supported -KPIC.
14781             lt_prog_compiler_wl_CXX='-Wl,'
14782             lt_prog_compiler_pic_CXX='-KPIC'
14783             lt_prog_compiler_static_CXX='-static'
14784             ;;
14785           icpc* )
14786             # Intel C++, used to be incompatible with GCC.
14787             # ICC 10 doesn't accept -KPIC any more.
14788             lt_prog_compiler_wl_CXX='-Wl,'
14789             lt_prog_compiler_pic_CXX='-fPIC'
14790             lt_prog_compiler_static_CXX='-static'
14791             ;;
14792           pgCC* | pgcpp*)
14793             # Portland Group C++ compiler
14794             lt_prog_compiler_wl_CXX='-Wl,'
14795             lt_prog_compiler_pic_CXX='-fpic'
14796             lt_prog_compiler_static_CXX='-Bstatic'
14797             ;;
14798           cxx*)
14799             # Compaq C++
14800             # Make sure the PIC flag is empty.  It appears that all Alpha
14801             # Linux and Compaq Tru64 Unix objects are PIC.
14802             lt_prog_compiler_pic_CXX=
14803             lt_prog_compiler_static_CXX='-non_shared'
14804             ;;
14805           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14806             # IBM XL 8.0, 9.0 on PPC and BlueGene
14807             lt_prog_compiler_wl_CXX='-Wl,'
14808             lt_prog_compiler_pic_CXX='-qpic'
14809             lt_prog_compiler_static_CXX='-qstaticlink'
14810             ;;
14811           *)
14812             case `$CC -V 2>&1 | sed 5q` in
14813             *Sun\ C*)
14814               # Sun C++ 5.9
14815               lt_prog_compiler_pic_CXX='-KPIC'
14816               lt_prog_compiler_static_CXX='-Bstatic'
14817               lt_prog_compiler_wl_CXX='-Qoption ld '
14818               ;;
14819             esac
14820             ;;
14821         esac
14822         ;;
14823       lynxos*)
14824         ;;
14825       m88k*)
14826         ;;
14827       mvs*)
14828         case $cc_basename in
14829           cxx*)
14830             lt_prog_compiler_pic_CXX='-W c,exportall'
14831             ;;
14832           *)
14833             ;;
14834         esac
14835         ;;
14836       netbsd*)
14837         ;;
14838       *qnx* | *nto*)
14839         # QNX uses GNU C++, but need to define -shared option too, otherwise
14840         # it will coredump.
14841         lt_prog_compiler_pic_CXX='-fPIC -shared'
14842         ;;
14843       osf3* | osf4* | osf5*)
14844         case $cc_basename in
14845           KCC*)
14846             lt_prog_compiler_wl_CXX='--backend -Wl,'
14847             ;;
14848           RCC*)
14849             # Rational C++ 2.4.1
14850             lt_prog_compiler_pic_CXX='-pic'
14851             ;;
14852           cxx*)
14853             # Digital/Compaq C++
14854             lt_prog_compiler_wl_CXX='-Wl,'
14855             # Make sure the PIC flag is empty.  It appears that all Alpha
14856             # Linux and Compaq Tru64 Unix objects are PIC.
14857             lt_prog_compiler_pic_CXX=
14858             lt_prog_compiler_static_CXX='-non_shared'
14859             ;;
14860           *)
14861             ;;
14862         esac
14863         ;;
14864       psos*)
14865         ;;
14866       solaris*)
14867         case $cc_basename in
14868           CC* | sunCC*)
14869             # Sun C++ 4.2, 5.x and Centerline C++
14870             lt_prog_compiler_pic_CXX='-KPIC'
14871             lt_prog_compiler_static_CXX='-Bstatic'
14872             lt_prog_compiler_wl_CXX='-Qoption ld '
14873             ;;
14874           gcx*)
14875             # Green Hills C++ Compiler
14876             lt_prog_compiler_pic_CXX='-PIC'
14877             ;;
14878           *)
14879             ;;
14880         esac
14881         ;;
14882       sunos4*)
14883         case $cc_basename in
14884           CC*)
14885             # Sun C++ 4.x
14886             lt_prog_compiler_pic_CXX='-pic'
14887             lt_prog_compiler_static_CXX='-Bstatic'
14888             ;;
14889           lcc*)
14890             # Lucid
14891             lt_prog_compiler_pic_CXX='-pic'
14892             ;;
14893           *)
14894             ;;
14895         esac
14896         ;;
14897       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14898         case $cc_basename in
14899           CC*)
14900             lt_prog_compiler_wl_CXX='-Wl,'
14901             lt_prog_compiler_pic_CXX='-KPIC'
14902             lt_prog_compiler_static_CXX='-Bstatic'
14903             ;;
14904         esac
14905         ;;
14906       tandem*)
14907         case $cc_basename in
14908           NCC*)
14909             # NonStop-UX NCC 3.20
14910             lt_prog_compiler_pic_CXX='-KPIC'
14911             ;;
14912           *)
14913             ;;
14914         esac
14915         ;;
14916       vxworks*)
14917         ;;
14918       *)
14919         lt_prog_compiler_can_build_shared_CXX=no
14920         ;;
14921     esac
14922   fi
14923
14924 case $host_os in
14925   # For platforms which do not support PIC, -DPIC is meaningless:
14926   *djgpp*)
14927     lt_prog_compiler_pic_CXX=
14928     ;;
14929   *)
14930     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14931     ;;
14932 esac
14933
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14935 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14936 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14937   $as_echo_n "(cached) " >&6
14938 else
14939   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14940 fi
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14942 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14943 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14944
14945 #
14946 # Check to make sure the PIC flag actually works.
14947 #
14948 if test -n "$lt_prog_compiler_pic_CXX"; then
14949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14950 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14951 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14952   $as_echo_n "(cached) " >&6
14953 else
14954   lt_cv_prog_compiler_pic_works_CXX=no
14955    ac_outfile=conftest.$ac_objext
14956    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14957    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14958    # Insert the option either (1) after the last *FLAGS variable, or
14959    # (2) before a word containing "conftest.", or (3) at the end.
14960    # Note that $ac_compile itself does not contain backslashes and begins
14961    # with a dollar sign (not a hyphen), so the echo should work correctly.
14962    # The option is referenced via a variable to avoid confusing sed.
14963    lt_compile=`echo "$ac_compile" | $SED \
14964    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14965    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14966    -e 's:$: $lt_compiler_flag:'`
14967    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14968    (eval "$lt_compile" 2>conftest.err)
14969    ac_status=$?
14970    cat conftest.err >&5
14971    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972    if (exit $ac_status) && test -s "$ac_outfile"; then
14973      # The compiler can only warn and ignore the option if not recognized
14974      # So say no if there are warnings other than the usual output.
14975      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14976      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14977      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14978        lt_cv_prog_compiler_pic_works_CXX=yes
14979      fi
14980    fi
14981    $RM conftest*
14982
14983 fi
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14985 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14986
14987 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14988     case $lt_prog_compiler_pic_CXX in
14989      "" | " "*) ;;
14990      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14991      esac
14992 else
14993     lt_prog_compiler_pic_CXX=
14994      lt_prog_compiler_can_build_shared_CXX=no
14995 fi
14996
14997 fi
14998
14999
15000
15001
15002
15003 #
15004 # Check to make sure the static flag actually works.
15005 #
15006 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15008 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15009 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15010   $as_echo_n "(cached) " >&6
15011 else
15012   lt_cv_prog_compiler_static_works_CXX=no
15013    save_LDFLAGS="$LDFLAGS"
15014    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15015    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15016    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15017      # The linker can only warn and ignore the option if not recognized
15018      # So say no if there are warnings
15019      if test -s conftest.err; then
15020        # Append any errors to the config.log.
15021        cat conftest.err 1>&5
15022        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15023        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15024        if diff conftest.exp conftest.er2 >/dev/null; then
15025          lt_cv_prog_compiler_static_works_CXX=yes
15026        fi
15027      else
15028        lt_cv_prog_compiler_static_works_CXX=yes
15029      fi
15030    fi
15031    $RM -r conftest*
15032    LDFLAGS="$save_LDFLAGS"
15033
15034 fi
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15036 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15037
15038 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15039     :
15040 else
15041     lt_prog_compiler_static_CXX=
15042 fi
15043
15044
15045
15046
15047     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15048 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15049 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15050   $as_echo_n "(cached) " >&6
15051 else
15052   lt_cv_prog_compiler_c_o_CXX=no
15053    $RM -r conftest 2>/dev/null
15054    mkdir conftest
15055    cd conftest
15056    mkdir out
15057    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15058
15059    lt_compiler_flag="-o out/conftest2.$ac_objext"
15060    # Insert the option either (1) after the last *FLAGS variable, or
15061    # (2) before a word containing "conftest.", or (3) at the end.
15062    # Note that $ac_compile itself does not contain backslashes and begins
15063    # with a dollar sign (not a hyphen), so the echo should work correctly.
15064    lt_compile=`echo "$ac_compile" | $SED \
15065    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15066    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15067    -e 's:$: $lt_compiler_flag:'`
15068    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15069    (eval "$lt_compile" 2>out/conftest.err)
15070    ac_status=$?
15071    cat out/conftest.err >&5
15072    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15074    then
15075      # The compiler can only warn and ignore the option if not recognized
15076      # So say no if there are warnings
15077      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15078      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15079      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15080        lt_cv_prog_compiler_c_o_CXX=yes
15081      fi
15082    fi
15083    chmod u+w . 2>&5
15084    $RM conftest*
15085    # SGI C++ compiler will create directory out/ii_files/ for
15086    # template instantiation
15087    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15088    $RM out/* && rmdir out
15089    cd ..
15090    $RM -r conftest
15091    $RM conftest*
15092
15093 fi
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15095 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15096
15097
15098
15099     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15100 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15101 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15102   $as_echo_n "(cached) " >&6
15103 else
15104   lt_cv_prog_compiler_c_o_CXX=no
15105    $RM -r conftest 2>/dev/null
15106    mkdir conftest
15107    cd conftest
15108    mkdir out
15109    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15110
15111    lt_compiler_flag="-o out/conftest2.$ac_objext"
15112    # Insert the option either (1) after the last *FLAGS variable, or
15113    # (2) before a word containing "conftest.", or (3) at the end.
15114    # Note that $ac_compile itself does not contain backslashes and begins
15115    # with a dollar sign (not a hyphen), so the echo should work correctly.
15116    lt_compile=`echo "$ac_compile" | $SED \
15117    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15118    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15119    -e 's:$: $lt_compiler_flag:'`
15120    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15121    (eval "$lt_compile" 2>out/conftest.err)
15122    ac_status=$?
15123    cat out/conftest.err >&5
15124    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15126    then
15127      # The compiler can only warn and ignore the option if not recognized
15128      # So say no if there are warnings
15129      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15130      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15131      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15132        lt_cv_prog_compiler_c_o_CXX=yes
15133      fi
15134    fi
15135    chmod u+w . 2>&5
15136    $RM conftest*
15137    # SGI C++ compiler will create directory out/ii_files/ for
15138    # template instantiation
15139    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15140    $RM out/* && rmdir out
15141    cd ..
15142    $RM -r conftest
15143    $RM conftest*
15144
15145 fi
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15147 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15148
15149
15150
15151
15152 hard_links="nottested"
15153 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15154   # do not overwrite the value of need_locks provided by the user
15155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15156 $as_echo_n "checking if we can lock with hard links... " >&6; }
15157   hard_links=yes
15158   $RM conftest*
15159   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15160   touch conftest.a
15161   ln conftest.a conftest.b 2>&5 || hard_links=no
15162   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15164 $as_echo "$hard_links" >&6; }
15165   if test "$hard_links" = no; then
15166     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15167 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15168     need_locks=warn
15169   fi
15170 else
15171   need_locks=no
15172 fi
15173
15174
15175
15176     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15177 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15178
15179   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15180   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15181   case $host_os in
15182   aix[4-9]*)
15183     # If we're using GNU nm, then we don't want the "-C" option.
15184     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15185     # Also, AIX nm treats weak defined symbols like other global defined
15186     # symbols, whereas GNU nm marks them as "W".
15187     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15188       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'
15189     else
15190       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'
15191     fi
15192     ;;
15193   pw32*)
15194     export_symbols_cmds_CXX="$ltdll_cmds"
15195     ;;
15196   cygwin* | mingw* | cegcc*)
15197     case $cc_basename in
15198     cl*) ;;
15199     *)
15200       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'
15201       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15202       ;;
15203     esac
15204     ;;
15205   *)
15206     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15207     ;;
15208   esac
15209
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15211 $as_echo "$ld_shlibs_CXX" >&6; }
15212 test "$ld_shlibs_CXX" = no && can_build_shared=no
15213
15214 with_gnu_ld_CXX=$with_gnu_ld
15215
15216
15217
15218
15219
15220
15221 #
15222 # Do we need to explicitly link libc?
15223 #
15224 case "x$archive_cmds_need_lc_CXX" in
15225 x|xyes)
15226   # Assume -lc should be added
15227   archive_cmds_need_lc_CXX=yes
15228
15229   if test "$enable_shared" = yes && test "$GCC" = yes; then
15230     case $archive_cmds_CXX in
15231     *'~'*)
15232       # FIXME: we may have to deal with multi-command sequences.
15233       ;;
15234     '$CC '*)
15235       # Test whether the compiler implicitly links with -lc since on some
15236       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15237       # to ld, don't add -lc before -lgcc.
15238       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15239 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15240 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15241   $as_echo_n "(cached) " >&6
15242 else
15243   $RM conftest*
15244         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15245
15246         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15247   (eval $ac_compile) 2>&5
15248   ac_status=$?
15249   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15250   test $ac_status = 0; } 2>conftest.err; then
15251           soname=conftest
15252           lib=conftest
15253           libobjs=conftest.$ac_objext
15254           deplibs=
15255           wl=$lt_prog_compiler_wl_CXX
15256           pic_flag=$lt_prog_compiler_pic_CXX
15257           compiler_flags=-v
15258           linker_flags=-v
15259           verstring=
15260           output_objdir=.
15261           libname=conftest
15262           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15263           allow_undefined_flag_CXX=
15264           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15265   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15266   ac_status=$?
15267   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15268   test $ac_status = 0; }
15269           then
15270             lt_cv_archive_cmds_need_lc_CXX=no
15271           else
15272             lt_cv_archive_cmds_need_lc_CXX=yes
15273           fi
15274           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15275         else
15276           cat conftest.err 1>&5
15277         fi
15278         $RM conftest*
15279
15280 fi
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15282 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15283       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15284       ;;
15285     esac
15286   fi
15287   ;;
15288 esac
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15354 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15355
15356 library_names_spec=
15357 libname_spec='lib$name'
15358 soname_spec=
15359 shrext_cmds=".so"
15360 postinstall_cmds=
15361 postuninstall_cmds=
15362 finish_cmds=
15363 finish_eval=
15364 shlibpath_var=
15365 shlibpath_overrides_runpath=unknown
15366 version_type=none
15367 dynamic_linker="$host_os ld.so"
15368 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15369 need_lib_prefix=unknown
15370 hardcode_into_libs=no
15371
15372 # when you set need_version to no, make sure it does not cause -set_version
15373 # flags to be left without arguments
15374 need_version=unknown
15375
15376 case $host_os in
15377 aix3*)
15378   version_type=linux
15379   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15380   shlibpath_var=LIBPATH
15381
15382   # AIX 3 has no versioning support, so we append a major version to the name.
15383   soname_spec='${libname}${release}${shared_ext}$major'
15384   ;;
15385
15386 aix[4-9]*)
15387   version_type=linux
15388   need_lib_prefix=no
15389   need_version=no
15390   hardcode_into_libs=yes
15391   if test "$host_cpu" = ia64; then
15392     # AIX 5 supports IA64
15393     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15394     shlibpath_var=LD_LIBRARY_PATH
15395   else
15396     # With GCC up to 2.95.x, collect2 would create an import file
15397     # for dependence libraries.  The import file would start with
15398     # the line `#! .'.  This would cause the generated library to
15399     # depend on `.', always an invalid library.  This was fixed in
15400     # development snapshots of GCC prior to 3.0.
15401     case $host_os in
15402       aix4 | aix4.[01] | aix4.[01].*)
15403       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15404            echo ' yes '
15405            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15406         :
15407       else
15408         can_build_shared=no
15409       fi
15410       ;;
15411     esac
15412     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15413     # soname into executable. Probably we can add versioning support to
15414     # collect2, so additional links can be useful in future.
15415     if test "$aix_use_runtimelinking" = yes; then
15416       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15417       # instead of lib<name>.a to let people know that these are not
15418       # typical AIX shared libraries.
15419       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15420     else
15421       # We preserve .a as extension for shared libraries through AIX4.2
15422       # and later when we are not doing run time linking.
15423       library_names_spec='${libname}${release}.a $libname.a'
15424       soname_spec='${libname}${release}${shared_ext}$major'
15425     fi
15426     shlibpath_var=LIBPATH
15427   fi
15428   ;;
15429
15430 amigaos*)
15431   case $host_cpu in
15432   powerpc)
15433     # Since July 2007 AmigaOS4 officially supports .so libraries.
15434     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15435     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15436     ;;
15437   m68k)
15438     library_names_spec='$libname.ixlibrary $libname.a'
15439     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15440     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'
15441     ;;
15442   esac
15443   ;;
15444
15445 beos*)
15446   library_names_spec='${libname}${shared_ext}'
15447   dynamic_linker="$host_os ld.so"
15448   shlibpath_var=LIBRARY_PATH
15449   ;;
15450
15451 bsdi[45]*)
15452   version_type=linux
15453   need_version=no
15454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15455   soname_spec='${libname}${release}${shared_ext}$major'
15456   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15457   shlibpath_var=LD_LIBRARY_PATH
15458   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15459   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15460   # the default ld.so.conf also contains /usr/contrib/lib and
15461   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15462   # libtool to hard-code these into programs
15463   ;;
15464
15465 cygwin* | mingw* | pw32* | cegcc*)
15466   version_type=windows
15467   shrext_cmds=".dll"
15468   need_version=no
15469   need_lib_prefix=no
15470
15471   case $GCC,$cc_basename in
15472   yes,*)
15473     # gcc
15474     library_names_spec='$libname.dll.a'
15475     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15476     postinstall_cmds='base_file=`basename \${file}`~
15477       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15478       dldir=$destdir/`dirname \$dlpath`~
15479       test -d \$dldir || mkdir -p \$dldir~
15480       $install_prog $dir/$dlname \$dldir/$dlname~
15481       chmod a+x \$dldir/$dlname~
15482       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15483         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15484       fi'
15485     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15486       dlpath=$dir/\$dldll~
15487        $RM \$dlpath'
15488     shlibpath_overrides_runpath=yes
15489
15490     case $host_os in
15491     cygwin*)
15492       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15493       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15494
15495       ;;
15496     mingw* | cegcc*)
15497       # MinGW DLLs use traditional 'lib' prefix
15498       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15499       ;;
15500     pw32*)
15501       # pw32 DLLs use 'pw' prefix rather than 'lib'
15502       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15503       ;;
15504     esac
15505     dynamic_linker='Win32 ld.exe'
15506     ;;
15507
15508   *,cl*)
15509     # Native MSVC
15510     libname_spec='$name'
15511     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15512     library_names_spec='${libname}.dll.lib'
15513
15514     case $build_os in
15515     mingw*)
15516       sys_lib_search_path_spec=
15517       lt_save_ifs=$IFS
15518       IFS=';'
15519       for lt_path in $LIB
15520       do
15521         IFS=$lt_save_ifs
15522         # Let DOS variable expansion print the short 8.3 style file name.
15523         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15524         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15525       done
15526       IFS=$lt_save_ifs
15527       # Convert to MSYS style.
15528       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15529       ;;
15530     cygwin*)
15531       # Convert to unix form, then to dos form, then back to unix form
15532       # but this time dos style (no spaces!) so that the unix form looks
15533       # like /cygdrive/c/PROGRA~1:/cygdr...
15534       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15535       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15536       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15537       ;;
15538     *)
15539       sys_lib_search_path_spec="$LIB"
15540       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15541         # It is most probably a Windows format PATH.
15542         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15543       else
15544         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15545       fi
15546       # FIXME: find the short name or the path components, as spaces are
15547       # common. (e.g. "Program Files" -> "PROGRA~1")
15548       ;;
15549     esac
15550
15551     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15552     postinstall_cmds='base_file=`basename \${file}`~
15553       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15554       dldir=$destdir/`dirname \$dlpath`~
15555       test -d \$dldir || mkdir -p \$dldir~
15556       $install_prog $dir/$dlname \$dldir/$dlname'
15557     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15558       dlpath=$dir/\$dldll~
15559        $RM \$dlpath'
15560     shlibpath_overrides_runpath=yes
15561     dynamic_linker='Win32 link.exe'
15562     ;;
15563
15564   *)
15565     # Assume MSVC wrapper
15566     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15567     dynamic_linker='Win32 ld.exe'
15568     ;;
15569   esac
15570   # FIXME: first we should search . and the directory the executable is in
15571   shlibpath_var=PATH
15572   ;;
15573
15574 darwin* | rhapsody*)
15575   dynamic_linker="$host_os dyld"
15576   version_type=darwin
15577   need_lib_prefix=no
15578   need_version=no
15579   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15580   soname_spec='${libname}${release}${major}$shared_ext'
15581   shlibpath_overrides_runpath=yes
15582   shlibpath_var=DYLD_LIBRARY_PATH
15583   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15584
15585   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15586   ;;
15587
15588 dgux*)
15589   version_type=linux
15590   need_lib_prefix=no
15591   need_version=no
15592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15593   soname_spec='${libname}${release}${shared_ext}$major'
15594   shlibpath_var=LD_LIBRARY_PATH
15595   ;;
15596
15597 freebsd1*)
15598   dynamic_linker=no
15599   ;;
15600
15601 freebsd* | dragonfly*)
15602   # DragonFly does not have aout.  When/if they implement a new
15603   # versioning mechanism, adjust this.
15604   if test -x /usr/bin/objformat; then
15605     objformat=`/usr/bin/objformat`
15606   else
15607     case $host_os in
15608     freebsd[123]*) objformat=aout ;;
15609     *) objformat=elf ;;
15610     esac
15611   fi
15612   version_type=freebsd-$objformat
15613   case $version_type in
15614     freebsd-elf*)
15615       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15616       need_version=no
15617       need_lib_prefix=no
15618       ;;
15619     freebsd-*)
15620       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15621       need_version=yes
15622       ;;
15623   esac
15624   shlibpath_var=LD_LIBRARY_PATH
15625   case $host_os in
15626   freebsd2*)
15627     shlibpath_overrides_runpath=yes
15628     ;;
15629   freebsd3.[01]* | freebsdelf3.[01]*)
15630     shlibpath_overrides_runpath=yes
15631     hardcode_into_libs=yes
15632     ;;
15633   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15634   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15635     shlibpath_overrides_runpath=no
15636     hardcode_into_libs=yes
15637     ;;
15638   *) # from 4.6 on, and DragonFly
15639     shlibpath_overrides_runpath=yes
15640     hardcode_into_libs=yes
15641     ;;
15642   esac
15643   ;;
15644
15645 gnu*)
15646   version_type=linux
15647   need_lib_prefix=no
15648   need_version=no
15649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15650   soname_spec='${libname}${release}${shared_ext}$major'
15651   shlibpath_var=LD_LIBRARY_PATH
15652   hardcode_into_libs=yes
15653   ;;
15654
15655 haiku*)
15656   version_type=linux
15657   need_lib_prefix=no
15658   need_version=no
15659   dynamic_linker="$host_os runtime_loader"
15660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15661   soname_spec='${libname}${release}${shared_ext}$major'
15662   shlibpath_var=LIBRARY_PATH
15663   shlibpath_overrides_runpath=yes
15664   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15665   hardcode_into_libs=yes
15666   ;;
15667
15668 hpux9* | hpux10* | hpux11*)
15669   # Give a soname corresponding to the major version so that dld.sl refuses to
15670   # link against other versions.
15671   version_type=sunos
15672   need_lib_prefix=no
15673   need_version=no
15674   case $host_cpu in
15675   ia64*)
15676     shrext_cmds='.so'
15677     hardcode_into_libs=yes
15678     dynamic_linker="$host_os dld.so"
15679     shlibpath_var=LD_LIBRARY_PATH
15680     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15681     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15682     soname_spec='${libname}${release}${shared_ext}$major'
15683     if test "X$HPUX_IA64_MODE" = X32; then
15684       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15685     else
15686       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15687     fi
15688     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15689     ;;
15690   hppa*64*)
15691     shrext_cmds='.sl'
15692     hardcode_into_libs=yes
15693     dynamic_linker="$host_os dld.sl"
15694     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15695     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15696     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15697     soname_spec='${libname}${release}${shared_ext}$major'
15698     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15699     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15700     ;;
15701   *)
15702     shrext_cmds='.sl'
15703     dynamic_linker="$host_os dld.sl"
15704     shlibpath_var=SHLIB_PATH
15705     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15706     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15707     soname_spec='${libname}${release}${shared_ext}$major'
15708     ;;
15709   esac
15710   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15711   postinstall_cmds='chmod 555 $lib'
15712   # or fails outright, so override atomically:
15713   install_override_mode=555
15714   ;;
15715
15716 interix[3-9]*)
15717   version_type=linux
15718   need_lib_prefix=no
15719   need_version=no
15720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15721   soname_spec='${libname}${release}${shared_ext}$major'
15722   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15723   shlibpath_var=LD_LIBRARY_PATH
15724   shlibpath_overrides_runpath=no
15725   hardcode_into_libs=yes
15726   ;;
15727
15728 irix5* | irix6* | nonstopux*)
15729   case $host_os in
15730     nonstopux*) version_type=nonstopux ;;
15731     *)
15732         if test "$lt_cv_prog_gnu_ld" = yes; then
15733                 version_type=linux
15734         else
15735                 version_type=irix
15736         fi ;;
15737   esac
15738   need_lib_prefix=no
15739   need_version=no
15740   soname_spec='${libname}${release}${shared_ext}$major'
15741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15742   case $host_os in
15743   irix5* | nonstopux*)
15744     libsuff= shlibsuff=
15745     ;;
15746   *)
15747     case $LD in # libtool.m4 will add one of these switches to LD
15748     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15749       libsuff= shlibsuff= libmagic=32-bit;;
15750     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15751       libsuff=32 shlibsuff=N32 libmagic=N32;;
15752     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15753       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15754     *) libsuff= shlibsuff= libmagic=never-match;;
15755     esac
15756     ;;
15757   esac
15758   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15759   shlibpath_overrides_runpath=no
15760   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15761   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15762   hardcode_into_libs=yes
15763   ;;
15764
15765 # No shared lib support for Linux oldld, aout, or coff.
15766 linux*oldld* | linux*aout* | linux*coff*)
15767   dynamic_linker=no
15768   ;;
15769
15770 # This must be Linux ELF.
15771 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15772   version_type=linux
15773   need_lib_prefix=no
15774   need_version=no
15775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15776   soname_spec='${libname}${release}${shared_ext}$major'
15777   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15778   shlibpath_var=LD_LIBRARY_PATH
15779   shlibpath_overrides_runpath=no
15780
15781   # Some binutils ld are patched to set DT_RUNPATH
15782   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15783   $as_echo_n "(cached) " >&6
15784 else
15785   lt_cv_shlibpath_overrides_runpath=no
15786     save_LDFLAGS=$LDFLAGS
15787     save_libdir=$libdir
15788     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15789          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15790     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15791 /* end confdefs.h.  */
15792
15793 int
15794 main ()
15795 {
15796
15797   ;
15798   return 0;
15799 }
15800 _ACEOF
15801 if ac_fn_cxx_try_link "$LINENO"; then :
15802   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15803   lt_cv_shlibpath_overrides_runpath=yes
15804 fi
15805 fi
15806 rm -f core conftest.err conftest.$ac_objext \
15807     conftest$ac_exeext conftest.$ac_ext
15808     LDFLAGS=$save_LDFLAGS
15809     libdir=$save_libdir
15810
15811 fi
15812
15813   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15814
15815   # This implies no fast_install, which is unacceptable.
15816   # Some rework will be needed to allow for fast_install
15817   # before this can be enabled.
15818   hardcode_into_libs=yes
15819
15820   # Append ld.so.conf contents to the search path
15821   if test -f /etc/ld.so.conf; then
15822     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' ' '`
15823     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15824   fi
15825
15826   # We used to test for /lib/ld.so.1 and disable shared libraries on
15827   # powerpc, because MkLinux only supported shared libraries with the
15828   # GNU dynamic linker.  Since this was broken with cross compilers,
15829   # most powerpc-linux boxes support dynamic linking these days and
15830   # people can always --disable-shared, the test was removed, and we
15831   # assume the GNU/Linux dynamic linker is in use.
15832   dynamic_linker='GNU/Linux ld.so'
15833   ;;
15834
15835 netbsd*)
15836   version_type=sunos
15837   need_lib_prefix=no
15838   need_version=no
15839   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15840     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15841     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15842     dynamic_linker='NetBSD (a.out) ld.so'
15843   else
15844     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15845     soname_spec='${libname}${release}${shared_ext}$major'
15846     dynamic_linker='NetBSD ld.elf_so'
15847   fi
15848   shlibpath_var=LD_LIBRARY_PATH
15849   shlibpath_overrides_runpath=yes
15850   hardcode_into_libs=yes
15851   ;;
15852
15853 newsos6)
15854   version_type=linux
15855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15856   shlibpath_var=LD_LIBRARY_PATH
15857   shlibpath_overrides_runpath=yes
15858   ;;
15859
15860 *nto* | *qnx*)
15861   version_type=qnx
15862   need_lib_prefix=no
15863   need_version=no
15864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15865   soname_spec='${libname}${release}${shared_ext}$major'
15866   shlibpath_var=LD_LIBRARY_PATH
15867   shlibpath_overrides_runpath=no
15868   hardcode_into_libs=yes
15869   dynamic_linker='ldqnx.so'
15870   ;;
15871
15872 openbsd*)
15873   version_type=sunos
15874   sys_lib_dlsearch_path_spec="/usr/lib"
15875   need_lib_prefix=no
15876   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15877   case $host_os in
15878     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15879     *)                          need_version=no  ;;
15880   esac
15881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15882   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15883   shlibpath_var=LD_LIBRARY_PATH
15884   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15885     case $host_os in
15886       openbsd2.[89] | openbsd2.[89].*)
15887         shlibpath_overrides_runpath=no
15888         ;;
15889       *)
15890         shlibpath_overrides_runpath=yes
15891         ;;
15892       esac
15893   else
15894     shlibpath_overrides_runpath=yes
15895   fi
15896   ;;
15897
15898 os2*)
15899   libname_spec='$name'
15900   shrext_cmds=".dll"
15901   need_lib_prefix=no
15902   library_names_spec='$libname${shared_ext} $libname.a'
15903   dynamic_linker='OS/2 ld.exe'
15904   shlibpath_var=LIBPATH
15905   ;;
15906
15907 osf3* | osf4* | osf5*)
15908   version_type=osf
15909   need_lib_prefix=no
15910   need_version=no
15911   soname_spec='${libname}${release}${shared_ext}$major'
15912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15913   shlibpath_var=LD_LIBRARY_PATH
15914   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15915   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15916   ;;
15917
15918 rdos*)
15919   dynamic_linker=no
15920   ;;
15921
15922 solaris*)
15923   version_type=linux
15924   need_lib_prefix=no
15925   need_version=no
15926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15927   soname_spec='${libname}${release}${shared_ext}$major'
15928   shlibpath_var=LD_LIBRARY_PATH
15929   shlibpath_overrides_runpath=yes
15930   hardcode_into_libs=yes
15931   # ldd complains unless libraries are executable
15932   postinstall_cmds='chmod +x $lib'
15933   ;;
15934
15935 sunos4*)
15936   version_type=sunos
15937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15938   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15939   shlibpath_var=LD_LIBRARY_PATH
15940   shlibpath_overrides_runpath=yes
15941   if test "$with_gnu_ld" = yes; then
15942     need_lib_prefix=no
15943   fi
15944   need_version=yes
15945   ;;
15946
15947 sysv4 | sysv4.3*)
15948   version_type=linux
15949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15950   soname_spec='${libname}${release}${shared_ext}$major'
15951   shlibpath_var=LD_LIBRARY_PATH
15952   case $host_vendor in
15953     sni)
15954       shlibpath_overrides_runpath=no
15955       need_lib_prefix=no
15956       runpath_var=LD_RUN_PATH
15957       ;;
15958     siemens)
15959       need_lib_prefix=no
15960       ;;
15961     motorola)
15962       need_lib_prefix=no
15963       need_version=no
15964       shlibpath_overrides_runpath=no
15965       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15966       ;;
15967   esac
15968   ;;
15969
15970 sysv4*MP*)
15971   if test -d /usr/nec ;then
15972     version_type=linux
15973     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15974     soname_spec='$libname${shared_ext}.$major'
15975     shlibpath_var=LD_LIBRARY_PATH
15976   fi
15977   ;;
15978
15979 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15980   version_type=freebsd-elf
15981   need_lib_prefix=no
15982   need_version=no
15983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15984   soname_spec='${libname}${release}${shared_ext}$major'
15985   shlibpath_var=LD_LIBRARY_PATH
15986   shlibpath_overrides_runpath=yes
15987   hardcode_into_libs=yes
15988   if test "$with_gnu_ld" = yes; then
15989     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15990   else
15991     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15992     case $host_os in
15993       sco3.2v5*)
15994         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15995         ;;
15996     esac
15997   fi
15998   sys_lib_dlsearch_path_spec='/usr/lib'
15999   ;;
16000
16001 tpf*)
16002   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16003   version_type=linux
16004   need_lib_prefix=no
16005   need_version=no
16006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16007   shlibpath_var=LD_LIBRARY_PATH
16008   shlibpath_overrides_runpath=no
16009   hardcode_into_libs=yes
16010   ;;
16011
16012 uts4*)
16013   version_type=linux
16014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16015   soname_spec='${libname}${release}${shared_ext}$major'
16016   shlibpath_var=LD_LIBRARY_PATH
16017   ;;
16018
16019 *)
16020   dynamic_linker=no
16021   ;;
16022 esac
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16024 $as_echo "$dynamic_linker" >&6; }
16025 test "$dynamic_linker" = no && can_build_shared=no
16026
16027 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16028 if test "$GCC" = yes; then
16029   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16030 fi
16031
16032 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16033   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16034 fi
16035 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16036   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16037 fi
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16077 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16078 hardcode_action_CXX=
16079 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16080    test -n "$runpath_var_CXX" ||
16081    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16082
16083   # We can hardcode non-existent directories.
16084   if test "$hardcode_direct_CXX" != no &&
16085      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16086      # have to relink, otherwise we might link with an installed library
16087      # when we should be linking with a yet-to-be-installed one
16088      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16089      test "$hardcode_minus_L_CXX" != no; then
16090     # Linking always hardcodes the temporary library directory.
16091     hardcode_action_CXX=relink
16092   else
16093     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16094     hardcode_action_CXX=immediate
16095   fi
16096 else
16097   # We cannot hardcode anything, or else we can only hardcode existing
16098   # directories.
16099   hardcode_action_CXX=unsupported
16100 fi
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16102 $as_echo "$hardcode_action_CXX" >&6; }
16103
16104 if test "$hardcode_action_CXX" = relink ||
16105    test "$inherit_rpath_CXX" = yes; then
16106   # Fast installation is not supported
16107   enable_fast_install=no
16108 elif test "$shlibpath_overrides_runpath" = yes ||
16109      test "$enable_shared" = no; then
16110   # Fast installation is not necessary
16111   enable_fast_install=needless
16112 fi
16113
16114
16115
16116
16117
16118
16119
16120   fi # test -n "$compiler"
16121
16122   CC=$lt_save_CC
16123   CFLAGS=$lt_save_CFLAGS
16124   LDCXX=$LD
16125   LD=$lt_save_LD
16126   GCC=$lt_save_GCC
16127   with_gnu_ld=$lt_save_with_gnu_ld
16128   lt_cv_path_LDCXX=$lt_cv_path_LD
16129   lt_cv_path_LD=$lt_save_path_LD
16130   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16131   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16132 fi # test "$_lt_caught_CXX_error" != yes
16133
16134 ac_ext=c
16135 ac_cpp='$CPP $CPPFLAGS'
16136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152         ac_config_commands="$ac_config_commands libtool"
16153
16154
16155
16156
16157 # Only expand once:
16158
16159
16160
16161
16162 # Check whether --with-target-subdir was given.
16163 if test "${with_target_subdir+set}" = set; then :
16164   withval=$with_target_subdir;
16165 fi
16166
16167
16168 # Check whether --with-cross-host was given.
16169 if test "${with_cross_host+set}" = set; then :
16170   withval=$with_cross_host;
16171 fi
16172
16173
16174 # automake wants to see AC_EXEEXT.  But we don't need it.  And having
16175 # it is actually a problem, because the compiler we're passed can't
16176 # necessarily do a full link.  So we fool automake here.
16177 if false; then
16178   # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
16179   # to nothing, so nothing would remain between `then' and `fi' if it
16180   # were not for the `:' below.
16181   :
16182
16183 fi
16184
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Solaris gcc optimization fix is necessary" >&5
16186 $as_echo_n "checking whether Solaris gcc optimization fix is necessary... " >&6; }
16187 case "$host" in
16188  *aix*)
16189     if test "$GCC" = yes; then
16190        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16191 $as_echo "yes" >&6; }
16192        new_CFLAGS=
16193        for i in $CFLAGS; do
16194           case "$i" in
16195            -O*)
16196               ;;
16197            *)
16198               new_CFLAGS="$new_CFLAGS $i"
16199               ;;
16200           esac
16201        done
16202        CFLAGS="$new_CFLAGS"
16203     else
16204        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16205 $as_echo "no" >&6; }
16206     fi
16207     ;;
16208  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16209 $as_echo "no" >&6; } ;;
16210 esac
16211
16212
16213 $as_echo "#define NO_EXECUTE_PERMISSION 1" >>confdefs.h
16214
16215
16216 $as_echo "#define ALL_INTERIOR_POINTERS 1" >>confdefs.h
16217
16218
16219
16220 # Check whether --enable-gcj-support was given.
16221 if test "${enable_gcj_support+set}" = set; then :
16222   enableval=$enable_gcj_support;
16223 fi
16224
16225  if test x"$enable_gcj_support" != xno; then
16226   ENABLE_GCJ_SUPPORT_TRUE=
16227   ENABLE_GCJ_SUPPORT_FALSE='#'
16228 else
16229   ENABLE_GCJ_SUPPORT_TRUE='#'
16230   ENABLE_GCJ_SUPPORT_FALSE=
16231 fi
16232
16233 if test x"$enable_gcj_support" != xno; then
16234
16235 $as_echo "#define GC_GCJ_SUPPORT 1" >>confdefs.h
16236
16237 fi
16238
16239
16240
16241
16242
16243 UNWINDLIBS=
16244 # Check whether --enable-gc-debug was given.
16245 if test "${enable_gc_debug+set}" = set; then :
16246   enableval=$enable_gc_debug;  if test "$enable_gc_debug" = "yes"; then
16247     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Should define GC_DEBUG and use debug alloc. in clients.\"" >&5
16248 $as_echo "$as_me: WARNING: \"Should define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
16249
16250 $as_echo "#define KEEP_BACK_PTRS 1" >>confdefs.h
16251
16252     keep_back_ptrs=true
16253
16254 $as_echo "#define DBG_HDRS_ALL 1" >>confdefs.h
16255
16256     case $host in
16257       ia64-*-linux* )
16258         $as_echo "#define MAKE_BACK_GRAPH 1" >>confdefs.h
16259
16260         $as_echo "#define SAVE_CALL_COUNT 8" >>confdefs.h
16261
16262         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5
16263 $as_echo_n "checking for backtrace in -lunwind... " >&6; }
16264 if ${ac_cv_lib_unwind_backtrace+:} false; then :
16265   $as_echo_n "(cached) " >&6
16266 else
16267   ac_check_lib_save_LIBS=$LIBS
16268 LIBS="-lunwind  $LIBS"
16269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16270 /* end confdefs.h.  */
16271
16272 /* Override any GCC internal prototype to avoid an error.
16273    Use char because int might match the return type of a GCC
16274    builtin and then its argument prototype would still apply.  */
16275 #ifdef __cplusplus
16276 extern "C"
16277 #endif
16278 char backtrace ();
16279 int
16280 main ()
16281 {
16282 return backtrace ();
16283   ;
16284   return 0;
16285 }
16286 _ACEOF
16287 if ac_fn_c_try_link "$LINENO"; then :
16288   ac_cv_lib_unwind_backtrace=yes
16289 else
16290   ac_cv_lib_unwind_backtrace=no
16291 fi
16292 rm -f core conftest.err conftest.$ac_objext \
16293     conftest$ac_exeext conftest.$ac_ext
16294 LIBS=$ac_check_lib_save_LIBS
16295 fi
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5
16297 $as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
16298 if test "x$ac_cv_lib_unwind_backtrace" = xyes; then :
16299
16300           $as_echo "#define GC_HAVE_BUILTIN_BACKTRACE 1" >>confdefs.h
16301
16302           UNWINDLIBS=-lunwind
16303           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Client code may need to link against libunwind.\"" >&5
16304 $as_echo "$as_me: WARNING: \"Client code may need to link against libunwind.\"" >&2;}
16305
16306 fi
16307
16308       ;;
16309       x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
16310         $as_echo "#define MAKE_BACK_GRAPH 1" >>confdefs.h
16311
16312         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
16313 $as_echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
16314         $as_echo "#define SAVE_CALL_COUNT 8" >>confdefs.h
16315
16316       ;;
16317       i345686-*-dgux*)
16318         $as_echo "#define MAKE_BACK_GRAPH 1" >>confdefs.h
16319
16320       ;;
16321     esac
16322   fi
16323 fi
16324
16325  if test x"$keep_back_ptrs" = xtrue; then
16326   KEEP_BACK_PTRS_TRUE=
16327   KEEP_BACK_PTRS_FALSE='#'
16328 else
16329   KEEP_BACK_PTRS_TRUE='#'
16330   KEEP_BACK_PTRS_FALSE=
16331 fi
16332
16333
16334 # Check for AViiON Machines running DGUX
16335 ac_is_dgux=no
16336 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
16337 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
16338   ac_is_dgux=yes;
16339 fi
16340
16341
16342
16343     ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
16344 if test $ac_is_dgux = yes; then
16345     dgux_spec_opts="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
16346     CFLAGS="$dgux_spec_opts $CFLAGS"
16347     CXXFLAGS="$dgux_spec_opts $CXXFLAGS"
16348     if test "$enable_gc_debug" = "yes"; then
16349       CFLAGS="-g -mstandard $CFLAGS"
16350       CXXFLAGS="-g -mstandard $CXXFLAGS"
16351     fi
16352
16353
16354 fi
16355
16356 # Check whether --enable-java-finalization was given.
16357 if test "${enable_java_finalization+set}" = set; then :
16358   enableval=$enable_java_finalization;
16359 fi
16360
16361 if test x"$enable_java_finalization" != xno; then
16362
16363 $as_echo "#define JAVA_FINALIZATION 1" >>confdefs.h
16364
16365 fi
16366
16367 # Check whether --enable-atomic-uncollectable was given.
16368 if test "${enable_atomic_uncollectable+set}" = set; then :
16369   enableval=$enable_atomic_uncollectable;
16370 fi
16371
16372 if test x"$enable_atomic_uncollectible" != x"no"; then
16373
16374 $as_echo "#define ATOMIC_UNCOLLECTABLE 1" >>confdefs.h
16375
16376 fi
16377
16378 # Check whether --enable-redirect-malloc was given.
16379 if test "${enable_redirect_malloc+set}" = set; then :
16380   enableval=$enable_redirect_malloc;
16381 fi
16382
16383
16384 if test "${enable_redirect_malloc}" = yes; then
16385     if test "${enable_gc_debug}" = yes; then
16386
16387 $as_echo "#define REDIRECT_MALLOC GC_debug_malloc_replacement" >>confdefs.h
16388
16389
16390 $as_echo "#define REDIRECT_REALLOC GC_debug_realloc_replacement" >>confdefs.h
16391
16392
16393 $as_echo "#define REDIRECT_FREE GC_debug_free" >>confdefs.h
16394
16395     else
16396         $as_echo "#define REDIRECT_MALLOC GC_malloc" >>confdefs.h
16397
16398     fi
16399
16400 $as_echo "#define GC_USE_DLOPEN_WRAP 1" >>confdefs.h
16401
16402 fi
16403
16404 # Check whether --enable-large-config was given.
16405 if test "${enable_large_config+set}" = set; then :
16406   enableval=$enable_large_config;
16407 fi
16408
16409
16410 if test "${enable_large_config}" = yes; then
16411
16412 $as_echo "#define LARGE_CONFIG 1" >>confdefs.h
16413
16414 fi
16415
16416 # Check whether --enable-handle-fork was given.
16417 if test "${enable_handle_fork+set}" = set; then :
16418   enableval=$enable_handle_fork;
16419 fi
16420
16421
16422 if test "${enable_handle_fork}" = yes; then
16423
16424 $as_echo "#define HANDLE_FORK 1" >>confdefs.h
16425
16426 elif test "${enable_handle_fork}" = no; then
16427
16428 $as_echo "#define NO_HANDLE_FORK 1" >>confdefs.h
16429
16430 fi
16431
16432 if test -n "${with_cross_host}"; then
16433
16434 $as_echo "#define NO_CLOCK 1" >>confdefs.h
16435
16436
16437 $as_echo "#define SMALL_CONFIG 1" >>confdefs.h
16438
16439 fi
16440
16441 if test "$enable_gc_debug" == "no"; then
16442
16443 $as_echo "#define NO_DEBUGGING 1" >>confdefs.h
16444
16445 fi
16446
16447
16448
16449 # Check whether --enable-gc-assertions was given.
16450 if test "${enable_gc_assertions+set}" = set; then :
16451   enableval=$enable_gc_assertions;
16452 fi
16453
16454 if test "${enable_gc_assertions}" = yes; then
16455
16456 $as_echo "#define GC_ASSERTIONS 1" >>confdefs.h
16457
16458 fi
16459
16460 # Check whether --enable-munmap was given.
16461 if test "${enable_munmap+set}" = set; then :
16462   enableval=$enable_munmap; MUNMAP_THRESHOLD=$enableval;
16463    case "$MMAP" in
16464       no)
16465         as_fn_error $? "--enable-munmap requires --enable-mmap" "$LINENO" 5
16466         ;;
16467     esac
16468
16469 fi
16470
16471 if test "${enable_munmap}" != ""; then
16472
16473 $as_echo "#define USE_MMAP 1" >>confdefs.h
16474
16475
16476 $as_echo "#define USE_MUNMAP 1" >>confdefs.h
16477
16478     if test "${MUNMAP_THRESHOLD}" = "yes"; then
16479       MUNMAP_THRESHOLD=6
16480     fi
16481
16482 cat >>confdefs.h <<_ACEOF
16483 #define MUNMAP_THRESHOLD ${MUNMAP_THRESHOLD}
16484 _ACEOF
16485
16486 fi
16487
16488  if test -z "$with_cross_host"; then
16489   USE_LIBDIR_TRUE=
16490   USE_LIBDIR_FALSE='#'
16491 else
16492   USE_LIBDIR_TRUE='#'
16493   USE_LIBDIR_FALSE=
16494 fi
16495
16496
16497
16498 # Atomic Ops
16499 # ----------
16500
16501 # Do we want to use an external libatomic_ops?  By default use it if it's
16502 # found.
16503
16504 # Check whether --with-libatomic-ops was given.
16505 if test "${with_libatomic_ops+set}" = set; then :
16506   withval=$with_libatomic_ops;
16507 else
16508   with_libatomic_ops=check
16509 fi
16510
16511
16512 # Check for an external libatomic_ops if the answer was yes or check.  If not
16513 # found, fail on yes, and convert check to no.
16514
16515
16516 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16517         if test -n "$ac_tool_prefix"; then
16518   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16519 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16521 $as_echo_n "checking for $ac_word... " >&6; }
16522 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16523   $as_echo_n "(cached) " >&6
16524 else
16525   case $PKG_CONFIG in
16526   [\\/]* | ?:[\\/]*)
16527   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16528   ;;
16529   *)
16530   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16531 for as_dir in $PATH
16532 do
16533   IFS=$as_save_IFS
16534   test -z "$as_dir" && as_dir=.
16535     for ac_exec_ext in '' $ac_executable_extensions; do
16536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16537     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16539     break 2
16540   fi
16541 done
16542   done
16543 IFS=$as_save_IFS
16544
16545   ;;
16546 esac
16547 fi
16548 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16549 if test -n "$PKG_CONFIG"; then
16550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16551 $as_echo "$PKG_CONFIG" >&6; }
16552 else
16553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16554 $as_echo "no" >&6; }
16555 fi
16556
16557
16558 fi
16559 if test -z "$ac_cv_path_PKG_CONFIG"; then
16560   ac_pt_PKG_CONFIG=$PKG_CONFIG
16561   # Extract the first word of "pkg-config", so it can be a program name with args.
16562 set dummy pkg-config; ac_word=$2
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16564 $as_echo_n "checking for $ac_word... " >&6; }
16565 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16566   $as_echo_n "(cached) " >&6
16567 else
16568   case $ac_pt_PKG_CONFIG in
16569   [\\/]* | ?:[\\/]*)
16570   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16571   ;;
16572   *)
16573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16574 for as_dir in $PATH
16575 do
16576   IFS=$as_save_IFS
16577   test -z "$as_dir" && as_dir=.
16578     for ac_exec_ext in '' $ac_executable_extensions; do
16579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16580     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16582     break 2
16583   fi
16584 done
16585   done
16586 IFS=$as_save_IFS
16587
16588   ;;
16589 esac
16590 fi
16591 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16592 if test -n "$ac_pt_PKG_CONFIG"; then
16593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16594 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16595 else
16596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16597 $as_echo "no" >&6; }
16598 fi
16599
16600   if test "x$ac_pt_PKG_CONFIG" = x; then
16601     PKG_CONFIG=""
16602   else
16603     case $cross_compiling:$ac_tool_warned in
16604 yes:)
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16607 ac_tool_warned=yes ;;
16608 esac
16609     PKG_CONFIG=$ac_pt_PKG_CONFIG
16610   fi
16611 else
16612   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16613 fi
16614
16615 fi
16616 if test -n "$PKG_CONFIG"; then
16617         _pkg_min_version=0.9.0
16618         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16619 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16620         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16621                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16622 $as_echo "yes" >&6; }
16623         else
16624                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16625 $as_echo "no" >&6; }
16626                 PKG_CONFIG=""
16627         fi
16628
16629 fi
16630 if test x"$with_libatomic_ops" != xno; then :
16631
16632 pkg_failed=no
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATOMIC_OPS" >&5
16634 $as_echo_n "checking for ATOMIC_OPS... " >&6; }
16635
16636 if test -n "$PKG_CONFIG"; then
16637     if test -n "$ATOMIC_OPS_CFLAGS"; then
16638         pkg_cv_ATOMIC_OPS_CFLAGS="$ATOMIC_OPS_CFLAGS"
16639     else
16640         if test -n "$PKG_CONFIG" && \
16641     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"atomic_ops\""; } >&5
16642   ($PKG_CONFIG --exists --print-errors "atomic_ops") 2>&5
16643   ac_status=$?
16644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16645   test $ac_status = 0; }; then
16646   pkg_cv_ATOMIC_OPS_CFLAGS=`$PKG_CONFIG --cflags "atomic_ops" 2>/dev/null`
16647 else
16648   pkg_failed=yes
16649 fi
16650     fi
16651 else
16652         pkg_failed=untried
16653 fi
16654 if test -n "$PKG_CONFIG"; then
16655     if test -n "$ATOMIC_OPS_LIBS"; then
16656         pkg_cv_ATOMIC_OPS_LIBS="$ATOMIC_OPS_LIBS"
16657     else
16658         if test -n "$PKG_CONFIG" && \
16659     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"atomic_ops\""; } >&5
16660   ($PKG_CONFIG --exists --print-errors "atomic_ops") 2>&5
16661   ac_status=$?
16662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16663   test $ac_status = 0; }; then
16664   pkg_cv_ATOMIC_OPS_LIBS=`$PKG_CONFIG --libs "atomic_ops" 2>/dev/null`
16665 else
16666   pkg_failed=yes
16667 fi
16668     fi
16669 else
16670         pkg_failed=untried
16671 fi
16672
16673
16674
16675 if test $pkg_failed = yes; then
16676
16677 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16678         _pkg_short_errors_supported=yes
16679 else
16680         _pkg_short_errors_supported=no
16681 fi
16682         if test $_pkg_short_errors_supported = yes; then
16683                 ATOMIC_OPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "atomic_ops"`
16684         else
16685                 ATOMIC_OPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "atomic_ops"`
16686         fi
16687         # Put the nasty error message in config.log where it belongs
16688         echo "$ATOMIC_OPS_PKG_ERRORS" >&5
16689
16690         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16691 $as_echo "no" >&6; }
16692                  if test x"$with_libatomic_ops" != xcheck; then :
16693   as_fn_error $? "A external libatomic_ops was not found." "$LINENO" 5
16694 fi
16695         with_libatomic_ops=no
16696 elif test $pkg_failed = untried; then
16697          if test x"$with_libatomic_ops" != xcheck; then :
16698   as_fn_error $? "A external libatomic_ops was not found." "$LINENO" 5
16699 fi
16700         with_libatomic_ops=no
16701 else
16702         ATOMIC_OPS_CFLAGS=$pkg_cv_ATOMIC_OPS_CFLAGS
16703         ATOMIC_OPS_LIBS=$pkg_cv_ATOMIC_OPS_LIBS
16704         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16705 $as_echo "yes" >&6; }
16706         :
16707 fi
16708 fi
16709
16710 # If we have neither an external or an internal version, offer a useful hint
16711 # and exit.
16712 if test x"$with_libatomic_ops" = xno -a ! -e "$srcdir/libatomic_ops"; then :
16713    as_fn_error $? "libatomic_ops is required.  You can either install it on your system, or fetch and unpack a recent version into the source directory and link or rename it to libatomic_ops." "$LINENO" 5
16714 fi
16715
16716 # Finally, emit the definitions for bundled or external AO.
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which libatomic_ops to use" >&5
16718 $as_echo_n "checking which libatomic_ops to use... " >&6; }
16719
16720
16721 if test x"$with_libatomic_ops" != xno; then :
16722    { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
16723 $as_echo "external" >&6; }
16724 else
16725    { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
16726 $as_echo "internal" >&6; }
16727     ATOMIC_OPS_CFLAGS='-I$(top_builddir)/libatomic_ops/src -I$(top_srcdir)/libatomic_ops/src'
16728     ATOMIC_OPS_LIBS=""
16729
16730     subdirs="$subdirs libatomic_ops"
16731
16732
16733 fi
16734  if test x$with_libatomic_ops = xno -a x"$THREADS" != xnone; then
16735   USE_INTERNAL_LIBATOMIC_OPS_TRUE=
16736   USE_INTERNAL_LIBATOMIC_OPS_FALSE='#'
16737 else
16738   USE_INTERNAL_LIBATOMIC_OPS_TRUE='#'
16739   USE_INTERNAL_LIBATOMIC_OPS_FALSE=
16740 fi
16741
16742  if test x$with_libatomic_ops = xno -a x$need_atomic_ops_asm = xtrue; then
16743   NEED_ATOMIC_OPS_ASM_TRUE=
16744   NEED_ATOMIC_OPS_ASM_FALSE='#'
16745 else
16746   NEED_ATOMIC_OPS_ASM_TRUE='#'
16747   NEED_ATOMIC_OPS_ASM_FALSE=
16748 fi
16749
16750
16751
16752 ac_config_files="$ac_config_files Makefile bdw-gc.pc"
16753
16754
16755 ac_config_commands="$ac_config_commands default"
16756
16757
16758 cat >confcache <<\_ACEOF
16759 # This file is a shell script that caches the results of configure
16760 # tests run on this system so they can be shared between configure
16761 # scripts and configure runs, see configure's option --config-cache.
16762 # It is not useful on other systems.  If it contains results you don't
16763 # want to keep, you may remove or edit it.
16764 #
16765 # config.status only pays attention to the cache file if you give it
16766 # the --recheck option to rerun configure.
16767 #
16768 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16769 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16770 # following values.
16771
16772 _ACEOF
16773
16774 # The following way of writing the cache mishandles newlines in values,
16775 # but we know of no workaround that is simple, portable, and efficient.
16776 # So, we kill variables containing newlines.
16777 # Ultrix sh set writes to stderr and can't be redirected directly,
16778 # and sets the high bit in the cache file unless we assign to the vars.
16779 (
16780   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16781     eval ac_val=\$$ac_var
16782     case $ac_val in #(
16783     *${as_nl}*)
16784       case $ac_var in #(
16785       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16786 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16787       esac
16788       case $ac_var in #(
16789       _ | IFS | as_nl) ;; #(
16790       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16791       *) { eval $ac_var=; unset $ac_var;} ;;
16792       esac ;;
16793     esac
16794   done
16795
16796   (set) 2>&1 |
16797     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16798     *${as_nl}ac_space=\ *)
16799       # `set' does not quote correctly, so add quotes: double-quote
16800       # substitution turns \\\\ into \\, and sed turns \\ into \.
16801       sed -n \
16802         "s/'/'\\\\''/g;
16803           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16804       ;; #(
16805     *)
16806       # `set' quotes correctly as required by POSIX, so do not add quotes.
16807       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16808       ;;
16809     esac |
16810     sort
16811 ) |
16812   sed '
16813      /^ac_cv_env_/b end
16814      t clear
16815      :clear
16816      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16817      t end
16818      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16819      :end' >>confcache
16820 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16821   if test -w "$cache_file"; then
16822     if test "x$cache_file" != "x/dev/null"; then
16823       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16824 $as_echo "$as_me: updating cache $cache_file" >&6;}
16825       if test ! -f "$cache_file" || test -h "$cache_file"; then
16826         cat confcache >"$cache_file"
16827       else
16828         case $cache_file in #(
16829         */* | ?:*)
16830           mv -f confcache "$cache_file"$$ &&
16831           mv -f "$cache_file"$$ "$cache_file" ;; #(
16832         *)
16833           mv -f confcache "$cache_file" ;;
16834         esac
16835       fi
16836     fi
16837   else
16838     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16839 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16840   fi
16841 fi
16842 rm -f confcache
16843
16844 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16845 # Let make expand exec_prefix.
16846 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16847
16848 DEFS=-DHAVE_CONFIG_H
16849
16850 ac_libobjs=
16851 ac_ltlibobjs=
16852 U=
16853 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16854   # 1. Remove the extension, and $U if already installed.
16855   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16856   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16857   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16858   #    will be set to the directory where LIBOBJS objects are built.
16859   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16860   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16861 done
16862 LIBOBJS=$ac_libobjs
16863
16864 LTLIBOBJS=$ac_ltlibobjs
16865
16866
16867  if test -n "$EXEEXT"; then
16868   am__EXEEXT_TRUE=
16869   am__EXEEXT_FALSE='#'
16870 else
16871   am__EXEEXT_TRUE='#'
16872   am__EXEEXT_FALSE=
16873 fi
16874
16875 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16876   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16877 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16878 fi
16879 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16880   as_fn_error $? "conditional \"AMDEP\" was never defined.
16881 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16882 fi
16883 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16884   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16885 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16886 fi
16887 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16888   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16889 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16890 fi
16891 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16892   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
16893 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16894 fi
16895 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
16896   as_fn_error $? "conditional \"THREADS\" was never defined.
16897 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16898 fi
16899 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
16900   as_fn_error $? "conditional \"PTHREADS\" was never defined.
16901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16902 fi
16903 if test -z "${DARWIN_THREADS_TRUE}" && test -z "${DARWIN_THREADS_FALSE}"; then
16904   as_fn_error $? "conditional \"DARWIN_THREADS\" was never defined.
16905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16906 fi
16907 if test -z "${WIN32_THREADS_TRUE}" && test -z "${WIN32_THREADS_FALSE}"; then
16908   as_fn_error $? "conditional \"WIN32_THREADS\" was never defined.
16909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16910 fi
16911 if test -z "${OPENBSD_THREADS_TRUE}" && test -z "${OPENBSD_THREADS_FALSE}"; then
16912   as_fn_error $? "conditional \"OPENBSD_THREADS\" was never defined.
16913 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16914 fi
16915 if test -z "${COMPILER_XLC_TRUE}" && test -z "${COMPILER_XLC_FALSE}"; then
16916   as_fn_error $? "conditional \"COMPILER_XLC\" was never defined.
16917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16918 fi
16919 if test -z "${AVOID_CPP_LIB_TRUE}" && test -z "${AVOID_CPP_LIB_FALSE}"; then
16920   as_fn_error $? "conditional \"AVOID_CPP_LIB\" was never defined.
16921 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16922 fi
16923 if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
16924   as_fn_error $? "conditional \"CPLUSPLUS\" was never defined.
16925 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16926 fi
16927 if test -z "${ENABLE_GCJ_SUPPORT_TRUE}" && test -z "${ENABLE_GCJ_SUPPORT_FALSE}"; then
16928   as_fn_error $? "conditional \"ENABLE_GCJ_SUPPORT\" was never defined.
16929 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16930 fi
16931 if test -z "${KEEP_BACK_PTRS_TRUE}" && test -z "${KEEP_BACK_PTRS_FALSE}"; then
16932   as_fn_error $? "conditional \"KEEP_BACK_PTRS\" was never defined.
16933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16934 fi
16935 if test -z "${USE_LIBDIR_TRUE}" && test -z "${USE_LIBDIR_FALSE}"; then
16936   as_fn_error $? "conditional \"USE_LIBDIR\" was never defined.
16937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16938 fi
16939 if test -z "${USE_INTERNAL_LIBATOMIC_OPS_TRUE}" && test -z "${USE_INTERNAL_LIBATOMIC_OPS_FALSE}"; then
16940   as_fn_error $? "conditional \"USE_INTERNAL_LIBATOMIC_OPS\" was never defined.
16941 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16942 fi
16943 if test -z "${NEED_ATOMIC_OPS_ASM_TRUE}" && test -z "${NEED_ATOMIC_OPS_ASM_FALSE}"; then
16944   as_fn_error $? "conditional \"NEED_ATOMIC_OPS_ASM\" was never defined.
16945 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16946 fi
16947
16948 : "${CONFIG_STATUS=./config.status}"
16949 ac_write_fail=0
16950 ac_clean_files_save=$ac_clean_files
16951 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16953 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16954 as_write_fail=0
16955 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16956 #! $SHELL
16957 # Generated by $as_me.
16958 # Run this file to recreate the current configuration.
16959 # Compiler output produced by configure, useful for debugging
16960 # configure, is in config.log if it exists.
16961
16962 debug=false
16963 ac_cs_recheck=false
16964 ac_cs_silent=false
16965
16966 SHELL=\${CONFIG_SHELL-$SHELL}
16967 export SHELL
16968 _ASEOF
16969 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16970 ## -------------------- ##
16971 ## M4sh Initialization. ##
16972 ## -------------------- ##
16973
16974 # Be more Bourne compatible
16975 DUALCASE=1; export DUALCASE # for MKS sh
16976 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16977   emulate sh
16978   NULLCMD=:
16979   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16980   # is contrary to our usage.  Disable this feature.
16981   alias -g '${1+"$@"}'='"$@"'
16982   setopt NO_GLOB_SUBST
16983 else
16984   case `(set -o) 2>/dev/null` in #(
16985   *posix*) :
16986     set -o posix ;; #(
16987   *) :
16988      ;;
16989 esac
16990 fi
16991
16992
16993 as_nl='
16994 '
16995 export as_nl
16996 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16997 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16998 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16999 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17000 # Prefer a ksh shell builtin over an external printf program on Solaris,
17001 # but without wasting forks for bash or zsh.
17002 if test -z "$BASH_VERSION$ZSH_VERSION" \
17003     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17004   as_echo='print -r --'
17005   as_echo_n='print -rn --'
17006 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17007   as_echo='printf %s\n'
17008   as_echo_n='printf %s'
17009 else
17010   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17011     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17012     as_echo_n='/usr/ucb/echo -n'
17013   else
17014     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17015     as_echo_n_body='eval
17016       arg=$1;
17017       case $arg in #(
17018       *"$as_nl"*)
17019         expr "X$arg" : "X\\(.*\\)$as_nl";
17020         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17021       esac;
17022       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17023     '
17024     export as_echo_n_body
17025     as_echo_n='sh -c $as_echo_n_body as_echo'
17026   fi
17027   export as_echo_body
17028   as_echo='sh -c $as_echo_body as_echo'
17029 fi
17030
17031 # The user is always right.
17032 if test "${PATH_SEPARATOR+set}" != set; then
17033   PATH_SEPARATOR=:
17034   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17035     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17036       PATH_SEPARATOR=';'
17037   }
17038 fi
17039
17040
17041 # IFS
17042 # We need space, tab and new line, in precisely that order.  Quoting is
17043 # there to prevent editors from complaining about space-tab.
17044 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17045 # splitting by setting IFS to empty value.)
17046 IFS=" ""        $as_nl"
17047
17048 # Find who we are.  Look in the path if we contain no directory separator.
17049 as_myself=
17050 case $0 in #((
17051   *[\\/]* ) as_myself=$0 ;;
17052   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17053 for as_dir in $PATH
17054 do
17055   IFS=$as_save_IFS
17056   test -z "$as_dir" && as_dir=.
17057     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17058   done
17059 IFS=$as_save_IFS
17060
17061      ;;
17062 esac
17063 # We did not find ourselves, most probably we were run as `sh COMMAND'
17064 # in which case we are not to be found in the path.
17065 if test "x$as_myself" = x; then
17066   as_myself=$0
17067 fi
17068 if test ! -f "$as_myself"; then
17069   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17070   exit 1
17071 fi
17072
17073 # Unset variables that we do not need and which cause bugs (e.g. in
17074 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17075 # suppresses any "Segmentation fault" message there.  '((' could
17076 # trigger a bug in pdksh 5.2.14.
17077 for as_var in BASH_ENV ENV MAIL MAILPATH
17078 do eval test x\${$as_var+set} = xset \
17079   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17080 done
17081 PS1='$ '
17082 PS2='> '
17083 PS4='+ '
17084
17085 # NLS nuisances.
17086 LC_ALL=C
17087 export LC_ALL
17088 LANGUAGE=C
17089 export LANGUAGE
17090
17091 # CDPATH.
17092 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17093
17094
17095 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17096 # ----------------------------------------
17097 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17098 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17099 # script with STATUS, using 1 if that was 0.
17100 as_fn_error ()
17101 {
17102   as_status=$1; test $as_status -eq 0 && as_status=1
17103   if test "$4"; then
17104     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17105     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17106   fi
17107   $as_echo "$as_me: error: $2" >&2
17108   as_fn_exit $as_status
17109 } # as_fn_error
17110
17111
17112 # as_fn_set_status STATUS
17113 # -----------------------
17114 # Set $? to STATUS, without forking.
17115 as_fn_set_status ()
17116 {
17117   return $1
17118 } # as_fn_set_status
17119
17120 # as_fn_exit STATUS
17121 # -----------------
17122 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17123 as_fn_exit ()
17124 {
17125   set +e
17126   as_fn_set_status $1
17127   exit $1
17128 } # as_fn_exit
17129
17130 # as_fn_unset VAR
17131 # ---------------
17132 # Portably unset VAR.
17133 as_fn_unset ()
17134 {
17135   { eval $1=; unset $1;}
17136 }
17137 as_unset=as_fn_unset
17138 # as_fn_append VAR VALUE
17139 # ----------------------
17140 # Append the text in VALUE to the end of the definition contained in VAR. Take
17141 # advantage of any shell optimizations that allow amortized linear growth over
17142 # repeated appends, instead of the typical quadratic growth present in naive
17143 # implementations.
17144 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17145   eval 'as_fn_append ()
17146   {
17147     eval $1+=\$2
17148   }'
17149 else
17150   as_fn_append ()
17151   {
17152     eval $1=\$$1\$2
17153   }
17154 fi # as_fn_append
17155
17156 # as_fn_arith ARG...
17157 # ------------------
17158 # Perform arithmetic evaluation on the ARGs, and store the result in the
17159 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17160 # must be portable across $(()) and expr.
17161 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17162   eval 'as_fn_arith ()
17163   {
17164     as_val=$(( $* ))
17165   }'
17166 else
17167   as_fn_arith ()
17168   {
17169     as_val=`expr "$@" || test $? -eq 1`
17170   }
17171 fi # as_fn_arith
17172
17173
17174 if expr a : '\(a\)' >/dev/null 2>&1 &&
17175    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17176   as_expr=expr
17177 else
17178   as_expr=false
17179 fi
17180
17181 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17182   as_basename=basename
17183 else
17184   as_basename=false
17185 fi
17186
17187 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17188   as_dirname=dirname
17189 else
17190   as_dirname=false
17191 fi
17192
17193 as_me=`$as_basename -- "$0" ||
17194 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17195          X"$0" : 'X\(//\)$' \| \
17196          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17197 $as_echo X/"$0" |
17198     sed '/^.*\/\([^/][^/]*\)\/*$/{
17199             s//\1/
17200             q
17201           }
17202           /^X\/\(\/\/\)$/{
17203             s//\1/
17204             q
17205           }
17206           /^X\/\(\/\).*/{
17207             s//\1/
17208             q
17209           }
17210           s/.*/./; q'`
17211
17212 # Avoid depending upon Character Ranges.
17213 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17214 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17215 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17216 as_cr_digits='0123456789'
17217 as_cr_alnum=$as_cr_Letters$as_cr_digits
17218
17219 ECHO_C= ECHO_N= ECHO_T=
17220 case `echo -n x` in #(((((
17221 -n*)
17222   case `echo 'xy\c'` in
17223   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17224   xy)  ECHO_C='\c';;
17225   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17226        ECHO_T=' ';;
17227   esac;;
17228 *)
17229   ECHO_N='-n';;
17230 esac
17231
17232 rm -f conf$$ conf$$.exe conf$$.file
17233 if test -d conf$$.dir; then
17234   rm -f conf$$.dir/conf$$.file
17235 else
17236   rm -f conf$$.dir
17237   mkdir conf$$.dir 2>/dev/null
17238 fi
17239 if (echo >conf$$.file) 2>/dev/null; then
17240   if ln -s conf$$.file conf$$ 2>/dev/null; then
17241     as_ln_s='ln -s'
17242     # ... but there are two gotchas:
17243     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17244     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17245     # In both cases, we have to default to `cp -p'.
17246     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17247       as_ln_s='cp -p'
17248   elif ln conf$$.file conf$$ 2>/dev/null; then
17249     as_ln_s=ln
17250   else
17251     as_ln_s='cp -p'
17252   fi
17253 else
17254   as_ln_s='cp -p'
17255 fi
17256 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17257 rmdir conf$$.dir 2>/dev/null
17258
17259
17260 # as_fn_mkdir_p
17261 # -------------
17262 # Create "$as_dir" as a directory, including parents if necessary.
17263 as_fn_mkdir_p ()
17264 {
17265
17266   case $as_dir in #(
17267   -*) as_dir=./$as_dir;;
17268   esac
17269   test -d "$as_dir" || eval $as_mkdir_p || {
17270     as_dirs=
17271     while :; do
17272       case $as_dir in #(
17273       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17274       *) as_qdir=$as_dir;;
17275       esac
17276       as_dirs="'$as_qdir' $as_dirs"
17277       as_dir=`$as_dirname -- "$as_dir" ||
17278 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17279          X"$as_dir" : 'X\(//\)[^/]' \| \
17280          X"$as_dir" : 'X\(//\)$' \| \
17281          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17282 $as_echo X"$as_dir" |
17283     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17284             s//\1/
17285             q
17286           }
17287           /^X\(\/\/\)[^/].*/{
17288             s//\1/
17289             q
17290           }
17291           /^X\(\/\/\)$/{
17292             s//\1/
17293             q
17294           }
17295           /^X\(\/\).*/{
17296             s//\1/
17297             q
17298           }
17299           s/.*/./; q'`
17300       test -d "$as_dir" && break
17301     done
17302     test -z "$as_dirs" || eval "mkdir $as_dirs"
17303   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17304
17305
17306 } # as_fn_mkdir_p
17307 if mkdir -p . 2>/dev/null; then
17308   as_mkdir_p='mkdir -p "$as_dir"'
17309 else
17310   test -d ./-p && rmdir ./-p
17311   as_mkdir_p=false
17312 fi
17313
17314 if test -x / >/dev/null 2>&1; then
17315   as_test_x='test -x'
17316 else
17317   if ls -dL / >/dev/null 2>&1; then
17318     as_ls_L_option=L
17319   else
17320     as_ls_L_option=
17321   fi
17322   as_test_x='
17323     eval sh -c '\''
17324       if test -d "$1"; then
17325         test -d "$1/.";
17326       else
17327         case $1 in #(
17328         -*)set "./$1";;
17329         esac;
17330         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17331         ???[sx]*):;;*)false;;esac;fi
17332     '\'' sh
17333   '
17334 fi
17335 as_executable_p=$as_test_x
17336
17337 # Sed expression to map a string onto a valid CPP name.
17338 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17339
17340 # Sed expression to map a string onto a valid variable name.
17341 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17342
17343
17344 exec 6>&1
17345 ## ----------------------------------- ##
17346 ## Main body of $CONFIG_STATUS script. ##
17347 ## ----------------------------------- ##
17348 _ASEOF
17349 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17350
17351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17352 # Save the log message, to keep $0 and so on meaningful, and to
17353 # report actual input values of CONFIG_FILES etc. instead of their
17354 # values after options handling.
17355 ac_log="
17356 This file was extended by gc $as_me 7.2, which was
17357 generated by GNU Autoconf 2.68.  Invocation command line was
17358
17359   CONFIG_FILES    = $CONFIG_FILES
17360   CONFIG_HEADERS  = $CONFIG_HEADERS
17361   CONFIG_LINKS    = $CONFIG_LINKS
17362   CONFIG_COMMANDS = $CONFIG_COMMANDS
17363   $ $0 $@
17364
17365 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17366 "
17367
17368 _ACEOF
17369
17370 case $ac_config_files in *"
17371 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17372 esac
17373
17374 case $ac_config_headers in *"
17375 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17376 esac
17377
17378
17379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17380 # Files that config.status was made for.
17381 config_files="$ac_config_files"
17382 config_headers="$ac_config_headers"
17383 config_commands="$ac_config_commands"
17384
17385 _ACEOF
17386
17387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17388 ac_cs_usage="\
17389 \`$as_me' instantiates files and other configuration actions
17390 from templates according to the current configuration.  Unless the files
17391 and actions are specified as TAGs, all are instantiated by default.
17392
17393 Usage: $0 [OPTION]... [TAG]...
17394
17395   -h, --help       print this help, then exit
17396   -V, --version    print version number and configuration settings, then exit
17397       --config     print configuration, then exit
17398   -q, --quiet, --silent
17399                    do not print progress messages
17400   -d, --debug      don't remove temporary files
17401       --recheck    update $as_me by reconfiguring in the same conditions
17402       --file=FILE[:TEMPLATE]
17403                    instantiate the configuration file FILE
17404       --header=FILE[:TEMPLATE]
17405                    instantiate the configuration header FILE
17406
17407 Configuration files:
17408 $config_files
17409
17410 Configuration headers:
17411 $config_headers
17412
17413 Configuration commands:
17414 $config_commands
17415
17416 Report bugs to <gc@linux.hpl.hp.com>."
17417
17418 _ACEOF
17419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17420 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17421 ac_cs_version="\\
17422 gc config.status 7.2
17423 configured by $0, generated by GNU Autoconf 2.68,
17424   with options \\"\$ac_cs_config\\"
17425
17426 Copyright (C) 2010 Free Software Foundation, Inc.
17427 This config.status script is free software; the Free Software Foundation
17428 gives unlimited permission to copy, distribute and modify it."
17429
17430 ac_pwd='$ac_pwd'
17431 srcdir='$srcdir'
17432 INSTALL='$INSTALL'
17433 MKDIR_P='$MKDIR_P'
17434 AWK='$AWK'
17435 test -n "\$AWK" || AWK=awk
17436 _ACEOF
17437
17438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17439 # The default lists apply if the user does not specify any file.
17440 ac_need_defaults=:
17441 while test $# != 0
17442 do
17443   case $1 in
17444   --*=?*)
17445     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17446     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17447     ac_shift=:
17448     ;;
17449   --*=)
17450     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17451     ac_optarg=
17452     ac_shift=:
17453     ;;
17454   *)
17455     ac_option=$1
17456     ac_optarg=$2
17457     ac_shift=shift
17458     ;;
17459   esac
17460
17461   case $ac_option in
17462   # Handling of the options.
17463   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17464     ac_cs_recheck=: ;;
17465   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17466     $as_echo "$ac_cs_version"; exit ;;
17467   --config | --confi | --conf | --con | --co | --c )
17468     $as_echo "$ac_cs_config"; exit ;;
17469   --debug | --debu | --deb | --de | --d | -d )
17470     debug=: ;;
17471   --file | --fil | --fi | --f )
17472     $ac_shift
17473     case $ac_optarg in
17474     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17475     '') as_fn_error $? "missing file argument" ;;
17476     esac
17477     as_fn_append CONFIG_FILES " '$ac_optarg'"
17478     ac_need_defaults=false;;
17479   --header | --heade | --head | --hea )
17480     $ac_shift
17481     case $ac_optarg in
17482     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17483     esac
17484     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17485     ac_need_defaults=false;;
17486   --he | --h)
17487     # Conflict between --help and --header
17488     as_fn_error $? "ambiguous option: \`$1'
17489 Try \`$0 --help' for more information.";;
17490   --help | --hel | -h )
17491     $as_echo "$ac_cs_usage"; exit ;;
17492   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17493   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17494     ac_cs_silent=: ;;
17495
17496   # This is an error.
17497   -*) as_fn_error $? "unrecognized option: \`$1'
17498 Try \`$0 --help' for more information." ;;
17499
17500   *) as_fn_append ac_config_targets " $1"
17501      ac_need_defaults=false ;;
17502
17503   esac
17504   shift
17505 done
17506
17507 ac_configure_extra_args=
17508
17509 if $ac_cs_silent; then
17510   exec 6>/dev/null
17511   ac_configure_extra_args="$ac_configure_extra_args --silent"
17512 fi
17513
17514 _ACEOF
17515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17516 if \$ac_cs_recheck; then
17517   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17518   shift
17519   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17520   CONFIG_SHELL='$SHELL'
17521   export CONFIG_SHELL
17522   exec "\$@"
17523 fi
17524
17525 _ACEOF
17526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17527 exec 5>>config.log
17528 {
17529   echo
17530   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17531 ## Running $as_me. ##
17532 _ASBOX
17533   $as_echo "$ac_log"
17534 } >&5
17535
17536 _ACEOF
17537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17538 #
17539 # INIT-COMMANDS
17540 #
17541 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17542
17543
17544 # The HP-UX ksh and POSIX shell print the target directory to stdout
17545 # if CDPATH is set.
17546 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17547
17548 sed_quote_subst='$sed_quote_subst'
17549 double_quote_subst='$double_quote_subst'
17550 delay_variable_subst='$delay_variable_subst'
17551 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17552 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17553 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17554 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17555 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17556 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17557 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17558 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17559 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17560 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17561 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17562 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17563 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17564 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17565 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17566 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17567 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17568 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17569 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17570 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17571 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17572 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17573 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17574 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17575 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17576 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17577 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17578 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17579 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17580 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17581 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17582 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17583 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17584 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17585 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17586 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17587 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17588 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17589 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17590 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17591 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17592 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17593 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17594 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17595 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17596 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17597 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17598 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17599 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17600 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17601 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17602 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17603 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17604 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17605 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17606 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"`'
17607 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17608 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17609 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17610 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17611 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17612 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17613 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17614 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17615 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17616 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17617 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17618 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17619 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17620 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17621 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17622 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17623 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17624 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17625 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17626 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17627 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17628 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17629 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17630 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17631 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17632 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17633 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17634 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17635 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17636 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17637 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17638 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17639 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17640 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17641 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17642 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17643 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17644 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17645 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17646 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17647 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17648 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17649 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17650 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17651 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17652 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17653 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17654 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17655 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17656 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17657 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17658 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17659 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17660 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17661 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17662 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17663 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17664 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17665 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17666 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17667 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17668 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17669 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17670 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17671 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17672 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17673 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17674 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17675 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17676 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17677 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17678 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17679 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17680 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17681 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17682 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17683 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17684 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17685 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17686 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17687 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17688 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17689 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17690 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17691 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17692 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17693 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17694 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17695 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17696 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17697 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17698 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17699 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17700 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17701 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17702 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17703 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17704 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17705 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17706 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17707 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17708 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17709 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17710 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17711 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17712 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17713 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17714 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17715 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17716 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17717 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17718 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17719 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17720 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17721 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17722 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17723 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17724 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17725 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17726 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17727 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17728 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17729 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17730 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17731 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17732 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17733 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17734 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17735 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17736
17737 LTCC='$LTCC'
17738 LTCFLAGS='$LTCFLAGS'
17739 compiler='$compiler_DEFAULT'
17740
17741 # A function that is used when there is no print builtin or printf.
17742 func_fallback_echo ()
17743 {
17744   eval 'cat <<_LTECHO_EOF
17745 \$1
17746 _LTECHO_EOF'
17747 }
17748
17749 # Quote evaled strings.
17750 for var in SHELL \
17751 ECHO \
17752 SED \
17753 GREP \
17754 EGREP \
17755 FGREP \
17756 LD \
17757 NM \
17758 LN_S \
17759 lt_SP2NL \
17760 lt_NL2SP \
17761 reload_flag \
17762 OBJDUMP \
17763 deplibs_check_method \
17764 file_magic_cmd \
17765 file_magic_glob \
17766 want_nocaseglob \
17767 DLLTOOL \
17768 sharedlib_from_linklib_cmd \
17769 AR \
17770 AR_FLAGS \
17771 archiver_list_spec \
17772 STRIP \
17773 RANLIB \
17774 CC \
17775 CFLAGS \
17776 compiler \
17777 lt_cv_sys_global_symbol_pipe \
17778 lt_cv_sys_global_symbol_to_cdecl \
17779 lt_cv_sys_global_symbol_to_c_name_address \
17780 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17781 nm_file_list_spec \
17782 lt_prog_compiler_no_builtin_flag \
17783 lt_prog_compiler_pic \
17784 lt_prog_compiler_wl \
17785 lt_prog_compiler_static \
17786 lt_cv_prog_compiler_c_o \
17787 need_locks \
17788 MANIFEST_TOOL \
17789 DSYMUTIL \
17790 NMEDIT \
17791 LIPO \
17792 OTOOL \
17793 OTOOL64 \
17794 shrext_cmds \
17795 export_dynamic_flag_spec \
17796 whole_archive_flag_spec \
17797 compiler_needs_object \
17798 with_gnu_ld \
17799 allow_undefined_flag \
17800 no_undefined_flag \
17801 hardcode_libdir_flag_spec \
17802 hardcode_libdir_flag_spec_ld \
17803 hardcode_libdir_separator \
17804 exclude_expsyms \
17805 include_expsyms \
17806 file_list_spec \
17807 variables_saved_for_relink \
17808 libname_spec \
17809 library_names_spec \
17810 soname_spec \
17811 install_override_mode \
17812 finish_eval \
17813 old_striplib \
17814 striplib \
17815 compiler_lib_search_dirs \
17816 predep_objects \
17817 postdep_objects \
17818 predeps \
17819 postdeps \
17820 compiler_lib_search_path \
17821 LD_CXX \
17822 reload_flag_CXX \
17823 compiler_CXX \
17824 lt_prog_compiler_no_builtin_flag_CXX \
17825 lt_prog_compiler_pic_CXX \
17826 lt_prog_compiler_wl_CXX \
17827 lt_prog_compiler_static_CXX \
17828 lt_cv_prog_compiler_c_o_CXX \
17829 export_dynamic_flag_spec_CXX \
17830 whole_archive_flag_spec_CXX \
17831 compiler_needs_object_CXX \
17832 with_gnu_ld_CXX \
17833 allow_undefined_flag_CXX \
17834 no_undefined_flag_CXX \
17835 hardcode_libdir_flag_spec_CXX \
17836 hardcode_libdir_flag_spec_ld_CXX \
17837 hardcode_libdir_separator_CXX \
17838 exclude_expsyms_CXX \
17839 include_expsyms_CXX \
17840 file_list_spec_CXX \
17841 compiler_lib_search_dirs_CXX \
17842 predep_objects_CXX \
17843 postdep_objects_CXX \
17844 predeps_CXX \
17845 postdeps_CXX \
17846 compiler_lib_search_path_CXX; do
17847     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17848     *[\\\\\\\`\\"\\\$]*)
17849       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17850       ;;
17851     *)
17852       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17853       ;;
17854     esac
17855 done
17856
17857 # Double-quote double-evaled strings.
17858 for var in reload_cmds \
17859 old_postinstall_cmds \
17860 old_postuninstall_cmds \
17861 old_archive_cmds \
17862 extract_expsyms_cmds \
17863 old_archive_from_new_cmds \
17864 old_archive_from_expsyms_cmds \
17865 archive_cmds \
17866 archive_expsym_cmds \
17867 module_cmds \
17868 module_expsym_cmds \
17869 export_symbols_cmds \
17870 prelink_cmds \
17871 postlink_cmds \
17872 postinstall_cmds \
17873 postuninstall_cmds \
17874 finish_cmds \
17875 sys_lib_search_path_spec \
17876 sys_lib_dlsearch_path_spec \
17877 reload_cmds_CXX \
17878 old_archive_cmds_CXX \
17879 old_archive_from_new_cmds_CXX \
17880 old_archive_from_expsyms_cmds_CXX \
17881 archive_cmds_CXX \
17882 archive_expsym_cmds_CXX \
17883 module_cmds_CXX \
17884 module_expsym_cmds_CXX \
17885 export_symbols_cmds_CXX \
17886 prelink_cmds_CXX \
17887 postlink_cmds_CXX; do
17888     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17889     *[\\\\\\\`\\"\\\$]*)
17890       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17891       ;;
17892     *)
17893       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17894       ;;
17895     esac
17896 done
17897
17898 ac_aux_dir='$ac_aux_dir'
17899 xsi_shell='$xsi_shell'
17900 lt_shell_append='$lt_shell_append'
17901
17902 # See if we are running on zsh, and set the options which allow our
17903 # commands through without removal of \ escapes INIT.
17904 if test -n "\${ZSH_VERSION+set}" ; then
17905    setopt NO_GLOB_SUBST
17906 fi
17907
17908
17909     PACKAGE='$PACKAGE'
17910     VERSION='$VERSION'
17911     TIMESTAMP='$TIMESTAMP'
17912     RM='$RM'
17913     ofile='$ofile'
17914
17915
17916
17917
17918
17919  srcdir="${srcdir}"
17920     host=${host}
17921     CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17922     CC="${CC}"
17923     DEFS="$DEFS"
17924
17925 _ACEOF
17926
17927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17928
17929 # Handling of arguments.
17930 for ac_config_target in $ac_config_targets
17931 do
17932   case $ac_config_target in
17933     "include/private/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/private/config.h" ;;
17934     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17935     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17936     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17937     "bdw-gc.pc") CONFIG_FILES="$CONFIG_FILES bdw-gc.pc" ;;
17938     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17939
17940   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17941   esac
17942 done
17943
17944
17945 # If the user did not use the arguments to specify the items to instantiate,
17946 # then the envvar interface is used.  Set only those that are not.
17947 # We use the long form for the default assignment because of an extremely
17948 # bizarre bug on SunOS 4.1.3.
17949 if $ac_need_defaults; then
17950   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17951   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17952   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17953 fi
17954
17955 # Have a temporary directory for convenience.  Make it in the build tree
17956 # simply because there is no reason against having it here, and in addition,
17957 # creating and moving files from /tmp can sometimes cause problems.
17958 # Hook for its removal unless debugging.
17959 # Note that there is a small window in which the directory will not be cleaned:
17960 # after its creation but before its name has been assigned to `$tmp'.
17961 $debug ||
17962 {
17963   tmp= ac_tmp=
17964   trap 'exit_status=$?
17965   : "${ac_tmp:=$tmp}"
17966   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17967 ' 0
17968   trap 'as_fn_exit 1' 1 2 13 15
17969 }
17970 # Create a (secure) tmp directory for tmp files.
17971
17972 {
17973   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17974   test -d "$tmp"
17975 }  ||
17976 {
17977   tmp=./conf$$-$RANDOM
17978   (umask 077 && mkdir "$tmp")
17979 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17980 ac_tmp=$tmp
17981
17982 # Set up the scripts for CONFIG_FILES section.
17983 # No need to generate them if there are no CONFIG_FILES.
17984 # This happens for instance with `./config.status config.h'.
17985 if test -n "$CONFIG_FILES"; then
17986
17987
17988 ac_cr=`echo X | tr X '\015'`
17989 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17990 # But we know of no other shell where ac_cr would be empty at this
17991 # point, so we can use a bashism as a fallback.
17992 if test "x$ac_cr" = x; then
17993   eval ac_cr=\$\'\\r\'
17994 fi
17995 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17996 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17997   ac_cs_awk_cr='\\r'
17998 else
17999   ac_cs_awk_cr=$ac_cr
18000 fi
18001
18002 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18003 _ACEOF
18004
18005
18006 {
18007   echo "cat >conf$$subs.awk <<_ACEOF" &&
18008   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18009   echo "_ACEOF"
18010 } >conf$$subs.sh ||
18011   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18012 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18013 ac_delim='%!_!# '
18014 for ac_last_try in false false false false false :; do
18015   . ./conf$$subs.sh ||
18016     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18017
18018   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18019   if test $ac_delim_n = $ac_delim_num; then
18020     break
18021   elif $ac_last_try; then
18022     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18023   else
18024     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18025   fi
18026 done
18027 rm -f conf$$subs.sh
18028
18029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18030 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18031 _ACEOF
18032 sed -n '
18033 h
18034 s/^/S["/; s/!.*/"]=/
18035 p
18036 g
18037 s/^[^!]*!//
18038 :repl
18039 t repl
18040 s/'"$ac_delim"'$//
18041 t delim
18042 :nl
18043 h
18044 s/\(.\{148\}\)..*/\1/
18045 t more1
18046 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18047 p
18048 n
18049 b repl
18050 :more1
18051 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18052 p
18053 g
18054 s/.\{148\}//
18055 t nl
18056 :delim
18057 h
18058 s/\(.\{148\}\)..*/\1/
18059 t more2
18060 s/["\\]/\\&/g; s/^/"/; s/$/"/
18061 p
18062 b
18063 :more2
18064 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18065 p
18066 g
18067 s/.\{148\}//
18068 t delim
18069 ' <conf$$subs.awk | sed '
18070 /^[^""]/{
18071   N
18072   s/\n//
18073 }
18074 ' >>$CONFIG_STATUS || ac_write_fail=1
18075 rm -f conf$$subs.awk
18076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18077 _ACAWK
18078 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18079   for (key in S) S_is_set[key] = 1
18080   FS = "\a"
18081
18082 }
18083 {
18084   line = $ 0
18085   nfields = split(line, field, "@")
18086   substed = 0
18087   len = length(field[1])
18088   for (i = 2; i < nfields; i++) {
18089     key = field[i]
18090     keylen = length(key)
18091     if (S_is_set[key]) {
18092       value = S[key]
18093       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18094       len += length(value) + length(field[++i])
18095       substed = 1
18096     } else
18097       len += 1 + keylen
18098   }
18099
18100   print line
18101 }
18102
18103 _ACAWK
18104 _ACEOF
18105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18106 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18107   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18108 else
18109   cat
18110 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18111   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18112 _ACEOF
18113
18114 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18115 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18116 # trailing colons and then remove the whole line if VPATH becomes empty
18117 # (actually we leave an empty line to preserve line numbers).
18118 if test "x$srcdir" = x.; then
18119   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18120 h
18121 s///
18122 s/^/:/
18123 s/[      ]*$/:/
18124 s/:\$(srcdir):/:/g
18125 s/:\${srcdir}:/:/g
18126 s/:@srcdir@:/:/g
18127 s/^:*//
18128 s/:*$//
18129 x
18130 s/\(=[   ]*\).*/\1/
18131 G
18132 s/\n//
18133 s/^[^=]*=[       ]*$//
18134 }'
18135 fi
18136
18137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18138 fi # test -n "$CONFIG_FILES"
18139
18140 # Set up the scripts for CONFIG_HEADERS section.
18141 # No need to generate them if there are no CONFIG_HEADERS.
18142 # This happens for instance with `./config.status Makefile'.
18143 if test -n "$CONFIG_HEADERS"; then
18144 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18145 BEGIN {
18146 _ACEOF
18147
18148 # Transform confdefs.h into an awk script `defines.awk', embedded as
18149 # here-document in config.status, that substitutes the proper values into
18150 # config.h.in to produce config.h.
18151
18152 # Create a delimiter string that does not exist in confdefs.h, to ease
18153 # handling of long lines.
18154 ac_delim='%!_!# '
18155 for ac_last_try in false false :; do
18156   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18157   if test -z "$ac_tt"; then
18158     break
18159   elif $ac_last_try; then
18160     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18161   else
18162     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18163   fi
18164 done
18165
18166 # For the awk script, D is an array of macro values keyed by name,
18167 # likewise P contains macro parameters if any.  Preserve backslash
18168 # newline sequences.
18169
18170 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18171 sed -n '
18172 s/.\{148\}/&'"$ac_delim"'/g
18173 t rset
18174 :rset
18175 s/^[     ]*#[    ]*define[       ][      ]*/ /
18176 t def
18177 d
18178 :def
18179 s/\\$//
18180 t bsnl
18181 s/["\\]/\\&/g
18182 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18183 D["\1"]=" \3"/p
18184 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18185 d
18186 :bsnl
18187 s/["\\]/\\&/g
18188 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18189 D["\1"]=" \3\\\\\\n"\\/p
18190 t cont
18191 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18192 t cont
18193 d
18194 :cont
18195 n
18196 s/.\{148\}/&'"$ac_delim"'/g
18197 t clear
18198 :clear
18199 s/\\$//
18200 t bsnlc
18201 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18202 d
18203 :bsnlc
18204 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18205 b cont
18206 ' <confdefs.h | sed '
18207 s/'"$ac_delim"'/"\\\
18208 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18209
18210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18211   for (key in D) D_is_set[key] = 1
18212   FS = "\a"
18213 }
18214 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18215   line = \$ 0
18216   split(line, arg, " ")
18217   if (arg[1] == "#") {
18218     defundef = arg[2]
18219     mac1 = arg[3]
18220   } else {
18221     defundef = substr(arg[1], 2)
18222     mac1 = arg[2]
18223   }
18224   split(mac1, mac2, "(") #)
18225   macro = mac2[1]
18226   prefix = substr(line, 1, index(line, defundef) - 1)
18227   if (D_is_set[macro]) {
18228     # Preserve the white space surrounding the "#".
18229     print prefix "define", macro P[macro] D[macro]
18230     next
18231   } else {
18232     # Replace #undef with comments.  This is necessary, for example,
18233     # in the case of _POSIX_SOURCE, which is predefined and required
18234     # on some systems where configure will not decide to define it.
18235     if (defundef == "undef") {
18236       print "/*", prefix defundef, macro, "*/"
18237       next
18238     }
18239   }
18240 }
18241 { print }
18242 _ACAWK
18243 _ACEOF
18244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18245   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18246 fi # test -n "$CONFIG_HEADERS"
18247
18248
18249 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18250 shift
18251 for ac_tag
18252 do
18253   case $ac_tag in
18254   :[FHLC]) ac_mode=$ac_tag; continue;;
18255   esac
18256   case $ac_mode$ac_tag in
18257   :[FHL]*:*);;
18258   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18259   :[FH]-) ac_tag=-:-;;
18260   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18261   esac
18262   ac_save_IFS=$IFS
18263   IFS=:
18264   set x $ac_tag
18265   IFS=$ac_save_IFS
18266   shift
18267   ac_file=$1
18268   shift
18269
18270   case $ac_mode in
18271   :L) ac_source=$1;;
18272   :[FH])
18273     ac_file_inputs=
18274     for ac_f
18275     do
18276       case $ac_f in
18277       -) ac_f="$ac_tmp/stdin";;
18278       *) # Look for the file first in the build tree, then in the source tree
18279          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18280          # because $ac_f cannot contain `:'.
18281          test -f "$ac_f" ||
18282            case $ac_f in
18283            [\\/$]*) false;;
18284            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18285            esac ||
18286            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18287       esac
18288       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18289       as_fn_append ac_file_inputs " '$ac_f'"
18290     done
18291
18292     # Let's still pretend it is `configure' which instantiates (i.e., don't
18293     # use $as_me), people would be surprised to read:
18294     #    /* config.h.  Generated by config.status.  */
18295     configure_input='Generated from '`
18296           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18297         `' by configure.'
18298     if test x"$ac_file" != x-; then
18299       configure_input="$ac_file.  $configure_input"
18300       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18301 $as_echo "$as_me: creating $ac_file" >&6;}
18302     fi
18303     # Neutralize special characters interpreted by sed in replacement strings.
18304     case $configure_input in #(
18305     *\&* | *\|* | *\\* )
18306        ac_sed_conf_input=`$as_echo "$configure_input" |
18307        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18308     *) ac_sed_conf_input=$configure_input;;
18309     esac
18310
18311     case $ac_tag in
18312     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18313       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18314     esac
18315     ;;
18316   esac
18317
18318   ac_dir=`$as_dirname -- "$ac_file" ||
18319 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18320          X"$ac_file" : 'X\(//\)[^/]' \| \
18321          X"$ac_file" : 'X\(//\)$' \| \
18322          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18323 $as_echo X"$ac_file" |
18324     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18325             s//\1/
18326             q
18327           }
18328           /^X\(\/\/\)[^/].*/{
18329             s//\1/
18330             q
18331           }
18332           /^X\(\/\/\)$/{
18333             s//\1/
18334             q
18335           }
18336           /^X\(\/\).*/{
18337             s//\1/
18338             q
18339           }
18340           s/.*/./; q'`
18341   as_dir="$ac_dir"; as_fn_mkdir_p
18342   ac_builddir=.
18343
18344 case "$ac_dir" in
18345 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18346 *)
18347   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18348   # A ".." for each directory in $ac_dir_suffix.
18349   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18350   case $ac_top_builddir_sub in
18351   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18352   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18353   esac ;;
18354 esac
18355 ac_abs_top_builddir=$ac_pwd
18356 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18357 # for backward compatibility:
18358 ac_top_builddir=$ac_top_build_prefix
18359
18360 case $srcdir in
18361   .)  # We are building in place.
18362     ac_srcdir=.
18363     ac_top_srcdir=$ac_top_builddir_sub
18364     ac_abs_top_srcdir=$ac_pwd ;;
18365   [\\/]* | ?:[\\/]* )  # Absolute name.
18366     ac_srcdir=$srcdir$ac_dir_suffix;
18367     ac_top_srcdir=$srcdir
18368     ac_abs_top_srcdir=$srcdir ;;
18369   *) # Relative name.
18370     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18371     ac_top_srcdir=$ac_top_build_prefix$srcdir
18372     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18373 esac
18374 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18375
18376
18377   case $ac_mode in
18378   :F)
18379   #
18380   # CONFIG_FILE
18381   #
18382
18383   case $INSTALL in
18384   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18385   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18386   esac
18387   ac_MKDIR_P=$MKDIR_P
18388   case $MKDIR_P in
18389   [\\/$]* | ?:[\\/]* ) ;;
18390   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18391   esac
18392 _ACEOF
18393
18394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18395 # If the template does not know about datarootdir, expand it.
18396 # FIXME: This hack should be removed a few years after 2.60.
18397 ac_datarootdir_hack=; ac_datarootdir_seen=
18398 ac_sed_dataroot='
18399 /datarootdir/ {
18400   p
18401   q
18402 }
18403 /@datadir@/p
18404 /@docdir@/p
18405 /@infodir@/p
18406 /@localedir@/p
18407 /@mandir@/p'
18408 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18409 *datarootdir*) ac_datarootdir_seen=yes;;
18410 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18411   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18412 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18413 _ACEOF
18414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18415   ac_datarootdir_hack='
18416   s&@datadir@&$datadir&g
18417   s&@docdir@&$docdir&g
18418   s&@infodir@&$infodir&g
18419   s&@localedir@&$localedir&g
18420   s&@mandir@&$mandir&g
18421   s&\\\${datarootdir}&$datarootdir&g' ;;
18422 esac
18423 _ACEOF
18424
18425 # Neutralize VPATH when `$srcdir' = `.'.
18426 # Shell code in configure.ac might set extrasub.
18427 # FIXME: do we really want to maintain this feature?
18428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18429 ac_sed_extra="$ac_vpsub
18430 $extrasub
18431 _ACEOF
18432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18433 :t
18434 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18435 s|@configure_input@|$ac_sed_conf_input|;t t
18436 s&@top_builddir@&$ac_top_builddir_sub&;t t
18437 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18438 s&@srcdir@&$ac_srcdir&;t t
18439 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18440 s&@top_srcdir@&$ac_top_srcdir&;t t
18441 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18442 s&@builddir@&$ac_builddir&;t t
18443 s&@abs_builddir@&$ac_abs_builddir&;t t
18444 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18445 s&@INSTALL@&$ac_INSTALL&;t t
18446 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18447 $ac_datarootdir_hack
18448 "
18449 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18450   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18451
18452 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18453   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18454   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18455       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18456   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18457 which seems to be undefined.  Please make sure it is defined" >&5
18458 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18459 which seems to be undefined.  Please make sure it is defined" >&2;}
18460
18461   rm -f "$ac_tmp/stdin"
18462   case $ac_file in
18463   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18464   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18465   esac \
18466   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18467  ;;
18468   :H)
18469   #
18470   # CONFIG_HEADER
18471   #
18472   if test x"$ac_file" != x-; then
18473     {
18474       $as_echo "/* $configure_input  */" \
18475       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18476     } >"$ac_tmp/config.h" \
18477       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18478     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18479       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18480 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18481     else
18482       rm -f "$ac_file"
18483       mv "$ac_tmp/config.h" "$ac_file" \
18484         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18485     fi
18486   else
18487     $as_echo "/* $configure_input  */" \
18488       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18489       || as_fn_error $? "could not create -" "$LINENO" 5
18490   fi
18491 # Compute "$ac_file"'s index in $config_headers.
18492 _am_arg="$ac_file"
18493 _am_stamp_count=1
18494 for _am_header in $config_headers :; do
18495   case $_am_header in
18496     $_am_arg | $_am_arg:* )
18497       break ;;
18498     * )
18499       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18500   esac
18501 done
18502 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18503 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18504          X"$_am_arg" : 'X\(//\)[^/]' \| \
18505          X"$_am_arg" : 'X\(//\)$' \| \
18506          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18507 $as_echo X"$_am_arg" |
18508     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18509             s//\1/
18510             q
18511           }
18512           /^X\(\/\/\)[^/].*/{
18513             s//\1/
18514             q
18515           }
18516           /^X\(\/\/\)$/{
18517             s//\1/
18518             q
18519           }
18520           /^X\(\/\).*/{
18521             s//\1/
18522             q
18523           }
18524           s/.*/./; q'`/stamp-h$_am_stamp_count
18525  ;;
18526
18527   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18528 $as_echo "$as_me: executing $ac_file commands" >&6;}
18529  ;;
18530   esac
18531
18532
18533   case $ac_file$ac_mode in
18534     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18535   # Autoconf 2.62 quotes --file arguments for eval, but not when files
18536   # are listed without --file.  Let's play safe and only enable the eval
18537   # if we detect the quoting.
18538   case $CONFIG_FILES in
18539   *\'*) eval set x "$CONFIG_FILES" ;;
18540   *)   set x $CONFIG_FILES ;;
18541   esac
18542   shift
18543   for mf
18544   do
18545     # Strip MF so we end up with the name of the file.
18546     mf=`echo "$mf" | sed -e 's/:.*$//'`
18547     # Check whether this is an Automake generated Makefile or not.
18548     # We used to match only the files named `Makefile.in', but
18549     # some people rename them; so instead we look at the file content.
18550     # Grep'ing the first line is not enough: some people post-process
18551     # each Makefile.in and add a new line on top of each file to say so.
18552     # Grep'ing the whole file is not good either: AIX grep has a line
18553     # limit of 2048, but all sed's we know have understand at least 4000.
18554     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18555       dirpart=`$as_dirname -- "$mf" ||
18556 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18557          X"$mf" : 'X\(//\)[^/]' \| \
18558          X"$mf" : 'X\(//\)$' \| \
18559          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18560 $as_echo X"$mf" |
18561     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18562             s//\1/
18563             q
18564           }
18565           /^X\(\/\/\)[^/].*/{
18566             s//\1/
18567             q
18568           }
18569           /^X\(\/\/\)$/{
18570             s//\1/
18571             q
18572           }
18573           /^X\(\/\).*/{
18574             s//\1/
18575             q
18576           }
18577           s/.*/./; q'`
18578     else
18579       continue
18580     fi
18581     # Extract the definition of DEPDIR, am__include, and am__quote
18582     # from the Makefile without running `make'.
18583     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18584     test -z "$DEPDIR" && continue
18585     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18586     test -z "am__include" && continue
18587     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18588     # When using ansi2knr, U may be empty or an underscore; expand it
18589     U=`sed -n 's/^U = //p' < "$mf"`
18590     # Find all dependency output files, they are included files with
18591     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18592     # simplest approach to changing $(DEPDIR) to its actual value in the
18593     # expansion.
18594     for file in `sed -n "
18595       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18596          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18597       # Make sure the directory exists.
18598       test -f "$dirpart/$file" && continue
18599       fdir=`$as_dirname -- "$file" ||
18600 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18601          X"$file" : 'X\(//\)[^/]' \| \
18602          X"$file" : 'X\(//\)$' \| \
18603          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18604 $as_echo X"$file" |
18605     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18606             s//\1/
18607             q
18608           }
18609           /^X\(\/\/\)[^/].*/{
18610             s//\1/
18611             q
18612           }
18613           /^X\(\/\/\)$/{
18614             s//\1/
18615             q
18616           }
18617           /^X\(\/\).*/{
18618             s//\1/
18619             q
18620           }
18621           s/.*/./; q'`
18622       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18623       # echo "creating $dirpart/$file"
18624       echo '# dummy' > "$dirpart/$file"
18625     done
18626   done
18627 }
18628  ;;
18629     "libtool":C)
18630
18631     # See if we are running on zsh, and set the options which allow our
18632     # commands through without removal of \ escapes.
18633     if test -n "${ZSH_VERSION+set}" ; then
18634       setopt NO_GLOB_SUBST
18635     fi
18636
18637     cfgfile="${ofile}T"
18638     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18639     $RM "$cfgfile"
18640
18641     cat <<_LT_EOF >> "$cfgfile"
18642 #! $SHELL
18643
18644 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18645 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18646 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18647 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18648 #
18649 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18650 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
18651 #                 Inc.
18652 #   Written by Gordon Matzigkeit, 1996
18653 #
18654 #   This file is part of GNU Libtool.
18655 #
18656 # GNU Libtool is free software; you can redistribute it and/or
18657 # modify it under the terms of the GNU General Public License as
18658 # published by the Free Software Foundation; either version 2 of
18659 # the License, or (at your option) any later version.
18660 #
18661 # As a special exception to the GNU General Public License,
18662 # if you distribute this file as part of a program or library that
18663 # is built using GNU Libtool, you may include this file under the
18664 # same distribution terms that you use for the rest of that program.
18665 #
18666 # GNU Libtool is distributed in the hope that it will be useful,
18667 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18668 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18669 # GNU General Public License for more details.
18670 #
18671 # You should have received a copy of the GNU General Public License
18672 # along with GNU Libtool; see the file COPYING.  If not, a copy
18673 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18674 # obtained by writing to the Free Software Foundation, Inc.,
18675 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18676
18677
18678 # The names of the tagged configurations supported by this script.
18679 available_tags="CXX "
18680
18681 # ### BEGIN LIBTOOL CONFIG
18682
18683 # Whether or not to build shared libraries.
18684 build_libtool_libs=$enable_shared
18685
18686 # Which release of libtool.m4 was used?
18687 macro_version=$macro_version
18688 macro_revision=$macro_revision
18689
18690 # Whether or not to build static libraries.
18691 build_old_libs=$enable_static
18692
18693 # What type of objects to build.
18694 pic_mode=$pic_mode
18695
18696 # Whether or not to optimize for fast installation.
18697 fast_install=$enable_fast_install
18698
18699 # Shell to use when invoking shell scripts.
18700 SHELL=$lt_SHELL
18701
18702 # An echo program that protects backslashes.
18703 ECHO=$lt_ECHO
18704
18705 # The host system.
18706 host_alias=$host_alias
18707 host=$host
18708 host_os=$host_os
18709
18710 # The build system.
18711 build_alias=$build_alias
18712 build=$build
18713 build_os=$build_os
18714
18715 # A sed program that does not truncate output.
18716 SED=$lt_SED
18717
18718 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18719 Xsed="\$SED -e 1s/^X//"
18720
18721 # A grep program that handles long lines.
18722 GREP=$lt_GREP
18723
18724 # An ERE matcher.
18725 EGREP=$lt_EGREP
18726
18727 # A literal string matcher.
18728 FGREP=$lt_FGREP
18729
18730 # A BSD- or MS-compatible name lister.
18731 NM=$lt_NM
18732
18733 # Whether we need soft or hard links.
18734 LN_S=$lt_LN_S
18735
18736 # What is the maximum length of a command?
18737 max_cmd_len=$max_cmd_len
18738
18739 # Object file suffix (normally "o").
18740 objext=$ac_objext
18741
18742 # Executable file suffix (normally "").
18743 exeext=$exeext
18744
18745 # whether the shell understands "unset".
18746 lt_unset=$lt_unset
18747
18748 # turn spaces into newlines.
18749 SP2NL=$lt_lt_SP2NL
18750
18751 # turn newlines into spaces.
18752 NL2SP=$lt_lt_NL2SP
18753
18754 # convert \$build file names to \$host format.
18755 to_host_file_cmd=$lt_cv_to_host_file_cmd
18756
18757 # convert \$build files to toolchain format.
18758 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18759
18760 # An object symbol dumper.
18761 OBJDUMP=$lt_OBJDUMP
18762
18763 # Method to check whether dependent libraries are shared objects.
18764 deplibs_check_method=$lt_deplibs_check_method
18765
18766 # Command to use when deplibs_check_method = "file_magic".
18767 file_magic_cmd=$lt_file_magic_cmd
18768
18769 # How to find potential files when deplibs_check_method = "file_magic".
18770 file_magic_glob=$lt_file_magic_glob
18771
18772 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18773 want_nocaseglob=$lt_want_nocaseglob
18774
18775 # DLL creation program.
18776 DLLTOOL=$lt_DLLTOOL
18777
18778 # Command to associate shared and link libraries.
18779 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18780
18781 # The archiver.
18782 AR=$lt_AR
18783
18784 # Flags to create an archive.
18785 AR_FLAGS=$lt_AR_FLAGS
18786
18787 # How to feed a file listing to the archiver.
18788 archiver_list_spec=$lt_archiver_list_spec
18789
18790 # A symbol stripping program.
18791 STRIP=$lt_STRIP
18792
18793 # Commands used to install an old-style archive.
18794 RANLIB=$lt_RANLIB
18795 old_postinstall_cmds=$lt_old_postinstall_cmds
18796 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18797
18798 # Whether to use a lock for old archive extraction.
18799 lock_old_archive_extraction=$lock_old_archive_extraction
18800
18801 # A C compiler.
18802 LTCC=$lt_CC
18803
18804 # LTCC compiler flags.
18805 LTCFLAGS=$lt_CFLAGS
18806
18807 # Take the output of nm and produce a listing of raw symbols and C names.
18808 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18809
18810 # Transform the output of nm in a proper C declaration.
18811 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18812
18813 # Transform the output of nm in a C name address pair.
18814 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18815
18816 # Transform the output of nm in a C name address pair when lib prefix is needed.
18817 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18818
18819 # Specify filename containing input files for \$NM.
18820 nm_file_list_spec=$lt_nm_file_list_spec
18821
18822 # The root where to search for dependent libraries,and in which our libraries should be installed.
18823 lt_sysroot=$lt_sysroot
18824
18825 # The name of the directory that contains temporary libtool files.
18826 objdir=$objdir
18827
18828 # Used to examine libraries when file_magic_cmd begins with "file".
18829 MAGIC_CMD=$MAGIC_CMD
18830
18831 # Must we lock files when doing compilation?
18832 need_locks=$lt_need_locks
18833
18834 # Manifest tool.
18835 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18836
18837 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18838 DSYMUTIL=$lt_DSYMUTIL
18839
18840 # Tool to change global to local symbols on Mac OS X.
18841 NMEDIT=$lt_NMEDIT
18842
18843 # Tool to manipulate fat objects and archives on Mac OS X.
18844 LIPO=$lt_LIPO
18845
18846 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18847 OTOOL=$lt_OTOOL
18848
18849 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18850 OTOOL64=$lt_OTOOL64
18851
18852 # Old archive suffix (normally "a").
18853 libext=$libext
18854
18855 # Shared library suffix (normally ".so").
18856 shrext_cmds=$lt_shrext_cmds
18857
18858 # The commands to extract the exported symbol list from a shared archive.
18859 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18860
18861 # Variables whose values should be saved in libtool wrapper scripts and
18862 # restored at link time.
18863 variables_saved_for_relink=$lt_variables_saved_for_relink
18864
18865 # Do we need the "lib" prefix for modules?
18866 need_lib_prefix=$need_lib_prefix
18867
18868 # Do we need a version for libraries?
18869 need_version=$need_version
18870
18871 # Library versioning type.
18872 version_type=$version_type
18873
18874 # Shared library runtime path variable.
18875 runpath_var=$runpath_var
18876
18877 # Shared library path variable.
18878 shlibpath_var=$shlibpath_var
18879
18880 # Is shlibpath searched before the hard-coded library search path?
18881 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18882
18883 # Format of library name prefix.
18884 libname_spec=$lt_libname_spec
18885
18886 # List of archive names.  First name is the real one, the rest are links.
18887 # The last name is the one that the linker finds with -lNAME
18888 library_names_spec=$lt_library_names_spec
18889
18890 # The coded name of the library, if different from the real name.
18891 soname_spec=$lt_soname_spec
18892
18893 # Permission mode override for installation of shared libraries.
18894 install_override_mode=$lt_install_override_mode
18895
18896 # Command to use after installation of a shared archive.
18897 postinstall_cmds=$lt_postinstall_cmds
18898
18899 # Command to use after uninstallation of a shared archive.
18900 postuninstall_cmds=$lt_postuninstall_cmds
18901
18902 # Commands used to finish a libtool library installation in a directory.
18903 finish_cmds=$lt_finish_cmds
18904
18905 # As "finish_cmds", except a single script fragment to be evaled but
18906 # not shown.
18907 finish_eval=$lt_finish_eval
18908
18909 # Whether we should hardcode library paths into libraries.
18910 hardcode_into_libs=$hardcode_into_libs
18911
18912 # Compile-time system search path for libraries.
18913 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18914
18915 # Run-time system search path for libraries.
18916 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18917
18918 # Whether dlopen is supported.
18919 dlopen_support=$enable_dlopen
18920
18921 # Whether dlopen of programs is supported.
18922 dlopen_self=$enable_dlopen_self
18923
18924 # Whether dlopen of statically linked programs is supported.
18925 dlopen_self_static=$enable_dlopen_self_static
18926
18927 # Commands to strip libraries.
18928 old_striplib=$lt_old_striplib
18929 striplib=$lt_striplib
18930
18931
18932 # The linker used to build libraries.
18933 LD=$lt_LD
18934
18935 # How to create reloadable object files.
18936 reload_flag=$lt_reload_flag
18937 reload_cmds=$lt_reload_cmds
18938
18939 # Commands used to build an old-style archive.
18940 old_archive_cmds=$lt_old_archive_cmds
18941
18942 # A language specific compiler.
18943 CC=$lt_compiler
18944
18945 # Is the compiler the GNU compiler?
18946 with_gcc=$GCC
18947
18948 # Compiler flag to turn off builtin functions.
18949 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18950
18951 # Additional compiler flags for building library objects.
18952 pic_flag=$lt_lt_prog_compiler_pic
18953
18954 # How to pass a linker flag through the compiler.
18955 wl=$lt_lt_prog_compiler_wl
18956
18957 # Compiler flag to prevent dynamic linking.
18958 link_static_flag=$lt_lt_prog_compiler_static
18959
18960 # Does compiler simultaneously support -c and -o options?
18961 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18962
18963 # Whether or not to add -lc for building shared libraries.
18964 build_libtool_need_lc=$archive_cmds_need_lc
18965
18966 # Whether or not to disallow shared libs when runtime libs are static.
18967 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18968
18969 # Compiler flag to allow reflexive dlopens.
18970 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18971
18972 # Compiler flag to generate shared objects directly from archives.
18973 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18974
18975 # Whether the compiler copes with passing no objects directly.
18976 compiler_needs_object=$lt_compiler_needs_object
18977
18978 # Create an old-style archive from a shared archive.
18979 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18980
18981 # Create a temporary old-style archive to link instead of a shared archive.
18982 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18983
18984 # Commands used to build a shared archive.
18985 archive_cmds=$lt_archive_cmds
18986 archive_expsym_cmds=$lt_archive_expsym_cmds
18987
18988 # Commands used to build a loadable module if different from building
18989 # a shared archive.
18990 module_cmds=$lt_module_cmds
18991 module_expsym_cmds=$lt_module_expsym_cmds
18992
18993 # Whether we are building with GNU ld or not.
18994 with_gnu_ld=$lt_with_gnu_ld
18995
18996 # Flag that allows shared libraries with undefined symbols to be built.
18997 allow_undefined_flag=$lt_allow_undefined_flag
18998
18999 # Flag that enforces no undefined symbols.
19000 no_undefined_flag=$lt_no_undefined_flag
19001
19002 # Flag to hardcode \$libdir into a binary during linking.
19003 # This must work even if \$libdir does not exist
19004 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19005
19006 # If ld is used when linking, flag to hardcode \$libdir into a binary
19007 # during linking.  This must work even if \$libdir does not exist.
19008 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19009
19010 # Whether we need a single "-rpath" flag with a separated argument.
19011 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19012
19013 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19014 # DIR into the resulting binary.
19015 hardcode_direct=$hardcode_direct
19016
19017 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19018 # DIR into the resulting binary and the resulting library dependency is
19019 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19020 # library is relocated.
19021 hardcode_direct_absolute=$hardcode_direct_absolute
19022
19023 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19024 # into the resulting binary.
19025 hardcode_minus_L=$hardcode_minus_L
19026
19027 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19028 # into the resulting binary.
19029 hardcode_shlibpath_var=$hardcode_shlibpath_var
19030
19031 # Set to "yes" if building a shared library automatically hardcodes DIR
19032 # into the library and all subsequent libraries and executables linked
19033 # against it.
19034 hardcode_automatic=$hardcode_automatic
19035
19036 # Set to yes if linker adds runtime paths of dependent libraries
19037 # to runtime path list.
19038 inherit_rpath=$inherit_rpath
19039
19040 # Whether libtool must link a program against all its dependency libraries.
19041 link_all_deplibs=$link_all_deplibs
19042
19043 # Set to "yes" if exported symbols are required.
19044 always_export_symbols=$always_export_symbols
19045
19046 # The commands to list exported symbols.
19047 export_symbols_cmds=$lt_export_symbols_cmds
19048
19049 # Symbols that should not be listed in the preloaded symbols.
19050 exclude_expsyms=$lt_exclude_expsyms
19051
19052 # Symbols that must always be exported.
19053 include_expsyms=$lt_include_expsyms
19054
19055 # Commands necessary for linking programs (against libraries) with templates.
19056 prelink_cmds=$lt_prelink_cmds
19057
19058 # Commands necessary for finishing linking programs.
19059 postlink_cmds=$lt_postlink_cmds
19060
19061 # Specify filename containing input files.
19062 file_list_spec=$lt_file_list_spec
19063
19064 # How to hardcode a shared library path into an executable.
19065 hardcode_action=$hardcode_action
19066
19067 # The directories searched by this compiler when creating a shared library.
19068 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19069
19070 # Dependencies to place before and after the objects being linked to
19071 # create a shared library.
19072 predep_objects=$lt_predep_objects
19073 postdep_objects=$lt_postdep_objects
19074 predeps=$lt_predeps
19075 postdeps=$lt_postdeps
19076
19077 # The library search path used internally by the compiler when linking
19078 # a shared library.
19079 compiler_lib_search_path=$lt_compiler_lib_search_path
19080
19081 # ### END LIBTOOL CONFIG
19082
19083 _LT_EOF
19084
19085   case $host_os in
19086   aix3*)
19087     cat <<\_LT_EOF >> "$cfgfile"
19088 # AIX sometimes has problems with the GCC collect2 program.  For some
19089 # reason, if we set the COLLECT_NAMES environment variable, the problems
19090 # vanish in a puff of smoke.
19091 if test "X${COLLECT_NAMES+set}" != Xset; then
19092   COLLECT_NAMES=
19093   export COLLECT_NAMES
19094 fi
19095 _LT_EOF
19096     ;;
19097   esac
19098
19099
19100 ltmain="$ac_aux_dir/ltmain.sh"
19101
19102
19103   # We use sed instead of cat because bash on DJGPP gets confused if
19104   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19105   # text mode, it properly converts lines to CR/LF.  This bash problem
19106   # is reportedly fixed, but why not run on old versions too?
19107   sed '$q' "$ltmain" >> "$cfgfile" \
19108      || (rm -f "$cfgfile"; exit 1)
19109
19110   if test x"$xsi_shell" = xyes; then
19111   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19112 func_dirname ()\
19113 {\
19114 \    case ${1} in\
19115 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19116 \      *  ) func_dirname_result="${3}" ;;\
19117 \    esac\
19118 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19119   && mv -f "$cfgfile.tmp" "$cfgfile" \
19120     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19121 test 0 -eq $? || _lt_function_replace_fail=:
19122
19123
19124   sed -e '/^func_basename ()$/,/^} # func_basename /c\
19125 func_basename ()\
19126 {\
19127 \    func_basename_result="${1##*/}"\
19128 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19129   && mv -f "$cfgfile.tmp" "$cfgfile" \
19130     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19131 test 0 -eq $? || _lt_function_replace_fail=:
19132
19133
19134   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19135 func_dirname_and_basename ()\
19136 {\
19137 \    case ${1} in\
19138 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19139 \      *  ) func_dirname_result="${3}" ;;\
19140 \    esac\
19141 \    func_basename_result="${1##*/}"\
19142 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19143   && mv -f "$cfgfile.tmp" "$cfgfile" \
19144     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19145 test 0 -eq $? || _lt_function_replace_fail=:
19146
19147
19148   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19149 func_stripname ()\
19150 {\
19151 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19152 \    # positional parameters, so assign one to ordinary parameter first.\
19153 \    func_stripname_result=${3}\
19154 \    func_stripname_result=${func_stripname_result#"${1}"}\
19155 \    func_stripname_result=${func_stripname_result%"${2}"}\
19156 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19157   && mv -f "$cfgfile.tmp" "$cfgfile" \
19158     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19159 test 0 -eq $? || _lt_function_replace_fail=:
19160
19161
19162   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19163 func_split_long_opt ()\
19164 {\
19165 \    func_split_long_opt_name=${1%%=*}\
19166 \    func_split_long_opt_arg=${1#*=}\
19167 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19168   && mv -f "$cfgfile.tmp" "$cfgfile" \
19169     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19170 test 0 -eq $? || _lt_function_replace_fail=:
19171
19172
19173   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19174 func_split_short_opt ()\
19175 {\
19176 \    func_split_short_opt_arg=${1#??}\
19177 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19178 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19179   && mv -f "$cfgfile.tmp" "$cfgfile" \
19180     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19181 test 0 -eq $? || _lt_function_replace_fail=:
19182
19183
19184   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19185 func_lo2o ()\
19186 {\
19187 \    case ${1} in\
19188 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19189 \      *)    func_lo2o_result=${1} ;;\
19190 \    esac\
19191 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19192   && mv -f "$cfgfile.tmp" "$cfgfile" \
19193     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19194 test 0 -eq $? || _lt_function_replace_fail=:
19195
19196
19197   sed -e '/^func_xform ()$/,/^} # func_xform /c\
19198 func_xform ()\
19199 {\
19200     func_xform_result=${1%.*}.lo\
19201 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19202   && mv -f "$cfgfile.tmp" "$cfgfile" \
19203     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19204 test 0 -eq $? || _lt_function_replace_fail=:
19205
19206
19207   sed -e '/^func_arith ()$/,/^} # func_arith /c\
19208 func_arith ()\
19209 {\
19210     func_arith_result=$(( $* ))\
19211 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19212   && mv -f "$cfgfile.tmp" "$cfgfile" \
19213     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19214 test 0 -eq $? || _lt_function_replace_fail=:
19215
19216
19217   sed -e '/^func_len ()$/,/^} # func_len /c\
19218 func_len ()\
19219 {\
19220     func_len_result=${#1}\
19221 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19222   && mv -f "$cfgfile.tmp" "$cfgfile" \
19223     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19224 test 0 -eq $? || _lt_function_replace_fail=:
19225
19226 fi
19227
19228 if test x"$lt_shell_append" = xyes; then
19229   sed -e '/^func_append ()$/,/^} # func_append /c\
19230 func_append ()\
19231 {\
19232     eval "${1}+=\\${2}"\
19233 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19234   && mv -f "$cfgfile.tmp" "$cfgfile" \
19235     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19236 test 0 -eq $? || _lt_function_replace_fail=:
19237
19238
19239   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19240 func_append_quoted ()\
19241 {\
19242 \    func_quote_for_eval "${2}"\
19243 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19244 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19245   && mv -f "$cfgfile.tmp" "$cfgfile" \
19246     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19247 test 0 -eq $? || _lt_function_replace_fail=:
19248
19249
19250   # Save a `func_append' function call where possible by direct use of '+='
19251   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19252     && mv -f "$cfgfile.tmp" "$cfgfile" \
19253       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19254   test 0 -eq $? || _lt_function_replace_fail=:
19255 else
19256   # Save a `func_append' function call even when '+=' is not available
19257   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19258     && mv -f "$cfgfile.tmp" "$cfgfile" \
19259       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19260   test 0 -eq $? || _lt_function_replace_fail=:
19261 fi
19262
19263 if test x"$_lt_function_replace_fail" = x":"; then
19264   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19265 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19266 fi
19267
19268
19269    mv -f "$cfgfile" "$ofile" ||
19270     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19271   chmod +x "$ofile"
19272
19273
19274     cat <<_LT_EOF >> "$ofile"
19275
19276 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19277
19278 # The linker used to build libraries.
19279 LD=$lt_LD_CXX
19280
19281 # How to create reloadable object files.
19282 reload_flag=$lt_reload_flag_CXX
19283 reload_cmds=$lt_reload_cmds_CXX
19284
19285 # Commands used to build an old-style archive.
19286 old_archive_cmds=$lt_old_archive_cmds_CXX
19287
19288 # A language specific compiler.
19289 CC=$lt_compiler_CXX
19290
19291 # Is the compiler the GNU compiler?
19292 with_gcc=$GCC_CXX
19293
19294 # Compiler flag to turn off builtin functions.
19295 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19296
19297 # Additional compiler flags for building library objects.
19298 pic_flag=$lt_lt_prog_compiler_pic_CXX
19299
19300 # How to pass a linker flag through the compiler.
19301 wl=$lt_lt_prog_compiler_wl_CXX
19302
19303 # Compiler flag to prevent dynamic linking.
19304 link_static_flag=$lt_lt_prog_compiler_static_CXX
19305
19306 # Does compiler simultaneously support -c and -o options?
19307 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19308
19309 # Whether or not to add -lc for building shared libraries.
19310 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19311
19312 # Whether or not to disallow shared libs when runtime libs are static.
19313 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19314
19315 # Compiler flag to allow reflexive dlopens.
19316 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19317
19318 # Compiler flag to generate shared objects directly from archives.
19319 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19320
19321 # Whether the compiler copes with passing no objects directly.
19322 compiler_needs_object=$lt_compiler_needs_object_CXX
19323
19324 # Create an old-style archive from a shared archive.
19325 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19326
19327 # Create a temporary old-style archive to link instead of a shared archive.
19328 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19329
19330 # Commands used to build a shared archive.
19331 archive_cmds=$lt_archive_cmds_CXX
19332 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19333
19334 # Commands used to build a loadable module if different from building
19335 # a shared archive.
19336 module_cmds=$lt_module_cmds_CXX
19337 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19338
19339 # Whether we are building with GNU ld or not.
19340 with_gnu_ld=$lt_with_gnu_ld_CXX
19341
19342 # Flag that allows shared libraries with undefined symbols to be built.
19343 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19344
19345 # Flag that enforces no undefined symbols.
19346 no_undefined_flag=$lt_no_undefined_flag_CXX
19347
19348 # Flag to hardcode \$libdir into a binary during linking.
19349 # This must work even if \$libdir does not exist
19350 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19351
19352 # If ld is used when linking, flag to hardcode \$libdir into a binary
19353 # during linking.  This must work even if \$libdir does not exist.
19354 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19355
19356 # Whether we need a single "-rpath" flag with a separated argument.
19357 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19358
19359 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19360 # DIR into the resulting binary.
19361 hardcode_direct=$hardcode_direct_CXX
19362
19363 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19364 # DIR into the resulting binary and the resulting library dependency is
19365 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19366 # library is relocated.
19367 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19368
19369 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19370 # into the resulting binary.
19371 hardcode_minus_L=$hardcode_minus_L_CXX
19372
19373 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19374 # into the resulting binary.
19375 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19376
19377 # Set to "yes" if building a shared library automatically hardcodes DIR
19378 # into the library and all subsequent libraries and executables linked
19379 # against it.
19380 hardcode_automatic=$hardcode_automatic_CXX
19381
19382 # Set to yes if linker adds runtime paths of dependent libraries
19383 # to runtime path list.
19384 inherit_rpath=$inherit_rpath_CXX
19385
19386 # Whether libtool must link a program against all its dependency libraries.
19387 link_all_deplibs=$link_all_deplibs_CXX
19388
19389 # Set to "yes" if exported symbols are required.
19390 always_export_symbols=$always_export_symbols_CXX
19391
19392 # The commands to list exported symbols.
19393 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19394
19395 # Symbols that should not be listed in the preloaded symbols.
19396 exclude_expsyms=$lt_exclude_expsyms_CXX
19397
19398 # Symbols that must always be exported.
19399 include_expsyms=$lt_include_expsyms_CXX
19400
19401 # Commands necessary for linking programs (against libraries) with templates.
19402 prelink_cmds=$lt_prelink_cmds_CXX
19403
19404 # Commands necessary for finishing linking programs.
19405 postlink_cmds=$lt_postlink_cmds_CXX
19406
19407 # Specify filename containing input files.
19408 file_list_spec=$lt_file_list_spec_CXX
19409
19410 # How to hardcode a shared library path into an executable.
19411 hardcode_action=$hardcode_action_CXX
19412
19413 # The directories searched by this compiler when creating a shared library.
19414 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19415
19416 # Dependencies to place before and after the objects being linked to
19417 # create a shared library.
19418 predep_objects=$lt_predep_objects_CXX
19419 postdep_objects=$lt_postdep_objects_CXX
19420 predeps=$lt_predeps_CXX
19421 postdeps=$lt_postdeps_CXX
19422
19423 # The library search path used internally by the compiler when linking
19424 # a shared library.
19425 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19426
19427 # ### END LIBTOOL TAG CONFIG: CXX
19428 _LT_EOF
19429
19430  ;;
19431
19432   esac
19433 done # for ac_tag
19434
19435
19436 as_fn_exit 0
19437 _ACEOF
19438 ac_clean_files=$ac_clean_files_save
19439
19440 test $ac_write_fail = 0 ||
19441   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19442
19443
19444 # configure is writing to config.log, and then calls config.status.
19445 # config.status does its own redirection, appending to config.log.
19446 # Unfortunately, on DOS this fails, as config.log is still kept open
19447 # by configure, so config.status won't be able to write to it; its
19448 # output is simply discarded.  So we exec the FD to /dev/null,
19449 # effectively closing config.log, so it can be properly (re)opened and
19450 # appended to by config.status.  When coming back to configure, we
19451 # need to make the FD available again.
19452 if test "$no_create" != yes; then
19453   ac_cs_success=:
19454   ac_config_status_args=
19455   test "$silent" = yes &&
19456     ac_config_status_args="$ac_config_status_args --quiet"
19457   exec 5>/dev/null
19458   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19459   exec 5>>config.log
19460   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19461   # would make configure fail if this is the last instruction.
19462   $ac_cs_success || as_fn_exit 1
19463 fi
19464
19465 #
19466 # CONFIG_SUBDIRS section.
19467 #
19468 if test "$no_recursion" != yes; then
19469
19470   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19471   # so they do not pile up.
19472   ac_sub_configure_args=
19473   ac_prev=
19474   eval "set x $ac_configure_args"
19475   shift
19476   for ac_arg
19477   do
19478     if test -n "$ac_prev"; then
19479       ac_prev=
19480       continue
19481     fi
19482     case $ac_arg in
19483     -cache-file | --cache-file | --cache-fil | --cache-fi \
19484     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19485       ac_prev=cache_file ;;
19486     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19487     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19488     | --c=*)
19489       ;;
19490     --config-cache | -C)
19491       ;;
19492     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19493       ac_prev=srcdir ;;
19494     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19495       ;;
19496     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19497       ac_prev=prefix ;;
19498     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19499       ;;
19500     --disable-option-checking)
19501       ;;
19502     *)
19503       case $ac_arg in
19504       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19505       esac
19506       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19507     esac
19508   done
19509
19510   # Always prepend --prefix to ensure using the same prefix
19511   # in subdir configurations.
19512   ac_arg="--prefix=$prefix"
19513   case $ac_arg in
19514   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19515   esac
19516   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19517
19518   # Pass --silent
19519   if test "$silent" = yes; then
19520     ac_sub_configure_args="--silent $ac_sub_configure_args"
19521   fi
19522
19523   # Always prepend --disable-option-checking to silence warnings, since
19524   # different subdirs can have different --enable and --with options.
19525   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19526
19527   ac_popdir=`pwd`
19528   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19529
19530     # Do not complain, so a configure script can configure whichever
19531     # parts of a large source tree are present.
19532     test -d "$srcdir/$ac_dir" || continue
19533
19534     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19535     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19536     $as_echo "$ac_msg" >&6
19537     as_dir="$ac_dir"; as_fn_mkdir_p
19538     ac_builddir=.
19539
19540 case "$ac_dir" in
19541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19542 *)
19543   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19544   # A ".." for each directory in $ac_dir_suffix.
19545   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19546   case $ac_top_builddir_sub in
19547   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19548   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19549   esac ;;
19550 esac
19551 ac_abs_top_builddir=$ac_pwd
19552 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19553 # for backward compatibility:
19554 ac_top_builddir=$ac_top_build_prefix
19555
19556 case $srcdir in
19557   .)  # We are building in place.
19558     ac_srcdir=.
19559     ac_top_srcdir=$ac_top_builddir_sub
19560     ac_abs_top_srcdir=$ac_pwd ;;
19561   [\\/]* | ?:[\\/]* )  # Absolute name.
19562     ac_srcdir=$srcdir$ac_dir_suffix;
19563     ac_top_srcdir=$srcdir
19564     ac_abs_top_srcdir=$srcdir ;;
19565   *) # Relative name.
19566     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19567     ac_top_srcdir=$ac_top_build_prefix$srcdir
19568     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19569 esac
19570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19571
19572
19573     cd "$ac_dir"
19574
19575     # Check for guested configure; otherwise get Cygnus style configure.
19576     if test -f "$ac_srcdir/configure.gnu"; then
19577       ac_sub_configure=$ac_srcdir/configure.gnu
19578     elif test -f "$ac_srcdir/configure"; then
19579       ac_sub_configure=$ac_srcdir/configure
19580     elif test -f "$ac_srcdir/configure.in"; then
19581       # This should be Cygnus configure.
19582       ac_sub_configure=$ac_aux_dir/configure
19583     else
19584       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19585 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19586       ac_sub_configure=
19587     fi
19588
19589     # The recursion is here.
19590     if test -n "$ac_sub_configure"; then
19591       # Make the cache file name correct relative to the subdirectory.
19592       case $cache_file in
19593       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19594       *) # Relative name.
19595         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19596       esac
19597
19598       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19599 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19600       # The eval makes quoting arguments work.
19601       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19602            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19603         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19604     fi
19605
19606     cd "$ac_popdir"
19607   done
19608 fi
19609 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19610   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19611 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19612 fi
19613