40802d362206ef7ae5e5907ad5dba05ae6025dbf
[cacao.git] / src / mm / boehm-gc / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.57 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.64 for gc 7.2alpha4.
5 #
6 # Report bugs to <Hans.Boehm@hp.com>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
10 # Foundation, Inc.
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21   emulate sh
22   NULLCMD=:
23   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24   # is contrary to our usage.  Disable this feature.
25   alias -g '${1+"$@"}'='"$@"'
26   setopt NO_GLOB_SUBST
27 else
28   case `(set -o) 2>/dev/null` in #(
29   *posix*) :
30     set -o posix ;; #(
31   *) :
32      ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='print -r --'
49   as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51   as_echo='printf %s\n'
52   as_echo_n='printf %s'
53 else
54   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56     as_echo_n='/usr/ucb/echo -n'
57   else
58     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59     as_echo_n_body='eval
60       arg=$1;
61       case $arg in #(
62       *"$as_nl"*)
63         expr "X$arg" : "X\\(.*\\)$as_nl";
64         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65       esac;
66       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67     '
68     export as_echo_n_body
69     as_echo_n='sh -c $as_echo_n_body as_echo'
70   fi
71   export as_echo_body
72   as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77   PATH_SEPARATOR=:
78   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80       PATH_SEPARATOR=';'
81   }
82 fi
83
84
85 # IFS
86 # We need space, tab and new line, in precisely that order.  Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" ""        $as_nl"
91
92 # Find who we are.  Look in the path if we contain no directory separator.
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in #(
147   *posix*) :
148     set -o posix ;; #(
149   *) :
150      ;;
151 esac
152 fi
153 "
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168   exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176   if (eval "$as_required") 2>/dev/null; then :
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183 else
184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
188   IFS=$as_save_IFS
189   test -z "$as_dir" && as_dir=.
190   as_found=:
191   case $as_dir in #(
192          /*)
193            for as_base in sh bash ksh sh5; do
194              # Try only shells that exist, to save several forks.
195              as_shell=$as_dir/$as_base
196              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198   CONFIG_SHELL=$as_shell as_have_required=yes
199                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   break 2
201 fi
202 fi
203            done;;
204        esac
205   as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209   CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
212
213
214       if test "x$CONFIG_SHELL" != x; then :
215   # We cannot yet assume a decent shell, so we have to provide a
216         # neutralization value for shells without unset; and this also
217         # works around shells that cannot unset nonexistent variables.
218         BASH_ENV=/dev/null
219         ENV=/dev/null
220         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221         export CONFIG_SHELL
222         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
223 fi
224
225     if test x$as_have_required = xno; then :
226   $as_echo "$0: This script requires a shell more modern than all"
227   $as_echo "$0: the shells that I found on your system."
228   if test x${ZSH_VERSION+set} = xset ; then
229     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
230     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231   else
232     $as_echo "$0: Please tell bug-autoconf@gnu.org and Hans.Boehm@hp.com
233 $0: about your system, including any error possibly output
234 $0: before this message. Then install a modern shell, or
235 $0: manually run the script under such a shell if you do
236 $0: have one."
237   fi
238   exit 1
239 fi
240 fi
241 fi
242 SHELL=${CONFIG_SHELL-/bin/sh}
243 export SHELL
244 # Unset more variables known to interfere with behavior of common tools.
245 CLICOLOR_FORCE= GREP_OPTIONS=
246 unset CLICOLOR_FORCE GREP_OPTIONS
247
248 ## --------------------- ##
249 ## M4sh Shell Functions. ##
250 ## --------------------- ##
251 # as_fn_unset VAR
252 # ---------------
253 # Portably unset VAR.
254 as_fn_unset ()
255 {
256   { eval $1=; unset $1;}
257 }
258 as_unset=as_fn_unset
259
260 # as_fn_set_status STATUS
261 # -----------------------
262 # Set $? to STATUS, without forking.
263 as_fn_set_status ()
264 {
265   return $1
266 } # as_fn_set_status
267
268 # as_fn_exit STATUS
269 # -----------------
270 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
271 as_fn_exit ()
272 {
273   set +e
274   as_fn_set_status $1
275   exit $1
276 } # as_fn_exit
277
278 # as_fn_mkdir_p
279 # -------------
280 # Create "$as_dir" as a directory, including parents if necessary.
281 as_fn_mkdir_p ()
282 {
283
284   case $as_dir in #(
285   -*) as_dir=./$as_dir;;
286   esac
287   test -d "$as_dir" || eval $as_mkdir_p || {
288     as_dirs=
289     while :; do
290       case $as_dir in #(
291       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292       *) as_qdir=$as_dir;;
293       esac
294       as_dirs="'$as_qdir' $as_dirs"
295       as_dir=`$as_dirname -- "$as_dir" ||
296 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
297          X"$as_dir" : 'X\(//\)[^/]' \| \
298          X"$as_dir" : 'X\(//\)$' \| \
299          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
300 $as_echo X"$as_dir" |
301     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)[^/].*/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)$/{
310             s//\1/
311             q
312           }
313           /^X\(\/\).*/{
314             s//\1/
315             q
316           }
317           s/.*/./; q'`
318       test -d "$as_dir" && break
319     done
320     test -z "$as_dirs" || eval "mkdir $as_dirs"
321   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322
323
324 } # as_fn_mkdir_p
325 # as_fn_append VAR VALUE
326 # ----------------------
327 # Append the text in VALUE to the end of the definition contained in VAR. Take
328 # advantage of any shell optimizations that allow amortized linear growth over
329 # repeated appends, instead of the typical quadratic growth present in naive
330 # implementations.
331 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
332   eval 'as_fn_append ()
333   {
334     eval $1+=\$2
335   }'
336 else
337   as_fn_append ()
338   {
339     eval $1=\$$1\$2
340   }
341 fi # as_fn_append
342
343 # as_fn_arith ARG...
344 # ------------------
345 # Perform arithmetic evaluation on the ARGs, and store the result in the
346 # global $as_val. Take advantage of shells that can avoid forks. The arguments
347 # must be portable across $(()) and expr.
348 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
349   eval 'as_fn_arith ()
350   {
351     as_val=$(( $* ))
352   }'
353 else
354   as_fn_arith ()
355   {
356     as_val=`expr "$@" || test $? -eq 1`
357   }
358 fi # as_fn_arith
359
360
361 # as_fn_error ERROR [LINENO LOG_FD]
362 # ---------------------------------
363 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
364 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
365 # script with status $?, using 1 if that was 0.
366 as_fn_error ()
367 {
368   as_status=$?; test $as_status -eq 0 && as_status=1
369   if test "$3"; then
370     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
371     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372   fi
373   $as_echo "$as_me: error: $1" >&2
374   as_fn_exit $as_status
375 } # as_fn_error
376
377 if expr a : '\(a\)' >/dev/null 2>&1 &&
378    test "X`expr 00001 : '.*\(...\)'`" = X001; then
379   as_expr=expr
380 else
381   as_expr=false
382 fi
383
384 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
385   as_basename=basename
386 else
387   as_basename=false
388 fi
389
390 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
391   as_dirname=dirname
392 else
393   as_dirname=false
394 fi
395
396 as_me=`$as_basename -- "$0" ||
397 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
398          X"$0" : 'X\(//\)$' \| \
399          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 $as_echo X/"$0" |
401     sed '/^.*\/\([^/][^/]*\)\/*$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\/\)$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\).*/{
410             s//\1/
411             q
412           }
413           s/.*/./; q'`
414
415 # Avoid depending upon Character Ranges.
416 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
417 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
418 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
419 as_cr_digits='0123456789'
420 as_cr_alnum=$as_cr_Letters$as_cr_digits
421
422
423   as_lineno_1=$LINENO as_lineno_1a=$LINENO
424   as_lineno_2=$LINENO as_lineno_2a=$LINENO
425   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
426   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
427   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
428   sed -n '
429     p
430     /[$]LINENO/=
431   ' <$as_myself |
432     sed '
433       s/[$]LINENO.*/&-/
434       t lineno
435       b
436       :lineno
437       N
438       :loop
439       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
440       t loop
441       s/-\n.*//
442     ' >$as_me.lineno &&
443   chmod +x "$as_me.lineno" ||
444     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445
446   # Don't try to exec as it changes $[0], causing all sort of problems
447   # (the dirname of $[0] is not the place where we might find the
448   # original and so on.  Autoconf is especially sensitive to this).
449   . "./$as_me.lineno"
450   # Exit status is that of the last command.
451   exit
452 }
453
454 ECHO_C= ECHO_N= ECHO_T=
455 case `echo -n x` in #(((((
456 -n*)
457   case `echo 'xy\c'` in
458   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
459   xy)  ECHO_C='\c';;
460   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
461        ECHO_T=' ';;
462   esac;;
463 *)
464   ECHO_N='-n';;
465 esac
466
467 rm -f conf$$ conf$$.exe conf$$.file
468 if test -d conf$$.dir; then
469   rm -f conf$$.dir/conf$$.file
470 else
471   rm -f conf$$.dir
472   mkdir conf$$.dir 2>/dev/null
473 fi
474 if (echo >conf$$.file) 2>/dev/null; then
475   if ln -s conf$$.file conf$$ 2>/dev/null; then
476     as_ln_s='ln -s'
477     # ... but there are two gotchas:
478     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
479     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
480     # In both cases, we have to default to `cp -p'.
481     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
482       as_ln_s='cp -p'
483   elif ln conf$$.file conf$$ 2>/dev/null; then
484     as_ln_s=ln
485   else
486     as_ln_s='cp -p'
487   fi
488 else
489   as_ln_s='cp -p'
490 fi
491 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
492 rmdir conf$$.dir 2>/dev/null
493
494 if mkdir -p . 2>/dev/null; then
495   as_mkdir_p='mkdir -p "$as_dir"'
496 else
497   test -d ./-p && rmdir ./-p
498   as_mkdir_p=false
499 fi
500
501 if test -x / >/dev/null 2>&1; then
502   as_test_x='test -x'
503 else
504   if ls -dL / >/dev/null 2>&1; then
505     as_ls_L_option=L
506   else
507     as_ls_L_option=
508   fi
509   as_test_x='
510     eval sh -c '\''
511       if test -d "$1"; then
512         test -d "$1/.";
513       else
514         case $1 in #(
515         -*)set "./$1";;
516         esac;
517         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
518         ???[sx]*):;;*)false;;esac;fi
519     '\'' sh
520   '
521 fi
522 as_executable_p=$as_test_x
523
524 # Sed expression to map a string onto a valid CPP name.
525 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526
527 # Sed expression to map a string onto a valid variable name.
528 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529
530
531
532 # Check that we are running under the correct shell.
533 SHELL=${CONFIG_SHELL-/bin/sh}
534
535 case X$lt_ECHO in
536 X*--fallback-echo)
537   # Remove one level of quotation (which was required for Make).
538   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
539   ;;
540 esac
541
542 ECHO=${lt_ECHO-echo}
543 if test "X$1" = X--no-reexec; then
544   # Discard the --no-reexec flag, and continue.
545   shift
546 elif test "X$1" = X--fallback-echo; then
547   # Avoid inline document here, it may be left over
548   :
549 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
550   # Yippee, $ECHO works!
551   :
552 else
553   # Restart under the correct shell.
554   exec $SHELL "$0" --no-reexec ${1+"$@"}
555 fi
556
557 if test "X$1" = X--fallback-echo; then
558   # used as fallback echo
559   shift
560   cat <<_LT_EOF
561 $*
562 _LT_EOF
563   exit 0
564 fi
565
566 # The HP-UX ksh and POSIX shell print the target directory to stdout
567 # if CDPATH is set.
568 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
569
570 if test -z "$lt_ECHO"; then
571   if test "X${echo_test_string+set}" != Xset; then
572     # find a string as large as possible, as long as the shell can cope with it
573     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
574       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
575       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
576          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
577       then
578         break
579       fi
580     done
581   fi
582
583   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
584      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
585      test "X$echo_testing_string" = "X$echo_test_string"; then
586     :
587   else
588     # The Solaris, AIX, and Digital Unix default echo programs unquote
589     # backslashes.  This makes it impossible to quote backslashes using
590     #   echo "$something" | sed 's/\\/\\\\/g'
591     #
592     # So, first we look for a working echo in the user's PATH.
593
594     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
595     for dir in $PATH /usr/ucb; do
596       IFS="$lt_save_ifs"
597       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
598          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
599          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
600          test "X$echo_testing_string" = "X$echo_test_string"; then
601         ECHO="$dir/echo"
602         break
603       fi
604     done
605     IFS="$lt_save_ifs"
606
607     if test "X$ECHO" = Xecho; then
608       # We didn't find a better echo, so look for alternatives.
609       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
610          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
611          test "X$echo_testing_string" = "X$echo_test_string"; then
612         # This shell has a builtin print -r that does the trick.
613         ECHO='print -r'
614       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
615            test "X$CONFIG_SHELL" != X/bin/ksh; then
616         # If we have ksh, try running configure again with it.
617         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
618         export ORIGINAL_CONFIG_SHELL
619         CONFIG_SHELL=/bin/ksh
620         export CONFIG_SHELL
621         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
622       else
623         # Try using printf.
624         ECHO='printf %s\n'
625         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
626            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
627            test "X$echo_testing_string" = "X$echo_test_string"; then
628           # Cool, printf works
629           :
630         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
631              test "X$echo_testing_string" = 'X\t' &&
632              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
633              test "X$echo_testing_string" = "X$echo_test_string"; then
634           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
635           export CONFIG_SHELL
636           SHELL="$CONFIG_SHELL"
637           export SHELL
638           ECHO="$CONFIG_SHELL $0 --fallback-echo"
639         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640              test "X$echo_testing_string" = 'X\t' &&
641              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642              test "X$echo_testing_string" = "X$echo_test_string"; then
643           ECHO="$CONFIG_SHELL $0 --fallback-echo"
644         else
645           # maybe with a smaller string...
646           prev=:
647
648           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
649             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
650             then
651               break
652             fi
653             prev="$cmd"
654           done
655
656           if test "$prev" != 'sed 50q "$0"'; then
657             echo_test_string=`eval $prev`
658             export echo_test_string
659             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
660           else
661             # Oops.  We lost completely, so just stick with echo.
662             ECHO=echo
663           fi
664         fi
665       fi
666     fi
667   fi
668 fi
669
670 # Copy echo and quote the copy suitably for passing to libtool from
671 # the Makefile, instead of quoting the original, which is used later.
672 lt_ECHO=$ECHO
673 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
674    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
675 fi
676
677
678
679
680 exec 7<&0 </dev/null 6>&1
681
682 # Name of the host.
683 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
684 # so uname gets run too.
685 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
686
687 #
688 # Initializations.
689 #
690 ac_default_prefix=/usr/local
691 ac_clean_files=
692 ac_config_libobj_dir=.
693 LIBOBJS=
694 cross_compiling=no
695 subdirs=
696 MFLAGS=
697 MAKEFLAGS=
698
699 # Identity of this package.
700 PACKAGE_NAME='gc'
701 PACKAGE_TARNAME='gc'
702 PACKAGE_VERSION='7.2alpha4'
703 PACKAGE_STRING='gc 7.2alpha4'
704 PACKAGE_BUGREPORT='Hans.Boehm@hp.com'
705 PACKAGE_URL=''
706
707 ac_unique_file="gcj_mlc.c"
708 # Factoring default headers for most tests.
709 ac_includes_default="\
710 #include <stdio.h>
711 #ifdef HAVE_SYS_TYPES_H
712 # include <sys/types.h>
713 #endif
714 #ifdef HAVE_SYS_STAT_H
715 # include <sys/stat.h>
716 #endif
717 #ifdef STDC_HEADERS
718 # include <stdlib.h>
719 # include <stddef.h>
720 #else
721 # ifdef HAVE_STDLIB_H
722 #  include <stdlib.h>
723 # endif
724 #endif
725 #ifdef HAVE_STRING_H
726 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
727 #  include <memory.h>
728 # endif
729 # include <string.h>
730 #endif
731 #ifdef HAVE_STRINGS_H
732 # include <strings.h>
733 #endif
734 #ifdef HAVE_INTTYPES_H
735 # include <inttypes.h>
736 #endif
737 #ifdef HAVE_STDINT_H
738 # include <stdint.h>
739 #endif
740 #ifdef HAVE_UNISTD_H
741 # include <unistd.h>
742 #endif"
743
744 enable_option_checking=no
745 ac_subst_vars='LTLIBOBJS
746 LIBOBJS
747 NEED_ATOMIC_OPS_ASM_FALSE
748 NEED_ATOMIC_OPS_ASM_TRUE
749 USE_INTERNAL_LIBATOMIC_OPS_FALSE
750 USE_INTERNAL_LIBATOMIC_OPS_TRUE
751 subdirs
752 ATOMIC_OPS_LIBS
753 USE_LIBDIR_FALSE
754 USE_LIBDIR_TRUE
755 UNWINDLIBS
756 KEEP_BACK_PTRS_FALSE
757 KEEP_BACK_PTRS_TRUE
758 ENABLE_GCJ_SUPPORT_FALSE
759 ENABLE_GCJ_SUPPORT_TRUE
760 CXXCPP
761 CPP
762 NMEDIT
763 DSYMUTIL
764 lt_ECHO
765 LN_S
766 NM
767 ac_ct_DUMPBIN
768 DUMPBIN
769 LD
770 FGREP
771 EGREP
772 GREP
773 SED
774 LIBTOOL
775 addlibs
776 addobjs
777 CXXINCLUDES
778 INCLUDES
779 CPLUSPLUS_FALSE
780 CPLUSPLUS_TRUE
781 target_all
782 EXTRA_TEST_LIBS
783 extra_ldflags_libgc
784 AVOID_CPP_LIB_FALSE
785 AVOID_CPP_LIB_TRUE
786 COMPILER_XLC_FALSE
787 COMPILER_XLC_TRUE
788 OPENBSD_THREADS_FALSE
789 OPENBSD_THREADS_TRUE
790 WIN32_THREADS_FALSE
791 WIN32_THREADS_TRUE
792 DARWIN_THREADS_FALSE
793 DARWIN_THREADS_TRUE
794 PTHREADS_FALSE
795 PTHREADS_TRUE
796 THREADS_FALSE
797 THREADS_TRUE
798 THREADDLLIBS
799 GC_CFLAGS
800 RANLIB
801 AR
802 am__fastdepCCAS_FALSE
803 am__fastdepCCAS_TRUE
804 CCASDEPMODE
805 CCASFLAGS
806 CCAS
807 am__fastdepCXX_FALSE
808 am__fastdepCXX_TRUE
809 CXXDEPMODE
810 ac_ct_CXX
811 CXXFLAGS
812 CXX
813 am__fastdepCC_FALSE
814 am__fastdepCC_TRUE
815 CCDEPMODE
816 AMDEPBACKSLASH
817 AMDEP_FALSE
818 AMDEP_TRUE
819 am__quote
820 am__include
821 DEPDIR
822 OBJEXT
823 EXEEXT
824 ac_ct_CC
825 CPPFLAGS
826 LDFLAGS
827 CFLAGS
828 CC
829 GC_VERSION
830 MAINT
831 MAINTAINER_MODE_FALSE
832 MAINTAINER_MODE_TRUE
833 am__untar
834 am__tar
835 AMTAR
836 am__leading_dot
837 SET_MAKE
838 AWK
839 mkdir_p
840 MKDIR_P
841 INSTALL_STRIP_PROGRAM
842 STRIP
843 install_sh
844 MAKEINFO
845 AUTOHEADER
846 AUTOMAKE
847 AUTOCONF
848 ACLOCAL
849 VERSION
850 PACKAGE
851 CYGPATH_W
852 am__isrc
853 INSTALL_DATA
854 INSTALL_SCRIPT
855 INSTALL_PROGRAM
856 target_os
857 target_vendor
858 target_cpu
859 target
860 host_os
861 host_vendor
862 host_cpu
863 host
864 build_os
865 build_vendor
866 build_cpu
867 build
868 target_alias
869 host_alias
870 build_alias
871 LIBS
872 ECHO_T
873 ECHO_N
874 ECHO_C
875 DEFS
876 mandir
877 localedir
878 libdir
879 psdir
880 pdfdir
881 dvidir
882 htmldir
883 infodir
884 docdir
885 oldincludedir
886 includedir
887 localstatedir
888 sharedstatedir
889 sysconfdir
890 datadir
891 datarootdir
892 libexecdir
893 sbindir
894 bindir
895 program_transform_name
896 prefix
897 exec_prefix
898 PACKAGE_URL
899 PACKAGE_BUGREPORT
900 PACKAGE_STRING
901 PACKAGE_VERSION
902 PACKAGE_TARNAME
903 PACKAGE_NAME
904 PATH_SEPARATOR
905 SHELL'
906 ac_subst_files=''
907 ac_user_opts='
908 enable_option_checking
909 enable_maintainer_mode
910 enable_dependency_tracking
911 enable_threads
912 enable_parallel_mark
913 enable_cplusplus
914 with_ecos
915 enable_shared
916 enable_static
917 with_pic
918 enable_fast_install
919 with_gnu_ld
920 enable_libtool_lock
921 with_target_subdir
922 with_cross_host
923 enable_gcj_support
924 enable_gc_debug
925 enable_java_finalization
926 enable_atomic_uncollectable
927 enable_redirect_malloc
928 enable_large_config
929 enable_gc_assertions
930 enable_munmap
931 with_libatomic_ops
932 '
933       ac_precious_vars='build_alias
934 host_alias
935 target_alias
936 CC
937 CFLAGS
938 LDFLAGS
939 LIBS
940 CPPFLAGS
941 CXX
942 CXXFLAGS
943 CCC
944 CCAS
945 CCASFLAGS
946 CPP
947 CXXCPP'
948 ac_subdirs_all='libatomic_ops'
949
950 # Initialize some variables set by options.
951 ac_init_help=
952 ac_init_version=false
953 ac_unrecognized_opts=
954 ac_unrecognized_sep=
955 # The variables have the same names as the options, with
956 # dashes changed to underlines.
957 cache_file=/dev/null
958 exec_prefix=NONE
959 no_create=
960 no_recursion=
961 prefix=NONE
962 program_prefix=NONE
963 program_suffix=NONE
964 program_transform_name=s,x,x,
965 silent=
966 site=
967 srcdir=
968 verbose=
969 x_includes=NONE
970 x_libraries=NONE
971
972 # Installation directory options.
973 # These are left unexpanded so users can "make install exec_prefix=/foo"
974 # and all the variables that are supposed to be based on exec_prefix
975 # by default will actually change.
976 # Use braces instead of parens because sh, perl, etc. also accept them.
977 # (The list follows the same order as the GNU Coding Standards.)
978 bindir='${exec_prefix}/bin'
979 sbindir='${exec_prefix}/sbin'
980 libexecdir='${exec_prefix}/libexec'
981 datarootdir='${prefix}/share'
982 datadir='${datarootdir}'
983 sysconfdir='${prefix}/etc'
984 sharedstatedir='${prefix}/com'
985 localstatedir='${prefix}/var'
986 includedir='${prefix}/include'
987 oldincludedir='/usr/include'
988 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
989 infodir='${datarootdir}/info'
990 htmldir='${docdir}'
991 dvidir='${docdir}'
992 pdfdir='${docdir}'
993 psdir='${docdir}'
994 libdir='${exec_prefix}/lib'
995 localedir='${datarootdir}/locale'
996 mandir='${datarootdir}/man'
997
998 ac_prev=
999 ac_dashdash=
1000 for ac_option
1001 do
1002   # If the previous option needs an argument, assign it.
1003   if test -n "$ac_prev"; then
1004     eval $ac_prev=\$ac_option
1005     ac_prev=
1006     continue
1007   fi
1008
1009   case $ac_option in
1010   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1011   *)    ac_optarg=yes ;;
1012   esac
1013
1014   # Accept the important Cygnus configure options, so we can diagnose typos.
1015
1016   case $ac_dashdash$ac_option in
1017   --)
1018     ac_dashdash=yes ;;
1019
1020   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1021     ac_prev=bindir ;;
1022   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1023     bindir=$ac_optarg ;;
1024
1025   -build | --build | --buil | --bui | --bu)
1026     ac_prev=build_alias ;;
1027   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1028     build_alias=$ac_optarg ;;
1029
1030   -cache-file | --cache-file | --cache-fil | --cache-fi \
1031   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1032     ac_prev=cache_file ;;
1033   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1034   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1035     cache_file=$ac_optarg ;;
1036
1037   --config-cache | -C)
1038     cache_file=config.cache ;;
1039
1040   -datadir | --datadir | --datadi | --datad)
1041     ac_prev=datadir ;;
1042   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1043     datadir=$ac_optarg ;;
1044
1045   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1046   | --dataroo | --dataro | --datar)
1047     ac_prev=datarootdir ;;
1048   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1049   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1050     datarootdir=$ac_optarg ;;
1051
1052   -disable-* | --disable-*)
1053     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1054     # Reject names that are not valid shell variable names.
1055     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056       as_fn_error "invalid feature name: $ac_useropt"
1057     ac_useropt_orig=$ac_useropt
1058     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059     case $ac_user_opts in
1060       *"
1061 "enable_$ac_useropt"
1062 "*) ;;
1063       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1064          ac_unrecognized_sep=', ';;
1065     esac
1066     eval enable_$ac_useropt=no ;;
1067
1068   -docdir | --docdir | --docdi | --doc | --do)
1069     ac_prev=docdir ;;
1070   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1071     docdir=$ac_optarg ;;
1072
1073   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1074     ac_prev=dvidir ;;
1075   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1076     dvidir=$ac_optarg ;;
1077
1078   -enable-* | --enable-*)
1079     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1080     # Reject names that are not valid shell variable names.
1081     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082       as_fn_error "invalid feature name: $ac_useropt"
1083     ac_useropt_orig=$ac_useropt
1084     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085     case $ac_user_opts in
1086       *"
1087 "enable_$ac_useropt"
1088 "*) ;;
1089       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1090          ac_unrecognized_sep=', ';;
1091     esac
1092     eval enable_$ac_useropt=\$ac_optarg ;;
1093
1094   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1095   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1096   | --exec | --exe | --ex)
1097     ac_prev=exec_prefix ;;
1098   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1099   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1100   | --exec=* | --exe=* | --ex=*)
1101     exec_prefix=$ac_optarg ;;
1102
1103   -gas | --gas | --ga | --g)
1104     # Obsolete; use --with-gas.
1105     with_gas=yes ;;
1106
1107   -help | --help | --hel | --he | -h)
1108     ac_init_help=long ;;
1109   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1110     ac_init_help=recursive ;;
1111   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1112     ac_init_help=short ;;
1113
1114   -host | --host | --hos | --ho)
1115     ac_prev=host_alias ;;
1116   -host=* | --host=* | --hos=* | --ho=*)
1117     host_alias=$ac_optarg ;;
1118
1119   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1120     ac_prev=htmldir ;;
1121   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1122   | --ht=*)
1123     htmldir=$ac_optarg ;;
1124
1125   -includedir | --includedir | --includedi | --included | --include \
1126   | --includ | --inclu | --incl | --inc)
1127     ac_prev=includedir ;;
1128   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1129   | --includ=* | --inclu=* | --incl=* | --inc=*)
1130     includedir=$ac_optarg ;;
1131
1132   -infodir | --infodir | --infodi | --infod | --info | --inf)
1133     ac_prev=infodir ;;
1134   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1135     infodir=$ac_optarg ;;
1136
1137   -libdir | --libdir | --libdi | --libd)
1138     ac_prev=libdir ;;
1139   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1140     libdir=$ac_optarg ;;
1141
1142   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1143   | --libexe | --libex | --libe)
1144     ac_prev=libexecdir ;;
1145   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1146   | --libexe=* | --libex=* | --libe=*)
1147     libexecdir=$ac_optarg ;;
1148
1149   -localedir | --localedir | --localedi | --localed | --locale)
1150     ac_prev=localedir ;;
1151   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1152     localedir=$ac_optarg ;;
1153
1154   -localstatedir | --localstatedir | --localstatedi | --localstated \
1155   | --localstate | --localstat | --localsta | --localst | --locals)
1156     ac_prev=localstatedir ;;
1157   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1158   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1159     localstatedir=$ac_optarg ;;
1160
1161   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1162     ac_prev=mandir ;;
1163   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1164     mandir=$ac_optarg ;;
1165
1166   -nfp | --nfp | --nf)
1167     # Obsolete; use --without-fp.
1168     with_fp=no ;;
1169
1170   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1171   | --no-cr | --no-c | -n)
1172     no_create=yes ;;
1173
1174   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1175   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1176     no_recursion=yes ;;
1177
1178   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1179   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1180   | --oldin | --oldi | --old | --ol | --o)
1181     ac_prev=oldincludedir ;;
1182   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1183   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1184   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1185     oldincludedir=$ac_optarg ;;
1186
1187   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1188     ac_prev=prefix ;;
1189   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1190     prefix=$ac_optarg ;;
1191
1192   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1193   | --program-pre | --program-pr | --program-p)
1194     ac_prev=program_prefix ;;
1195   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1196   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1197     program_prefix=$ac_optarg ;;
1198
1199   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1200   | --program-suf | --program-su | --program-s)
1201     ac_prev=program_suffix ;;
1202   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1203   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1204     program_suffix=$ac_optarg ;;
1205
1206   -program-transform-name | --program-transform-name \
1207   | --program-transform-nam | --program-transform-na \
1208   | --program-transform-n | --program-transform- \
1209   | --program-transform | --program-transfor \
1210   | --program-transfo | --program-transf \
1211   | --program-trans | --program-tran \
1212   | --progr-tra | --program-tr | --program-t)
1213     ac_prev=program_transform_name ;;
1214   -program-transform-name=* | --program-transform-name=* \
1215   | --program-transform-nam=* | --program-transform-na=* \
1216   | --program-transform-n=* | --program-transform-=* \
1217   | --program-transform=* | --program-transfor=* \
1218   | --program-transfo=* | --program-transf=* \
1219   | --program-trans=* | --program-tran=* \
1220   | --progr-tra=* | --program-tr=* | --program-t=*)
1221     program_transform_name=$ac_optarg ;;
1222
1223   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1224     ac_prev=pdfdir ;;
1225   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1226     pdfdir=$ac_optarg ;;
1227
1228   -psdir | --psdir | --psdi | --psd | --ps)
1229     ac_prev=psdir ;;
1230   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1231     psdir=$ac_optarg ;;
1232
1233   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1234   | -silent | --silent | --silen | --sile | --sil)
1235     silent=yes ;;
1236
1237   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1238     ac_prev=sbindir ;;
1239   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1240   | --sbi=* | --sb=*)
1241     sbindir=$ac_optarg ;;
1242
1243   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1244   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1245   | --sharedst | --shareds | --shared | --share | --shar \
1246   | --sha | --sh)
1247     ac_prev=sharedstatedir ;;
1248   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1249   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1250   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1251   | --sha=* | --sh=*)
1252     sharedstatedir=$ac_optarg ;;
1253
1254   -site | --site | --sit)
1255     ac_prev=site ;;
1256   -site=* | --site=* | --sit=*)
1257     site=$ac_optarg ;;
1258
1259   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1260     ac_prev=srcdir ;;
1261   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1262     srcdir=$ac_optarg ;;
1263
1264   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1265   | --syscon | --sysco | --sysc | --sys | --sy)
1266     ac_prev=sysconfdir ;;
1267   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1268   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1269     sysconfdir=$ac_optarg ;;
1270
1271   -target | --target | --targe | --targ | --tar | --ta | --t)
1272     ac_prev=target_alias ;;
1273   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1274     target_alias=$ac_optarg ;;
1275
1276   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1277     verbose=yes ;;
1278
1279   -version | --version | --versio | --versi | --vers | -V)
1280     ac_init_version=: ;;
1281
1282   -with-* | --with-*)
1283     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1284     # Reject names that are not valid shell variable names.
1285     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286       as_fn_error "invalid package name: $ac_useropt"
1287     ac_useropt_orig=$ac_useropt
1288     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289     case $ac_user_opts in
1290       *"
1291 "with_$ac_useropt"
1292 "*) ;;
1293       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1294          ac_unrecognized_sep=', ';;
1295     esac
1296     eval with_$ac_useropt=\$ac_optarg ;;
1297
1298   -without-* | --without-*)
1299     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300     # Reject names that are not valid shell variable names.
1301     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302       as_fn_error "invalid package name: $ac_useropt"
1303     ac_useropt_orig=$ac_useropt
1304     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305     case $ac_user_opts in
1306       *"
1307 "with_$ac_useropt"
1308 "*) ;;
1309       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1310          ac_unrecognized_sep=', ';;
1311     esac
1312     eval with_$ac_useropt=no ;;
1313
1314   --x)
1315     # Obsolete; use --with-x.
1316     with_x=yes ;;
1317
1318   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1319   | --x-incl | --x-inc | --x-in | --x-i)
1320     ac_prev=x_includes ;;
1321   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1322   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1323     x_includes=$ac_optarg ;;
1324
1325   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1326   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1327     ac_prev=x_libraries ;;
1328   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1329   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1330     x_libraries=$ac_optarg ;;
1331
1332   -*) as_fn_error "unrecognized option: \`$ac_option'
1333 Try \`$0 --help' for more information."
1334     ;;
1335
1336   *=*)
1337     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338     # Reject names that are not valid shell variable names.
1339     case $ac_envvar in #(
1340       '' | [0-9]* | *[!_$as_cr_alnum]* )
1341       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1342     esac
1343     eval $ac_envvar=\$ac_optarg
1344     export $ac_envvar ;;
1345
1346   *)
1347     # FIXME: should be removed in autoconf 3.0.
1348     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1349     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1350       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1351     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1352     ;;
1353
1354   esac
1355 done
1356
1357 if test -n "$ac_prev"; then
1358   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1359   as_fn_error "missing argument to $ac_option"
1360 fi
1361
1362 if test -n "$ac_unrecognized_opts"; then
1363   case $enable_option_checking in
1364     no) ;;
1365     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1366     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1367   esac
1368 fi
1369
1370 # Check all directory arguments for consistency.
1371 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1372                 datadir sysconfdir sharedstatedir localstatedir includedir \
1373                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1374                 libdir localedir mandir
1375 do
1376   eval ac_val=\$$ac_var
1377   # Remove trailing slashes.
1378   case $ac_val in
1379     */ )
1380       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1381       eval $ac_var=\$ac_val;;
1382   esac
1383   # Be sure to have absolute directory names.
1384   case $ac_val in
1385     [\\/$]* | ?:[\\/]* )  continue;;
1386     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1387   esac
1388   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1389 done
1390
1391 # There might be people who depend on the old broken behavior: `$host'
1392 # used to hold the argument of --host etc.
1393 # FIXME: To remove some day.
1394 build=$build_alias
1395 host=$host_alias
1396 target=$target_alias
1397
1398 # FIXME: To remove some day.
1399 if test "x$host_alias" != x; then
1400   if test "x$build_alias" = x; then
1401     cross_compiling=maybe
1402     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1403     If a cross compiler is detected then cross compile mode will be used." >&2
1404   elif test "x$build_alias" != "x$host_alias"; then
1405     cross_compiling=yes
1406   fi
1407 fi
1408
1409 ac_tool_prefix=
1410 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1411
1412 test "$silent" = yes && exec 6>/dev/null
1413
1414
1415 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1416 ac_ls_di=`ls -di .` &&
1417 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1418   as_fn_error "working directory cannot be determined"
1419 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1420   as_fn_error "pwd does not report name of working directory"
1421
1422
1423 # Find the source files, if location was not specified.
1424 if test -z "$srcdir"; then
1425   ac_srcdir_defaulted=yes
1426   # Try the directory containing this script, then the parent directory.
1427   ac_confdir=`$as_dirname -- "$as_myself" ||
1428 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1429          X"$as_myself" : 'X\(//\)[^/]' \| \
1430          X"$as_myself" : 'X\(//\)$' \| \
1431          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1432 $as_echo X"$as_myself" |
1433     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1434             s//\1/
1435             q
1436           }
1437           /^X\(\/\/\)[^/].*/{
1438             s//\1/
1439             q
1440           }
1441           /^X\(\/\/\)$/{
1442             s//\1/
1443             q
1444           }
1445           /^X\(\/\).*/{
1446             s//\1/
1447             q
1448           }
1449           s/.*/./; q'`
1450   srcdir=$ac_confdir
1451   if test ! -r "$srcdir/$ac_unique_file"; then
1452     srcdir=..
1453   fi
1454 else
1455   ac_srcdir_defaulted=no
1456 fi
1457 if test ! -r "$srcdir/$ac_unique_file"; then
1458   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1459   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1460 fi
1461 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1462 ac_abs_confdir=`(
1463         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1464         pwd)`
1465 # When building in place, set srcdir=.
1466 if test "$ac_abs_confdir" = "$ac_pwd"; then
1467   srcdir=.
1468 fi
1469 # Remove unnecessary trailing slashes from srcdir.
1470 # Double slashes in file names in object file debugging info
1471 # mess up M-x gdb in Emacs.
1472 case $srcdir in
1473 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1474 esac
1475 for ac_var in $ac_precious_vars; do
1476   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1477   eval ac_env_${ac_var}_value=\$${ac_var}
1478   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1479   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1480 done
1481
1482 #
1483 # Report the --help message.
1484 #
1485 if test "$ac_init_help" = "long"; then
1486   # Omit some internal or obsolete options to make the list less imposing.
1487   # This message is too long to be a string in the A/UX 3.1 sh.
1488   cat <<_ACEOF
1489 \`configure' configures gc 7.2alpha4 to adapt to many kinds of systems.
1490
1491 Usage: $0 [OPTION]... [VAR=VALUE]...
1492
1493 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1494 VAR=VALUE.  See below for descriptions of some of the useful variables.
1495
1496 Defaults for the options are specified in brackets.
1497
1498 Configuration:
1499   -h, --help              display this help and exit
1500       --help=short        display options specific to this package
1501       --help=recursive    display the short help of all the included packages
1502   -V, --version           display version information and exit
1503   -q, --quiet, --silent   do not print \`checking...' messages
1504       --cache-file=FILE   cache test results in FILE [disabled]
1505   -C, --config-cache      alias for \`--cache-file=config.cache'
1506   -n, --no-create         do not create output files
1507       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1508
1509 Installation directories:
1510   --prefix=PREFIX         install architecture-independent files in PREFIX
1511                           [$ac_default_prefix]
1512   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1513                           [PREFIX]
1514
1515 By default, \`make install' will install all the files in
1516 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1517 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1518 for instance \`--prefix=\$HOME'.
1519
1520 For better control, use the options below.
1521
1522 Fine tuning of the installation directories:
1523   --bindir=DIR            user executables [EPREFIX/bin]
1524   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1525   --libexecdir=DIR        program executables [EPREFIX/libexec]
1526   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1527   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1528   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1529   --libdir=DIR            object code libraries [EPREFIX/lib]
1530   --includedir=DIR        C header files [PREFIX/include]
1531   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1532   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1533   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1534   --infodir=DIR           info documentation [DATAROOTDIR/info]
1535   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1536   --mandir=DIR            man documentation [DATAROOTDIR/man]
1537   --docdir=DIR            documentation root [DATAROOTDIR/doc/gc]
1538   --htmldir=DIR           html documentation [DOCDIR]
1539   --dvidir=DIR            dvi documentation [DOCDIR]
1540   --pdfdir=DIR            pdf documentation [DOCDIR]
1541   --psdir=DIR             ps documentation [DOCDIR]
1542 _ACEOF
1543
1544   cat <<\_ACEOF
1545
1546 Program names:
1547   --program-prefix=PREFIX            prepend PREFIX to installed program names
1548   --program-suffix=SUFFIX            append SUFFIX to installed program names
1549   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1550
1551 System types:
1552   --build=BUILD     configure for building on BUILD [guessed]
1553   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1554   --target=TARGET   configure for building compilers for TARGET [HOST]
1555 _ACEOF
1556 fi
1557
1558 if test -n "$ac_init_help"; then
1559   case $ac_init_help in
1560      short | recursive ) echo "Configuration of gc 7.2alpha4:";;
1561    esac
1562   cat <<\_ACEOF
1563
1564 Optional Features:
1565   --disable-option-checking  ignore unrecognized --enable/--with options
1566   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1567   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1568   --enable-maintainer-mode  enable make rules and dependencies not useful
1569                           (and sometimes confusing) to the casual installer
1570   --disable-dependency-tracking  speeds up one-time build
1571   --enable-dependency-tracking   do not reject slow dependency extractors
1572   --enable-threads=TYPE   choose threading package
1573   --enable-parallel-mark  parallelize marking and free list construction
1574   --enable-cplusplus      install C++ support
1575   --enable-shared[=PKGS]  build shared libraries [default=yes]
1576   --enable-static[=PKGS]  build static libraries [default=yes]
1577   --enable-fast-install[=PKGS]
1578                           optimize for fast installation [default=yes]
1579   --disable-libtool-lock  avoid locking (might break parallel builds)
1580   --disable-gcj-support   Disable support for gcj.
1581   --enable-gc-debug       include full support for pointer backtracing etc.
1582   --disable-java-finalization
1583                           Disable support for java finalization.
1584   --disable-atomic-uncollectible
1585                           Disable support for atomic uncollectible allocation.
1586   --enable-redirect-malloc
1587                           Redirect malloc and friends to GC routines
1588   --enable-large-config   Optimize for large (> 100 MB) heap or root set
1589   --enable-gc-assertions  collector-internal assertion checking
1590   --enable-munmap=N       return page to the os if empty for N collections
1591
1592 Optional Packages:
1593   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1594   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1595   --with-ecos             enable runtime eCos target support
1596   --with-pic              try to use only PIC/non-PIC objects [default=use
1597                           both]
1598   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1599   --with-target-subdir=SUBDIR
1600                           configuring with a cross compiler
1601   --with-cross-host=HOST  configuring with a cross compiler
1602   --with-libatomic-ops=yes|no|check
1603                           Use a pre-installed libatomic_ops? (default: check)
1604
1605 Some influential environment variables:
1606   CC          C compiler command
1607   CFLAGS      C compiler flags
1608   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1609               nonstandard directory <lib dir>
1610   LIBS        libraries to pass to the linker, e.g. -l<library>
1611   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1612               you have headers in a nonstandard directory <include dir>
1613   CXX         C++ compiler command
1614   CXXFLAGS    C++ compiler flags
1615   CCAS        assembler compiler command (defaults to CC)
1616   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1617   CPP         C preprocessor
1618   CXXCPP      C++ preprocessor
1619
1620 Use these variables to override the choices made by `configure' or to help
1621 it to find libraries and programs with nonstandard names/locations.
1622
1623 Report bugs to <Hans.Boehm@hp.com>.
1624 _ACEOF
1625 ac_status=$?
1626 fi
1627
1628 if test "$ac_init_help" = "recursive"; then
1629   # If there are subdirs, report their specific --help.
1630   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1631     test -d "$ac_dir" ||
1632       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1633       continue
1634     ac_builddir=.
1635
1636 case "$ac_dir" in
1637 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 *)
1639   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1640   # A ".." for each directory in $ac_dir_suffix.
1641   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1642   case $ac_top_builddir_sub in
1643   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1645   esac ;;
1646 esac
1647 ac_abs_top_builddir=$ac_pwd
1648 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1649 # for backward compatibility:
1650 ac_top_builddir=$ac_top_build_prefix
1651
1652 case $srcdir in
1653   .)  # We are building in place.
1654     ac_srcdir=.
1655     ac_top_srcdir=$ac_top_builddir_sub
1656     ac_abs_top_srcdir=$ac_pwd ;;
1657   [\\/]* | ?:[\\/]* )  # Absolute name.
1658     ac_srcdir=$srcdir$ac_dir_suffix;
1659     ac_top_srcdir=$srcdir
1660     ac_abs_top_srcdir=$srcdir ;;
1661   *) # Relative name.
1662     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1663     ac_top_srcdir=$ac_top_build_prefix$srcdir
1664     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1665 esac
1666 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1667
1668     cd "$ac_dir" || { ac_status=$?; continue; }
1669     # Check for guested configure.
1670     if test -f "$ac_srcdir/configure.gnu"; then
1671       echo &&
1672       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1673     elif test -f "$ac_srcdir/configure"; then
1674       echo &&
1675       $SHELL "$ac_srcdir/configure" --help=recursive
1676     else
1677       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1678     fi || ac_status=$?
1679     cd "$ac_pwd" || { ac_status=$?; break; }
1680   done
1681 fi
1682
1683 test -n "$ac_init_help" && exit $ac_status
1684 if $ac_init_version; then
1685   cat <<\_ACEOF
1686 gc configure 7.2alpha4
1687 generated by GNU Autoconf 2.64
1688
1689 Copyright (C) 2009 Free Software Foundation, Inc.
1690 This configure script is free software; the Free Software Foundation
1691 gives unlimited permission to copy, distribute and modify it.
1692 _ACEOF
1693   exit
1694 fi
1695
1696 ## ------------------------ ##
1697 ## Autoconf initialization. ##
1698 ## ------------------------ ##
1699
1700 # ac_fn_c_try_compile LINENO
1701 # --------------------------
1702 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1703 ac_fn_c_try_compile ()
1704 {
1705   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706   rm -f conftest.$ac_objext
1707   if { { ac_try="$ac_compile"
1708 case "(($ac_try" in
1709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710   *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714   (eval "$ac_compile") 2>conftest.err
1715   ac_status=$?
1716   if test -s conftest.err; then
1717     grep -v '^ *+' conftest.err >conftest.er1
1718     cat conftest.er1 >&5
1719     mv -f conftest.er1 conftest.err
1720   fi
1721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722   test $ac_status = 0; } && {
1723          test -z "$ac_c_werror_flag" ||
1724          test ! -s conftest.err
1725        } && test -s conftest.$ac_objext; then :
1726   ac_retval=0
1727 else
1728   $as_echo "$as_me: failed program was:" >&5
1729 sed 's/^/| /' conftest.$ac_ext >&5
1730
1731         ac_retval=1
1732 fi
1733   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1734   return $ac_retval
1735
1736 } # ac_fn_c_try_compile
1737
1738 # ac_fn_cxx_try_compile LINENO
1739 # ----------------------------
1740 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1741 ac_fn_cxx_try_compile ()
1742 {
1743   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744   rm -f conftest.$ac_objext
1745   if { { ac_try="$ac_compile"
1746 case "(($ac_try" in
1747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748   *) ac_try_echo=$ac_try;;
1749 esac
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752   (eval "$ac_compile") 2>conftest.err
1753   ac_status=$?
1754   if test -s conftest.err; then
1755     grep -v '^ *+' conftest.err >conftest.er1
1756     cat conftest.er1 >&5
1757     mv -f conftest.er1 conftest.err
1758   fi
1759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760   test $ac_status = 0; } && {
1761          test -z "$ac_cxx_werror_flag" ||
1762          test ! -s conftest.err
1763        } && test -s conftest.$ac_objext; then :
1764   ac_retval=0
1765 else
1766   $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1768
1769         ac_retval=1
1770 fi
1771   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1772   return $ac_retval
1773
1774 } # ac_fn_cxx_try_compile
1775
1776 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1777 # ----------------------------------------------------
1778 # Tries to find if the field MEMBER exists in type AGGR, after including
1779 # INCLUDES, setting cache variable VAR accordingly.
1780 ac_fn_c_check_member ()
1781 {
1782   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1784 $as_echo_n "checking for $2.$3... " >&6; }
1785 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1786   $as_echo_n "(cached) " >&6
1787 else
1788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h.  */
1790 $5
1791 int
1792 main ()
1793 {
1794 static $2 ac_aggr;
1795 if (ac_aggr.$3)
1796 return 0;
1797   ;
1798   return 0;
1799 }
1800 _ACEOF
1801 if ac_fn_c_try_compile "$LINENO"; then :
1802   eval "$4=yes"
1803 else
1804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h.  */
1806 $5
1807 int
1808 main ()
1809 {
1810 static $2 ac_aggr;
1811 if (sizeof ac_aggr.$3)
1812 return 0;
1813   ;
1814   return 0;
1815 }
1816 _ACEOF
1817 if ac_fn_c_try_compile "$LINENO"; then :
1818   eval "$4=yes"
1819 else
1820   eval "$4=no"
1821 fi
1822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823 fi
1824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825 fi
1826 eval ac_res=\$$4
1827                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828 $as_echo "$ac_res" >&6; }
1829   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830
1831 } # ac_fn_c_check_member
1832
1833 # ac_fn_c_try_link LINENO
1834 # -----------------------
1835 # Try to link conftest.$ac_ext, and return whether this succeeded.
1836 ac_fn_c_try_link ()
1837 {
1838   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839   rm -f conftest.$ac_objext conftest$ac_exeext
1840   if { { ac_try="$ac_link"
1841 case "(($ac_try" in
1842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843   *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847   (eval "$ac_link") 2>conftest.err
1848   ac_status=$?
1849   if test -s conftest.err; then
1850     grep -v '^ *+' conftest.err >conftest.er1
1851     cat conftest.er1 >&5
1852     mv -f conftest.er1 conftest.err
1853   fi
1854   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855   test $ac_status = 0; } && {
1856          test -z "$ac_c_werror_flag" ||
1857          test ! -s conftest.err
1858        } && test -s conftest$ac_exeext && {
1859          test "$cross_compiling" = yes ||
1860          $as_test_x conftest$ac_exeext
1861        }; then :
1862   ac_retval=0
1863 else
1864   $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1866
1867         ac_retval=1
1868 fi
1869   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1870   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1871   # interfere with the next link command; also delete a directory that is
1872   # left behind by Apple's compiler.  We do this before executing the actions.
1873   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875   return $ac_retval
1876
1877 } # ac_fn_c_try_link
1878
1879 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1880 # -------------------------------------------------------
1881 # Tests whether HEADER exists and can be compiled using the include files in
1882 # INCLUDES, setting the cache variable VAR accordingly.
1883 ac_fn_c_check_header_compile ()
1884 {
1885   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1889   $as_echo_n "(cached) " >&6
1890 else
1891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h.  */
1893 $4
1894 #include <$2>
1895 _ACEOF
1896 if ac_fn_c_try_compile "$LINENO"; then :
1897   eval "$3=yes"
1898 else
1899   eval "$3=no"
1900 fi
1901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902 fi
1903 eval ac_res=\$$3
1904                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1907
1908 } # ac_fn_c_check_header_compile
1909
1910 # ac_fn_c_try_cpp LINENO
1911 # ----------------------
1912 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1913 ac_fn_c_try_cpp ()
1914 {
1915   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916   if { { ac_try="$ac_cpp conftest.$ac_ext"
1917 case "(($ac_try" in
1918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919   *) ac_try_echo=$ac_try;;
1920 esac
1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 $as_echo "$ac_try_echo"; } >&5
1923   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1924   ac_status=$?
1925   if test -s conftest.err; then
1926     grep -v '^ *+' conftest.err >conftest.er1
1927     cat conftest.er1 >&5
1928     mv -f conftest.er1 conftest.err
1929   fi
1930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931   test $ac_status = 0; } >/dev/null && {
1932          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1933          test ! -s conftest.err
1934        }; then :
1935   ac_retval=0
1936 else
1937   $as_echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1939
1940     ac_retval=1
1941 fi
1942   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1943   return $ac_retval
1944
1945 } # ac_fn_c_try_cpp
1946
1947 # ac_fn_c_try_run LINENO
1948 # ----------------------
1949 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1950 # that executables *can* be run.
1951 ac_fn_c_try_run ()
1952 {
1953   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954   if { { ac_try="$ac_link"
1955 case "(($ac_try" in
1956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957   *) ac_try_echo=$ac_try;;
1958 esac
1959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960 $as_echo "$ac_try_echo"; } >&5
1961   (eval "$ac_link") 2>&5
1962   ac_status=$?
1963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1965   { { case "(($ac_try" in
1966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1967   *) ac_try_echo=$ac_try;;
1968 esac
1969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970 $as_echo "$ac_try_echo"; } >&5
1971   (eval "$ac_try") 2>&5
1972   ac_status=$?
1973   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974   test $ac_status = 0; }; }; then :
1975   ac_retval=0
1976 else
1977   $as_echo "$as_me: program exited with status $ac_status" >&5
1978        $as_echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1980
1981        ac_retval=$ac_status
1982 fi
1983   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1984   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1985   return $ac_retval
1986
1987 } # ac_fn_c_try_run
1988
1989 # ac_fn_c_check_func LINENO FUNC VAR
1990 # ----------------------------------
1991 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1992 ac_fn_c_check_func ()
1993 {
1994   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1996 $as_echo_n "checking for $2... " >&6; }
1997 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1998   $as_echo_n "(cached) " >&6
1999 else
2000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h.  */
2002 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2003    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2004 #define $2 innocuous_$2
2005
2006 /* System header to define __stub macros and hopefully few prototypes,
2007     which can conflict with char $2 (); below.
2008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2009     <limits.h> exists even on freestanding compilers.  */
2010
2011 #ifdef __STDC__
2012 # include <limits.h>
2013 #else
2014 # include <assert.h>
2015 #endif
2016
2017 #undef $2
2018
2019 /* Override any GCC internal prototype to avoid an error.
2020    Use char because int might match the return type of a GCC
2021    builtin and then its argument prototype would still apply.  */
2022 #ifdef __cplusplus
2023 extern "C"
2024 #endif
2025 char $2 ();
2026 /* The GNU C library defines this for functions which it implements
2027     to always fail with ENOSYS.  Some functions are actually named
2028     something starting with __ and the normal name is an alias.  */
2029 #if defined __stub_$2 || defined __stub___$2
2030 choke me
2031 #endif
2032
2033 int
2034 main ()
2035 {
2036 return $2 ();
2037   ;
2038   return 0;
2039 }
2040 _ACEOF
2041 if ac_fn_c_try_link "$LINENO"; then :
2042   eval "$3=yes"
2043 else
2044   eval "$3=no"
2045 fi
2046 rm -f core conftest.err conftest.$ac_objext \
2047     conftest$ac_exeext conftest.$ac_ext
2048 fi
2049 eval ac_res=\$$3
2050                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2053
2054 } # ac_fn_c_check_func
2055
2056 # ac_fn_cxx_try_cpp LINENO
2057 # ------------------------
2058 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2059 ac_fn_cxx_try_cpp ()
2060 {
2061   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062   if { { ac_try="$ac_cpp conftest.$ac_ext"
2063 case "(($ac_try" in
2064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2065   *) ac_try_echo=$ac_try;;
2066 esac
2067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068 $as_echo "$ac_try_echo"; } >&5
2069   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2070   ac_status=$?
2071   if test -s conftest.err; then
2072     grep -v '^ *+' conftest.err >conftest.er1
2073     cat conftest.er1 >&5
2074     mv -f conftest.er1 conftest.err
2075   fi
2076   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2077   test $ac_status = 0; } >/dev/null && {
2078          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2079          test ! -s conftest.err
2080        }; then :
2081   ac_retval=0
2082 else
2083   $as_echo "$as_me: failed program was:" >&5
2084 sed 's/^/| /' conftest.$ac_ext >&5
2085
2086     ac_retval=1
2087 fi
2088   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2089   return $ac_retval
2090
2091 } # ac_fn_cxx_try_cpp
2092
2093 # ac_fn_cxx_try_link LINENO
2094 # -------------------------
2095 # Try to link conftest.$ac_ext, and return whether this succeeded.
2096 ac_fn_cxx_try_link ()
2097 {
2098   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2099   rm -f conftest.$ac_objext conftest$ac_exeext
2100   if { { ac_try="$ac_link"
2101 case "(($ac_try" in
2102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2103   *) ac_try_echo=$ac_try;;
2104 esac
2105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2106 $as_echo "$ac_try_echo"; } >&5
2107   (eval "$ac_link") 2>conftest.err
2108   ac_status=$?
2109   if test -s conftest.err; then
2110     grep -v '^ *+' conftest.err >conftest.er1
2111     cat conftest.er1 >&5
2112     mv -f conftest.er1 conftest.err
2113   fi
2114   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2115   test $ac_status = 0; } && {
2116          test -z "$ac_cxx_werror_flag" ||
2117          test ! -s conftest.err
2118        } && test -s conftest$ac_exeext && {
2119          test "$cross_compiling" = yes ||
2120          $as_test_x conftest$ac_exeext
2121        }; then :
2122   ac_retval=0
2123 else
2124   $as_echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2126
2127         ac_retval=1
2128 fi
2129   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2130   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2131   # interfere with the next link command; also delete a directory that is
2132   # left behind by Apple's compiler.  We do this before executing the actions.
2133   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2134   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2135   return $ac_retval
2136
2137 } # ac_fn_cxx_try_link
2138
2139 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2140 # -------------------------------------------------------
2141 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2142 # the include files in INCLUDES and setting the cache variable VAR
2143 # accordingly.
2144 ac_fn_c_check_header_mongrel ()
2145 {
2146   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2149 $as_echo_n "checking for $2... " >&6; }
2150 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2151   $as_echo_n "(cached) " >&6
2152 fi
2153 eval ac_res=\$$3
2154                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2155 $as_echo "$ac_res" >&6; }
2156 else
2157   # Is the header compilable?
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2159 $as_echo_n "checking $2 usability... " >&6; }
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h.  */
2162 $4
2163 #include <$2>
2164 _ACEOF
2165 if ac_fn_c_try_compile "$LINENO"; then :
2166   ac_header_compiler=yes
2167 else
2168   ac_header_compiler=no
2169 fi
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2172 $as_echo "$ac_header_compiler" >&6; }
2173
2174 # Is the header present?
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2176 $as_echo_n "checking $2 presence... " >&6; }
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h.  */
2179 #include <$2>
2180 _ACEOF
2181 if ac_fn_c_try_cpp "$LINENO"; then :
2182   ac_header_preproc=yes
2183 else
2184   ac_header_preproc=no
2185 fi
2186 rm -f conftest.err conftest.$ac_ext
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2188 $as_echo "$ac_header_preproc" >&6; }
2189
2190 # So?  What about this header?
2191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2192   yes:no: )
2193     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2194 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2195     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2196 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2197     ;;
2198   no:yes:* )
2199     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2200 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2201     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2202 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2203     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2204 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2205     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2206 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2207     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2208 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2209 ( cat <<\_ASBOX
2210 ## -------------------------------- ##
2211 ## Report this to Hans.Boehm@hp.com ##
2212 ## -------------------------------- ##
2213 _ASBOX
2214      ) | sed "s/^/$as_me: WARNING:     /" >&2
2215     ;;
2216 esac
2217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2218 $as_echo_n "checking for $2... " >&6; }
2219 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2220   $as_echo_n "(cached) " >&6
2221 else
2222   eval "$3=\$ac_header_compiler"
2223 fi
2224 eval ac_res=\$$3
2225                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2226 $as_echo "$ac_res" >&6; }
2227 fi
2228   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2229
2230 } # ac_fn_c_check_header_mongrel
2231 cat >config.log <<_ACEOF
2232 This file contains any messages produced by compilers while
2233 running configure, to aid debugging if configure makes a mistake.
2234
2235 It was created by gc $as_me 7.2alpha4, which was
2236 generated by GNU Autoconf 2.64.  Invocation command line was
2237
2238   $ $0 $@
2239
2240 _ACEOF
2241 exec 5>>config.log
2242 {
2243 cat <<_ASUNAME
2244 ## --------- ##
2245 ## Platform. ##
2246 ## --------- ##
2247
2248 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2249 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2250 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2251 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2252 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2253
2254 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2255 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2256
2257 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2258 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2259 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2260 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2261 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2262 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2263 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2264
2265 _ASUNAME
2266
2267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268 for as_dir in $PATH
2269 do
2270   IFS=$as_save_IFS
2271   test -z "$as_dir" && as_dir=.
2272     $as_echo "PATH: $as_dir"
2273   done
2274 IFS=$as_save_IFS
2275
2276 } >&5
2277
2278 cat >&5 <<_ACEOF
2279
2280
2281 ## ----------- ##
2282 ## Core tests. ##
2283 ## ----------- ##
2284
2285 _ACEOF
2286
2287
2288 # Keep a trace of the command line.
2289 # Strip out --no-create and --no-recursion so they do not pile up.
2290 # Strip out --silent because we don't want to record it for future runs.
2291 # Also quote any args containing shell meta-characters.
2292 # Make two passes to allow for proper duplicate-argument suppression.
2293 ac_configure_args=
2294 ac_configure_args0=
2295 ac_configure_args1=
2296 ac_must_keep_next=false
2297 for ac_pass in 1 2
2298 do
2299   for ac_arg
2300   do
2301     case $ac_arg in
2302     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2303     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2304     | -silent | --silent | --silen | --sile | --sil)
2305       continue ;;
2306     *\'*)
2307       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2308     esac
2309     case $ac_pass in
2310     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2311     2)
2312       as_fn_append ac_configure_args1 " '$ac_arg'"
2313       if test $ac_must_keep_next = true; then
2314         ac_must_keep_next=false # Got value, back to normal.
2315       else
2316         case $ac_arg in
2317           *=* | --config-cache | -C | -disable-* | --disable-* \
2318           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2319           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2320           | -with-* | --with-* | -without-* | --without-* | --x)
2321             case "$ac_configure_args0 " in
2322               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2323             esac
2324             ;;
2325           -* ) ac_must_keep_next=true ;;
2326         esac
2327       fi
2328       as_fn_append ac_configure_args " '$ac_arg'"
2329       ;;
2330     esac
2331   done
2332 done
2333 { ac_configure_args0=; unset ac_configure_args0;}
2334 { ac_configure_args1=; unset ac_configure_args1;}
2335
2336 # When interrupted or exit'd, cleanup temporary files, and complete
2337 # config.log.  We remove comments because anyway the quotes in there
2338 # would cause problems or look ugly.
2339 # WARNING: Use '\'' to represent an apostrophe within the trap.
2340 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2341 trap 'exit_status=$?
2342   # Save into config.log some information that might help in debugging.
2343   {
2344     echo
2345
2346     cat <<\_ASBOX
2347 ## ---------------- ##
2348 ## Cache variables. ##
2349 ## ---------------- ##
2350 _ASBOX
2351     echo
2352     # The following way of writing the cache mishandles newlines in values,
2353 (
2354   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2355     eval ac_val=\$$ac_var
2356     case $ac_val in #(
2357     *${as_nl}*)
2358       case $ac_var in #(
2359       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2360 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2361       esac
2362       case $ac_var in #(
2363       _ | IFS | as_nl) ;; #(
2364       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2365       *) { eval $ac_var=; unset $ac_var;} ;;
2366       esac ;;
2367     esac
2368   done
2369   (set) 2>&1 |
2370     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2371     *${as_nl}ac_space=\ *)
2372       sed -n \
2373         "s/'\''/'\''\\\\'\'''\''/g;
2374           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2375       ;; #(
2376     *)
2377       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2378       ;;
2379     esac |
2380     sort
2381 )
2382     echo
2383
2384     cat <<\_ASBOX
2385 ## ----------------- ##
2386 ## Output variables. ##
2387 ## ----------------- ##
2388 _ASBOX
2389     echo
2390     for ac_var in $ac_subst_vars
2391     do
2392       eval ac_val=\$$ac_var
2393       case $ac_val in
2394       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2395       esac
2396       $as_echo "$ac_var='\''$ac_val'\''"
2397     done | sort
2398     echo
2399
2400     if test -n "$ac_subst_files"; then
2401       cat <<\_ASBOX
2402 ## ------------------- ##
2403 ## File substitutions. ##
2404 ## ------------------- ##
2405 _ASBOX
2406       echo
2407       for ac_var in $ac_subst_files
2408       do
2409         eval ac_val=\$$ac_var
2410         case $ac_val in
2411         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2412         esac
2413         $as_echo "$ac_var='\''$ac_val'\''"
2414       done | sort
2415       echo
2416     fi
2417
2418     if test -s confdefs.h; then
2419       cat <<\_ASBOX
2420 ## ----------- ##
2421 ## confdefs.h. ##
2422 ## ----------- ##
2423 _ASBOX
2424       echo
2425       cat confdefs.h
2426       echo
2427     fi
2428     test "$ac_signal" != 0 &&
2429       $as_echo "$as_me: caught signal $ac_signal"
2430     $as_echo "$as_me: exit $exit_status"
2431   } >&5
2432   rm -f core *.core core.conftest.* &&
2433     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2434     exit $exit_status
2435 ' 0
2436 for ac_signal in 1 2 13 15; do
2437   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2438 done
2439 ac_signal=0
2440
2441 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2442 rm -f -r conftest* confdefs.h
2443
2444 $as_echo "/* confdefs.h */" > confdefs.h
2445
2446 # Predefined preprocessor variables.
2447
2448 cat >>confdefs.h <<_ACEOF
2449 #define PACKAGE_NAME "$PACKAGE_NAME"
2450 _ACEOF
2451
2452 cat >>confdefs.h <<_ACEOF
2453 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2454 _ACEOF
2455
2456 cat >>confdefs.h <<_ACEOF
2457 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2458 _ACEOF
2459
2460 cat >>confdefs.h <<_ACEOF
2461 #define PACKAGE_STRING "$PACKAGE_STRING"
2462 _ACEOF
2463
2464 cat >>confdefs.h <<_ACEOF
2465 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2466 _ACEOF
2467
2468 cat >>confdefs.h <<_ACEOF
2469 #define PACKAGE_URL "$PACKAGE_URL"
2470 _ACEOF
2471
2472
2473 # Let the site file select an alternate cache file if it wants to.
2474 # Prefer an explicitly selected file to automatically selected ones.
2475 ac_site_file1=NONE
2476 ac_site_file2=NONE
2477 if test -n "$CONFIG_SITE"; then
2478   ac_site_file1=$CONFIG_SITE
2479 elif test "x$prefix" != xNONE; then
2480   ac_site_file1=$prefix/share/config.site
2481   ac_site_file2=$prefix/etc/config.site
2482 else
2483   ac_site_file1=$ac_default_prefix/share/config.site
2484   ac_site_file2=$ac_default_prefix/etc/config.site
2485 fi
2486 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2487 do
2488   test "x$ac_site_file" = xNONE && continue
2489   if test -r "$ac_site_file"; then
2490     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2491 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2492     sed 's/^/| /' "$ac_site_file" >&5
2493     . "$ac_site_file"
2494   fi
2495 done
2496
2497 if test -r "$cache_file"; then
2498   # Some versions of bash will fail to source /dev/null (special
2499   # files actually), so we avoid doing that.
2500   if test -f "$cache_file"; then
2501     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2502 $as_echo "$as_me: loading cache $cache_file" >&6;}
2503     case $cache_file in
2504       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2505       *)                      . "./$cache_file";;
2506     esac
2507   fi
2508 else
2509   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2510 $as_echo "$as_me: creating cache $cache_file" >&6;}
2511   >$cache_file
2512 fi
2513
2514 # Check that the precious variables saved in the cache have kept the same
2515 # value.
2516 ac_cache_corrupted=false
2517 for ac_var in $ac_precious_vars; do
2518   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2519   eval ac_new_set=\$ac_env_${ac_var}_set
2520   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2521   eval ac_new_val=\$ac_env_${ac_var}_value
2522   case $ac_old_set,$ac_new_set in
2523     set,)
2524       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2525 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2526       ac_cache_corrupted=: ;;
2527     ,set)
2528       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2529 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2530       ac_cache_corrupted=: ;;
2531     ,);;
2532     *)
2533       if test "x$ac_old_val" != "x$ac_new_val"; then
2534         # differences in whitespace do not lead to failure.
2535         ac_old_val_w=`echo x $ac_old_val`
2536         ac_new_val_w=`echo x $ac_new_val`
2537         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2538           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2539 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2540           ac_cache_corrupted=:
2541         else
2542           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2543 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2544           eval $ac_var=\$ac_old_val
2545         fi
2546         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2547 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2548         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2549 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2550       fi;;
2551   esac
2552   # Pass precious variables to config.status.
2553   if test "$ac_new_set" = set; then
2554     case $ac_new_val in
2555     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2556     *) ac_arg=$ac_var=$ac_new_val ;;
2557     esac
2558     case " $ac_configure_args " in
2559       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2560       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2561     esac
2562   fi
2563 done
2564 if $ac_cache_corrupted; then
2565   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2567   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2568 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2569   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2570 fi
2571 ## -------------------- ##
2572 ## Main body of script. ##
2573 ## -------------------- ##
2574
2575 ac_ext=c
2576 ac_cpp='$CPP $CPPFLAGS'
2577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2580
2581
2582     ## version must conform to [0-9]+[.][0-9]+(alpha[0-9]+)?
2583
2584
2585 ac_aux_dir=
2586 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2587   for ac_t in install-sh install.sh shtool; do
2588     if test -f "$ac_dir/$ac_t"; then
2589       ac_aux_dir=$ac_dir
2590       ac_install_sh="$ac_aux_dir/$ac_t -c"
2591       break 2
2592     fi
2593   done
2594 done
2595 if test -z "$ac_aux_dir"; then
2596   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2597 fi
2598
2599 # These three variables are undocumented and unsupported,
2600 # and are intended to be withdrawn in a future Autoconf release.
2601 # They can cause serious problems if a builder's source tree is in a directory
2602 # whose full name contains unusual characters.
2603 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2604 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2605 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2606
2607
2608 # Make sure we can run config.sub.
2609 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2610   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2611
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2613 $as_echo_n "checking build system type... " >&6; }
2614 if test "${ac_cv_build+set}" = set; then :
2615   $as_echo_n "(cached) " >&6
2616 else
2617   ac_build_alias=$build_alias
2618 test "x$ac_build_alias" = x &&
2619   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2620 test "x$ac_build_alias" = x &&
2621   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2622 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2623   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2624
2625 fi
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2627 $as_echo "$ac_cv_build" >&6; }
2628 case $ac_cv_build in
2629 *-*-*) ;;
2630 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2631 esac
2632 build=$ac_cv_build
2633 ac_save_IFS=$IFS; IFS='-'
2634 set x $ac_cv_build
2635 shift
2636 build_cpu=$1
2637 build_vendor=$2
2638 shift; shift
2639 # Remember, the first character of IFS is used to create $*,
2640 # except with old shells:
2641 build_os=$*
2642 IFS=$ac_save_IFS
2643 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2644
2645
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2647 $as_echo_n "checking host system type... " >&6; }
2648 if test "${ac_cv_host+set}" = set; then :
2649   $as_echo_n "(cached) " >&6
2650 else
2651   if test "x$host_alias" = x; then
2652   ac_cv_host=$ac_cv_build
2653 else
2654   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2655     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2656 fi
2657
2658 fi
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2660 $as_echo "$ac_cv_host" >&6; }
2661 case $ac_cv_host in
2662 *-*-*) ;;
2663 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2664 esac
2665 host=$ac_cv_host
2666 ac_save_IFS=$IFS; IFS='-'
2667 set x $ac_cv_host
2668 shift
2669 host_cpu=$1
2670 host_vendor=$2
2671 shift; shift
2672 # Remember, the first character of IFS is used to create $*,
2673 # except with old shells:
2674 host_os=$*
2675 IFS=$ac_save_IFS
2676 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2677
2678
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2680 $as_echo_n "checking target system type... " >&6; }
2681 if test "${ac_cv_target+set}" = set; then :
2682   $as_echo_n "(cached) " >&6
2683 else
2684   if test "x$target_alias" = x; then
2685   ac_cv_target=$ac_cv_host
2686 else
2687   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2688     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2689 fi
2690
2691 fi
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2693 $as_echo "$ac_cv_target" >&6; }
2694 case $ac_cv_target in
2695 *-*-*) ;;
2696 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2697 esac
2698 target=$ac_cv_target
2699 ac_save_IFS=$IFS; IFS='-'
2700 set x $ac_cv_target
2701 shift
2702 target_cpu=$1
2703 target_vendor=$2
2704 shift; shift
2705 # Remember, the first character of IFS is used to create $*,
2706 # except with old shells:
2707 target_os=$*
2708 IFS=$ac_save_IFS
2709 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2710
2711
2712 # The aliases save the names the user supplied, while $host etc.
2713 # will get canonicalized.
2714 test -n "$target_alias" &&
2715   test "$program_prefix$program_suffix$program_transform_name" = \
2716     NONENONEs,x,x, &&
2717   program_prefix=${target_alias}-
2718
2719
2720
2721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking GC version numbers" >&5
2722 $as_echo_n "checking GC version numbers... " >&6; }
2723   GC_VERSION_MAJOR=`echo $PACKAGE_VERSION | sed 's/^\([0-9][0-9]*\)[.].*$/\1/g'`
2724   GC_VERSION_MINOR=`echo $PACKAGE_VERSION | sed 's/^[^.]*[.]\([0-9][0-9]*\).*$/\1/g'`
2725   GC_ALPHA_VERSION=`echo $PACKAGE_VERSION | sed 's/^[^.]*[.][0-9]*//'`
2726
2727   case "$GC_ALPHA_VERSION" in
2728     alpha*)
2729       GC_ALPHA_VERSION=`echo $GC_ALPHA_VERSION \
2730       | sed 's/alpha\([0-9][0-9]*\)/\1/'` ;;
2731     *)  GC_ALPHA_MAJOR='' ;;
2732   esac
2733
2734   if test :$GC_VERSION_MAJOR: = :: \
2735      -o   :$GC_VERSION_MINOR: = :: ;
2736   then
2737     { $as_echo "$as_me:${as_lineno-$LINENO}: result: invalid" >&5
2738 $as_echo "invalid" >&6; }
2739     as_fn_error "nonconforming PACKAGE_VERSION='$PACKAGE_VERSION'" "$LINENO" 5
2740   fi
2741
2742
2743 cat >>confdefs.h <<_ACEOF
2744 #define GC_VERSION_MAJOR $GC_VERSION_MAJOR
2745 _ACEOF
2746
2747
2748 cat >>confdefs.h <<_ACEOF
2749 #define GC_VERSION_MINOR $GC_VERSION_MINOR
2750 _ACEOF
2751
2752   if test :$GC_ALPHA_VERSION: != :: ; then
2753
2754 cat >>confdefs.h <<_ACEOF
2755 #define GC_ALPHA_VERSION $GC_ALPHA_VERSION
2756 _ACEOF
2757
2758   fi
2759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: major=$GC_VERSION_MAJOR minor=$GC_VERSION_MINOR \
2760 ${GC_ALPHA_VERSION:+alpha=}$GC_ALPHA_VERSION" >&5
2761 $as_echo "major=$GC_VERSION_MAJOR minor=$GC_VERSION_MINOR \
2762 ${GC_ALPHA_VERSION:+alpha=}$GC_ALPHA_VERSION" >&6; }
2763
2764 am__api_version='1.10'
2765
2766 # Find a good install program.  We prefer a C program (faster),
2767 # so one script is as good as another.  But avoid the broken or
2768 # incompatible versions:
2769 # SysV /etc/install, /usr/sbin/install
2770 # SunOS /usr/etc/install
2771 # IRIX /sbin/install
2772 # AIX /bin/install
2773 # AmigaOS /C/install, which installs bootblocks on floppy discs
2774 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2775 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2776 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2777 # OS/2's system install, which has a completely different semantic
2778 # ./install, which can be erroneously created by make from ./install.sh.
2779 # Reject install programs that cannot install multiple files.
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2781 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2782 if test -z "$INSTALL"; then
2783 if test "${ac_cv_path_install+set}" = set; then :
2784   $as_echo_n "(cached) " >&6
2785 else
2786   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2788 do
2789   IFS=$as_save_IFS
2790   test -z "$as_dir" && as_dir=.
2791     # Account for people who put trailing slashes in PATH elements.
2792 case $as_dir/ in #((
2793   ./ | .// | /[cC]/* | \
2794   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2795   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2796   /usr/ucb/* ) ;;
2797   *)
2798     # OSF1 and SCO ODT 3.0 have their own names for install.
2799     # Don't use installbsd from OSF since it installs stuff as root
2800     # by default.
2801     for ac_prog in ginstall scoinst install; do
2802       for ac_exec_ext in '' $ac_executable_extensions; do
2803         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2804           if test $ac_prog = install &&
2805             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2806             # AIX install.  It has an incompatible calling convention.
2807             :
2808           elif test $ac_prog = install &&
2809             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2810             # program-specific install script used by HP pwplus--don't use.
2811             :
2812           else
2813             rm -rf conftest.one conftest.two conftest.dir
2814             echo one > conftest.one
2815             echo two > conftest.two
2816             mkdir conftest.dir
2817             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2818               test -s conftest.one && test -s conftest.two &&
2819               test -s conftest.dir/conftest.one &&
2820               test -s conftest.dir/conftest.two
2821             then
2822               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2823               break 3
2824             fi
2825           fi
2826         fi
2827       done
2828     done
2829     ;;
2830 esac
2831
2832   done
2833 IFS=$as_save_IFS
2834
2835 rm -rf conftest.one conftest.two conftest.dir
2836
2837 fi
2838   if test "${ac_cv_path_install+set}" = set; then
2839     INSTALL=$ac_cv_path_install
2840   else
2841     # As a last resort, use the slow shell script.  Don't cache a
2842     # value for INSTALL within a source directory, because that will
2843     # break other packages using the cache if that directory is
2844     # removed, or if the value is a relative name.
2845     INSTALL=$ac_install_sh
2846   fi
2847 fi
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2849 $as_echo "$INSTALL" >&6; }
2850
2851 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2852 # It thinks the first close brace ends the variable substitution.
2853 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2854
2855 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2856
2857 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2858
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2860 $as_echo_n "checking whether build environment is sane... " >&6; }
2861 # Just in case
2862 sleep 1
2863 echo timestamp > conftest.file
2864 # Do `set' in a subshell so we don't clobber the current shell's
2865 # arguments.  Must try -L first in case configure is actually a
2866 # symlink; some systems play weird games with the mod time of symlinks
2867 # (eg FreeBSD returns the mod time of the symlink's containing
2868 # directory).
2869 if (
2870    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2871    if test "$*" = "X"; then
2872       # -L didn't work.
2873       set X `ls -t $srcdir/configure conftest.file`
2874    fi
2875    rm -f conftest.file
2876    if test "$*" != "X $srcdir/configure conftest.file" \
2877       && test "$*" != "X conftest.file $srcdir/configure"; then
2878
2879       # If neither matched, then we have a broken ls.  This can happen
2880       # if, for instance, CONFIG_SHELL is bash and it inherits a
2881       # broken ls alias from the environment.  This has actually
2882       # happened.  Such a system could not be considered "sane".
2883       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2884 alias in your environment" "$LINENO" 5
2885    fi
2886
2887    test "$2" = conftest.file
2888    )
2889 then
2890    # Ok.
2891    :
2892 else
2893    as_fn_error "newly created file is older than distributed files!
2894 Check your system clock" "$LINENO" 5
2895 fi
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2897 $as_echo "yes" >&6; }
2898 test "$program_prefix" != NONE &&
2899   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2900 # Use a double $ so make ignores it.
2901 test "$program_suffix" != NONE &&
2902   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2903 # Double any \ or $.
2904 # By default was `s,x,x', remove it if useless.
2905 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2906 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2907
2908 # expand $ac_aux_dir to an absolute path
2909 am_aux_dir=`cd $ac_aux_dir && pwd`
2910
2911 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2912 # Use eval to expand $SHELL
2913 if eval "$MISSING --run true"; then
2914   am_missing_run="$MISSING --run "
2915 else
2916   am_missing_run=
2917   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2918 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2919 fi
2920
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2922 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2923 if test -z "$MKDIR_P"; then
2924   if test "${ac_cv_path_mkdir+set}" = set; then :
2925   $as_echo_n "(cached) " >&6
2926 else
2927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2929 do
2930   IFS=$as_save_IFS
2931   test -z "$as_dir" && as_dir=.
2932     for ac_prog in mkdir gmkdir; do
2933          for ac_exec_ext in '' $ac_executable_extensions; do
2934            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2935            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2936              'mkdir (GNU coreutils) '* | \
2937              'mkdir (coreutils) '* | \
2938              'mkdir (fileutils) '4.1*)
2939                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2940                break 3;;
2941            esac
2942          done
2943        done
2944   done
2945 IFS=$as_save_IFS
2946
2947 fi
2948
2949   if test "${ac_cv_path_mkdir+set}" = set; then
2950     MKDIR_P="$ac_cv_path_mkdir -p"
2951   else
2952     # As a last resort, use the slow shell script.  Don't cache a
2953     # value for MKDIR_P within a source directory, because that will
2954     # break other packages using the cache if that directory is
2955     # removed, or if the value is a relative name.
2956     test -d ./--version && rmdir ./--version
2957     MKDIR_P="$ac_install_sh -d"
2958   fi
2959 fi
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2961 $as_echo "$MKDIR_P" >&6; }
2962
2963 mkdir_p="$MKDIR_P"
2964 case $mkdir_p in
2965   [\\/$]* | ?:[\\/]*) ;;
2966   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2967 esac
2968
2969 for ac_prog in gawk mawk nawk awk
2970 do
2971   # Extract the first word of "$ac_prog", so it can be a program name with args.
2972 set dummy $ac_prog; ac_word=$2
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if test "${ac_cv_prog_AWK+set}" = set; then :
2976   $as_echo_n "(cached) " >&6
2977 else
2978   if test -n "$AWK"; then
2979   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2980 else
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 for as_dir in $PATH
2983 do
2984   IFS=$as_save_IFS
2985   test -z "$as_dir" && as_dir=.
2986     for ac_exec_ext in '' $ac_executable_extensions; do
2987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988     ac_cv_prog_AWK="$ac_prog"
2989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990     break 2
2991   fi
2992 done
2993   done
2994 IFS=$as_save_IFS
2995
2996 fi
2997 fi
2998 AWK=$ac_cv_prog_AWK
2999 if test -n "$AWK"; then
3000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3001 $as_echo "$AWK" >&6; }
3002 else
3003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004 $as_echo "no" >&6; }
3005 fi
3006
3007
3008   test -n "$AWK" && break
3009 done
3010
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3012 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3013 set x ${MAKE-make}
3014 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3015 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3016   $as_echo_n "(cached) " >&6
3017 else
3018   cat >conftest.make <<\_ACEOF
3019 SHELL = /bin/sh
3020 all:
3021         @echo '@@@%%%=$(MAKE)=@@@%%%'
3022 _ACEOF
3023 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3024 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3025   *@@@%%%=?*=@@@%%%*)
3026     eval ac_cv_prog_make_${ac_make}_set=yes;;
3027   *)
3028     eval ac_cv_prog_make_${ac_make}_set=no;;
3029 esac
3030 rm -f conftest.make
3031 fi
3032 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3034 $as_echo "yes" >&6; }
3035   SET_MAKE=
3036 else
3037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3039   SET_MAKE="MAKE=${MAKE-make}"
3040 fi
3041
3042 rm -rf .tst 2>/dev/null
3043 mkdir .tst 2>/dev/null
3044 if test -d .tst; then
3045   am__leading_dot=.
3046 else
3047   am__leading_dot=_
3048 fi
3049 rmdir .tst 2>/dev/null
3050
3051 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3052   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3053   # is not polluted with repeated "-I."
3054   am__isrc=' -I$(srcdir)'
3055   # test to see if srcdir already configured
3056   if test -f $srcdir/config.status; then
3057     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3058   fi
3059 fi
3060
3061 # test whether we have cygpath
3062 if test -z "$CYGPATH_W"; then
3063   if (cygpath --version) >/dev/null 2>/dev/null; then
3064     CYGPATH_W='cygpath -w'
3065   else
3066     CYGPATH_W=echo
3067   fi
3068 fi
3069
3070
3071 # Define the identity of the package.
3072  PACKAGE='gc'
3073  VERSION='7.2alpha4'
3074
3075
3076 cat >>confdefs.h <<_ACEOF
3077 #define PACKAGE "$PACKAGE"
3078 _ACEOF
3079
3080
3081 cat >>confdefs.h <<_ACEOF
3082 #define VERSION "$VERSION"
3083 _ACEOF
3084
3085 # Some tools Automake needs.
3086
3087 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3088
3089
3090 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3091
3092
3093 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3094
3095
3096 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3097
3098
3099 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3100
3101 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
3102
3103 # Installed binaries are usually stripped using `strip' when the user
3104 # run `make install-strip'.  However `strip' might not be the right
3105 # tool to use in cross-compilation environments, therefore Automake
3106 # will honor the `STRIP' environment variable to overrule this program.
3107 if test "$cross_compiling" != no; then
3108   if test -n "$ac_tool_prefix"; then
3109   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3110 set dummy ${ac_tool_prefix}strip; ac_word=$2
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112 $as_echo_n "checking for $ac_word... " >&6; }
3113 if test "${ac_cv_prog_STRIP+set}" = set; then :
3114   $as_echo_n "(cached) " >&6
3115 else
3116   if test -n "$STRIP"; then
3117   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3118 else
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 for as_dir in $PATH
3121 do
3122   IFS=$as_save_IFS
3123   test -z "$as_dir" && as_dir=.
3124     for ac_exec_ext in '' $ac_executable_extensions; do
3125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3126     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128     break 2
3129   fi
3130 done
3131   done
3132 IFS=$as_save_IFS
3133
3134 fi
3135 fi
3136 STRIP=$ac_cv_prog_STRIP
3137 if test -n "$STRIP"; then
3138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3139 $as_echo "$STRIP" >&6; }
3140 else
3141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 $as_echo "no" >&6; }
3143 fi
3144
3145
3146 fi
3147 if test -z "$ac_cv_prog_STRIP"; then
3148   ac_ct_STRIP=$STRIP
3149   # Extract the first word of "strip", so it can be a program name with args.
3150 set dummy strip; ac_word=$2
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152 $as_echo_n "checking for $ac_word... " >&6; }
3153 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3154   $as_echo_n "(cached) " >&6
3155 else
3156   if test -n "$ac_ct_STRIP"; then
3157   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3158 else
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 for as_dir in $PATH
3161 do
3162   IFS=$as_save_IFS
3163   test -z "$as_dir" && as_dir=.
3164     for ac_exec_ext in '' $ac_executable_extensions; do
3165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3166     ac_cv_prog_ac_ct_STRIP="strip"
3167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168     break 2
3169   fi
3170 done
3171   done
3172 IFS=$as_save_IFS
3173
3174 fi
3175 fi
3176 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3177 if test -n "$ac_ct_STRIP"; then
3178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3179 $as_echo "$ac_ct_STRIP" >&6; }
3180 else
3181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182 $as_echo "no" >&6; }
3183 fi
3184
3185   if test "x$ac_ct_STRIP" = x; then
3186     STRIP=":"
3187   else
3188     case $cross_compiling:$ac_tool_warned in
3189 yes:)
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3192 ac_tool_warned=yes ;;
3193 esac
3194     STRIP=$ac_ct_STRIP
3195   fi
3196 else
3197   STRIP="$ac_cv_prog_STRIP"
3198 fi
3199
3200 fi
3201 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3202
3203 # We need awk for the "check" target.  The system "awk" is bad on
3204 # some platforms.
3205 # Always define AMTAR for backward compatibility.
3206
3207 AMTAR=${AMTAR-"${am_missing_run}tar"}
3208
3209 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3210
3211
3212
3213
3214
3215 ac_config_headers="$ac_config_headers include/private/config.h"
3216
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3218 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3219     # Check whether --enable-maintainer-mode was given.
3220 if test "${enable_maintainer_mode+set}" = set; then :
3221   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3222 else
3223   USE_MAINTAINER_MODE=no
3224 fi
3225
3226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3227 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3228    if test $USE_MAINTAINER_MODE = yes; then
3229   MAINTAINER_MODE_TRUE=
3230   MAINTAINER_MODE_FALSE='#'
3231 else
3232   MAINTAINER_MODE_TRUE='#'
3233   MAINTAINER_MODE_FALSE=
3234 fi
3235
3236   MAINT=$MAINTAINER_MODE_TRUE
3237
3238
3239
3240
3241
3242
3243 DEPDIR="${am__leading_dot}deps"
3244
3245 ac_config_commands="$ac_config_commands depfiles"
3246
3247
3248 am_make=${MAKE-make}
3249 cat > confinc << 'END'
3250 am__doit:
3251         @echo done
3252 .PHONY: am__doit
3253 END
3254 # If we don't find an include directive, just comment out the code.
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3256 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3257 am__include="#"
3258 am__quote=
3259 _am_result=none
3260 # First try GNU make style include.
3261 echo "include confinc" > confmf
3262 # We grep out `Entering directory' and `Leaving directory'
3263 # messages which can occur if `w' ends up in MAKEFLAGS.
3264 # In particular we don't look at `^make:' because GNU make might
3265 # be invoked under some other name (usually "gmake"), in which
3266 # case it prints its new name instead of `make'.
3267 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3268    am__include=include
3269    am__quote=
3270    _am_result=GNU
3271 fi
3272 # Now try BSD make style include.
3273 if test "$am__include" = "#"; then
3274    echo '.include "confinc"' > confmf
3275    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3276       am__include=.include
3277       am__quote="\""
3278       _am_result=BSD
3279    fi
3280 fi
3281
3282
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3284 $as_echo "$_am_result" >&6; }
3285 rm -f confinc confmf
3286
3287 # Check whether --enable-dependency-tracking was given.
3288 if test "${enable_dependency_tracking+set}" = set; then :
3289   enableval=$enable_dependency_tracking;
3290 fi
3291
3292 if test "x$enable_dependency_tracking" != xno; then
3293   am_depcomp="$ac_aux_dir/depcomp"
3294   AMDEPBACKSLASH='\'
3295 fi
3296  if test "x$enable_dependency_tracking" != xno; then
3297   AMDEP_TRUE=
3298   AMDEP_FALSE='#'
3299 else
3300   AMDEP_TRUE='#'
3301   AMDEP_FALSE=
3302 fi
3303
3304
3305 ac_ext=c
3306 ac_cpp='$CPP $CPPFLAGS'
3307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3310 if test -n "$ac_tool_prefix"; then
3311   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3312 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314 $as_echo_n "checking for $ac_word... " >&6; }
3315 if test "${ac_cv_prog_CC+set}" = set; then :
3316   $as_echo_n "(cached) " >&6
3317 else
3318   if test -n "$CC"; then
3319   ac_cv_prog_CC="$CC" # Let the user override the test.
3320 else
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH
3323 do
3324   IFS=$as_save_IFS
3325   test -z "$as_dir" && as_dir=.
3326     for ac_exec_ext in '' $ac_executable_extensions; do
3327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3328     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330     break 2
3331   fi
3332 done
3333   done
3334 IFS=$as_save_IFS
3335
3336 fi
3337 fi
3338 CC=$ac_cv_prog_CC
3339 if test -n "$CC"; then
3340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3341 $as_echo "$CC" >&6; }
3342 else
3343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3345 fi
3346
3347
3348 fi
3349 if test -z "$ac_cv_prog_CC"; then
3350   ac_ct_CC=$CC
3351   # Extract the first word of "gcc", so it can be a program name with args.
3352 set dummy gcc; ac_word=$2
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 $as_echo_n "checking for $ac_word... " >&6; }
3355 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3356   $as_echo_n "(cached) " >&6
3357 else
3358   if test -n "$ac_ct_CC"; then
3359   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3360 else
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3363 do
3364   IFS=$as_save_IFS
3365   test -z "$as_dir" && as_dir=.
3366     for ac_exec_ext in '' $ac_executable_extensions; do
3367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3368     ac_cv_prog_ac_ct_CC="gcc"
3369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3370     break 2
3371   fi
3372 done
3373   done
3374 IFS=$as_save_IFS
3375
3376 fi
3377 fi
3378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3379 if test -n "$ac_ct_CC"; then
3380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3381 $as_echo "$ac_ct_CC" >&6; }
3382 else
3383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3385 fi
3386
3387   if test "x$ac_ct_CC" = x; then
3388     CC=""
3389   else
3390     case $cross_compiling:$ac_tool_warned in
3391 yes:)
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3394 ac_tool_warned=yes ;;
3395 esac
3396     CC=$ac_ct_CC
3397   fi
3398 else
3399   CC="$ac_cv_prog_CC"
3400 fi
3401
3402 if test -z "$CC"; then
3403           if test -n "$ac_tool_prefix"; then
3404     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3405 set dummy ${ac_tool_prefix}cc; ac_word=$2
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407 $as_echo_n "checking for $ac_word... " >&6; }
3408 if test "${ac_cv_prog_CC+set}" = set; then :
3409   $as_echo_n "(cached) " >&6
3410 else
3411   if test -n "$CC"; then
3412   ac_cv_prog_CC="$CC" # Let the user override the test.
3413 else
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 for as_dir in $PATH
3416 do
3417   IFS=$as_save_IFS
3418   test -z "$as_dir" && as_dir=.
3419     for ac_exec_ext in '' $ac_executable_extensions; do
3420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3421     ac_cv_prog_CC="${ac_tool_prefix}cc"
3422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3423     break 2
3424   fi
3425 done
3426   done
3427 IFS=$as_save_IFS
3428
3429 fi
3430 fi
3431 CC=$ac_cv_prog_CC
3432 if test -n "$CC"; then
3433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3434 $as_echo "$CC" >&6; }
3435 else
3436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3438 fi
3439
3440
3441   fi
3442 fi
3443 if test -z "$CC"; then
3444   # Extract the first word of "cc", so it can be a program name with args.
3445 set dummy cc; ac_word=$2
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3447 $as_echo_n "checking for $ac_word... " >&6; }
3448 if test "${ac_cv_prog_CC+set}" = set; then :
3449   $as_echo_n "(cached) " >&6
3450 else
3451   if test -n "$CC"; then
3452   ac_cv_prog_CC="$CC" # Let the user override the test.
3453 else
3454   ac_prog_rejected=no
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3457 do
3458   IFS=$as_save_IFS
3459   test -z "$as_dir" && as_dir=.
3460     for ac_exec_ext in '' $ac_executable_extensions; do
3461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3462     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3463        ac_prog_rejected=yes
3464        continue
3465      fi
3466     ac_cv_prog_CC="cc"
3467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3468     break 2
3469   fi
3470 done
3471   done
3472 IFS=$as_save_IFS
3473
3474 if test $ac_prog_rejected = yes; then
3475   # We found a bogon in the path, so make sure we never use it.
3476   set dummy $ac_cv_prog_CC
3477   shift
3478   if test $# != 0; then
3479     # We chose a different compiler from the bogus one.
3480     # However, it has the same basename, so the bogon will be chosen
3481     # first if we set CC to just the basename; use the full file name.
3482     shift
3483     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3484   fi
3485 fi
3486 fi
3487 fi
3488 CC=$ac_cv_prog_CC
3489 if test -n "$CC"; then
3490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3491 $as_echo "$CC" >&6; }
3492 else
3493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 $as_echo "no" >&6; }
3495 fi
3496
3497
3498 fi
3499 if test -z "$CC"; then
3500   if test -n "$ac_tool_prefix"; then
3501   for ac_prog in cl.exe
3502   do
3503     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3504 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if test "${ac_cv_prog_CC+set}" = set; then :
3508   $as_echo_n "(cached) " >&6
3509 else
3510   if test -n "$CC"; then
3511   ac_cv_prog_CC="$CC" # Let the user override the test.
3512 else
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 for as_dir in $PATH
3515 do
3516   IFS=$as_save_IFS
3517   test -z "$as_dir" && as_dir=.
3518     for ac_exec_ext in '' $ac_executable_extensions; do
3519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3520     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3522     break 2
3523   fi
3524 done
3525   done
3526 IFS=$as_save_IFS
3527
3528 fi
3529 fi
3530 CC=$ac_cv_prog_CC
3531 if test -n "$CC"; then
3532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3533 $as_echo "$CC" >&6; }
3534 else
3535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3537 fi
3538
3539
3540     test -n "$CC" && break
3541   done
3542 fi
3543 if test -z "$CC"; then
3544   ac_ct_CC=$CC
3545   for ac_prog in cl.exe
3546 do
3547   # Extract the first word of "$ac_prog", so it can be a program name with args.
3548 set dummy $ac_prog; ac_word=$2
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550 $as_echo_n "checking for $ac_word... " >&6; }
3551 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3552   $as_echo_n "(cached) " >&6
3553 else
3554   if test -n "$ac_ct_CC"; then
3555   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3556 else
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH
3559 do
3560   IFS=$as_save_IFS
3561   test -z "$as_dir" && as_dir=.
3562     for ac_exec_ext in '' $ac_executable_extensions; do
3563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3564     ac_cv_prog_ac_ct_CC="$ac_prog"
3565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566     break 2
3567   fi
3568 done
3569   done
3570 IFS=$as_save_IFS
3571
3572 fi
3573 fi
3574 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3575 if test -n "$ac_ct_CC"; then
3576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3577 $as_echo "$ac_ct_CC" >&6; }
3578 else
3579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3581 fi
3582
3583
3584   test -n "$ac_ct_CC" && break
3585 done
3586
3587   if test "x$ac_ct_CC" = x; then
3588     CC=""
3589   else
3590     case $cross_compiling:$ac_tool_warned in
3591 yes:)
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3594 ac_tool_warned=yes ;;
3595 esac
3596     CC=$ac_ct_CC
3597   fi
3598 fi
3599
3600 fi
3601
3602
3603 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3605 as_fn_error "no acceptable C compiler found in \$PATH
3606 See \`config.log' for more details." "$LINENO" 5; }
3607
3608 # Provide some information about the compiler.
3609 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3610 set X $ac_compile
3611 ac_compiler=$2
3612 for ac_option in --version -v -V -qversion; do
3613   { { ac_try="$ac_compiler $ac_option >&5"
3614 case "(($ac_try" in
3615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616   *) ac_try_echo=$ac_try;;
3617 esac
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 $as_echo "$ac_try_echo"; } >&5
3620   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3621   ac_status=$?
3622   if test -s conftest.err; then
3623     sed '10a\
3624 ... rest of stderr output deleted ...
3625          10q' conftest.err >conftest.er1
3626     cat conftest.er1 >&5
3627     rm -f conftest.er1 conftest.err
3628   fi
3629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630   test $ac_status = 0; }
3631 done
3632
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h.  */
3635 #include <stdio.h>
3636 int
3637 main ()
3638 {
3639 FILE *f = fopen ("conftest.out", "w");
3640  return ferror (f) || fclose (f) != 0;
3641
3642   ;
3643   return 0;
3644 }
3645 _ACEOF
3646 ac_clean_files_save=$ac_clean_files
3647 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3648 # Try to create an executable without -o first, disregard a.out.
3649 # It will help us diagnose broken compilers, and finding out an intuition
3650 # of exeext.
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3652 $as_echo_n "checking for C compiler default output file name... " >&6; }
3653 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3654
3655 # The possible output files:
3656 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3657
3658 ac_rmfiles=
3659 for ac_file in $ac_files
3660 do
3661   case $ac_file in
3662     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3663     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3664   esac
3665 done
3666 rm -f $ac_rmfiles
3667
3668 if { { ac_try="$ac_link_default"
3669 case "(($ac_try" in
3670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671   *) ac_try_echo=$ac_try;;
3672 esac
3673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3674 $as_echo "$ac_try_echo"; } >&5
3675   (eval "$ac_link_default") 2>&5
3676   ac_status=$?
3677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3678   test $ac_status = 0; }; then :
3679   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3680 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3681 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3682 # so that the user can short-circuit this test for compilers unknown to
3683 # Autoconf.
3684 for ac_file in $ac_files ''
3685 do
3686   test -f "$ac_file" || continue
3687   case $ac_file in
3688     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3689         ;;
3690     [ab].out )
3691         # We found the default executable, but exeext='' is most
3692         # certainly right.
3693         break;;
3694     *.* )
3695         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3696         then :; else
3697            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3698         fi
3699         # We set ac_cv_exeext here because the later test for it is not
3700         # safe: cross compilers may not add the suffix if given an `-o'
3701         # argument, so we may need to know it at that point already.
3702         # Even if this section looks crufty: it has the advantage of
3703         # actually working.
3704         break;;
3705     * )
3706         break;;
3707   esac
3708 done
3709 test "$ac_cv_exeext" = no && ac_cv_exeext=
3710
3711 else
3712   ac_file=''
3713 fi
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3715 $as_echo "$ac_file" >&6; }
3716 if test -z "$ac_file"; then :
3717   $as_echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3719
3720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3722 { as_fn_set_status 77
3723 as_fn_error "C compiler cannot create executables
3724 See \`config.log' for more details." "$LINENO" 5; }; }
3725 fi
3726 ac_exeext=$ac_cv_exeext
3727
3728 # Check that the compiler produces executables we can run.  If not, either
3729 # the compiler is broken, or we cross compile.
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3731 $as_echo_n "checking whether the C compiler works... " >&6; }
3732 # If not cross compiling, check that we can run a simple program.
3733 if test "$cross_compiling" != yes; then
3734   if { ac_try='./$ac_file'
3735   { { case "(($ac_try" in
3736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737   *) ac_try_echo=$ac_try;;
3738 esac
3739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3740 $as_echo "$ac_try_echo"; } >&5
3741   (eval "$ac_try") 2>&5
3742   ac_status=$?
3743   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3744   test $ac_status = 0; }; }; then
3745     cross_compiling=no
3746   else
3747     if test "$cross_compiling" = maybe; then
3748         cross_compiling=yes
3749     else
3750         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3752 as_fn_error "cannot run C compiled programs.
3753 If you meant to cross compile, use \`--host'.
3754 See \`config.log' for more details." "$LINENO" 5; }
3755     fi
3756   fi
3757 fi
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3759 $as_echo "yes" >&6; }
3760
3761 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3762 ac_clean_files=$ac_clean_files_save
3763 # Check that the compiler produces executables we can run.  If not, either
3764 # the compiler is broken, or we cross compile.
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3766 $as_echo_n "checking whether we are cross compiling... " >&6; }
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3768 $as_echo "$cross_compiling" >&6; }
3769
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3771 $as_echo_n "checking for suffix of executables... " >&6; }
3772 if { { ac_try="$ac_link"
3773 case "(($ac_try" in
3774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775   *) ac_try_echo=$ac_try;;
3776 esac
3777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3778 $as_echo "$ac_try_echo"; } >&5
3779   (eval "$ac_link") 2>&5
3780   ac_status=$?
3781   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3782   test $ac_status = 0; }; then :
3783   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3784 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3785 # work properly (i.e., refer to `conftest.exe'), while it won't with
3786 # `rm'.
3787 for ac_file in conftest.exe conftest conftest.*; do
3788   test -f "$ac_file" || continue
3789   case $ac_file in
3790     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3791     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3792           break;;
3793     * ) break;;
3794   esac
3795 done
3796 else
3797   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3799 as_fn_error "cannot compute suffix of executables: cannot compile and link
3800 See \`config.log' for more details." "$LINENO" 5; }
3801 fi
3802 rm -f conftest$ac_cv_exeext
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3804 $as_echo "$ac_cv_exeext" >&6; }
3805
3806 rm -f conftest.$ac_ext
3807 EXEEXT=$ac_cv_exeext
3808 ac_exeext=$EXEEXT
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3810 $as_echo_n "checking for suffix of object files... " >&6; }
3811 if test "${ac_cv_objext+set}" = set; then :
3812   $as_echo_n "(cached) " >&6
3813 else
3814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h.  */
3816
3817 int
3818 main ()
3819 {
3820
3821   ;
3822   return 0;
3823 }
3824 _ACEOF
3825 rm -f conftest.o conftest.obj
3826 if { { ac_try="$ac_compile"
3827 case "(($ac_try" in
3828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829   *) ac_try_echo=$ac_try;;
3830 esac
3831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3832 $as_echo "$ac_try_echo"; } >&5
3833   (eval "$ac_compile") 2>&5
3834   ac_status=$?
3835   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3836   test $ac_status = 0; }; then :
3837   for ac_file in conftest.o conftest.obj conftest.*; do
3838   test -f "$ac_file" || continue;
3839   case $ac_file in
3840     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3841     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3842        break;;
3843   esac
3844 done
3845 else
3846   $as_echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3848
3849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3851 as_fn_error "cannot compute suffix of object files: cannot compile
3852 See \`config.log' for more details." "$LINENO" 5; }
3853 fi
3854 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3855 fi
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3857 $as_echo "$ac_cv_objext" >&6; }
3858 OBJEXT=$ac_cv_objext
3859 ac_objext=$OBJEXT
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3861 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3862 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3863   $as_echo_n "(cached) " >&6
3864 else
3865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h.  */
3867
3868 int
3869 main ()
3870 {
3871 #ifndef __GNUC__
3872        choke me
3873 #endif
3874
3875   ;
3876   return 0;
3877 }
3878 _ACEOF
3879 if ac_fn_c_try_compile "$LINENO"; then :
3880   ac_compiler_gnu=yes
3881 else
3882   ac_compiler_gnu=no
3883 fi
3884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3885 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3886
3887 fi
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3889 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3890 if test $ac_compiler_gnu = yes; then
3891   GCC=yes
3892 else
3893   GCC=
3894 fi
3895 ac_test_CFLAGS=${CFLAGS+set}
3896 ac_save_CFLAGS=$CFLAGS
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3898 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3899 if test "${ac_cv_prog_cc_g+set}" = set; then :
3900   $as_echo_n "(cached) " >&6
3901 else
3902   ac_save_c_werror_flag=$ac_c_werror_flag
3903    ac_c_werror_flag=yes
3904    ac_cv_prog_cc_g=no
3905    CFLAGS="-g"
3906    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h.  */
3908
3909 int
3910 main ()
3911 {
3912
3913   ;
3914   return 0;
3915 }
3916 _ACEOF
3917 if ac_fn_c_try_compile "$LINENO"; then :
3918   ac_cv_prog_cc_g=yes
3919 else
3920   CFLAGS=""
3921       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h.  */
3923
3924 int
3925 main ()
3926 {
3927
3928   ;
3929   return 0;
3930 }
3931 _ACEOF
3932 if ac_fn_c_try_compile "$LINENO"; then :
3933
3934 else
3935   ac_c_werror_flag=$ac_save_c_werror_flag
3936          CFLAGS="-g"
3937          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938 /* end confdefs.h.  */
3939
3940 int
3941 main ()
3942 {
3943
3944   ;
3945   return 0;
3946 }
3947 _ACEOF
3948 if ac_fn_c_try_compile "$LINENO"; then :
3949   ac_cv_prog_cc_g=yes
3950 fi
3951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3952 fi
3953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3954 fi
3955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3956    ac_c_werror_flag=$ac_save_c_werror_flag
3957 fi
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3959 $as_echo "$ac_cv_prog_cc_g" >&6; }
3960 if test "$ac_test_CFLAGS" = set; then
3961   CFLAGS=$ac_save_CFLAGS
3962 elif test $ac_cv_prog_cc_g = yes; then
3963   if test "$GCC" = yes; then
3964     CFLAGS="-g -O2"
3965   else
3966     CFLAGS="-g"
3967   fi
3968 else
3969   if test "$GCC" = yes; then
3970     CFLAGS="-O2"
3971   else
3972     CFLAGS=
3973   fi
3974 fi
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3976 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3977 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3978   $as_echo_n "(cached) " >&6
3979 else
3980   ac_cv_prog_cc_c89=no
3981 ac_save_CC=$CC
3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h.  */
3984 #include <stdarg.h>
3985 #include <stdio.h>
3986 #include <sys/types.h>
3987 #include <sys/stat.h>
3988 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3989 struct buf { int x; };
3990 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3991 static char *e (p, i)
3992      char **p;
3993      int i;
3994 {
3995   return p[i];
3996 }
3997 static char *f (char * (*g) (char **, int), char **p, ...)
3998 {
3999   char *s;
4000   va_list v;
4001   va_start (v,p);
4002   s = g (p, va_arg (v,int));
4003   va_end (v);
4004   return s;
4005 }
4006
4007 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4008    function prototypes and stuff, but not '\xHH' hex character constants.
4009    These don't provoke an error unfortunately, instead are silently treated
4010    as 'x'.  The following induces an error, until -std is added to get
4011    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4012    array size at least.  It's necessary to write '\x00'==0 to get something
4013    that's true only with -std.  */
4014 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4015
4016 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4017    inside strings and character constants.  */
4018 #define FOO(x) 'x'
4019 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4020
4021 int test (int i, double x);
4022 struct s1 {int (*f) (int a);};
4023 struct s2 {int (*f) (double a);};
4024 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4025 int argc;
4026 char **argv;
4027 int
4028 main ()
4029 {
4030 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4031   ;
4032   return 0;
4033 }
4034 _ACEOF
4035 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4036         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4037 do
4038   CC="$ac_save_CC $ac_arg"
4039   if ac_fn_c_try_compile "$LINENO"; then :
4040   ac_cv_prog_cc_c89=$ac_arg
4041 fi
4042 rm -f core conftest.err conftest.$ac_objext
4043   test "x$ac_cv_prog_cc_c89" != "xno" && break
4044 done
4045 rm -f conftest.$ac_ext
4046 CC=$ac_save_CC
4047
4048 fi
4049 # AC_CACHE_VAL
4050 case "x$ac_cv_prog_cc_c89" in
4051   x)
4052     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4053 $as_echo "none needed" >&6; } ;;
4054   xno)
4055     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4056 $as_echo "unsupported" >&6; } ;;
4057   *)
4058     CC="$CC $ac_cv_prog_cc_c89"
4059     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4060 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4061 esac
4062 if test "x$ac_cv_prog_cc_c89" != xno; then :
4063
4064 fi
4065
4066 ac_ext=c
4067 ac_cpp='$CPP $CPPFLAGS'
4068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4071
4072 depcc="$CC"   am_compiler_list=
4073
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4075 $as_echo_n "checking dependency style of $depcc... " >&6; }
4076 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4077   $as_echo_n "(cached) " >&6
4078 else
4079   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4080   # We make a subdir and do the tests there.  Otherwise we can end up
4081   # making bogus files that we don't know about and never remove.  For
4082   # instance it was reported that on HP-UX the gcc test will end up
4083   # making a dummy file named `D' -- because `-MD' means `put the output
4084   # in D'.
4085   mkdir conftest.dir
4086   # Copy depcomp to subdir because otherwise we won't find it if we're
4087   # using a relative directory.
4088   cp "$am_depcomp" conftest.dir
4089   cd conftest.dir
4090   # We will build objects and dependencies in a subdirectory because
4091   # it helps to detect inapplicable dependency modes.  For instance
4092   # both Tru64's cc and ICC support -MD to output dependencies as a
4093   # side effect of compilation, but ICC will put the dependencies in
4094   # the current directory while Tru64 will put them in the object
4095   # directory.
4096   mkdir sub
4097
4098   am_cv_CC_dependencies_compiler_type=none
4099   if test "$am_compiler_list" = ""; then
4100      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4101   fi
4102   for depmode in $am_compiler_list; do
4103     # Setup a source with many dependencies, because some compilers
4104     # like to wrap large dependency lists on column 80 (with \), and
4105     # we should not choose a depcomp mode which is confused by this.
4106     #
4107     # We need to recreate these files for each test, as the compiler may
4108     # overwrite some of them when testing with obscure command lines.
4109     # This happens at least with the AIX C compiler.
4110     : > sub/conftest.c
4111     for i in 1 2 3 4 5 6; do
4112       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4113       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4114       # Solaris 8's {/usr,}/bin/sh.
4115       touch sub/conftst$i.h
4116     done
4117     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4118
4119     case $depmode in
4120     nosideeffect)
4121       # after this tag, mechanisms are not by side-effect, so they'll
4122       # only be used when explicitly requested
4123       if test "x$enable_dependency_tracking" = xyes; then
4124         continue
4125       else
4126         break
4127       fi
4128       ;;
4129     none) break ;;
4130     esac
4131     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4132     # mode.  It turns out that the SunPro C++ compiler does not properly
4133     # handle `-M -o', and we need to detect this.
4134     if depmode=$depmode \
4135        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4136        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4137        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4138          >/dev/null 2>conftest.err &&
4139        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4140        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4141        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4142        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4143       # icc doesn't choke on unknown options, it will just issue warnings
4144       # or remarks (even with -Werror).  So we grep stderr for any message
4145       # that says an option was ignored or not supported.
4146       # When given -MP, icc 7.0 and 7.1 complain thusly:
4147       #   icc: Command line warning: ignoring option '-M'; no argument required
4148       # The diagnosis changed in icc 8.0:
4149       #   icc: Command line remark: option '-MP' not supported
4150       if (grep 'ignoring option' conftest.err ||
4151           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4152         am_cv_CC_dependencies_compiler_type=$depmode
4153         break
4154       fi
4155     fi
4156   done
4157
4158   cd ..
4159   rm -rf conftest.dir
4160 else
4161   am_cv_CC_dependencies_compiler_type=none
4162 fi
4163
4164 fi
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4166 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4167 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4168
4169  if
4170   test "x$enable_dependency_tracking" != xno \
4171   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4172   am__fastdepCC_TRUE=
4173   am__fastdepCC_FALSE='#'
4174 else
4175   am__fastdepCC_TRUE='#'
4176   am__fastdepCC_FALSE=
4177 fi
4178
4179
4180 if test "x$CC" != xcc; then
4181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4182 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4183 else
4184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4185 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4186 fi
4187 set dummy $CC; ac_cc=`$as_echo "$2" |
4188                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4189 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4190   $as_echo_n "(cached) " >&6
4191 else
4192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h.  */
4194
4195 int
4196 main ()
4197 {
4198
4199   ;
4200   return 0;
4201 }
4202 _ACEOF
4203 # Make sure it works both with $CC and with simple cc.
4204 # We do the test twice because some compilers refuse to overwrite an
4205 # existing .o file with -o, though they will create one.
4206 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4207 rm -f conftest2.*
4208 if { { case "(($ac_try" in
4209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210   *) ac_try_echo=$ac_try;;
4211 esac
4212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4213 $as_echo "$ac_try_echo"; } >&5
4214   (eval "$ac_try") 2>&5
4215   ac_status=$?
4216   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4217   test $ac_status = 0; } &&
4218    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220   *) ac_try_echo=$ac_try;;
4221 esac
4222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4223 $as_echo "$ac_try_echo"; } >&5
4224   (eval "$ac_try") 2>&5
4225   ac_status=$?
4226   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4227   test $ac_status = 0; };
4228 then
4229   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4230   if test "x$CC" != xcc; then
4231     # Test first that cc exists at all.
4232     if { ac_try='cc -c conftest.$ac_ext >&5'
4233   { { case "(($ac_try" in
4234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235   *) ac_try_echo=$ac_try;;
4236 esac
4237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4238 $as_echo "$ac_try_echo"; } >&5
4239   (eval "$ac_try") 2>&5
4240   ac_status=$?
4241   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4242   test $ac_status = 0; }; }; then
4243       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4244       rm -f conftest2.*
4245       if { { case "(($ac_try" in
4246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247   *) ac_try_echo=$ac_try;;
4248 esac
4249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4250 $as_echo "$ac_try_echo"; } >&5
4251   (eval "$ac_try") 2>&5
4252   ac_status=$?
4253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4254   test $ac_status = 0; } &&
4255          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257   *) ac_try_echo=$ac_try;;
4258 esac
4259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4260 $as_echo "$ac_try_echo"; } >&5
4261   (eval "$ac_try") 2>&5
4262   ac_status=$?
4263   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4264   test $ac_status = 0; };
4265       then
4266         # cc works too.
4267         :
4268       else
4269         # cc exists but doesn't like -o.
4270         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4271       fi
4272     fi
4273   fi
4274 else
4275   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4276 fi
4277 rm -f core conftest*
4278
4279 fi
4280 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4282 $as_echo "yes" >&6; }
4283 else
4284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4285 $as_echo "no" >&6; }
4286
4287 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4288
4289 fi
4290
4291 # FIXME: we rely on the cache variable name because
4292 # there is no other way.
4293 set dummy $CC
4294 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4295 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4296 if test "$am_t" != yes; then
4297    # Losing compiler, so override with the script.
4298    # FIXME: It is wrong to rewrite CC.
4299    # But if we don't then we get into trouble of one sort or another.
4300    # A longer-term fix would be to have automake use am__CC in this case,
4301    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4302    CC="$am_aux_dir/compile $CC"
4303 fi
4304
4305
4306 ac_ext=cpp
4307 ac_cpp='$CXXCPP $CPPFLAGS'
4308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4311 if test -z "$CXX"; then
4312   if test -n "$CCC"; then
4313     CXX=$CCC
4314   else
4315     if test -n "$ac_tool_prefix"; then
4316   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4317   do
4318     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4319 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321 $as_echo_n "checking for $ac_word... " >&6; }
4322 if test "${ac_cv_prog_CXX+set}" = set; then :
4323   $as_echo_n "(cached) " >&6
4324 else
4325   if test -n "$CXX"; then
4326   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4327 else
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 for as_dir in $PATH
4330 do
4331   IFS=$as_save_IFS
4332   test -z "$as_dir" && as_dir=.
4333     for ac_exec_ext in '' $ac_executable_extensions; do
4334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4335     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4337     break 2
4338   fi
4339 done
4340   done
4341 IFS=$as_save_IFS
4342
4343 fi
4344 fi
4345 CXX=$ac_cv_prog_CXX
4346 if test -n "$CXX"; then
4347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4348 $as_echo "$CXX" >&6; }
4349 else
4350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351 $as_echo "no" >&6; }
4352 fi
4353
4354
4355     test -n "$CXX" && break
4356   done
4357 fi
4358 if test -z "$CXX"; then
4359   ac_ct_CXX=$CXX
4360   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4361 do
4362   # Extract the first word of "$ac_prog", so it can be a program name with args.
4363 set dummy $ac_prog; ac_word=$2
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4367   $as_echo_n "(cached) " >&6
4368 else
4369   if test -n "$ac_ct_CXX"; then
4370   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4371 else
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH
4374 do
4375   IFS=$as_save_IFS
4376   test -z "$as_dir" && as_dir=.
4377     for ac_exec_ext in '' $ac_executable_extensions; do
4378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4379     ac_cv_prog_ac_ct_CXX="$ac_prog"
4380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4381     break 2
4382   fi
4383 done
4384   done
4385 IFS=$as_save_IFS
4386
4387 fi
4388 fi
4389 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4390 if test -n "$ac_ct_CXX"; then
4391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4392 $as_echo "$ac_ct_CXX" >&6; }
4393 else
4394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 $as_echo "no" >&6; }
4396 fi
4397
4398
4399   test -n "$ac_ct_CXX" && break
4400 done
4401
4402   if test "x$ac_ct_CXX" = x; then
4403     CXX="g++"
4404   else
4405     case $cross_compiling:$ac_tool_warned in
4406 yes:)
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4409 ac_tool_warned=yes ;;
4410 esac
4411     CXX=$ac_ct_CXX
4412   fi
4413 fi
4414
4415   fi
4416 fi
4417 # Provide some information about the compiler.
4418 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4419 set X $ac_compile
4420 ac_compiler=$2
4421 for ac_option in --version -v -V -qversion; do
4422   { { ac_try="$ac_compiler $ac_option >&5"
4423 case "(($ac_try" in
4424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4425   *) ac_try_echo=$ac_try;;
4426 esac
4427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4428 $as_echo "$ac_try_echo"; } >&5
4429   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4430   ac_status=$?
4431   if test -s conftest.err; then
4432     sed '10a\
4433 ... rest of stderr output deleted ...
4434          10q' conftest.err >conftest.er1
4435     cat conftest.er1 >&5
4436     rm -f conftest.er1 conftest.err
4437   fi
4438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4439   test $ac_status = 0; }
4440 done
4441
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4443 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4444 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4445   $as_echo_n "(cached) " >&6
4446 else
4447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h.  */
4449
4450 int
4451 main ()
4452 {
4453 #ifndef __GNUC__
4454        choke me
4455 #endif
4456
4457   ;
4458   return 0;
4459 }
4460 _ACEOF
4461 if ac_fn_cxx_try_compile "$LINENO"; then :
4462   ac_compiler_gnu=yes
4463 else
4464   ac_compiler_gnu=no
4465 fi
4466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4467 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4468
4469 fi
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4471 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4472 if test $ac_compiler_gnu = yes; then
4473   GXX=yes
4474 else
4475   GXX=
4476 fi
4477 ac_test_CXXFLAGS=${CXXFLAGS+set}
4478 ac_save_CXXFLAGS=$CXXFLAGS
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4480 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4481 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4482   $as_echo_n "(cached) " >&6
4483 else
4484   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4485    ac_cxx_werror_flag=yes
4486    ac_cv_prog_cxx_g=no
4487    CXXFLAGS="-g"
4488    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h.  */
4490
4491 int
4492 main ()
4493 {
4494
4495   ;
4496   return 0;
4497 }
4498 _ACEOF
4499 if ac_fn_cxx_try_compile "$LINENO"; then :
4500   ac_cv_prog_cxx_g=yes
4501 else
4502   CXXFLAGS=""
4503       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h.  */
4505
4506 int
4507 main ()
4508 {
4509
4510   ;
4511   return 0;
4512 }
4513 _ACEOF
4514 if ac_fn_cxx_try_compile "$LINENO"; then :
4515
4516 else
4517   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4518          CXXFLAGS="-g"
4519          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h.  */
4521
4522 int
4523 main ()
4524 {
4525
4526   ;
4527   return 0;
4528 }
4529 _ACEOF
4530 if ac_fn_cxx_try_compile "$LINENO"; then :
4531   ac_cv_prog_cxx_g=yes
4532 fi
4533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4534 fi
4535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536 fi
4537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4539 fi
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4541 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4542 if test "$ac_test_CXXFLAGS" = set; then
4543   CXXFLAGS=$ac_save_CXXFLAGS
4544 elif test $ac_cv_prog_cxx_g = yes; then
4545   if test "$GXX" = yes; then
4546     CXXFLAGS="-g -O2"
4547   else
4548     CXXFLAGS="-g"
4549   fi
4550 else
4551   if test "$GXX" = yes; then
4552     CXXFLAGS="-O2"
4553   else
4554     CXXFLAGS=
4555   fi
4556 fi
4557 ac_ext=c
4558 ac_cpp='$CPP $CPPFLAGS'
4559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4562
4563 depcc="$CXX"  am_compiler_list=
4564
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4566 $as_echo_n "checking dependency style of $depcc... " >&6; }
4567 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4568   $as_echo_n "(cached) " >&6
4569 else
4570   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4571   # We make a subdir and do the tests there.  Otherwise we can end up
4572   # making bogus files that we don't know about and never remove.  For
4573   # instance it was reported that on HP-UX the gcc test will end up
4574   # making a dummy file named `D' -- because `-MD' means `put the output
4575   # in D'.
4576   mkdir conftest.dir
4577   # Copy depcomp to subdir because otherwise we won't find it if we're
4578   # using a relative directory.
4579   cp "$am_depcomp" conftest.dir
4580   cd conftest.dir
4581   # We will build objects and dependencies in a subdirectory because
4582   # it helps to detect inapplicable dependency modes.  For instance
4583   # both Tru64's cc and ICC support -MD to output dependencies as a
4584   # side effect of compilation, but ICC will put the dependencies in
4585   # the current directory while Tru64 will put them in the object
4586   # directory.
4587   mkdir sub
4588
4589   am_cv_CXX_dependencies_compiler_type=none
4590   if test "$am_compiler_list" = ""; then
4591      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4592   fi
4593   for depmode in $am_compiler_list; do
4594     # Setup a source with many dependencies, because some compilers
4595     # like to wrap large dependency lists on column 80 (with \), and
4596     # we should not choose a depcomp mode which is confused by this.
4597     #
4598     # We need to recreate these files for each test, as the compiler may
4599     # overwrite some of them when testing with obscure command lines.
4600     # This happens at least with the AIX C compiler.
4601     : > sub/conftest.c
4602     for i in 1 2 3 4 5 6; do
4603       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4604       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4605       # Solaris 8's {/usr,}/bin/sh.
4606       touch sub/conftst$i.h
4607     done
4608     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4609
4610     case $depmode in
4611     nosideeffect)
4612       # after this tag, mechanisms are not by side-effect, so they'll
4613       # only be used when explicitly requested
4614       if test "x$enable_dependency_tracking" = xyes; then
4615         continue
4616       else
4617         break
4618       fi
4619       ;;
4620     none) break ;;
4621     esac
4622     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4623     # mode.  It turns out that the SunPro C++ compiler does not properly
4624     # handle `-M -o', and we need to detect this.
4625     if depmode=$depmode \
4626        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4627        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4628        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4629          >/dev/null 2>conftest.err &&
4630        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4631        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4632        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4633        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4634       # icc doesn't choke on unknown options, it will just issue warnings
4635       # or remarks (even with -Werror).  So we grep stderr for any message
4636       # that says an option was ignored or not supported.
4637       # When given -MP, icc 7.0 and 7.1 complain thusly:
4638       #   icc: Command line warning: ignoring option '-M'; no argument required
4639       # The diagnosis changed in icc 8.0:
4640       #   icc: Command line remark: option '-MP' not supported
4641       if (grep 'ignoring option' conftest.err ||
4642           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4643         am_cv_CXX_dependencies_compiler_type=$depmode
4644         break
4645       fi
4646     fi
4647   done
4648
4649   cd ..
4650   rm -rf conftest.dir
4651 else
4652   am_cv_CXX_dependencies_compiler_type=none
4653 fi
4654
4655 fi
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4657 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4658 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4659
4660  if
4661   test "x$enable_dependency_tracking" != xno \
4662   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4663   am__fastdepCXX_TRUE=
4664   am__fastdepCXX_FALSE='#'
4665 else
4666   am__fastdepCXX_TRUE='#'
4667   am__fastdepCXX_FALSE=
4668 fi
4669
4670
4671
4672 # By default we simply use the C compiler to build assembly code.
4673
4674 test "${CCAS+set}" = set || CCAS=$CC
4675 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4676
4677
4678
4679 depcc="$CCAS"   am_compiler_list=
4680
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4682 $as_echo_n "checking dependency style of $depcc... " >&6; }
4683 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4684   $as_echo_n "(cached) " >&6
4685 else
4686   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4687   # We make a subdir and do the tests there.  Otherwise we can end up
4688   # making bogus files that we don't know about and never remove.  For
4689   # instance it was reported that on HP-UX the gcc test will end up
4690   # making a dummy file named `D' -- because `-MD' means `put the output
4691   # in D'.
4692   mkdir conftest.dir
4693   # Copy depcomp to subdir because otherwise we won't find it if we're
4694   # using a relative directory.
4695   cp "$am_depcomp" conftest.dir
4696   cd conftest.dir
4697   # We will build objects and dependencies in a subdirectory because
4698   # it helps to detect inapplicable dependency modes.  For instance
4699   # both Tru64's cc and ICC support -MD to output dependencies as a
4700   # side effect of compilation, but ICC will put the dependencies in
4701   # the current directory while Tru64 will put them in the object
4702   # directory.
4703   mkdir sub
4704
4705   am_cv_CCAS_dependencies_compiler_type=none
4706   if test "$am_compiler_list" = ""; then
4707      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4708   fi
4709   for depmode in $am_compiler_list; do
4710     # Setup a source with many dependencies, because some compilers
4711     # like to wrap large dependency lists on column 80 (with \), and
4712     # we should not choose a depcomp mode which is confused by this.
4713     #
4714     # We need to recreate these files for each test, as the compiler may
4715     # overwrite some of them when testing with obscure command lines.
4716     # This happens at least with the AIX C compiler.
4717     : > sub/conftest.c
4718     for i in 1 2 3 4 5 6; do
4719       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4720       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4721       # Solaris 8's {/usr,}/bin/sh.
4722       touch sub/conftst$i.h
4723     done
4724     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4725
4726     case $depmode in
4727     nosideeffect)
4728       # after this tag, mechanisms are not by side-effect, so they'll
4729       # only be used when explicitly requested
4730       if test "x$enable_dependency_tracking" = xyes; then
4731         continue
4732       else
4733         break
4734       fi
4735       ;;
4736     none) break ;;
4737     esac
4738     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4739     # mode.  It turns out that the SunPro C++ compiler does not properly
4740     # handle `-M -o', and we need to detect this.
4741     if depmode=$depmode \
4742        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4743        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4744        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4745          >/dev/null 2>conftest.err &&
4746        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4747        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4748        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4749        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4750       # icc doesn't choke on unknown options, it will just issue warnings
4751       # or remarks (even with -Werror).  So we grep stderr for any message
4752       # that says an option was ignored or not supported.
4753       # When given -MP, icc 7.0 and 7.1 complain thusly:
4754       #   icc: Command line warning: ignoring option '-M'; no argument required
4755       # The diagnosis changed in icc 8.0:
4756       #   icc: Command line remark: option '-MP' not supported
4757       if (grep 'ignoring option' conftest.err ||
4758           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4759         am_cv_CCAS_dependencies_compiler_type=$depmode
4760         break
4761       fi
4762     fi
4763   done
4764
4765   cd ..
4766   rm -rf conftest.dir
4767 else
4768   am_cv_CCAS_dependencies_compiler_type=none
4769 fi
4770
4771 fi
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4773 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4774 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4775
4776  if
4777   test "x$enable_dependency_tracking" != xno \
4778   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4779   am__fastdepCCAS_TRUE=
4780   am__fastdepCCAS_FALSE='#'
4781 else
4782   am__fastdepCCAS_TRUE='#'
4783   am__fastdepCCAS_FALSE=
4784 fi
4785
4786
4787 ## FIXME: really needed? (AC_LIBTOOL already provides this)
4788 if test -n "$ac_tool_prefix"; then
4789   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4790 set dummy ${ac_tool_prefix}ar; ac_word=$2
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4792 $as_echo_n "checking for $ac_word... " >&6; }
4793 if test "${ac_cv_prog_AR+set}" = set; then :
4794   $as_echo_n "(cached) " >&6
4795 else
4796   if test -n "$AR"; then
4797   ac_cv_prog_AR="$AR" # Let the user override the test.
4798 else
4799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800 for as_dir in $PATH
4801 do
4802   IFS=$as_save_IFS
4803   test -z "$as_dir" && as_dir=.
4804     for ac_exec_ext in '' $ac_executable_extensions; do
4805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4806     ac_cv_prog_AR="${ac_tool_prefix}ar"
4807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4808     break 2
4809   fi
4810 done
4811   done
4812 IFS=$as_save_IFS
4813
4814 fi
4815 fi
4816 AR=$ac_cv_prog_AR
4817 if test -n "$AR"; then
4818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4819 $as_echo "$AR" >&6; }
4820 else
4821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4822 $as_echo "no" >&6; }
4823 fi
4824
4825
4826 fi
4827 if test -z "$ac_cv_prog_AR"; then
4828   ac_ct_AR=$AR
4829   # Extract the first word of "ar", so it can be a program name with args.
4830 set dummy ar; ac_word=$2
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4832 $as_echo_n "checking for $ac_word... " >&6; }
4833 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4834   $as_echo_n "(cached) " >&6
4835 else
4836   if test -n "$ac_ct_AR"; then
4837   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4838 else
4839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840 for as_dir in $PATH
4841 do
4842   IFS=$as_save_IFS
4843   test -z "$as_dir" && as_dir=.
4844     for ac_exec_ext in '' $ac_executable_extensions; do
4845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4846     ac_cv_prog_ac_ct_AR="ar"
4847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4848     break 2
4849   fi
4850 done
4851   done
4852 IFS=$as_save_IFS
4853
4854 fi
4855 fi
4856 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4857 if test -n "$ac_ct_AR"; then
4858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4859 $as_echo "$ac_ct_AR" >&6; }
4860 else
4861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4862 $as_echo "no" >&6; }
4863 fi
4864
4865   if test "x$ac_ct_AR" = x; then
4866     AR=""
4867   else
4868     case $cross_compiling:$ac_tool_warned in
4869 yes:)
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4872 ac_tool_warned=yes ;;
4873 esac
4874     AR=$ac_ct_AR
4875   fi
4876 else
4877   AR="$ac_cv_prog_AR"
4878 fi
4879
4880 if test -n "$ac_tool_prefix"; then
4881   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4882 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4884 $as_echo_n "checking for $ac_word... " >&6; }
4885 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4886   $as_echo_n "(cached) " >&6
4887 else
4888   if test -n "$RANLIB"; then
4889   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4890 else
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH
4893 do
4894   IFS=$as_save_IFS
4895   test -z "$as_dir" && as_dir=.
4896     for ac_exec_ext in '' $ac_executable_extensions; do
4897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4898     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4900     break 2
4901   fi
4902 done
4903   done
4904 IFS=$as_save_IFS
4905
4906 fi
4907 fi
4908 RANLIB=$ac_cv_prog_RANLIB
4909 if test -n "$RANLIB"; then
4910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4911 $as_echo "$RANLIB" >&6; }
4912 else
4913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4914 $as_echo "no" >&6; }
4915 fi
4916
4917
4918 fi
4919 if test -z "$ac_cv_prog_RANLIB"; then
4920   ac_ct_RANLIB=$RANLIB
4921   # Extract the first word of "ranlib", so it can be a program name with args.
4922 set dummy ranlib; ac_word=$2
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924 $as_echo_n "checking for $ac_word... " >&6; }
4925 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4926   $as_echo_n "(cached) " >&6
4927 else
4928   if test -n "$ac_ct_RANLIB"; then
4929   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4930 else
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH
4933 do
4934   IFS=$as_save_IFS
4935   test -z "$as_dir" && as_dir=.
4936     for ac_exec_ext in '' $ac_executable_extensions; do
4937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4938     ac_cv_prog_ac_ct_RANLIB="ranlib"
4939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4940     break 2
4941   fi
4942 done
4943   done
4944 IFS=$as_save_IFS
4945
4946 fi
4947 fi
4948 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4949 if test -n "$ac_ct_RANLIB"; then
4950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4951 $as_echo "$ac_ct_RANLIB" >&6; }
4952 else
4953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 $as_echo "no" >&6; }
4955 fi
4956
4957   if test "x$ac_ct_RANLIB" = x; then
4958     RANLIB=":"
4959   else
4960     case $cross_compiling:$ac_tool_warned in
4961 yes:)
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4964 ac_tool_warned=yes ;;
4965 esac
4966     RANLIB=$ac_ct_RANLIB
4967   fi
4968 else
4969   RANLIB="$ac_cv_prog_RANLIB"
4970 fi
4971   # :)
4972
4973
4974
4975 . ${srcdir}/configure.host
4976
4977 GC_CFLAGS=${gc_cflags}
4978
4979
4980 # Check whether --enable-threads was given.
4981 if test "${enable_threads+set}" = set; then :
4982   enableval=$enable_threads; THREADS=$enableval
4983 else
4984    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
4985 $as_echo_n "checking for thread model used by GCC... " >&6; }
4986     THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4987     if test -z "$THREADS"; then
4988       THREADS=no
4989     fi
4990     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
4991 $as_echo "$THREADS" >&6; }
4992 fi
4993
4994
4995 # Check whether --enable-parallel-mark was given.
4996 if test "${enable_parallel_mark+set}" = set; then :
4997   enableval=$enable_parallel_mark; case "$THREADS" in
4998       no | none | single)
4999         as_fn_error "Parallel mark requires --enable-threads=x spec" "$LINENO" 5
5000         ;;
5001     esac
5002
5003 fi
5004
5005
5006 # Check whether --enable-cplusplus was given.
5007 if test "${enable_cplusplus+set}" = set; then :
5008   enableval=$enable_cplusplus;
5009 fi
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033 THREADDLLIBS=
5034 need_atomic_ops_asm=false
5035 ## Libraries needed to support dynamic loading and/or threads.
5036 case "$THREADS" in
5037  no | none | single)
5038     THREADS=none
5039     ;;
5040  posix | pthreads)
5041     THREADS=posix
5042     THREADDLLIBS=-lpthread
5043     case "$host" in
5044      x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux* | sparc*-*-linux*)
5045         $as_echo "#define GC_LINUX_THREADS 1" >>confdefs.h
5046
5047         $as_echo "#define _REENTRANT 1" >>confdefs.h
5048
5049         if test "${enable_parallel_mark}" = yes; then
5050           $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
5051
5052         fi
5053         $as_echo "#define THREAD_LOCAL_ALLOC 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         ;;
5058      *-*-linux*)
5059         $as_echo "#define GC_LINUX_THREADS 1" >>confdefs.h
5060
5061         $as_echo "#define _REENTRANT 1" >>confdefs.h
5062
5063         ;;
5064      *-*-aix*)
5065         $as_echo "#define GC_AIX_THREADS 1" >>confdefs.h
5066
5067         $as_echo "#define _REENTRANT 1" >>confdefs.h
5068
5069         ;;
5070      *-*-hpux11*)
5071         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Only HP/UX 11 POSIX threads are supported.\"" >&5
5072 $as_echo "$as_me: WARNING: \"Only HP/UX 11 POSIX threads are supported.\"" >&2;}
5073         $as_echo "#define GC_HPUX_THREADS 1" >>confdefs.h
5074
5075         $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
5076
5077         if test "${enable_parallel_mark}" = yes; then
5078           $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
5079
5080         fi
5081         $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5082
5083         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&5
5084 $as_echo "$as_me: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&2;};
5085         THREADDLLIBS="-lpthread -lrt"
5086         # HPUX needs REENTRANT for the _r calls.
5087
5088 $as_echo "#define _REENTRANT 1" >>confdefs.h
5089
5090         ;;
5091      *-*-hpux10*)
5092         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
5093 $as_echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
5094         ;;
5095      *-*-openbsd*)
5096         $as_echo "#define GC_OPENBSD_THREADS 1" >>confdefs.h
5097
5098         THREADDLLIBS=-pthread
5099         INCLUDES="$INCLUDES -pthread"
5100         openbsd_threads=true
5101         ;;
5102      *-*-freebsd*)
5103         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
5104 $as_echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
5105         $as_echo "#define GC_FREEBSD_THREADS 1" >>confdefs.h
5106
5107         INCLUDES="$INCLUDES -pthread"
5108         ;;
5109      *-*-kfreebsd*-gnu)
5110         $as_echo "#define GC_FREEBSD_THREADS 1" >>confdefs.h
5111
5112         INCLUDES="$INCLUDES -pthread"
5113         THREADDLLIBS=-pthread
5114         $as_echo "#define _REENTRANT 1" >>confdefs.h
5115
5116         if test "${enable_parallel_mark}" = yes; then
5117           $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
5118
5119         fi
5120         $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5121
5122         $as_echo "#define USE_COMPILER_TLS 1" >>confdefs.h
5123
5124         ;;
5125      *-*-gnu*)
5126         $as_echo "#define GC_GNU_THREADS 1" >>confdefs.h
5127
5128         $as_echo "#define _REENTRANT 1" >>confdefs.h
5129
5130         $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5131
5132         ;;
5133      *-*-netbsd*)
5134         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Only on NetBSD 2.0 or later.\"" >&5
5135 $as_echo "$as_me: WARNING: \"Only on NetBSD 2.0 or later.\"" >&2;}
5136         $as_echo "#define GC_NETBSD_THREADS 1" >>confdefs.h
5137
5138         $as_echo "#define _REENTRANT 1" >>confdefs.h
5139
5140         $as_echo "#define _PTHREADS 1" >>confdefs.h
5141
5142         THREADDLLIBS="-lpthread -lrt"
5143         ;;
5144      *-*-solaris*)
5145         $as_echo "#define GC_SOLARIS_THREADS 1" >>confdefs.h
5146
5147         $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5148
5149         THREADDLLIBS="-lpthread -lrt"
5150         if test "$GCC" != yes; then
5151           CFLAGS="$CFLAGS -O"
5152           need_atomic_ops_asm=true
5153         fi
5154         ;;
5155      *-*-irix*)
5156         $as_echo "#define GC_IRIX_THREADS 1" >>confdefs.h
5157
5158         ;;
5159      *-*-cygwin*)
5160         $as_echo "#define GC_THREADS 1" >>confdefs.h
5161
5162         if test "${enable_parallel_mark}" = yes; then
5163           $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
5164
5165         fi
5166         $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5167
5168         # Cygwin doesn't have a real libpthread, so Libtool can't link
5169         # against it.
5170         THREADDLLIBS=""
5171         win32_threads=true
5172         ;;
5173      *-*-darwin*)
5174         $as_echo "#define GC_DARWIN_THREADS 1" >>confdefs.h
5175
5176         $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5177
5178         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&5
5179 $as_echo "$as_me: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&2;};
5180         # Parallel-mark is currently unreliable on Darwin; ignore request
5181         # if test "${enable_parallel_mark}" = yes; then
5182         #   AC_DEFINE(PARALLEL_MARK)
5183         # fi
5184         darwin_threads=true
5185         ;;
5186      *-*-osf*)
5187         $as_echo "#define GC_OSF1_THREADS 1" >>confdefs.h
5188
5189         if test "${enable_parallel_mark}" = yes; then
5190           $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
5191
5192           $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5193
5194           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&5
5195 $as_echo "$as_me: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&2;};
5196           # May want to enable it in other cases, too.
5197           # Measurements havent yet been done.
5198         fi
5199         INCLUDES="$INCLUDES -pthread"
5200         THREADDLLIBS="-lpthread -lrt"
5201         ;;
5202       *)
5203         as_fn_error "\"Pthreads not supported by the GC on this platform.\"" "$LINENO" 5
5204         ;;
5205     esac
5206     ;;
5207  win32)
5208     $as_echo "#define GC_THREADS 1" >>confdefs.h
5209
5210     if test "${enable_parallel_mark}" = yes; then
5211       $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
5212
5213       $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5214
5215     fi
5216     win32_threads=true
5217
5218 $as_echo "#define EMPTY_GETENV_RESULTS 1" >>confdefs.h
5219
5220     ;;
5221  dgux386)
5222     THREADS=dgux386
5223     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADDLLIBS" >&5
5224 $as_echo "$THREADDLLIBS" >&6; }
5225     # Use pthread GCC  switch
5226     THREADDLLIBS=-pthread
5227     if test "${enable_parallel_mark}" = yes; then
5228         $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
5229
5230     fi
5231     $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5232
5233     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&5
5234 $as_echo "$as_me: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&2;};
5235
5236 $as_echo "#define GC_DGUX386_THREADS 1" >>confdefs.h
5237
5238
5239 $as_echo "#define DGUX_THREADS 1" >>confdefs.h
5240
5241     # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
5242     INCLUDES="-pthread $INCLUDES"
5243     ;;
5244  aix)
5245     THREADS=posix
5246     THREADDLLIBS=-lpthread
5247     $as_echo "#define GC_AIX_THREADS 1" >>confdefs.h
5248
5249     $as_echo "#define _REENTRANT 1" >>confdefs.h
5250
5251     ;;
5252  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
5253     as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
5254     ;;
5255  *)
5256     as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
5257     ;;
5258 esac
5259
5260  if test x$THREADS != xnone; then
5261   THREADS_TRUE=
5262   THREADS_FALSE='#'
5263 else
5264   THREADS_TRUE='#'
5265   THREADS_FALSE=
5266 fi
5267
5268  if test x$THREADS = xposix; then
5269   PTHREADS_TRUE=
5270   PTHREADS_FALSE='#'
5271 else
5272   PTHREADS_TRUE='#'
5273   PTHREADS_FALSE=
5274 fi
5275
5276  if test x$darwin_threads = xtrue; then
5277   DARWIN_THREADS_TRUE=
5278   DARWIN_THREADS_FALSE='#'
5279 else
5280   DARWIN_THREADS_TRUE='#'
5281   DARWIN_THREADS_FALSE=
5282 fi
5283
5284  if test x$win32_threads = xtrue; then
5285   WIN32_THREADS_TRUE=
5286   WIN32_THREADS_FALSE='#'
5287 else
5288   WIN32_THREADS_TRUE='#'
5289   WIN32_THREADS_FALSE=
5290 fi
5291
5292  if test x$openbsd_threads = xtrue; then
5293   OPENBSD_THREADS_TRUE=
5294   OPENBSD_THREADS_FALSE='#'
5295 else
5296   OPENBSD_THREADS_TRUE='#'
5297   OPENBSD_THREADS_FALSE=
5298 fi
5299
5300
5301 case "$host" in
5302    powerpc-*-darwin*)
5303       powerpc_darwin=true
5304       ;;
5305 esac
5306
5307 # Darwin needs a few extra special tests to deal with variation in the
5308 # system headers.
5309 case "$host" in
5310   powerpc*-*-darwin*)
5311
5312 ac_fn_c_check_member "$LINENO" "ppc_thread_state_t" "r0" "ac_cv_member_ppc_thread_state_t_r0" "#include <mach/thread_status.h>
5313 "
5314 if test "x$ac_cv_member_ppc_thread_state_t_r0" = x""yes; then :
5315
5316 $as_echo "#define HAS_PPC_THREAD_STATE_R0 1" >>confdefs.h
5317
5318 fi
5319
5320     ac_fn_c_check_member "$LINENO" "ppc_thread_state_t" "__r0" "ac_cv_member_ppc_thread_state_t___r0" "#include <mach/thread_status.h>
5321 "
5322 if test "x$ac_cv_member_ppc_thread_state_t___r0" = x""yes; then :
5323
5324 $as_echo "#define HAS_PPC_THREAD_STATE___R0 1" >>confdefs.h
5325
5326 fi
5327
5328     ac_fn_c_check_member "$LINENO" "ppc_thread_state64_t" "r0" "ac_cv_member_ppc_thread_state64_t_r0" "#include <mach/thread_status.h>
5329 "
5330 if test "x$ac_cv_member_ppc_thread_state64_t_r0" = x""yes; then :
5331
5332 $as_echo "#define HAS_PPC_THREAD_STATE64_R0 1" >>confdefs.h
5333
5334 fi
5335
5336     ac_fn_c_check_member "$LINENO" "ppc_thread_state64_t" "__r0" "ac_cv_member_ppc_thread_state64_t___r0" "#include <mach/thread_status.h>
5337 "
5338 if test "x$ac_cv_member_ppc_thread_state64_t___r0" = x""yes; then :
5339
5340 $as_echo "#define HAS_PPC_THREAD_STATE64___R0 1" >>confdefs.h
5341
5342 fi
5343
5344     ;;
5345   i?86*-*-darwin*)
5346     ac_fn_c_check_member "$LINENO" "x86_thread_state32_t" "eax" "ac_cv_member_x86_thread_state32_t_eax" "#include <sys/cdefs.h>
5347       #include <mach/thread_status.h>
5348 "
5349 if test "x$ac_cv_member_x86_thread_state32_t_eax" = x""yes; then :
5350
5351 $as_echo "#define HAS_X86_THREAD_STATE32_EAX 1" >>confdefs.h
5352
5353 fi
5354
5355     ac_fn_c_check_member "$LINENO" "x86_thread_state32_t" "__eax" "ac_cv_member_x86_thread_state32_t___eax" "#include <sys/cdefs.h>
5356       #include <mach/thread_status.h>
5357 "
5358 if test "x$ac_cv_member_x86_thread_state32_t___eax" = x""yes; then :
5359
5360 $as_echo "#define HAS_X86_THREAD_STATE32___EAX 1" >>confdefs.h
5361
5362 fi
5363
5364     ;;
5365   x86_64-*-darwin*)
5366     ac_fn_c_check_member "$LINENO" "x86_thread_state64_t" "rax" "ac_cv_member_x86_thread_state64_t_rax" "#include <sys/cdefs.h>
5367       #include <mach/thread_status.h>
5368 "
5369 if test "x$ac_cv_member_x86_thread_state64_t_rax" = x""yes; then :
5370
5371 $as_echo "#define HAS_X86_THREAD_STATE64_RAX 1" >>confdefs.h
5372
5373 fi
5374
5375     ac_fn_c_check_member "$LINENO" "x86_thread_state64_t" "__rax" "ac_cv_member_x86_thread_state64_t___rax" "#include <sys/cdefs.h>
5376       #include <mach/thread_status.h>
5377 "
5378 if test "x$ac_cv_member_x86_thread_state64_t___rax" = x""yes; then :
5379
5380 $as_echo "#define HAS_X86_THREAD_STATE64___RAX 1" >>confdefs.h
5381
5382 fi
5383
5384      ;;
5385   *) ;;
5386 esac
5387
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xlc" >&5
5389 $as_echo_n "checking for xlc... " >&6; }
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h.  */
5392
5393 int
5394 main ()
5395 {
5396
5397  #ifndef __xlC__
5398  # error
5399  #endif
5400
5401   ;
5402   return 0;
5403 }
5404 _ACEOF
5405 if ac_fn_c_try_compile "$LINENO"; then :
5406   compiler_xlc=yes
5407 else
5408   compiler_xlc=no
5409 fi
5410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compiler_xlc" >&5
5412 $as_echo "$compiler_xlc" >&6; }
5413  if test $compiler_xlc = yes; then
5414   COMPILER_XLC_TRUE=
5415   COMPILER_XLC_FALSE='#'
5416 else
5417   COMPILER_XLC_TRUE='#'
5418   COMPILER_XLC_FALSE=
5419 fi
5420
5421 if test $compiler_xlc = yes -a "$powerpc_darwin" = true; then
5422   # the darwin stack-frame-walking code is completely broken on xlc
5423
5424 $as_echo "#define DARWIN_DONT_PARSE_STACK 1" >>confdefs.h
5425
5426 fi
5427
5428 # We never want libdl on darwin. It is a fake libdl that just ends up making
5429 # dyld calls anyway.  The same applies to Cygwin.
5430 case "$host" in
5431   *-*-darwin*) ;;
5432   *-*-cygwin*) ;;
5433   *)
5434     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5435 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5436 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
5437   $as_echo_n "(cached) " >&6
5438 else
5439   ac_check_lib_save_LIBS=$LIBS
5440 LIBS="-ldl  $LIBS"
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h.  */
5443
5444 /* Override any GCC internal prototype to avoid an error.
5445    Use char because int might match the return type of a GCC
5446    builtin and then its argument prototype would still apply.  */
5447 #ifdef __cplusplus
5448 extern "C"
5449 #endif
5450 char dlopen ();
5451 int
5452 main ()
5453 {
5454 return dlopen ();
5455   ;
5456   return 0;
5457 }
5458 _ACEOF
5459 if ac_fn_c_try_link "$LINENO"; then :
5460   ac_cv_lib_dl_dlopen=yes
5461 else
5462   ac_cv_lib_dl_dlopen=no
5463 fi
5464 rm -f core conftest.err conftest.$ac_objext \
5465     conftest$ac_exeext conftest.$ac_ext
5466 LIBS=$ac_check_lib_save_LIBS
5467 fi
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5469 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5470 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
5471   THREADDLLIBS="$THREADDLLIBS -ldl"
5472 fi
5473
5474     ;;
5475 esac
5476
5477 case "$host" in
5478   *-*-hpux*)
5479     avoid_cpp_lib=yes;;
5480   *)
5481     avoid_cpp_lib=no;
5482     ;;
5483 esac
5484  if test $avoid_cpp_lib = yes; then
5485   AVOID_CPP_LIB_TRUE=
5486   AVOID_CPP_LIB_FALSE='#'
5487 else
5488   AVOID_CPP_LIB_TRUE='#'
5489   AVOID_CPP_LIB_FALSE=
5490 fi
5491
5492
5493 # extra LD Flags which are required for targets
5494 case "${host}" in
5495   *-*-darwin*)
5496     extra_ldflags_libgc=-Wl,-single_module
5497     ;;
5498 esac
5499
5500
5501
5502
5503 target_all=libgc.la
5504
5505
5506 TARGET_ECOS="no"
5507
5508 # Check whether --with-ecos was given.
5509 if test "${with_ecos+set}" = set; then :
5510   withval=$with_ecos; TARGET_ECOS="$with_ecos"
5511
5512 fi
5513
5514
5515 addobjs=
5516 addlibs=
5517 CXXINCLUDES=
5518 case "$TARGET_ECOS" in
5519    no)
5520       ;;
5521    *)
5522
5523 $as_echo "#define ECOS 1" >>confdefs.h
5524
5525       CXXINCLUDES="-I${TARGET_ECOS}/include"
5526       addobjs="$addobjs ecos.lo"
5527       ;;
5528 esac
5529
5530  if test "${enable_cplusplus}" = yes; then
5531   CPLUSPLUS_TRUE=
5532   CPLUSPLUS_FALSE='#'
5533 else
5534   CPLUSPLUS_TRUE='#'
5535   CPLUSPLUS_FALSE=
5536 fi
5537
5538
5539
5540
5541
5542
5543
5544 # Configuration of shared libraries
5545 #
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
5547 $as_echo_n "checking whether to build shared libraries... " >&6; }
5548 # Check whether --enable-shared was given.
5549 if test "${enable_shared+set}" = set; then :
5550   enableval=$enable_shared; p=${PACKAGE-default}
5551     case $enableval in
5552     yes) enable_shared=yes ;;
5553     no) enable_shared=no ;;
5554     *)
5555       enable_shared=no
5556       # Look at the argument we got.  We use all the common list separators.
5557       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5558       for pkg in $enableval; do
5559         IFS="$lt_save_ifs"
5560         if test "X$pkg" = "X$p"; then
5561           enable_shared=yes
5562         fi
5563       done
5564       IFS="$lt_save_ifs"
5565       ;;
5566     esac
5567 else
5568   enable_shared=yes
5569 fi
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580 case "$host" in
5581  alpha-*-openbsd*)
5582      enable_shared=no
5583      ;;
5584  *)
5585      ;;
5586 esac
5587
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
5589 $as_echo "$enable_shared" >&6; }
5590
5591 # Configuration of machine-dependent code
5592 #
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which machine-dependent code should be used" >&5
5594 $as_echo_n "checking which machine-dependent code should be used... " >&6; }
5595 machdep=
5596 case "$host" in
5597  alpha-*-openbsd*)
5598     machdep="mach_dep.lo"
5599     if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
5600        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
5601 $as_echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
5602     fi
5603     ;;
5604  alpha*-*-linux*)
5605     machdep="mach_dep.lo"
5606     ;;
5607  i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
5608
5609 $as_echo "#define SOLARIS25_PROC_VDB_BUG_FIXED 1" >>confdefs.h
5610
5611     ;;
5612  mipstx39-*-elf*)
5613     machdep="mach_dep.lo"
5614     ;;
5615  mips-dec-ultrix*)
5616     machdep="mach-dep.lo"
5617     ;;
5618  mips-nec-sysv*|mips-unknown-sysv*)
5619     ;;
5620  mips*-*-linux*)
5621     ;;
5622  mips-*-*)
5623     machdep="mach_dep.lo"
5624                 ;;
5625  sparc*-*-linux*)
5626     machdep="mach_dep.lo sparc_mach_dep.lo"
5627     ;;
5628  sparc-*-netbsd*)
5629     machdep="mach_dep.lo sparc_netbsd_mach_dep.lo"
5630     ;;
5631  sparc64-*-netbsd*)
5632     machdep="mach_dep.lo sparc_mach_dep.lo"
5633     ;;
5634  sparc*-*-openbsd*)
5635     machdep="mach_dep.lo sparc_mach_dep.lo"
5636     ;;
5637  sparc-sun-solaris2.3)
5638     machdep="mach_dep.lo sparc_mach_dep.lo"
5639
5640 $as_echo "#define SUNOS53_SHARED_LIB 1" >>confdefs.h
5641
5642     ;;
5643  sparc*-sun-solaris2*)
5644     machdep="mach_dep.lo sparc_mach_dep.lo"
5645     ;;
5646  ia64-*-*)
5647     machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
5648     ;;
5649 esac
5650 if test x"$machdep" = x; then
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $machdep" >&5
5652 $as_echo "$machdep" >&6; }
5653    machdep="mach_dep.lo"
5654 fi
5655 addobjs="$addobjs $machdep"
5656
5657
5658
5659 case `pwd` in
5660   *\ * | *\     *)
5661     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5662 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5663 esac
5664
5665
5666
5667 macro_version='2.2'
5668 macro_revision='1.2599'
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682 ltmain="$ac_aux_dir/ltmain.sh"
5683
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5685 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5686 if test "${ac_cv_path_SED+set}" = set; then :
5687   $as_echo_n "(cached) " >&6
5688 else
5689             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5690      for ac_i in 1 2 3 4 5 6 7; do
5691        ac_script="$ac_script$as_nl$ac_script"
5692      done
5693      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5694      { ac_script=; unset ac_script;}
5695      if test -z "$SED"; then
5696   ac_path_SED_found=false
5697   # Loop through the user's path and test for each of PROGNAME-LIST
5698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 for as_dir in $PATH
5700 do
5701   IFS=$as_save_IFS
5702   test -z "$as_dir" && as_dir=.
5703     for ac_prog in sed gsed; do
5704     for ac_exec_ext in '' $ac_executable_extensions; do
5705       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5706       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5707 # Check for GNU ac_path_SED and select it if it is found.
5708   # Check for GNU $ac_path_SED
5709 case `"$ac_path_SED" --version 2>&1` in
5710 *GNU*)
5711   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5712 *)
5713   ac_count=0
5714   $as_echo_n 0123456789 >"conftest.in"
5715   while :
5716   do
5717     cat "conftest.in" "conftest.in" >"conftest.tmp"
5718     mv "conftest.tmp" "conftest.in"
5719     cp "conftest.in" "conftest.nl"
5720     $as_echo '' >> "conftest.nl"
5721     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5722     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5723     as_fn_arith $ac_count + 1 && ac_count=$as_val
5724     if test $ac_count -gt ${ac_path_SED_max-0}; then
5725       # Best one so far, save it but keep looking for a better one
5726       ac_cv_path_SED="$ac_path_SED"
5727       ac_path_SED_max=$ac_count
5728     fi
5729     # 10*(2^10) chars as input seems more than enough
5730     test $ac_count -gt 10 && break
5731   done
5732   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5733 esac
5734
5735       $ac_path_SED_found && break 3
5736     done
5737   done
5738   done
5739 IFS=$as_save_IFS
5740   if test -z "$ac_cv_path_SED"; then
5741     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5742   fi
5743 else
5744   ac_cv_path_SED=$SED
5745 fi
5746
5747 fi
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5749 $as_echo "$ac_cv_path_SED" >&6; }
5750  SED="$ac_cv_path_SED"
5751   rm -f conftest.sed
5752
5753 test -z "$SED" && SED=sed
5754 Xsed="$SED -e 1s/^X//"
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5767 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5768 if test "${ac_cv_path_GREP+set}" = set; then :
5769   $as_echo_n "(cached) " >&6
5770 else
5771   if test -z "$GREP"; then
5772   ac_path_GREP_found=false
5773   # Loop through the user's path and test for each of PROGNAME-LIST
5774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5776 do
5777   IFS=$as_save_IFS
5778   test -z "$as_dir" && as_dir=.
5779     for ac_prog in grep ggrep; do
5780     for ac_exec_ext in '' $ac_executable_extensions; do
5781       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5782       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5783 # Check for GNU ac_path_GREP and select it if it is found.
5784   # Check for GNU $ac_path_GREP
5785 case `"$ac_path_GREP" --version 2>&1` in
5786 *GNU*)
5787   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5788 *)
5789   ac_count=0
5790   $as_echo_n 0123456789 >"conftest.in"
5791   while :
5792   do
5793     cat "conftest.in" "conftest.in" >"conftest.tmp"
5794     mv "conftest.tmp" "conftest.in"
5795     cp "conftest.in" "conftest.nl"
5796     $as_echo 'GREP' >> "conftest.nl"
5797     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5798     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5799     as_fn_arith $ac_count + 1 && ac_count=$as_val
5800     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5801       # Best one so far, save it but keep looking for a better one
5802       ac_cv_path_GREP="$ac_path_GREP"
5803       ac_path_GREP_max=$ac_count
5804     fi
5805     # 10*(2^10) chars as input seems more than enough
5806     test $ac_count -gt 10 && break
5807   done
5808   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5809 esac
5810
5811       $ac_path_GREP_found && break 3
5812     done
5813   done
5814   done
5815 IFS=$as_save_IFS
5816   if test -z "$ac_cv_path_GREP"; then
5817     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5818   fi
5819 else
5820   ac_cv_path_GREP=$GREP
5821 fi
5822
5823 fi
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5825 $as_echo "$ac_cv_path_GREP" >&6; }
5826  GREP="$ac_cv_path_GREP"
5827
5828
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5830 $as_echo_n "checking for egrep... " >&6; }
5831 if test "${ac_cv_path_EGREP+set}" = set; then :
5832   $as_echo_n "(cached) " >&6
5833 else
5834   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5835    then ac_cv_path_EGREP="$GREP -E"
5836    else
5837      if test -z "$EGREP"; then
5838   ac_path_EGREP_found=false
5839   # Loop through the user's path and test for each of PROGNAME-LIST
5840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5842 do
5843   IFS=$as_save_IFS
5844   test -z "$as_dir" && as_dir=.
5845     for ac_prog in egrep; do
5846     for ac_exec_ext in '' $ac_executable_extensions; do
5847       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5848       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5849 # Check for GNU ac_path_EGREP and select it if it is found.
5850   # Check for GNU $ac_path_EGREP
5851 case `"$ac_path_EGREP" --version 2>&1` in
5852 *GNU*)
5853   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5854 *)
5855   ac_count=0
5856   $as_echo_n 0123456789 >"conftest.in"
5857   while :
5858   do
5859     cat "conftest.in" "conftest.in" >"conftest.tmp"
5860     mv "conftest.tmp" "conftest.in"
5861     cp "conftest.in" "conftest.nl"
5862     $as_echo 'EGREP' >> "conftest.nl"
5863     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5864     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5865     as_fn_arith $ac_count + 1 && ac_count=$as_val
5866     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5867       # Best one so far, save it but keep looking for a better one
5868       ac_cv_path_EGREP="$ac_path_EGREP"
5869       ac_path_EGREP_max=$ac_count
5870     fi
5871     # 10*(2^10) chars as input seems more than enough
5872     test $ac_count -gt 10 && break
5873   done
5874   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5875 esac
5876
5877       $ac_path_EGREP_found && break 3
5878     done
5879   done
5880   done
5881 IFS=$as_save_IFS
5882   if test -z "$ac_cv_path_EGREP"; then
5883     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5884   fi
5885 else
5886   ac_cv_path_EGREP=$EGREP
5887 fi
5888
5889    fi
5890 fi
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5892 $as_echo "$ac_cv_path_EGREP" >&6; }
5893  EGREP="$ac_cv_path_EGREP"
5894
5895
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5897 $as_echo_n "checking for fgrep... " >&6; }
5898 if test "${ac_cv_path_FGREP+set}" = set; then :
5899   $as_echo_n "(cached) " >&6
5900 else
5901   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5902    then ac_cv_path_FGREP="$GREP -F"
5903    else
5904      if test -z "$FGREP"; then
5905   ac_path_FGREP_found=false
5906   # Loop through the user's path and test for each of PROGNAME-LIST
5907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5909 do
5910   IFS=$as_save_IFS
5911   test -z "$as_dir" && as_dir=.
5912     for ac_prog in fgrep; do
5913     for ac_exec_ext in '' $ac_executable_extensions; do
5914       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5915       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5916 # Check for GNU ac_path_FGREP and select it if it is found.
5917   # Check for GNU $ac_path_FGREP
5918 case `"$ac_path_FGREP" --version 2>&1` in
5919 *GNU*)
5920   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5921 *)
5922   ac_count=0
5923   $as_echo_n 0123456789 >"conftest.in"
5924   while :
5925   do
5926     cat "conftest.in" "conftest.in" >"conftest.tmp"
5927     mv "conftest.tmp" "conftest.in"
5928     cp "conftest.in" "conftest.nl"
5929     $as_echo 'FGREP' >> "conftest.nl"
5930     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5931     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5932     as_fn_arith $ac_count + 1 && ac_count=$as_val
5933     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5934       # Best one so far, save it but keep looking for a better one
5935       ac_cv_path_FGREP="$ac_path_FGREP"
5936       ac_path_FGREP_max=$ac_count
5937     fi
5938     # 10*(2^10) chars as input seems more than enough
5939     test $ac_count -gt 10 && break
5940   done
5941   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5942 esac
5943
5944       $ac_path_FGREP_found && break 3
5945     done
5946   done
5947   done
5948 IFS=$as_save_IFS
5949   if test -z "$ac_cv_path_FGREP"; then
5950     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5951   fi
5952 else
5953   ac_cv_path_FGREP=$FGREP
5954 fi
5955
5956    fi
5957 fi
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5959 $as_echo "$ac_cv_path_FGREP" >&6; }
5960  FGREP="$ac_cv_path_FGREP"
5961
5962
5963 test -z "$GREP" && GREP=grep
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983 # Check whether --with-gnu-ld was given.
5984 if test "${with_gnu_ld+set}" = set; then :
5985   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5986 else
5987   with_gnu_ld=no
5988 fi
5989
5990 ac_prog=ld
5991 if test "$GCC" = yes; then
5992   # Check if gcc -print-prog-name=ld gives a path.
5993   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5994 $as_echo_n "checking for ld used by $CC... " >&6; }
5995   case $host in
5996   *-*-mingw*)
5997     # gcc leaves a trailing carriage return which upsets mingw
5998     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5999   *)
6000     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6001   esac
6002   case $ac_prog in
6003     # Accept absolute paths.
6004     [\\/]* | ?:[\\/]*)
6005       re_direlt='/[^/][^/]*/\.\./'
6006       # Canonicalize the pathname of ld
6007       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6008       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6009         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6010       done
6011       test -z "$LD" && LD="$ac_prog"
6012       ;;
6013   "")
6014     # If it fails, then pretend we aren't using GCC.
6015     ac_prog=ld
6016     ;;
6017   *)
6018     # If it is relative, then search for the first ld in PATH.
6019     with_gnu_ld=unknown
6020     ;;
6021   esac
6022 elif test "$with_gnu_ld" = yes; then
6023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6024 $as_echo_n "checking for GNU ld... " >&6; }
6025 else
6026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6027 $as_echo_n "checking for non-GNU ld... " >&6; }
6028 fi
6029 if test "${lt_cv_path_LD+set}" = set; then :
6030   $as_echo_n "(cached) " >&6
6031 else
6032   if test -z "$LD"; then
6033   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6034   for ac_dir in $PATH; do
6035     IFS="$lt_save_ifs"
6036     test -z "$ac_dir" && ac_dir=.
6037     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6038       lt_cv_path_LD="$ac_dir/$ac_prog"
6039       # Check to see if the program is GNU ld.  I'd rather use --version,
6040       # but apparently some variants of GNU ld only accept -v.
6041       # Break only if it was the GNU/non-GNU ld that we prefer.
6042       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6043       *GNU* | *'with BFD'*)
6044         test "$with_gnu_ld" != no && break
6045         ;;
6046       *)
6047         test "$with_gnu_ld" != yes && break
6048         ;;
6049       esac
6050     fi
6051   done
6052   IFS="$lt_save_ifs"
6053 else
6054   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6055 fi
6056 fi
6057
6058 LD="$lt_cv_path_LD"
6059 if test -n "$LD"; then
6060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6061 $as_echo "$LD" >&6; }
6062 else
6063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6065 fi
6066 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6068 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6069 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6070   $as_echo_n "(cached) " >&6
6071 else
6072   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6073 case `$LD -v 2>&1 </dev/null` in
6074 *GNU* | *'with BFD'*)
6075   lt_cv_prog_gnu_ld=yes
6076   ;;
6077 *)
6078   lt_cv_prog_gnu_ld=no
6079   ;;
6080 esac
6081 fi
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6083 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6084 with_gnu_ld=$lt_cv_prog_gnu_ld
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6096 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6097 if test "${lt_cv_path_NM+set}" = set; then :
6098   $as_echo_n "(cached) " >&6
6099 else
6100   if test -n "$NM"; then
6101   # Let the user override the test.
6102   lt_cv_path_NM="$NM"
6103 else
6104   lt_nm_to_check="${ac_tool_prefix}nm"
6105   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6106     lt_nm_to_check="$lt_nm_to_check nm"
6107   fi
6108   for lt_tmp_nm in $lt_nm_to_check; do
6109     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6110     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6111       IFS="$lt_save_ifs"
6112       test -z "$ac_dir" && ac_dir=.
6113       tmp_nm="$ac_dir/$lt_tmp_nm"
6114       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6115         # Check to see if the nm accepts a BSD-compat flag.
6116         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6117         #   nm: unknown option "B" ignored
6118         # Tru64's nm complains that /dev/null is an invalid object file
6119         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6120         */dev/null* | *'Invalid file or object type'*)
6121           lt_cv_path_NM="$tmp_nm -B"
6122           break
6123           ;;
6124         *)
6125           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6126           */dev/null*)
6127             lt_cv_path_NM="$tmp_nm -p"
6128             break
6129             ;;
6130           *)
6131             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6132             continue # so that we can try to find one that supports BSD flags
6133             ;;
6134           esac
6135           ;;
6136         esac
6137       fi
6138     done
6139     IFS="$lt_save_ifs"
6140   done
6141   : ${lt_cv_path_NM=no}
6142 fi
6143 fi
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6145 $as_echo "$lt_cv_path_NM" >&6; }
6146 if test "$lt_cv_path_NM" != "no"; then
6147   NM="$lt_cv_path_NM"
6148 else
6149   # Didn't find any BSD compatible name lister, look for dumpbin.
6150   if test -n "$ac_tool_prefix"; then
6151   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6152   do
6153     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6154 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6156 $as_echo_n "checking for $ac_word... " >&6; }
6157 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6158   $as_echo_n "(cached) " >&6
6159 else
6160   if test -n "$DUMPBIN"; then
6161   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6162 else
6163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 for as_dir in $PATH
6165 do
6166   IFS=$as_save_IFS
6167   test -z "$as_dir" && as_dir=.
6168     for ac_exec_ext in '' $ac_executable_extensions; do
6169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6170     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6172     break 2
6173   fi
6174 done
6175   done
6176 IFS=$as_save_IFS
6177
6178 fi
6179 fi
6180 DUMPBIN=$ac_cv_prog_DUMPBIN
6181 if test -n "$DUMPBIN"; then
6182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6183 $as_echo "$DUMPBIN" >&6; }
6184 else
6185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186 $as_echo "no" >&6; }
6187 fi
6188
6189
6190     test -n "$DUMPBIN" && break
6191   done
6192 fi
6193 if test -z "$DUMPBIN"; then
6194   ac_ct_DUMPBIN=$DUMPBIN
6195   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6196 do
6197   # Extract the first word of "$ac_prog", so it can be a program name with args.
6198 set dummy $ac_prog; ac_word=$2
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6200 $as_echo_n "checking for $ac_word... " >&6; }
6201 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6202   $as_echo_n "(cached) " >&6
6203 else
6204   if test -n "$ac_ct_DUMPBIN"; then
6205   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6206 else
6207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208 for as_dir in $PATH
6209 do
6210   IFS=$as_save_IFS
6211   test -z "$as_dir" && as_dir=.
6212     for ac_exec_ext in '' $ac_executable_extensions; do
6213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6214     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6216     break 2
6217   fi
6218 done
6219   done
6220 IFS=$as_save_IFS
6221
6222 fi
6223 fi
6224 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6225 if test -n "$ac_ct_DUMPBIN"; then
6226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6227 $as_echo "$ac_ct_DUMPBIN" >&6; }
6228 else
6229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6230 $as_echo "no" >&6; }
6231 fi
6232
6233
6234   test -n "$ac_ct_DUMPBIN" && break
6235 done
6236
6237   if test "x$ac_ct_DUMPBIN" = x; then
6238     DUMPBIN=":"
6239   else
6240     case $cross_compiling:$ac_tool_warned in
6241 yes:)
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6244 ac_tool_warned=yes ;;
6245 esac
6246     DUMPBIN=$ac_ct_DUMPBIN
6247   fi
6248 fi
6249
6250
6251   if test "$DUMPBIN" != ":"; then
6252     NM="$DUMPBIN"
6253   fi
6254 fi
6255 test -z "$NM" && NM=nm
6256
6257
6258
6259
6260
6261
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6263 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6264 if test "${lt_cv_nm_interface+set}" = set; then :
6265   $as_echo_n "(cached) " >&6
6266 else
6267   lt_cv_nm_interface="BSD nm"
6268   echo "int some_variable = 0;" > conftest.$ac_ext
6269   (eval echo "\"\$as_me:6269: $ac_compile\"" >&5)
6270   (eval "$ac_compile" 2>conftest.err)
6271   cat conftest.err >&5
6272   (eval echo "\"\$as_me:6272: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6273   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6274   cat conftest.err >&5
6275   (eval echo "\"\$as_me:6275: output\"" >&5)
6276   cat conftest.out >&5
6277   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6278     lt_cv_nm_interface="MS dumpbin"
6279   fi
6280   rm -f conftest*
6281 fi
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6283 $as_echo "$lt_cv_nm_interface" >&6; }
6284
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6286 $as_echo_n "checking whether ln -s works... " >&6; }
6287 LN_S=$as_ln_s
6288 if test "$LN_S" = "ln -s"; then
6289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6290 $as_echo "yes" >&6; }
6291 else
6292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6293 $as_echo "no, using $LN_S" >&6; }
6294 fi
6295
6296 # find the maximum length of command line arguments
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6298 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6299 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6300   $as_echo_n "(cached) " >&6
6301 else
6302     i=0
6303   teststring="ABCD"
6304
6305   case $build_os in
6306   msdosdjgpp*)
6307     # On DJGPP, this test can blow up pretty badly due to problems in libc
6308     # (any single argument exceeding 2000 bytes causes a buffer overrun
6309     # during glob expansion).  Even if it were fixed, the result of this
6310     # check would be larger than it should be.
6311     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6312     ;;
6313
6314   gnu*)
6315     # Under GNU Hurd, this test is not required because there is
6316     # no limit to the length of command line arguments.
6317     # Libtool will interpret -1 as no limit whatsoever
6318     lt_cv_sys_max_cmd_len=-1;
6319     ;;
6320
6321   cygwin* | mingw*)
6322     # On Win9x/ME, this test blows up -- it succeeds, but takes
6323     # about 5 minutes as the teststring grows exponentially.
6324     # Worse, since 9x/ME are not pre-emptively multitasking,
6325     # you end up with a "frozen" computer, even though with patience
6326     # the test eventually succeeds (with a max line length of 256k).
6327     # Instead, let's just punt: use the minimum linelength reported by
6328     # all of the supported platforms: 8192 (on NT/2K/XP).
6329     lt_cv_sys_max_cmd_len=8192;
6330     ;;
6331
6332   amigaos*)
6333     # On AmigaOS with pdksh, this test takes hours, literally.
6334     # So we just punt and use a minimum line length of 8192.
6335     lt_cv_sys_max_cmd_len=8192;
6336     ;;
6337
6338   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6339     # This has been around since 386BSD, at least.  Likely further.
6340     if test -x /sbin/sysctl; then
6341       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6342     elif test -x /usr/sbin/sysctl; then
6343       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6344     else
6345       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6346     fi
6347     # And add a safety zone
6348     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6349     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6350     ;;
6351
6352   interix*)
6353     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6354     lt_cv_sys_max_cmd_len=196608
6355     ;;
6356
6357   osf*)
6358     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6359     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6360     # nice to cause kernel panics so lets avoid the loop below.
6361     # First set a reasonable default.
6362     lt_cv_sys_max_cmd_len=16384
6363     #
6364     if test -x /sbin/sysconfig; then
6365       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6366         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6367       esac
6368     fi
6369     ;;
6370   sco3.2v5*)
6371     lt_cv_sys_max_cmd_len=102400
6372     ;;
6373   sysv5* | sco5v6* | sysv4.2uw2*)
6374     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6375     if test -n "$kargmax"; then
6376       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6377     else
6378       lt_cv_sys_max_cmd_len=32768
6379     fi
6380     ;;
6381   *)
6382     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6383     if test -n "$lt_cv_sys_max_cmd_len"; then
6384       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6385       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6386     else
6387       # Make teststring a little bigger before we do anything with it.
6388       # a 1K string should be a reasonable start.
6389       for i in 1 2 3 4 5 6 7 8 ; do
6390         teststring=$teststring$teststring
6391       done
6392       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6393       # If test is not a shell built-in, we'll probably end up computing a
6394       # maximum length that is only half of the actual maximum length, but
6395       # we can't tell.
6396       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6397                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6398               test $i != 17 # 1/2 MB should be enough
6399       do
6400         i=`expr $i + 1`
6401         teststring=$teststring$teststring
6402       done
6403       # Only check the string length outside the loop.
6404       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6405       teststring=
6406       # Add a significant safety factor because C++ compilers can tack on
6407       # massive amounts of additional arguments before passing them to the
6408       # linker.  It appears as though 1/2 is a usable value.
6409       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6410     fi
6411     ;;
6412   esac
6413
6414 fi
6415
6416 if test -n $lt_cv_sys_max_cmd_len ; then
6417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6418 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6419 else
6420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6421 $as_echo "none" >&6; }
6422 fi
6423 max_cmd_len=$lt_cv_sys_max_cmd_len
6424
6425
6426
6427
6428
6429
6430
6431 : ${CP="cp -f"}
6432 : ${MV="mv -f"}
6433 : ${RM="rm -f"}
6434
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6436 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6437 # Try some XSI features
6438 xsi_shell=no
6439 ( _lt_dummy="a/b/c"
6440   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6441       = c,a/b,, ) >/dev/null 2>&1 \
6442   && xsi_shell=yes
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6444 $as_echo "$xsi_shell" >&6; }
6445
6446
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6448 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6449 lt_shell_append=no
6450 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6451     >/dev/null 2>&1 \
6452   && lt_shell_append=yes
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6454 $as_echo "$lt_shell_append" >&6; }
6455
6456
6457 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6458   lt_unset=unset
6459 else
6460   lt_unset=false
6461 fi
6462
6463
6464
6465
6466
6467 # test EBCDIC or ASCII
6468 case `echo X|tr X '\101'` in
6469  A) # ASCII based system
6470     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6471   lt_SP2NL='tr \040 \012'
6472   lt_NL2SP='tr \015\012 \040\040'
6473   ;;
6474  *) # EBCDIC based system
6475   lt_SP2NL='tr \100 \n'
6476   lt_NL2SP='tr \r\n \100\100'
6477   ;;
6478 esac
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6489 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6490 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6491   $as_echo_n "(cached) " >&6
6492 else
6493   lt_cv_ld_reload_flag='-r'
6494 fi
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6496 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6497 reload_flag=$lt_cv_ld_reload_flag
6498 case $reload_flag in
6499 "" | " "*) ;;
6500 *) reload_flag=" $reload_flag" ;;
6501 esac
6502 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6503 case $host_os in
6504   darwin*)
6505     if test "$GCC" = yes; then
6506       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6507     else
6508       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6509     fi
6510     ;;
6511 esac
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6523 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6524 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6525   $as_echo_n "(cached) " >&6
6526 else
6527   lt_cv_file_magic_cmd='$MAGIC_CMD'
6528 lt_cv_file_magic_test_file=
6529 lt_cv_deplibs_check_method='unknown'
6530 # Need to set the preceding variable on all platforms that support
6531 # interlibrary dependencies.
6532 # 'none' -- dependencies not supported.
6533 # `unknown' -- same as none, but documents that we really don't know.
6534 # 'pass_all' -- all dependencies passed with no checks.
6535 # 'test_compile' -- check by making test program.
6536 # 'file_magic [[regex]]' -- check by looking for files in library path
6537 # which responds to the $file_magic_cmd with a given extended regex.
6538 # If you have `file' or equivalent on your system and you're not sure
6539 # whether `pass_all' will *always* work, you probably want this one.
6540
6541 case $host_os in
6542 aix[4-9]*)
6543   lt_cv_deplibs_check_method=pass_all
6544   ;;
6545
6546 beos*)
6547   lt_cv_deplibs_check_method=pass_all
6548   ;;
6549
6550 bsdi[45]*)
6551   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6552   lt_cv_file_magic_cmd='/usr/bin/file -L'
6553   lt_cv_file_magic_test_file=/shlib/libc.so
6554   ;;
6555
6556 cygwin*)
6557   # func_win32_libid is a shell function defined in ltmain.sh
6558   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6559   lt_cv_file_magic_cmd='func_win32_libid'
6560   ;;
6561
6562 mingw* | pw32*)
6563   # Base MSYS/MinGW do not provide the 'file' command needed by
6564   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6565   # unless we find 'file', for example because we are cross-compiling.
6566   if ( file / ) >/dev/null 2>&1; then
6567     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6568     lt_cv_file_magic_cmd='func_win32_libid'
6569   else
6570     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6571     lt_cv_file_magic_cmd='$OBJDUMP -f'
6572   fi
6573   ;;
6574
6575 darwin* | rhapsody*)
6576   lt_cv_deplibs_check_method=pass_all
6577   ;;
6578
6579 freebsd* | dragonfly*)
6580   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6581     case $host_cpu in
6582     i*86 )
6583       # Not sure whether the presence of OpenBSD here was a mistake.
6584       # Let's accept both of them until this is cleared up.
6585       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6586       lt_cv_file_magic_cmd=/usr/bin/file
6587       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6588       ;;
6589     esac
6590   else
6591     lt_cv_deplibs_check_method=pass_all
6592   fi
6593   ;;
6594
6595 gnu*)
6596   lt_cv_deplibs_check_method=pass_all
6597   ;;
6598
6599 hpux10.20* | hpux11*)
6600   lt_cv_file_magic_cmd=/usr/bin/file
6601   case $host_cpu in
6602   ia64*)
6603     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6604     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6605     ;;
6606   hppa*64*)
6607     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6608     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6609     ;;
6610   *)
6611     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6612     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6613     ;;
6614   esac
6615   ;;
6616
6617 interix[3-9]*)
6618   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6619   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6620   ;;
6621
6622 irix5* | irix6* | nonstopux*)
6623   case $LD in
6624   *-32|*"-32 ") libmagic=32-bit;;
6625   *-n32|*"-n32 ") libmagic=N32;;
6626   *-64|*"-64 ") libmagic=64-bit;;
6627   *) libmagic=never-match;;
6628   esac
6629   lt_cv_deplibs_check_method=pass_all
6630   ;;
6631
6632 # This must be Linux ELF.
6633 linux* | k*bsd*-gnu)
6634   lt_cv_deplibs_check_method=pass_all
6635   ;;
6636
6637 netbsd*)
6638   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6639     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6640   else
6641     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6642   fi
6643   ;;
6644
6645 newos6*)
6646   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6647   lt_cv_file_magic_cmd=/usr/bin/file
6648   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6649   ;;
6650
6651 *nto* | *qnx*)
6652   lt_cv_deplibs_check_method=pass_all
6653   ;;
6654
6655 openbsd*)
6656   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6657     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6658   else
6659     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6660   fi
6661   ;;
6662
6663 osf3* | osf4* | osf5*)
6664   lt_cv_deplibs_check_method=pass_all
6665   ;;
6666
6667 rdos*)
6668   lt_cv_deplibs_check_method=pass_all
6669   ;;
6670
6671 solaris*)
6672   lt_cv_deplibs_check_method=pass_all
6673   ;;
6674
6675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6676   lt_cv_deplibs_check_method=pass_all
6677   ;;
6678
6679 sysv4 | sysv4.3*)
6680   case $host_vendor in
6681   motorola)
6682     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]'
6683     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6684     ;;
6685   ncr)
6686     lt_cv_deplibs_check_method=pass_all
6687     ;;
6688   sequent)
6689     lt_cv_file_magic_cmd='/bin/file'
6690     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6691     ;;
6692   sni)
6693     lt_cv_file_magic_cmd='/bin/file'
6694     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6695     lt_cv_file_magic_test_file=/lib/libc.so
6696     ;;
6697   siemens)
6698     lt_cv_deplibs_check_method=pass_all
6699     ;;
6700   pc)
6701     lt_cv_deplibs_check_method=pass_all
6702     ;;
6703   esac
6704   ;;
6705
6706 tpf*)
6707   lt_cv_deplibs_check_method=pass_all
6708   ;;
6709 esac
6710
6711 fi
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6713 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6714 file_magic_cmd=$lt_cv_file_magic_cmd
6715 deplibs_check_method=$lt_cv_deplibs_check_method
6716 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729 if test -n "$ac_tool_prefix"; then
6730   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6731 set dummy ${ac_tool_prefix}ar; ac_word=$2
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733 $as_echo_n "checking for $ac_word... " >&6; }
6734 if test "${ac_cv_prog_AR+set}" = set; then :
6735   $as_echo_n "(cached) " >&6
6736 else
6737   if test -n "$AR"; then
6738   ac_cv_prog_AR="$AR" # Let the user override the test.
6739 else
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 for as_dir in $PATH
6742 do
6743   IFS=$as_save_IFS
6744   test -z "$as_dir" && as_dir=.
6745     for ac_exec_ext in '' $ac_executable_extensions; do
6746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747     ac_cv_prog_AR="${ac_tool_prefix}ar"
6748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6749     break 2
6750   fi
6751 done
6752   done
6753 IFS=$as_save_IFS
6754
6755 fi
6756 fi
6757 AR=$ac_cv_prog_AR
6758 if test -n "$AR"; then
6759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6760 $as_echo "$AR" >&6; }
6761 else
6762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6763 $as_echo "no" >&6; }
6764 fi
6765
6766
6767 fi
6768 if test -z "$ac_cv_prog_AR"; then
6769   ac_ct_AR=$AR
6770   # Extract the first word of "ar", so it can be a program name with args.
6771 set dummy ar; ac_word=$2
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773 $as_echo_n "checking for $ac_word... " >&6; }
6774 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6775   $as_echo_n "(cached) " >&6
6776 else
6777   if test -n "$ac_ct_AR"; then
6778   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6779 else
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 for as_dir in $PATH
6782 do
6783   IFS=$as_save_IFS
6784   test -z "$as_dir" && as_dir=.
6785     for ac_exec_ext in '' $ac_executable_extensions; do
6786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6787     ac_cv_prog_ac_ct_AR="ar"
6788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6789     break 2
6790   fi
6791 done
6792   done
6793 IFS=$as_save_IFS
6794
6795 fi
6796 fi
6797 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6798 if test -n "$ac_ct_AR"; then
6799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6800 $as_echo "$ac_ct_AR" >&6; }
6801 else
6802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6803 $as_echo "no" >&6; }
6804 fi
6805
6806   if test "x$ac_ct_AR" = x; then
6807     AR="false"
6808   else
6809     case $cross_compiling:$ac_tool_warned in
6810 yes:)
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6813 ac_tool_warned=yes ;;
6814 esac
6815     AR=$ac_ct_AR
6816   fi
6817 else
6818   AR="$ac_cv_prog_AR"
6819 fi
6820
6821 test -z "$AR" && AR=ar
6822 test -z "$AR_FLAGS" && AR_FLAGS=cru
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834 if test -n "$ac_tool_prefix"; then
6835   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6836 set dummy ${ac_tool_prefix}strip; ac_word=$2
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6838 $as_echo_n "checking for $ac_word... " >&6; }
6839 if test "${ac_cv_prog_STRIP+set}" = set; then :
6840   $as_echo_n "(cached) " >&6
6841 else
6842   if test -n "$STRIP"; then
6843   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6844 else
6845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 for as_dir in $PATH
6847 do
6848   IFS=$as_save_IFS
6849   test -z "$as_dir" && as_dir=.
6850     for ac_exec_ext in '' $ac_executable_extensions; do
6851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6852     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6854     break 2
6855   fi
6856 done
6857   done
6858 IFS=$as_save_IFS
6859
6860 fi
6861 fi
6862 STRIP=$ac_cv_prog_STRIP
6863 if test -n "$STRIP"; then
6864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6865 $as_echo "$STRIP" >&6; }
6866 else
6867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6868 $as_echo "no" >&6; }
6869 fi
6870
6871
6872 fi
6873 if test -z "$ac_cv_prog_STRIP"; then
6874   ac_ct_STRIP=$STRIP
6875   # Extract the first word of "strip", so it can be a program name with args.
6876 set dummy strip; ac_word=$2
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6878 $as_echo_n "checking for $ac_word... " >&6; }
6879 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6880   $as_echo_n "(cached) " >&6
6881 else
6882   if test -n "$ac_ct_STRIP"; then
6883   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6884 else
6885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 for as_dir in $PATH
6887 do
6888   IFS=$as_save_IFS
6889   test -z "$as_dir" && as_dir=.
6890     for ac_exec_ext in '' $ac_executable_extensions; do
6891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6892     ac_cv_prog_ac_ct_STRIP="strip"
6893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6894     break 2
6895   fi
6896 done
6897   done
6898 IFS=$as_save_IFS
6899
6900 fi
6901 fi
6902 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6903 if test -n "$ac_ct_STRIP"; then
6904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6905 $as_echo "$ac_ct_STRIP" >&6; }
6906 else
6907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6908 $as_echo "no" >&6; }
6909 fi
6910
6911   if test "x$ac_ct_STRIP" = x; then
6912     STRIP=":"
6913   else
6914     case $cross_compiling:$ac_tool_warned in
6915 yes:)
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6918 ac_tool_warned=yes ;;
6919 esac
6920     STRIP=$ac_ct_STRIP
6921   fi
6922 else
6923   STRIP="$ac_cv_prog_STRIP"
6924 fi
6925
6926 test -z "$STRIP" && STRIP=:
6927
6928
6929
6930
6931
6932
6933 if test -n "$ac_tool_prefix"; then
6934   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6935 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6937 $as_echo_n "checking for $ac_word... " >&6; }
6938 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6939   $as_echo_n "(cached) " >&6
6940 else
6941   if test -n "$RANLIB"; then
6942   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6943 else
6944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945 for as_dir in $PATH
6946 do
6947   IFS=$as_save_IFS
6948   test -z "$as_dir" && as_dir=.
6949     for ac_exec_ext in '' $ac_executable_extensions; do
6950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6951     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6953     break 2
6954   fi
6955 done
6956   done
6957 IFS=$as_save_IFS
6958
6959 fi
6960 fi
6961 RANLIB=$ac_cv_prog_RANLIB
6962 if test -n "$RANLIB"; then
6963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6964 $as_echo "$RANLIB" >&6; }
6965 else
6966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967 $as_echo "no" >&6; }
6968 fi
6969
6970
6971 fi
6972 if test -z "$ac_cv_prog_RANLIB"; then
6973   ac_ct_RANLIB=$RANLIB
6974   # Extract the first word of "ranlib", so it can be a program name with args.
6975 set dummy ranlib; ac_word=$2
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6977 $as_echo_n "checking for $ac_word... " >&6; }
6978 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6979   $as_echo_n "(cached) " >&6
6980 else
6981   if test -n "$ac_ct_RANLIB"; then
6982   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6983 else
6984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 for as_dir in $PATH
6986 do
6987   IFS=$as_save_IFS
6988   test -z "$as_dir" && as_dir=.
6989     for ac_exec_ext in '' $ac_executable_extensions; do
6990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6991     ac_cv_prog_ac_ct_RANLIB="ranlib"
6992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6993     break 2
6994   fi
6995 done
6996   done
6997 IFS=$as_save_IFS
6998
6999 fi
7000 fi
7001 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7002 if test -n "$ac_ct_RANLIB"; then
7003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7004 $as_echo "$ac_ct_RANLIB" >&6; }
7005 else
7006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7007 $as_echo "no" >&6; }
7008 fi
7009
7010   if test "x$ac_ct_RANLIB" = x; then
7011     RANLIB=":"
7012   else
7013     case $cross_compiling:$ac_tool_warned in
7014 yes:)
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7017 ac_tool_warned=yes ;;
7018 esac
7019     RANLIB=$ac_ct_RANLIB
7020   fi
7021 else
7022   RANLIB="$ac_cv_prog_RANLIB"
7023 fi
7024
7025 test -z "$RANLIB" && RANLIB=:
7026
7027
7028
7029
7030
7031
7032 # Determine commands to create old-style static archives.
7033 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7034 old_postinstall_cmds='chmod 644 $oldlib'
7035 old_postuninstall_cmds=
7036
7037 if test -n "$RANLIB"; then
7038   case $host_os in
7039   openbsd*)
7040     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7041     ;;
7042   *)
7043     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7044     ;;
7045   esac
7046   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7047 fi
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082 # If no C compiler was specified, use CC.
7083 LTCC=${LTCC-"$CC"}
7084
7085 # If no C compiler flags were specified, use CFLAGS.
7086 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7087
7088 # Allow CC to be a program name with arguments.
7089 compiler=$CC
7090
7091
7092 # Check for command to grab the raw symbol name followed by C symbol from nm.
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7094 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7095 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7096   $as_echo_n "(cached) " >&6
7097 else
7098
7099 # These are sane defaults that work on at least a few old systems.
7100 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7101
7102 # Character class describing NM global symbol codes.
7103 symcode='[BCDEGRST]'
7104
7105 # Regexp to match symbols that can be accessed directly from C.
7106 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7107
7108 # Define system-specific variables.
7109 case $host_os in
7110 aix*)
7111   symcode='[BCDT]'
7112   ;;
7113 cygwin* | mingw* | pw32*)
7114   symcode='[ABCDGISTW]'
7115   ;;
7116 hpux*)
7117   if test "$host_cpu" = ia64; then
7118     symcode='[ABCDEGRST]'
7119   fi
7120   ;;
7121 irix* | nonstopux*)
7122   symcode='[BCDEGRST]'
7123   ;;
7124 osf*)
7125   symcode='[BCDEGQRST]'
7126   ;;
7127 solaris*)
7128   symcode='[BDRT]'
7129   ;;
7130 sco3.2v5*)
7131   symcode='[DT]'
7132   ;;
7133 sysv4.2uw2*)
7134   symcode='[DT]'
7135   ;;
7136 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7137   symcode='[ABDT]'
7138   ;;
7139 sysv4)
7140   symcode='[DFNSTU]'
7141   ;;
7142 esac
7143
7144 # If we're using GNU nm, then use its standard symbol codes.
7145 case `$NM -V 2>&1` in
7146 *GNU* | *'with BFD'*)
7147   symcode='[ABCDGIRSTW]' ;;
7148 esac
7149
7150 # Transform an extracted symbol line into a proper C declaration.
7151 # Some systems (esp. on ia64) link data and code symbols differently,
7152 # so use this general approach.
7153 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7154
7155 # Transform an extracted symbol line into symbol name and symbol address
7156 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7157 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'"
7158
7159 # Handle CRLF in mingw tool chain
7160 opt_cr=
7161 case $build_os in
7162 mingw*)
7163   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7164   ;;
7165 esac
7166
7167 # Try without a prefix underscore, then with it.
7168 for ac_symprfx in "" "_"; do
7169
7170   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7171   symxfrm="\\1 $ac_symprfx\\2 \\2"
7172
7173   # Write the raw and C identifiers.
7174   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7175     # Fake it for dumpbin and say T for any non-static function
7176     # and D for any global variable.
7177     # Also find C++ and __fastcall symbols from MSVC++,
7178     # which start with @ or ?.
7179     lt_cv_sys_global_symbol_pipe="$AWK '"\
7180 "     {last_section=section; section=\$ 3};"\
7181 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7182 "     \$ 0!~/External *\|/{next};"\
7183 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7184 "     {if(hide[section]) next};"\
7185 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7186 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7187 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7188 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7189 "     ' prfx=^$ac_symprfx"
7190   else
7191     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7192   fi
7193
7194   # Check to see that the pipe works correctly.
7195   pipe_works=no
7196
7197   rm -f conftest*
7198   cat > conftest.$ac_ext <<_LT_EOF
7199 #ifdef __cplusplus
7200 extern "C" {
7201 #endif
7202 char nm_test_var;
7203 void nm_test_func(void);
7204 void nm_test_func(void){}
7205 #ifdef __cplusplus
7206 }
7207 #endif
7208 int main(){nm_test_var='a';nm_test_func();return(0);}
7209 _LT_EOF
7210
7211   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7212   (eval $ac_compile) 2>&5
7213   ac_status=$?
7214   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7215   test $ac_status = 0; }; then
7216     # Now try to grab the symbols.
7217     nlist=conftest.nm
7218     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7219   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7220   ac_status=$?
7221   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7222   test $ac_status = 0; } && test -s "$nlist"; then
7223       # Try sorting and uniquifying the output.
7224       if sort "$nlist" | uniq > "$nlist"T; then
7225         mv -f "$nlist"T "$nlist"
7226       else
7227         rm -f "$nlist"T
7228       fi
7229
7230       # Make sure that we snagged all the symbols we need.
7231       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7232         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7233           cat <<_LT_EOF > conftest.$ac_ext
7234 #ifdef __cplusplus
7235 extern "C" {
7236 #endif
7237
7238 _LT_EOF
7239           # Now generate the symbol file.
7240           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7241
7242           cat <<_LT_EOF >> conftest.$ac_ext
7243
7244 /* The mapping between symbol names and symbols.  */
7245 const struct {
7246   const char *name;
7247   void       *address;
7248 }
7249 lt__PROGRAM__LTX_preloaded_symbols[] =
7250 {
7251   { "@PROGRAM@", (void *) 0 },
7252 _LT_EOF
7253           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7254           cat <<\_LT_EOF >> conftest.$ac_ext
7255   {0, (void *) 0}
7256 };
7257
7258 /* This works around a problem in FreeBSD linker */
7259 #ifdef FREEBSD_WORKAROUND
7260 static const void *lt_preloaded_setup() {
7261   return lt__PROGRAM__LTX_preloaded_symbols;
7262 }
7263 #endif
7264
7265 #ifdef __cplusplus
7266 }
7267 #endif
7268 _LT_EOF
7269           # Now try linking the two files.
7270           mv conftest.$ac_objext conftstm.$ac_objext
7271           lt_save_LIBS="$LIBS"
7272           lt_save_CFLAGS="$CFLAGS"
7273           LIBS="conftstm.$ac_objext"
7274           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7275           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7276   (eval $ac_link) 2>&5
7277   ac_status=$?
7278   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7279   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7280             pipe_works=yes
7281           fi
7282           LIBS="$lt_save_LIBS"
7283           CFLAGS="$lt_save_CFLAGS"
7284         else
7285           echo "cannot find nm_test_func in $nlist" >&5
7286         fi
7287       else
7288         echo "cannot find nm_test_var in $nlist" >&5
7289       fi
7290     else
7291       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7292     fi
7293   else
7294     echo "$progname: failed program was:" >&5
7295     cat conftest.$ac_ext >&5
7296   fi
7297   rm -rf conftest* conftst*
7298
7299   # Do not use the global_symbol_pipe unless it works.
7300   if test "$pipe_works" = yes; then
7301     break
7302   else
7303     lt_cv_sys_global_symbol_pipe=
7304   fi
7305 done
7306
7307 fi
7308
7309 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7310   lt_cv_sys_global_symbol_to_cdecl=
7311 fi
7312 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7314 $as_echo "failed" >&6; }
7315 else
7316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7317 $as_echo "ok" >&6; }
7318 fi
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341 # Check whether --enable-libtool-lock was given.
7342 if test "${enable_libtool_lock+set}" = set; then :
7343   enableval=$enable_libtool_lock;
7344 fi
7345
7346 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7347
7348 # Some flags need to be propagated to the compiler or linker for good
7349 # libtool support.
7350 case $host in
7351 ia64-*-hpux*)
7352   # Find out which ABI we are using.
7353   echo 'int i;' > conftest.$ac_ext
7354   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7355   (eval $ac_compile) 2>&5
7356   ac_status=$?
7357   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7358   test $ac_status = 0; }; then
7359     case `/usr/bin/file conftest.$ac_objext` in
7360       *ELF-32*)
7361         HPUX_IA64_MODE="32"
7362         ;;
7363       *ELF-64*)
7364         HPUX_IA64_MODE="64"
7365         ;;
7366     esac
7367   fi
7368   rm -rf conftest*
7369   ;;
7370 *-*-irix6*)
7371   # Find out which ABI we are using.
7372   echo '#line 7372 "configure"' > conftest.$ac_ext
7373   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7374   (eval $ac_compile) 2>&5
7375   ac_status=$?
7376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7377   test $ac_status = 0; }; then
7378     if test "$lt_cv_prog_gnu_ld" = yes; then
7379       case `/usr/bin/file conftest.$ac_objext` in
7380         *32-bit*)
7381           LD="${LD-ld} -melf32bsmip"
7382           ;;
7383         *N32*)
7384           LD="${LD-ld} -melf32bmipn32"
7385           ;;
7386         *64-bit*)
7387           LD="${LD-ld} -melf64bmip"
7388         ;;
7389       esac
7390     else
7391       case `/usr/bin/file conftest.$ac_objext` in
7392         *32-bit*)
7393           LD="${LD-ld} -32"
7394           ;;
7395         *N32*)
7396           LD="${LD-ld} -n32"
7397           ;;
7398         *64-bit*)
7399           LD="${LD-ld} -64"
7400           ;;
7401       esac
7402     fi
7403   fi
7404   rm -rf conftest*
7405   ;;
7406
7407 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7408 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7409   # Find out which ABI we are using.
7410   echo 'int i;' > conftest.$ac_ext
7411   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7412   (eval $ac_compile) 2>&5
7413   ac_status=$?
7414   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7415   test $ac_status = 0; }; then
7416     case `/usr/bin/file conftest.o` in
7417       *32-bit*)
7418         case $host in
7419           x86_64-*kfreebsd*-gnu)
7420             LD="${LD-ld} -m elf_i386_fbsd"
7421             ;;
7422           x86_64-*linux*)
7423             LD="${LD-ld} -m elf_i386"
7424             ;;
7425           ppc64-*linux*|powerpc64-*linux*)
7426             LD="${LD-ld} -m elf32ppclinux"
7427             ;;
7428           s390x-*linux*)
7429             LD="${LD-ld} -m elf_s390"
7430             ;;
7431           sparc64-*linux*)
7432             LD="${LD-ld} -m elf32_sparc"
7433             ;;
7434         esac
7435         ;;
7436       *64-bit*)
7437         case $host in
7438           x86_64-*kfreebsd*-gnu)
7439             LD="${LD-ld} -m elf_x86_64_fbsd"
7440             ;;
7441           x86_64-*linux*)
7442             LD="${LD-ld} -m elf_x86_64"
7443             ;;
7444           ppc*-*linux*|powerpc*-*linux*)
7445             LD="${LD-ld} -m elf64ppc"
7446             ;;
7447           s390*-*linux*|s390*-*tpf*)
7448             LD="${LD-ld} -m elf64_s390"
7449             ;;
7450           sparc*-*linux*)
7451             LD="${LD-ld} -m elf64_sparc"
7452             ;;
7453         esac
7454         ;;
7455     esac
7456   fi
7457   rm -rf conftest*
7458   ;;
7459
7460 *-*-sco3.2v5*)
7461   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7462   SAVE_CFLAGS="$CFLAGS"
7463   CFLAGS="$CFLAGS -belf"
7464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7465 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7466 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7467   $as_echo_n "(cached) " >&6
7468 else
7469   ac_ext=c
7470 ac_cpp='$CPP $CPPFLAGS'
7471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7474
7475      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h.  */
7477
7478 int
7479 main ()
7480 {
7481
7482   ;
7483   return 0;
7484 }
7485 _ACEOF
7486 if ac_fn_c_try_link "$LINENO"; then :
7487   lt_cv_cc_needs_belf=yes
7488 else
7489   lt_cv_cc_needs_belf=no
7490 fi
7491 rm -f core conftest.err conftest.$ac_objext \
7492     conftest$ac_exeext conftest.$ac_ext
7493      ac_ext=c
7494 ac_cpp='$CPP $CPPFLAGS'
7495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7498
7499 fi
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7501 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7502   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7503     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7504     CFLAGS="$SAVE_CFLAGS"
7505   fi
7506   ;;
7507 sparc*-*solaris*)
7508   # Find out which ABI we are using.
7509   echo 'int i;' > conftest.$ac_ext
7510   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7511   (eval $ac_compile) 2>&5
7512   ac_status=$?
7513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7514   test $ac_status = 0; }; then
7515     case `/usr/bin/file conftest.o` in
7516     *64-bit*)
7517       case $lt_cv_prog_gnu_ld in
7518       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7519       *)
7520         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7521           LD="${LD-ld} -64"
7522         fi
7523         ;;
7524       esac
7525       ;;
7526     esac
7527   fi
7528   rm -rf conftest*
7529   ;;
7530 esac
7531
7532 need_locks="$enable_libtool_lock"
7533
7534
7535   case $host_os in
7536     rhapsody* | darwin*)
7537     if test -n "$ac_tool_prefix"; then
7538   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7539 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7541 $as_echo_n "checking for $ac_word... " >&6; }
7542 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7543   $as_echo_n "(cached) " >&6
7544 else
7545   if test -n "$DSYMUTIL"; then
7546   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7547 else
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 for as_dir in $PATH
7550 do
7551   IFS=$as_save_IFS
7552   test -z "$as_dir" && as_dir=.
7553     for ac_exec_ext in '' $ac_executable_extensions; do
7554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7555     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7557     break 2
7558   fi
7559 done
7560   done
7561 IFS=$as_save_IFS
7562
7563 fi
7564 fi
7565 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7566 if test -n "$DSYMUTIL"; then
7567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7568 $as_echo "$DSYMUTIL" >&6; }
7569 else
7570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7572 fi
7573
7574
7575 fi
7576 if test -z "$ac_cv_prog_DSYMUTIL"; then
7577   ac_ct_DSYMUTIL=$DSYMUTIL
7578   # Extract the first word of "dsymutil", so it can be a program name with args.
7579 set dummy dsymutil; ac_word=$2
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581 $as_echo_n "checking for $ac_word... " >&6; }
7582 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7583   $as_echo_n "(cached) " >&6
7584 else
7585   if test -n "$ac_ct_DSYMUTIL"; then
7586   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7587 else
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 for as_dir in $PATH
7590 do
7591   IFS=$as_save_IFS
7592   test -z "$as_dir" && as_dir=.
7593     for ac_exec_ext in '' $ac_executable_extensions; do
7594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7595     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7597     break 2
7598   fi
7599 done
7600   done
7601 IFS=$as_save_IFS
7602
7603 fi
7604 fi
7605 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7606 if test -n "$ac_ct_DSYMUTIL"; then
7607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7608 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7609 else
7610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 $as_echo "no" >&6; }
7612 fi
7613
7614   if test "x$ac_ct_DSYMUTIL" = x; then
7615     DSYMUTIL=":"
7616   else
7617     case $cross_compiling:$ac_tool_warned in
7618 yes:)
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7621 ac_tool_warned=yes ;;
7622 esac
7623     DSYMUTIL=$ac_ct_DSYMUTIL
7624   fi
7625 else
7626   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7627 fi
7628
7629     if test -n "$ac_tool_prefix"; then
7630   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7631 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7633 $as_echo_n "checking for $ac_word... " >&6; }
7634 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7635   $as_echo_n "(cached) " >&6
7636 else
7637   if test -n "$NMEDIT"; then
7638   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7639 else
7640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 for as_dir in $PATH
7642 do
7643   IFS=$as_save_IFS
7644   test -z "$as_dir" && as_dir=.
7645     for ac_exec_ext in '' $ac_executable_extensions; do
7646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7647     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7649     break 2
7650   fi
7651 done
7652   done
7653 IFS=$as_save_IFS
7654
7655 fi
7656 fi
7657 NMEDIT=$ac_cv_prog_NMEDIT
7658 if test -n "$NMEDIT"; then
7659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7660 $as_echo "$NMEDIT" >&6; }
7661 else
7662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663 $as_echo "no" >&6; }
7664 fi
7665
7666
7667 fi
7668 if test -z "$ac_cv_prog_NMEDIT"; then
7669   ac_ct_NMEDIT=$NMEDIT
7670   # Extract the first word of "nmedit", so it can be a program name with args.
7671 set dummy nmedit; ac_word=$2
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673 $as_echo_n "checking for $ac_word... " >&6; }
7674 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7675   $as_echo_n "(cached) " >&6
7676 else
7677   if test -n "$ac_ct_NMEDIT"; then
7678   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7679 else
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 for as_dir in $PATH
7682 do
7683   IFS=$as_save_IFS
7684   test -z "$as_dir" && as_dir=.
7685     for ac_exec_ext in '' $ac_executable_extensions; do
7686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7687     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7689     break 2
7690   fi
7691 done
7692   done
7693 IFS=$as_save_IFS
7694
7695 fi
7696 fi
7697 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7698 if test -n "$ac_ct_NMEDIT"; then
7699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7700 $as_echo "$ac_ct_NMEDIT" >&6; }
7701 else
7702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703 $as_echo "no" >&6; }
7704 fi
7705
7706   if test "x$ac_ct_NMEDIT" = x; then
7707     NMEDIT=":"
7708   else
7709     case $cross_compiling:$ac_tool_warned in
7710 yes:)
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7713 ac_tool_warned=yes ;;
7714 esac
7715     NMEDIT=$ac_ct_NMEDIT
7716   fi
7717 else
7718   NMEDIT="$ac_cv_prog_NMEDIT"
7719 fi
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7733 $as_echo_n "checking for -single_module linker flag... " >&6; }
7734 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7735   $as_echo_n "(cached) " >&6
7736 else
7737   lt_cv_apple_cc_single_mod=no
7738       if test -z "${LT_MULTI_MODULE}"; then
7739         # By default we will add the -single_module flag. You can override
7740         # by either setting the environment variable LT_MULTI_MODULE
7741         # non-empty at configure time, or by adding -multi_module to the
7742         # link flags.
7743         echo "int foo(void){return 1;}" > conftest.c
7744         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7745           -dynamiclib ${wl}-single_module conftest.c
7746         if test -f libconftest.dylib; then
7747           lt_cv_apple_cc_single_mod=yes
7748           rm -rf libconftest.dylib*
7749         fi
7750         rm conftest.c
7751       fi
7752 fi
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7754 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7755     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7756 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7757 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7758   $as_echo_n "(cached) " >&6
7759 else
7760   lt_cv_ld_exported_symbols_list=no
7761       save_LDFLAGS=$LDFLAGS
7762       echo "_main" > conftest.sym
7763       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7764       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h.  */
7766
7767 int
7768 main ()
7769 {
7770
7771   ;
7772   return 0;
7773 }
7774 _ACEOF
7775 if ac_fn_c_try_link "$LINENO"; then :
7776   lt_cv_ld_exported_symbols_list=yes
7777 else
7778   lt_cv_ld_exported_symbols_list=no
7779 fi
7780 rm -f core conftest.err conftest.$ac_objext \
7781     conftest$ac_exeext conftest.$ac_ext
7782         LDFLAGS="$save_LDFLAGS"
7783
7784 fi
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7786 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7787     case $host_os in
7788     rhapsody* | darwin1.[012])
7789       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7790     darwin1.*)
7791       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7792     darwin*) # darwin 5.x on
7793       # if running on 10.5 or later, the deployment target defaults
7794       # to the OS version, if on x86, and 10.4, the deployment
7795       # target defaults to 10.4. Don't you love it?
7796       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7797         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7798           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7799         10.[012]*)
7800           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7801         10.*)
7802           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7803       esac
7804     ;;
7805   esac
7806     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7807       _lt_dar_single_mod='$single_module'
7808     fi
7809     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7810       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7811     else
7812       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7813     fi
7814     if test "$DSYMUTIL" != ":"; then
7815       _lt_dsymutil='~$DSYMUTIL $lib || :'
7816     else
7817       _lt_dsymutil=
7818     fi
7819     ;;
7820   esac
7821
7822 ac_ext=c
7823 ac_cpp='$CPP $CPPFLAGS'
7824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7828 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7829 # On Suns, sometimes $CPP names a directory.
7830 if test -n "$CPP" && test -d "$CPP"; then
7831   CPP=
7832 fi
7833 if test -z "$CPP"; then
7834   if test "${ac_cv_prog_CPP+set}" = set; then :
7835   $as_echo_n "(cached) " >&6
7836 else
7837       # Double quotes because CPP needs to be expanded
7838     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7839     do
7840       ac_preproc_ok=false
7841 for ac_c_preproc_warn_flag in '' yes
7842 do
7843   # Use a header file that comes with gcc, so configuring glibc
7844   # with a fresh cross-compiler works.
7845   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7846   # <limits.h> exists even on freestanding compilers.
7847   # On the NeXT, cc -E runs the code through the compiler's parser,
7848   # not just through cpp. "Syntax error" is here to catch this case.
7849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850 /* end confdefs.h.  */
7851 #ifdef __STDC__
7852 # include <limits.h>
7853 #else
7854 # include <assert.h>
7855 #endif
7856                      Syntax error
7857 _ACEOF
7858 if ac_fn_c_try_cpp "$LINENO"; then :
7859
7860 else
7861   # Broken: fails on valid input.
7862 continue
7863 fi
7864 rm -f conftest.err conftest.$ac_ext
7865
7866   # OK, works on sane cases.  Now check whether nonexistent headers
7867   # can be detected and how.
7868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869 /* end confdefs.h.  */
7870 #include <ac_nonexistent.h>
7871 _ACEOF
7872 if ac_fn_c_try_cpp "$LINENO"; then :
7873   # Broken: success on invalid input.
7874 continue
7875 else
7876   # Passes both tests.
7877 ac_preproc_ok=:
7878 break
7879 fi
7880 rm -f conftest.err conftest.$ac_ext
7881
7882 done
7883 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7884 rm -f conftest.err conftest.$ac_ext
7885 if $ac_preproc_ok; then :
7886   break
7887 fi
7888
7889     done
7890     ac_cv_prog_CPP=$CPP
7891
7892 fi
7893   CPP=$ac_cv_prog_CPP
7894 else
7895   ac_cv_prog_CPP=$CPP
7896 fi
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7898 $as_echo "$CPP" >&6; }
7899 ac_preproc_ok=false
7900 for ac_c_preproc_warn_flag in '' yes
7901 do
7902   # Use a header file that comes with gcc, so configuring glibc
7903   # with a fresh cross-compiler works.
7904   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7905   # <limits.h> exists even on freestanding compilers.
7906   # On the NeXT, cc -E runs the code through the compiler's parser,
7907   # not just through cpp. "Syntax error" is here to catch this case.
7908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909 /* end confdefs.h.  */
7910 #ifdef __STDC__
7911 # include <limits.h>
7912 #else
7913 # include <assert.h>
7914 #endif
7915                      Syntax error
7916 _ACEOF
7917 if ac_fn_c_try_cpp "$LINENO"; then :
7918
7919 else
7920   # Broken: fails on valid input.
7921 continue
7922 fi
7923 rm -f conftest.err conftest.$ac_ext
7924
7925   # OK, works on sane cases.  Now check whether nonexistent headers
7926   # can be detected and how.
7927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928 /* end confdefs.h.  */
7929 #include <ac_nonexistent.h>
7930 _ACEOF
7931 if ac_fn_c_try_cpp "$LINENO"; then :
7932   # Broken: success on invalid input.
7933 continue
7934 else
7935   # Passes both tests.
7936 ac_preproc_ok=:
7937 break
7938 fi
7939 rm -f conftest.err conftest.$ac_ext
7940
7941 done
7942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7943 rm -f conftest.err conftest.$ac_ext
7944 if $ac_preproc_ok; then :
7945
7946 else
7947   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7949 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7950 See \`config.log' for more details." "$LINENO" 5; }
7951 fi
7952
7953 ac_ext=c
7954 ac_cpp='$CPP $CPPFLAGS'
7955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7958
7959
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7961 $as_echo_n "checking for ANSI C header files... " >&6; }
7962 if test "${ac_cv_header_stdc+set}" = set; then :
7963   $as_echo_n "(cached) " >&6
7964 else
7965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966 /* end confdefs.h.  */
7967 #include <stdlib.h>
7968 #include <stdarg.h>
7969 #include <string.h>
7970 #include <float.h>
7971
7972 int
7973 main ()
7974 {
7975
7976   ;
7977   return 0;
7978 }
7979 _ACEOF
7980 if ac_fn_c_try_compile "$LINENO"; then :
7981   ac_cv_header_stdc=yes
7982 else
7983   ac_cv_header_stdc=no
7984 fi
7985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7986
7987 if test $ac_cv_header_stdc = yes; then
7988   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h.  */
7991 #include <string.h>
7992
7993 _ACEOF
7994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7995   $EGREP "memchr" >/dev/null 2>&1; then :
7996
7997 else
7998   ac_cv_header_stdc=no
7999 fi
8000 rm -f conftest*
8001
8002 fi
8003
8004 if test $ac_cv_header_stdc = yes; then
8005   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h.  */
8008 #include <stdlib.h>
8009
8010 _ACEOF
8011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8012   $EGREP "free" >/dev/null 2>&1; then :
8013
8014 else
8015   ac_cv_header_stdc=no
8016 fi
8017 rm -f conftest*
8018
8019 fi
8020
8021 if test $ac_cv_header_stdc = yes; then
8022   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8023   if test "$cross_compiling" = yes; then :
8024   :
8025 else
8026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8027 /* end confdefs.h.  */
8028 #include <ctype.h>
8029 #include <stdlib.h>
8030 #if ((' ' & 0x0FF) == 0x020)
8031 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8032 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8033 #else
8034 # define ISLOWER(c) \
8035                    (('a' <= (c) && (c) <= 'i') \
8036                      || ('j' <= (c) && (c) <= 'r') \
8037                      || ('s' <= (c) && (c) <= 'z'))
8038 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8039 #endif
8040
8041 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8042 int
8043 main ()
8044 {
8045   int i;
8046   for (i = 0; i < 256; i++)
8047     if (XOR (islower (i), ISLOWER (i))
8048         || toupper (i) != TOUPPER (i))
8049       return 2;
8050   return 0;
8051 }
8052 _ACEOF
8053 if ac_fn_c_try_run "$LINENO"; then :
8054
8055 else
8056   ac_cv_header_stdc=no
8057 fi
8058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8059   conftest.$ac_objext conftest.beam conftest.$ac_ext
8060 fi
8061
8062 fi
8063 fi
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8065 $as_echo "$ac_cv_header_stdc" >&6; }
8066 if test $ac_cv_header_stdc = yes; then
8067
8068 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8069
8070 fi
8071
8072 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8073 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8074                   inttypes.h stdint.h unistd.h
8075 do :
8076   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8077 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8078 "
8079 eval as_val=\$$as_ac_Header
8080    if test "x$as_val" = x""yes; then :
8081   cat >>confdefs.h <<_ACEOF
8082 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8083 _ACEOF
8084
8085 fi
8086
8087 done
8088
8089
8090 for ac_header in dlfcn.h
8091 do :
8092   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8093 "
8094 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8095   cat >>confdefs.h <<_ACEOF
8096 #define HAVE_DLFCN_H 1
8097 _ACEOF
8098
8099 fi
8100
8101 done
8102
8103
8104
8105 ac_ext=cpp
8106 ac_cpp='$CXXCPP $CPPFLAGS'
8107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8110 if test -z "$CXX"; then
8111   if test -n "$CCC"; then
8112     CXX=$CCC
8113   else
8114     if test -n "$ac_tool_prefix"; then
8115   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8116   do
8117     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8118 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8120 $as_echo_n "checking for $ac_word... " >&6; }
8121 if test "${ac_cv_prog_CXX+set}" = set; then :
8122   $as_echo_n "(cached) " >&6
8123 else
8124   if test -n "$CXX"; then
8125   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8126 else
8127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8128 for as_dir in $PATH
8129 do
8130   IFS=$as_save_IFS
8131   test -z "$as_dir" && as_dir=.
8132     for ac_exec_ext in '' $ac_executable_extensions; do
8133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8134     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8136     break 2
8137   fi
8138 done
8139   done
8140 IFS=$as_save_IFS
8141
8142 fi
8143 fi
8144 CXX=$ac_cv_prog_CXX
8145 if test -n "$CXX"; then
8146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8147 $as_echo "$CXX" >&6; }
8148 else
8149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8150 $as_echo "no" >&6; }
8151 fi
8152
8153
8154     test -n "$CXX" && break
8155   done
8156 fi
8157 if test -z "$CXX"; then
8158   ac_ct_CXX=$CXX
8159   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8160 do
8161   # Extract the first word of "$ac_prog", so it can be a program name with args.
8162 set dummy $ac_prog; ac_word=$2
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8164 $as_echo_n "checking for $ac_word... " >&6; }
8165 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8166   $as_echo_n "(cached) " >&6
8167 else
8168   if test -n "$ac_ct_CXX"; then
8169   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8170 else
8171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172 for as_dir in $PATH
8173 do
8174   IFS=$as_save_IFS
8175   test -z "$as_dir" && as_dir=.
8176     for ac_exec_ext in '' $ac_executable_extensions; do
8177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8178     ac_cv_prog_ac_ct_CXX="$ac_prog"
8179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8180     break 2
8181   fi
8182 done
8183   done
8184 IFS=$as_save_IFS
8185
8186 fi
8187 fi
8188 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8189 if test -n "$ac_ct_CXX"; then
8190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8191 $as_echo "$ac_ct_CXX" >&6; }
8192 else
8193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194 $as_echo "no" >&6; }
8195 fi
8196
8197
8198   test -n "$ac_ct_CXX" && break
8199 done
8200
8201   if test "x$ac_ct_CXX" = x; then
8202     CXX="g++"
8203   else
8204     case $cross_compiling:$ac_tool_warned in
8205 yes:)
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8208 ac_tool_warned=yes ;;
8209 esac
8210     CXX=$ac_ct_CXX
8211   fi
8212 fi
8213
8214   fi
8215 fi
8216 # Provide some information about the compiler.
8217 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8218 set X $ac_compile
8219 ac_compiler=$2
8220 for ac_option in --version -v -V -qversion; do
8221   { { ac_try="$ac_compiler $ac_option >&5"
8222 case "(($ac_try" in
8223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8224   *) ac_try_echo=$ac_try;;
8225 esac
8226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8227 $as_echo "$ac_try_echo"; } >&5
8228   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8229   ac_status=$?
8230   if test -s conftest.err; then
8231     sed '10a\
8232 ... rest of stderr output deleted ...
8233          10q' conftest.err >conftest.er1
8234     cat conftest.er1 >&5
8235     rm -f conftest.er1 conftest.err
8236   fi
8237   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8238   test $ac_status = 0; }
8239 done
8240
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8242 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8243 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8244   $as_echo_n "(cached) " >&6
8245 else
8246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247 /* end confdefs.h.  */
8248
8249 int
8250 main ()
8251 {
8252 #ifndef __GNUC__
8253        choke me
8254 #endif
8255
8256   ;
8257   return 0;
8258 }
8259 _ACEOF
8260 if ac_fn_cxx_try_compile "$LINENO"; then :
8261   ac_compiler_gnu=yes
8262 else
8263   ac_compiler_gnu=no
8264 fi
8265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8266 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8267
8268 fi
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8270 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8271 if test $ac_compiler_gnu = yes; then
8272   GXX=yes
8273 else
8274   GXX=
8275 fi
8276 ac_test_CXXFLAGS=${CXXFLAGS+set}
8277 ac_save_CXXFLAGS=$CXXFLAGS
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8279 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8280 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8281   $as_echo_n "(cached) " >&6
8282 else
8283   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8284    ac_cxx_werror_flag=yes
8285    ac_cv_prog_cxx_g=no
8286    CXXFLAGS="-g"
8287    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h.  */
8289
8290 int
8291 main ()
8292 {
8293
8294   ;
8295   return 0;
8296 }
8297 _ACEOF
8298 if ac_fn_cxx_try_compile "$LINENO"; then :
8299   ac_cv_prog_cxx_g=yes
8300 else
8301   CXXFLAGS=""
8302       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h.  */
8304
8305 int
8306 main ()
8307 {
8308
8309   ;
8310   return 0;
8311 }
8312 _ACEOF
8313 if ac_fn_cxx_try_compile "$LINENO"; then :
8314
8315 else
8316   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8317          CXXFLAGS="-g"
8318          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h.  */
8320
8321 int
8322 main ()
8323 {
8324
8325   ;
8326   return 0;
8327 }
8328 _ACEOF
8329 if ac_fn_cxx_try_compile "$LINENO"; then :
8330   ac_cv_prog_cxx_g=yes
8331 fi
8332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8333 fi
8334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8335 fi
8336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8337    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8338 fi
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8340 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8341 if test "$ac_test_CXXFLAGS" = set; then
8342   CXXFLAGS=$ac_save_CXXFLAGS
8343 elif test $ac_cv_prog_cxx_g = yes; then
8344   if test "$GXX" = yes; then
8345     CXXFLAGS="-g -O2"
8346   else
8347     CXXFLAGS="-g"
8348   fi
8349 else
8350   if test "$GXX" = yes; then
8351     CXXFLAGS="-O2"
8352   else
8353     CXXFLAGS=
8354   fi
8355 fi
8356 ac_ext=c
8357 ac_cpp='$CPP $CPPFLAGS'
8358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8361
8362 depcc="$CXX"  am_compiler_list=
8363
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8365 $as_echo_n "checking dependency style of $depcc... " >&6; }
8366 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8367   $as_echo_n "(cached) " >&6
8368 else
8369   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8370   # We make a subdir and do the tests there.  Otherwise we can end up
8371   # making bogus files that we don't know about and never remove.  For
8372   # instance it was reported that on HP-UX the gcc test will end up
8373   # making a dummy file named `D' -- because `-MD' means `put the output
8374   # in D'.
8375   mkdir conftest.dir
8376   # Copy depcomp to subdir because otherwise we won't find it if we're
8377   # using a relative directory.
8378   cp "$am_depcomp" conftest.dir
8379   cd conftest.dir
8380   # We will build objects and dependencies in a subdirectory because
8381   # it helps to detect inapplicable dependency modes.  For instance
8382   # both Tru64's cc and ICC support -MD to output dependencies as a
8383   # side effect of compilation, but ICC will put the dependencies in
8384   # the current directory while Tru64 will put them in the object
8385   # directory.
8386   mkdir sub
8387
8388   am_cv_CXX_dependencies_compiler_type=none
8389   if test "$am_compiler_list" = ""; then
8390      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8391   fi
8392   for depmode in $am_compiler_list; do
8393     # Setup a source with many dependencies, because some compilers
8394     # like to wrap large dependency lists on column 80 (with \), and
8395     # we should not choose a depcomp mode which is confused by this.
8396     #
8397     # We need to recreate these files for each test, as the compiler may
8398     # overwrite some of them when testing with obscure command lines.
8399     # This happens at least with the AIX C compiler.
8400     : > sub/conftest.c
8401     for i in 1 2 3 4 5 6; do
8402       echo '#include "conftst'$i'.h"' >> sub/conftest.c
8403       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8404       # Solaris 8's {/usr,}/bin/sh.
8405       touch sub/conftst$i.h
8406     done
8407     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8408
8409     case $depmode in
8410     nosideeffect)
8411       # after this tag, mechanisms are not by side-effect, so they'll
8412       # only be used when explicitly requested
8413       if test "x$enable_dependency_tracking" = xyes; then
8414         continue
8415       else
8416         break
8417       fi
8418       ;;
8419     none) break ;;
8420     esac
8421     # We check with `-c' and `-o' for the sake of the "dashmstdout"
8422     # mode.  It turns out that the SunPro C++ compiler does not properly
8423     # handle `-M -o', and we need to detect this.
8424     if depmode=$depmode \
8425        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8426        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8427        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8428          >/dev/null 2>conftest.err &&
8429        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8430        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8431        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8432        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8433       # icc doesn't choke on unknown options, it will just issue warnings
8434       # or remarks (even with -Werror).  So we grep stderr for any message
8435       # that says an option was ignored or not supported.
8436       # When given -MP, icc 7.0 and 7.1 complain thusly:
8437       #   icc: Command line warning: ignoring option '-M'; no argument required
8438       # The diagnosis changed in icc 8.0:
8439       #   icc: Command line remark: option '-MP' not supported
8440       if (grep 'ignoring option' conftest.err ||
8441           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8442         am_cv_CXX_dependencies_compiler_type=$depmode
8443         break
8444       fi
8445     fi
8446   done
8447
8448   cd ..
8449   rm -rf conftest.dir
8450 else
8451   am_cv_CXX_dependencies_compiler_type=none
8452 fi
8453
8454 fi
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8456 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8457 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8458
8459  if
8460   test "x$enable_dependency_tracking" != xno \
8461   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8462   am__fastdepCXX_TRUE=
8463   am__fastdepCXX_FALSE='#'
8464 else
8465   am__fastdepCXX_TRUE='#'
8466   am__fastdepCXX_FALSE=
8467 fi
8468
8469
8470 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8471     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8472     (test "X$CXX" != "Xg++"))) ; then
8473   ac_ext=cpp
8474 ac_cpp='$CXXCPP $CPPFLAGS'
8475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8479 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8480 if test -z "$CXXCPP"; then
8481   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8482   $as_echo_n "(cached) " >&6
8483 else
8484       # Double quotes because CXXCPP needs to be expanded
8485     for CXXCPP in "$CXX -E" "/lib/cpp"
8486     do
8487       ac_preproc_ok=false
8488 for ac_cxx_preproc_warn_flag in '' yes
8489 do
8490   # Use a header file that comes with gcc, so configuring glibc
8491   # with a fresh cross-compiler works.
8492   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8493   # <limits.h> exists even on freestanding compilers.
8494   # On the NeXT, cc -E runs the code through the compiler's parser,
8495   # not just through cpp. "Syntax error" is here to catch this case.
8496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8497 /* end confdefs.h.  */
8498 #ifdef __STDC__
8499 # include <limits.h>
8500 #else
8501 # include <assert.h>
8502 #endif
8503                      Syntax error
8504 _ACEOF
8505 if ac_fn_cxx_try_cpp "$LINENO"; then :
8506
8507 else
8508   # Broken: fails on valid input.
8509 continue
8510 fi
8511 rm -f conftest.err conftest.$ac_ext
8512
8513   # OK, works on sane cases.  Now check whether nonexistent headers
8514   # can be detected and how.
8515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8516 /* end confdefs.h.  */
8517 #include <ac_nonexistent.h>
8518 _ACEOF
8519 if ac_fn_cxx_try_cpp "$LINENO"; then :
8520   # Broken: success on invalid input.
8521 continue
8522 else
8523   # Passes both tests.
8524 ac_preproc_ok=:
8525 break
8526 fi
8527 rm -f conftest.err conftest.$ac_ext
8528
8529 done
8530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8531 rm -f conftest.err conftest.$ac_ext
8532 if $ac_preproc_ok; then :
8533   break
8534 fi
8535
8536     done
8537     ac_cv_prog_CXXCPP=$CXXCPP
8538
8539 fi
8540   CXXCPP=$ac_cv_prog_CXXCPP
8541 else
8542   ac_cv_prog_CXXCPP=$CXXCPP
8543 fi
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8545 $as_echo "$CXXCPP" >&6; }
8546 ac_preproc_ok=false
8547 for ac_cxx_preproc_warn_flag in '' yes
8548 do
8549   # Use a header file that comes with gcc, so configuring glibc
8550   # with a fresh cross-compiler works.
8551   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8552   # <limits.h> exists even on freestanding compilers.
8553   # On the NeXT, cc -E runs the code through the compiler's parser,
8554   # not just through cpp. "Syntax error" is here to catch this case.
8555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h.  */
8557 #ifdef __STDC__
8558 # include <limits.h>
8559 #else
8560 # include <assert.h>
8561 #endif
8562                      Syntax error
8563 _ACEOF
8564 if ac_fn_cxx_try_cpp "$LINENO"; then :
8565
8566 else
8567   # Broken: fails on valid input.
8568 continue
8569 fi
8570 rm -f conftest.err conftest.$ac_ext
8571
8572   # OK, works on sane cases.  Now check whether nonexistent headers
8573   # can be detected and how.
8574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575 /* end confdefs.h.  */
8576 #include <ac_nonexistent.h>
8577 _ACEOF
8578 if ac_fn_cxx_try_cpp "$LINENO"; then :
8579   # Broken: success on invalid input.
8580 continue
8581 else
8582   # Passes both tests.
8583 ac_preproc_ok=:
8584 break
8585 fi
8586 rm -f conftest.err conftest.$ac_ext
8587
8588 done
8589 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8590 rm -f conftest.err conftest.$ac_ext
8591 if $ac_preproc_ok; then :
8592
8593 else
8594   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8596 _lt_caught_CXX_error=yes; }
8597 fi
8598
8599 ac_ext=c
8600 ac_cpp='$CPP $CPPFLAGS'
8601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8604
8605 else
8606   _lt_caught_CXX_error=yes
8607 fi
8608
8609
8610
8611
8612
8613 # Set options
8614
8615
8616
8617         enable_dlopen=no
8618
8619
8620   enable_win32_dll=no
8621
8622
8623
8624   # Check whether --enable-static was given.
8625 if test "${enable_static+set}" = set; then :
8626   enableval=$enable_static; p=${PACKAGE-default}
8627     case $enableval in
8628     yes) enable_static=yes ;;
8629     no) enable_static=no ;;
8630     *)
8631      enable_static=no
8632       # Look at the argument we got.  We use all the common list separators.
8633       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8634       for pkg in $enableval; do
8635         IFS="$lt_save_ifs"
8636         if test "X$pkg" = "X$p"; then
8637           enable_static=yes
8638         fi
8639       done
8640       IFS="$lt_save_ifs"
8641       ;;
8642     esac
8643 else
8644   enable_static=yes
8645 fi
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656 # Check whether --with-pic was given.
8657 if test "${with_pic+set}" = set; then :
8658   withval=$with_pic; pic_mode="$withval"
8659 else
8660   pic_mode=default
8661 fi
8662
8663
8664 test -z "$pic_mode" && pic_mode=default
8665
8666
8667
8668
8669
8670
8671
8672   # Check whether --enable-fast-install was given.
8673 if test "${enable_fast_install+set}" = set; then :
8674   enableval=$enable_fast_install; p=${PACKAGE-default}
8675     case $enableval in
8676     yes) enable_fast_install=yes ;;
8677     no) enable_fast_install=no ;;
8678     *)
8679       enable_fast_install=no
8680       # Look at the argument we got.  We use all the common list separators.
8681       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8682       for pkg in $enableval; do
8683         IFS="$lt_save_ifs"
8684         if test "X$pkg" = "X$p"; then
8685           enable_fast_install=yes
8686         fi
8687       done
8688       IFS="$lt_save_ifs"
8689       ;;
8690     esac
8691 else
8692   enable_fast_install=yes
8693 fi
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705 # This can be used to rebuild libtool when needed
8706 LIBTOOL_DEPS="$ltmain"
8707
8708 # Always use our own libtool.
8709 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735 test -z "$LN_S" && LN_S="ln -s"
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750 if test -n "${ZSH_VERSION+set}" ; then
8751    setopt NO_GLOB_SUBST
8752 fi
8753
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8755 $as_echo_n "checking for objdir... " >&6; }
8756 if test "${lt_cv_objdir+set}" = set; then :
8757   $as_echo_n "(cached) " >&6
8758 else
8759   rm -f .libs 2>/dev/null
8760 mkdir .libs 2>/dev/null
8761 if test -d .libs; then
8762   lt_cv_objdir=.libs
8763 else
8764   # MS-DOS does not allow filenames that begin with a dot.
8765   lt_cv_objdir=_libs
8766 fi
8767 rmdir .libs 2>/dev/null
8768 fi
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8770 $as_echo "$lt_cv_objdir" >&6; }
8771 objdir=$lt_cv_objdir
8772
8773
8774
8775
8776
8777 cat >>confdefs.h <<_ACEOF
8778 #define LT_OBJDIR "$lt_cv_objdir/"
8779 _ACEOF
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797 case $host_os in
8798 aix3*)
8799   # AIX sometimes has problems with the GCC collect2 program.  For some
8800   # reason, if we set the COLLECT_NAMES environment variable, the problems
8801   # vanish in a puff of smoke.
8802   if test "X${COLLECT_NAMES+set}" != Xset; then
8803     COLLECT_NAMES=
8804     export COLLECT_NAMES
8805   fi
8806   ;;
8807 esac
8808
8809 # Sed substitution that helps us do robust quoting.  It backslashifies
8810 # metacharacters that are still active within double-quoted strings.
8811 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8812
8813 # Same as above, but do not quote variable references.
8814 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8815
8816 # Sed substitution to delay expansion of an escaped shell variable in a
8817 # double_quote_subst'ed string.
8818 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8819
8820 # Sed substitution to delay expansion of an escaped single quote.
8821 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8822
8823 # Sed substitution to avoid accidental globbing in evaled expressions
8824 no_glob_subst='s/\*/\\\*/g'
8825
8826 # Global variables:
8827 ofile=libtool
8828 can_build_shared=yes
8829
8830 # All known linkers require a `.a' archive for static linking (except MSVC,
8831 # which needs '.lib').
8832 libext=a
8833
8834 with_gnu_ld="$lt_cv_prog_gnu_ld"
8835
8836 old_CC="$CC"
8837 old_CFLAGS="$CFLAGS"
8838
8839 # Set sane defaults for various variables
8840 test -z "$CC" && CC=cc
8841 test -z "$LTCC" && LTCC=$CC
8842 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8843 test -z "$LD" && LD=ld
8844 test -z "$ac_objext" && ac_objext=o
8845
8846 for cc_temp in $compiler""; do
8847   case $cc_temp in
8848     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8849     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8850     \-*) ;;
8851     *) break;;
8852   esac
8853 done
8854 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8855
8856
8857 # Only perform the check for file, if the check method requires it
8858 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8859 case $deplibs_check_method in
8860 file_magic*)
8861   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8862     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8863 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8864 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8865   $as_echo_n "(cached) " >&6
8866 else
8867   case $MAGIC_CMD in
8868 [\\/*] |  ?:[\\/]*)
8869   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8870   ;;
8871 *)
8872   lt_save_MAGIC_CMD="$MAGIC_CMD"
8873   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8874   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8875   for ac_dir in $ac_dummy; do
8876     IFS="$lt_save_ifs"
8877     test -z "$ac_dir" && ac_dir=.
8878     if test -f $ac_dir/${ac_tool_prefix}file; then
8879       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8880       if test -n "$file_magic_test_file"; then
8881         case $deplibs_check_method in
8882         "file_magic "*)
8883           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8884           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8885           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8886             $EGREP "$file_magic_regex" > /dev/null; then
8887             :
8888           else
8889             cat <<_LT_EOF 1>&2
8890
8891 *** Warning: the command libtool uses to detect shared libraries,
8892 *** $file_magic_cmd, produces output that libtool cannot recognize.
8893 *** The result is that libtool may fail to recognize shared libraries
8894 *** as such.  This will affect the creation of libtool libraries that
8895 *** depend on shared libraries, but programs linked with such libtool
8896 *** libraries will work regardless of this problem.  Nevertheless, you
8897 *** may want to report the problem to your system manager and/or to
8898 *** bug-libtool@gnu.org
8899
8900 _LT_EOF
8901           fi ;;
8902         esac
8903       fi
8904       break
8905     fi
8906   done
8907   IFS="$lt_save_ifs"
8908   MAGIC_CMD="$lt_save_MAGIC_CMD"
8909   ;;
8910 esac
8911 fi
8912
8913 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8914 if test -n "$MAGIC_CMD"; then
8915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8916 $as_echo "$MAGIC_CMD" >&6; }
8917 else
8918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8919 $as_echo "no" >&6; }
8920 fi
8921
8922
8923
8924
8925
8926 if test -z "$lt_cv_path_MAGIC_CMD"; then
8927   if test -n "$ac_tool_prefix"; then
8928     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8929 $as_echo_n "checking for file... " >&6; }
8930 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8931   $as_echo_n "(cached) " >&6
8932 else
8933   case $MAGIC_CMD in
8934 [\\/*] |  ?:[\\/]*)
8935   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8936   ;;
8937 *)
8938   lt_save_MAGIC_CMD="$MAGIC_CMD"
8939   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8940   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8941   for ac_dir in $ac_dummy; do
8942     IFS="$lt_save_ifs"
8943     test -z "$ac_dir" && ac_dir=.
8944     if test -f $ac_dir/file; then
8945       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8946       if test -n "$file_magic_test_file"; then
8947         case $deplibs_check_method in
8948         "file_magic "*)
8949           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8950           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8951           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8952             $EGREP "$file_magic_regex" > /dev/null; then
8953             :
8954           else
8955             cat <<_LT_EOF 1>&2
8956
8957 *** Warning: the command libtool uses to detect shared libraries,
8958 *** $file_magic_cmd, produces output that libtool cannot recognize.
8959 *** The result is that libtool may fail to recognize shared libraries
8960 *** as such.  This will affect the creation of libtool libraries that
8961 *** depend on shared libraries, but programs linked with such libtool
8962 *** libraries will work regardless of this problem.  Nevertheless, you
8963 *** may want to report the problem to your system manager and/or to
8964 *** bug-libtool@gnu.org
8965
8966 _LT_EOF
8967           fi ;;
8968         esac
8969       fi
8970       break
8971     fi
8972   done
8973   IFS="$lt_save_ifs"
8974   MAGIC_CMD="$lt_save_MAGIC_CMD"
8975   ;;
8976 esac
8977 fi
8978
8979 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8980 if test -n "$MAGIC_CMD"; then
8981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8982 $as_echo "$MAGIC_CMD" >&6; }
8983 else
8984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985 $as_echo "no" >&6; }
8986 fi
8987
8988
8989   else
8990     MAGIC_CMD=:
8991   fi
8992 fi
8993
8994   fi
8995   ;;
8996 esac
8997
8998 # Use C for the default configuration in the libtool script
8999
9000 lt_save_CC="$CC"
9001 ac_ext=c
9002 ac_cpp='$CPP $CPPFLAGS'
9003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9006
9007
9008 # Source file extension for C test sources.
9009 ac_ext=c
9010
9011 # Object file extension for compiled C test sources.
9012 objext=o
9013 objext=$objext
9014
9015 # Code to be used in simple compile tests
9016 lt_simple_compile_test_code="int some_variable = 0;"
9017
9018 # Code to be used in simple link tests
9019 lt_simple_link_test_code='int main(){return(0);}'
9020
9021
9022
9023
9024
9025
9026
9027 # If no C compiler was specified, use CC.
9028 LTCC=${LTCC-"$CC"}
9029
9030 # If no C compiler flags were specified, use CFLAGS.
9031 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9032
9033 # Allow CC to be a program name with arguments.
9034 compiler=$CC
9035
9036 # Save the default compiler, since it gets overwritten when the other
9037 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9038 compiler_DEFAULT=$CC
9039
9040 # save warnings/boilerplate of simple test code
9041 ac_outfile=conftest.$ac_objext
9042 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9043 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9044 _lt_compiler_boilerplate=`cat conftest.err`
9045 $RM conftest*
9046
9047 ac_outfile=conftest.$ac_objext
9048 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9049 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9050 _lt_linker_boilerplate=`cat conftest.err`
9051 $RM -r conftest*
9052
9053
9054 ## CAVEAT EMPTOR:
9055 ## There is no encapsulation within the following macros, do not change
9056 ## the running order or otherwise move them around unless you know exactly
9057 ## what you are doing...
9058 if test -n "$compiler"; then
9059
9060 lt_prog_compiler_no_builtin_flag=
9061
9062 if test "$GCC" = yes; then
9063   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9064
9065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9066 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9067 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9068   $as_echo_n "(cached) " >&6
9069 else
9070   lt_cv_prog_compiler_rtti_exceptions=no
9071    ac_outfile=conftest.$ac_objext
9072    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9073    lt_compiler_flag="-fno-rtti -fno-exceptions"
9074    # Insert the option either (1) after the last *FLAGS variable, or
9075    # (2) before a word containing "conftest.", or (3) at the end.
9076    # Note that $ac_compile itself does not contain backslashes and begins
9077    # with a dollar sign (not a hyphen), so the echo should work correctly.
9078    # The option is referenced via a variable to avoid confusing sed.
9079    lt_compile=`echo "$ac_compile" | $SED \
9080    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9081    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9082    -e 's:$: $lt_compiler_flag:'`
9083    (eval echo "\"\$as_me:9083: $lt_compile\"" >&5)
9084    (eval "$lt_compile" 2>conftest.err)
9085    ac_status=$?
9086    cat conftest.err >&5
9087    echo "$as_me:9087: \$? = $ac_status" >&5
9088    if (exit $ac_status) && test -s "$ac_outfile"; then
9089      # The compiler can only warn and ignore the option if not recognized
9090      # So say no if there are warnings other than the usual output.
9091      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9092      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9093      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9094        lt_cv_prog_compiler_rtti_exceptions=yes
9095      fi
9096    fi
9097    $RM conftest*
9098
9099 fi
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9101 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9102
9103 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9104     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9105 else
9106     :
9107 fi
9108
9109 fi
9110
9111
9112
9113
9114
9115
9116   lt_prog_compiler_wl=
9117 lt_prog_compiler_pic=
9118 lt_prog_compiler_static=
9119
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9121 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9122
9123   if test "$GCC" = yes; then
9124     lt_prog_compiler_wl='-Wl,'
9125     lt_prog_compiler_static='-static'
9126
9127     case $host_os in
9128       aix*)
9129       # All AIX code is PIC.
9130       if test "$host_cpu" = ia64; then
9131         # AIX 5 now supports IA64 processor
9132         lt_prog_compiler_static='-Bstatic'
9133       fi
9134       ;;
9135
9136     amigaos*)
9137       if test "$host_cpu" = m68k; then
9138         # FIXME: we need at least 68020 code to build shared libraries, but
9139         # adding the `-m68020' flag to GCC prevents building anything better,
9140         # like `-m68040'.
9141         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9142       fi
9143       ;;
9144
9145     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9146       # PIC is the default for these OSes.
9147       ;;
9148
9149     mingw* | cygwin* | pw32* | os2*)
9150       # This hack is so that the source file can tell whether it is being
9151       # built for inclusion in a dll (and should export symbols for example).
9152       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9153       # (--disable-auto-import) libraries
9154       lt_prog_compiler_pic='-DDLL_EXPORT'
9155       ;;
9156
9157     darwin* | rhapsody*)
9158       # PIC is the default on this platform
9159       # Common symbols not allowed in MH_DYLIB files
9160       lt_prog_compiler_pic='-fno-common'
9161       ;;
9162
9163     hpux*)
9164       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9165       # not for PA HP-UX.
9166       case $host_cpu in
9167       hppa*64*|ia64*)
9168         # +Z the default
9169         ;;
9170       *)
9171         lt_prog_compiler_pic='-fPIC'
9172         ;;
9173       esac
9174       ;;
9175
9176     interix[3-9]*)
9177       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9178       # Instead, we relocate shared libraries at runtime.
9179       ;;
9180
9181     msdosdjgpp*)
9182       # Just because we use GCC doesn't mean we suddenly get shared libraries
9183       # on systems that don't support them.
9184       lt_prog_compiler_can_build_shared=no
9185       enable_shared=no
9186       ;;
9187
9188     *nto* | *qnx*)
9189       # QNX uses GNU C++, but need to define -shared option too, otherwise
9190       # it will coredump.
9191       lt_prog_compiler_pic='-fPIC -shared'
9192       ;;
9193
9194     sysv4*MP*)
9195       if test -d /usr/nec; then
9196         lt_prog_compiler_pic=-Kconform_pic
9197       fi
9198       ;;
9199
9200     *)
9201       lt_prog_compiler_pic='-fPIC'
9202       ;;
9203     esac
9204   else
9205     # PORTME Check for flag to pass linker flags through the system compiler.
9206     case $host_os in
9207     aix*)
9208       lt_prog_compiler_wl='-Wl,'
9209       if test "$host_cpu" = ia64; then
9210         # AIX 5 now supports IA64 processor
9211         lt_prog_compiler_static='-Bstatic'
9212       else
9213         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9214       fi
9215       ;;
9216
9217     mingw* | cygwin* | pw32* | os2*)
9218       # This hack is so that the source file can tell whether it is being
9219       # built for inclusion in a dll (and should export symbols for example).
9220       lt_prog_compiler_pic='-DDLL_EXPORT'
9221       ;;
9222
9223     hpux9* | hpux10* | hpux11*)
9224       lt_prog_compiler_wl='-Wl,'
9225       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9226       # not for PA HP-UX.
9227       case $host_cpu in
9228       hppa*64*|ia64*)
9229         # +Z the default
9230         ;;
9231       *)
9232         lt_prog_compiler_pic='+Z'
9233         ;;
9234       esac
9235       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9236       lt_prog_compiler_static='${wl}-a ${wl}archive'
9237       ;;
9238
9239     irix5* | irix6* | nonstopux*)
9240       lt_prog_compiler_wl='-Wl,'
9241       # PIC (with -KPIC) is the default.
9242       lt_prog_compiler_static='-non_shared'
9243       ;;
9244
9245     linux* | k*bsd*-gnu)
9246       case $cc_basename in
9247       icc* | ecc* | ifort*)
9248         lt_prog_compiler_wl='-Wl,'
9249         lt_prog_compiler_pic='-KPIC'
9250         lt_prog_compiler_static='-static'
9251         ;;
9252       pgcc* | pgf77* | pgf90* | pgf95*)
9253         # Portland Group compilers (*not* the Pentium gcc compiler,
9254         # which looks to be a dead project)
9255         lt_prog_compiler_wl='-Wl,'
9256         lt_prog_compiler_pic='-fpic'
9257         lt_prog_compiler_static='-Bstatic'
9258         ;;
9259       ccc*)
9260         lt_prog_compiler_wl='-Wl,'
9261         # All Alpha code is PIC.
9262         lt_prog_compiler_static='-non_shared'
9263         ;;
9264       xl*)
9265         # IBM XL C 8.0/Fortran 10.1 on PPC
9266         lt_prog_compiler_wl='-Wl,'
9267         lt_prog_compiler_pic='-qpic'
9268         lt_prog_compiler_static='-qstaticlink'
9269         ;;
9270       *)
9271         case `$CC -V 2>&1 | sed 5q` in
9272         *Sun\ C*)
9273           # Sun C 5.9
9274           lt_prog_compiler_pic='-KPIC'
9275           lt_prog_compiler_static='-Bstatic'
9276           lt_prog_compiler_wl='-Wl,'
9277           ;;
9278         *Sun\ F*)
9279           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9280           lt_prog_compiler_pic='-KPIC'
9281           lt_prog_compiler_static='-Bstatic'
9282           lt_prog_compiler_wl=''
9283           ;;
9284         esac
9285         ;;
9286       esac
9287       ;;
9288
9289     newsos6)
9290       lt_prog_compiler_pic='-KPIC'
9291       lt_prog_compiler_static='-Bstatic'
9292       ;;
9293
9294     *nto* | *qnx*)
9295       # QNX uses GNU C++, but need to define -shared option too, otherwise
9296       # it will coredump.
9297       lt_prog_compiler_pic='-fPIC -shared'
9298       ;;
9299
9300     osf3* | osf4* | osf5*)
9301       lt_prog_compiler_wl='-Wl,'
9302       # All OSF/1 code is PIC.
9303       lt_prog_compiler_static='-non_shared'
9304       ;;
9305
9306     rdos*)
9307       lt_prog_compiler_static='-non_shared'
9308       ;;
9309
9310     solaris*)
9311       lt_prog_compiler_pic='-KPIC'
9312       lt_prog_compiler_static='-Bstatic'
9313       case $cc_basename in
9314       f77* | f90* | f95*)
9315         lt_prog_compiler_wl='-Qoption ld ';;
9316       *)
9317         lt_prog_compiler_wl='-Wl,';;
9318       esac
9319       ;;
9320
9321     sunos4*)
9322       lt_prog_compiler_wl='-Qoption ld '
9323       lt_prog_compiler_pic='-PIC'
9324       lt_prog_compiler_static='-Bstatic'
9325       ;;
9326
9327     sysv4 | sysv4.2uw2* | sysv4.3*)
9328       lt_prog_compiler_wl='-Wl,'
9329       lt_prog_compiler_pic='-KPIC'
9330       lt_prog_compiler_static='-Bstatic'
9331       ;;
9332
9333     sysv4*MP*)
9334       if test -d /usr/nec ;then
9335         lt_prog_compiler_pic='-Kconform_pic'
9336         lt_prog_compiler_static='-Bstatic'
9337       fi
9338       ;;
9339
9340     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9341       lt_prog_compiler_wl='-Wl,'
9342       lt_prog_compiler_pic='-KPIC'
9343       lt_prog_compiler_static='-Bstatic'
9344       ;;
9345
9346     unicos*)
9347       lt_prog_compiler_wl='-Wl,'
9348       lt_prog_compiler_can_build_shared=no
9349       ;;
9350
9351     uts4*)
9352       lt_prog_compiler_pic='-pic'
9353       lt_prog_compiler_static='-Bstatic'
9354       ;;
9355
9356     *)
9357       lt_prog_compiler_can_build_shared=no
9358       ;;
9359     esac
9360   fi
9361
9362 case $host_os in
9363   # For platforms which do not support PIC, -DPIC is meaningless:
9364   *djgpp*)
9365     lt_prog_compiler_pic=
9366     ;;
9367   *)
9368     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9369     ;;
9370 esac
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9372 $as_echo "$lt_prog_compiler_pic" >&6; }
9373
9374
9375
9376
9377
9378
9379 #
9380 # Check to make sure the PIC flag actually works.
9381 #
9382 if test -n "$lt_prog_compiler_pic"; then
9383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9384 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9385 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9386   $as_echo_n "(cached) " >&6
9387 else
9388   lt_cv_prog_compiler_pic_works=no
9389    ac_outfile=conftest.$ac_objext
9390    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9391    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9392    # Insert the option either (1) after the last *FLAGS variable, or
9393    # (2) before a word containing "conftest.", or (3) at the end.
9394    # Note that $ac_compile itself does not contain backslashes and begins
9395    # with a dollar sign (not a hyphen), so the echo should work correctly.
9396    # The option is referenced via a variable to avoid confusing sed.
9397    lt_compile=`echo "$ac_compile" | $SED \
9398    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9399    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9400    -e 's:$: $lt_compiler_flag:'`
9401    (eval echo "\"\$as_me:9401: $lt_compile\"" >&5)
9402    (eval "$lt_compile" 2>conftest.err)
9403    ac_status=$?
9404    cat conftest.err >&5
9405    echo "$as_me:9405: \$? = $ac_status" >&5
9406    if (exit $ac_status) && test -s "$ac_outfile"; then
9407      # The compiler can only warn and ignore the option if not recognized
9408      # So say no if there are warnings other than the usual output.
9409      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9410      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9411      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9412        lt_cv_prog_compiler_pic_works=yes
9413      fi
9414    fi
9415    $RM conftest*
9416
9417 fi
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9419 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9420
9421 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9422     case $lt_prog_compiler_pic in
9423      "" | " "*) ;;
9424      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9425      esac
9426 else
9427     lt_prog_compiler_pic=
9428      lt_prog_compiler_can_build_shared=no
9429 fi
9430
9431 fi
9432
9433
9434
9435
9436
9437
9438 #
9439 # Check to make sure the static flag actually works.
9440 #
9441 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9443 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9444 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9445   $as_echo_n "(cached) " >&6
9446 else
9447   lt_cv_prog_compiler_static_works=no
9448    save_LDFLAGS="$LDFLAGS"
9449    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9450    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9451    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9452      # The linker can only warn and ignore the option if not recognized
9453      # So say no if there are warnings
9454      if test -s conftest.err; then
9455        # Append any errors to the config.log.
9456        cat conftest.err 1>&5
9457        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9458        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9459        if diff conftest.exp conftest.er2 >/dev/null; then
9460          lt_cv_prog_compiler_static_works=yes
9461        fi
9462      else
9463        lt_cv_prog_compiler_static_works=yes
9464      fi
9465    fi
9466    $RM -r conftest*
9467    LDFLAGS="$save_LDFLAGS"
9468
9469 fi
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9471 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9472
9473 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9474     :
9475 else
9476     lt_prog_compiler_static=
9477 fi
9478
9479
9480
9481
9482
9483
9484
9485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9486 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9487 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9488   $as_echo_n "(cached) " >&6
9489 else
9490   lt_cv_prog_compiler_c_o=no
9491    $RM -r conftest 2>/dev/null
9492    mkdir conftest
9493    cd conftest
9494    mkdir out
9495    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9496
9497    lt_compiler_flag="-o out/conftest2.$ac_objext"
9498    # Insert the option either (1) after the last *FLAGS variable, or
9499    # (2) before a word containing "conftest.", or (3) at the end.
9500    # Note that $ac_compile itself does not contain backslashes and begins
9501    # with a dollar sign (not a hyphen), so the echo should work correctly.
9502    lt_compile=`echo "$ac_compile" | $SED \
9503    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9504    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9505    -e 's:$: $lt_compiler_flag:'`
9506    (eval echo "\"\$as_me:9506: $lt_compile\"" >&5)
9507    (eval "$lt_compile" 2>out/conftest.err)
9508    ac_status=$?
9509    cat out/conftest.err >&5
9510    echo "$as_me:9510: \$? = $ac_status" >&5
9511    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9512    then
9513      # The compiler can only warn and ignore the option if not recognized
9514      # So say no if there are warnings
9515      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9516      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9517      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9518        lt_cv_prog_compiler_c_o=yes
9519      fi
9520    fi
9521    chmod u+w . 2>&5
9522    $RM conftest*
9523    # SGI C++ compiler will create directory out/ii_files/ for
9524    # template instantiation
9525    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9526    $RM out/* && rmdir out
9527    cd ..
9528    $RM -r conftest
9529    $RM conftest*
9530
9531 fi
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9533 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9534
9535
9536
9537
9538
9539
9540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9541 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9542 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9543   $as_echo_n "(cached) " >&6
9544 else
9545   lt_cv_prog_compiler_c_o=no
9546    $RM -r conftest 2>/dev/null
9547    mkdir conftest
9548    cd conftest
9549    mkdir out
9550    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9551
9552    lt_compiler_flag="-o out/conftest2.$ac_objext"
9553    # Insert the option either (1) after the last *FLAGS variable, or
9554    # (2) before a word containing "conftest.", or (3) at the end.
9555    # Note that $ac_compile itself does not contain backslashes and begins
9556    # with a dollar sign (not a hyphen), so the echo should work correctly.
9557    lt_compile=`echo "$ac_compile" | $SED \
9558    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9559    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9560    -e 's:$: $lt_compiler_flag:'`
9561    (eval echo "\"\$as_me:9561: $lt_compile\"" >&5)
9562    (eval "$lt_compile" 2>out/conftest.err)
9563    ac_status=$?
9564    cat out/conftest.err >&5
9565    echo "$as_me:9565: \$? = $ac_status" >&5
9566    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9567    then
9568      # The compiler can only warn and ignore the option if not recognized
9569      # So say no if there are warnings
9570      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9571      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9572      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9573        lt_cv_prog_compiler_c_o=yes
9574      fi
9575    fi
9576    chmod u+w . 2>&5
9577    $RM conftest*
9578    # SGI C++ compiler will create directory out/ii_files/ for
9579    # template instantiation
9580    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9581    $RM out/* && rmdir out
9582    cd ..
9583    $RM -r conftest
9584    $RM conftest*
9585
9586 fi
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9588 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9589
9590
9591
9592
9593 hard_links="nottested"
9594 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9595   # do not overwrite the value of need_locks provided by the user
9596   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9597 $as_echo_n "checking if we can lock with hard links... " >&6; }
9598   hard_links=yes
9599   $RM conftest*
9600   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9601   touch conftest.a
9602   ln conftest.a conftest.b 2>&5 || hard_links=no
9603   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9605 $as_echo "$hard_links" >&6; }
9606   if test "$hard_links" = no; then
9607     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9608 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9609     need_locks=warn
9610   fi
9611 else
9612   need_locks=no
9613 fi
9614
9615
9616
9617
9618
9619
9620   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9621 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9622
9623   runpath_var=
9624   allow_undefined_flag=
9625   always_export_symbols=no
9626   archive_cmds=
9627   archive_expsym_cmds=
9628   compiler_needs_object=no
9629   enable_shared_with_static_runtimes=no
9630   export_dynamic_flag_spec=
9631   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9632   hardcode_automatic=no
9633   hardcode_direct=no
9634   hardcode_direct_absolute=no
9635   hardcode_libdir_flag_spec=
9636   hardcode_libdir_flag_spec_ld=
9637   hardcode_libdir_separator=
9638   hardcode_minus_L=no
9639   hardcode_shlibpath_var=unsupported
9640   inherit_rpath=no
9641   link_all_deplibs=unknown
9642   module_cmds=
9643   module_expsym_cmds=
9644   old_archive_from_new_cmds=
9645   old_archive_from_expsyms_cmds=
9646   thread_safe_flag_spec=
9647   whole_archive_flag_spec=
9648   # include_expsyms should be a list of space-separated symbols to be *always*
9649   # included in the symbol list
9650   include_expsyms=
9651   # exclude_expsyms can be an extended regexp of symbols to exclude
9652   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9653   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9654   # as well as any symbol that contains `d'.
9655   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9656   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9657   # platforms (ab)use it in PIC code, but their linkers get confused if
9658   # the symbol is explicitly referenced.  Since portable code cannot
9659   # rely on this symbol name, it's probably fine to never include it in
9660   # preloaded symbol tables.
9661   # Exclude shared library initialization/finalization symbols.
9662   extract_expsyms_cmds=
9663
9664   case $host_os in
9665   cygwin* | mingw* | pw32*)
9666     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9667     # When not using gcc, we currently assume that we are using
9668     # Microsoft Visual C++.
9669     if test "$GCC" != yes; then
9670       with_gnu_ld=no
9671     fi
9672     ;;
9673   interix*)
9674     # we just hope/assume this is gcc and not c89 (= MSVC++)
9675     with_gnu_ld=yes
9676     ;;
9677   openbsd*)
9678     with_gnu_ld=no
9679     ;;
9680   esac
9681
9682   ld_shlibs=yes
9683   if test "$with_gnu_ld" = yes; then
9684     # If archive_cmds runs LD, not CC, wlarc should be empty
9685     wlarc='${wl}'
9686
9687     # Set some defaults for GNU ld with shared library support. These
9688     # are reset later if shared libraries are not supported. Putting them
9689     # here allows them to be overridden if necessary.
9690     runpath_var=LD_RUN_PATH
9691     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9692     export_dynamic_flag_spec='${wl}--export-dynamic'
9693     # ancient GNU ld didn't support --whole-archive et. al.
9694     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9695       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9696     else
9697       whole_archive_flag_spec=
9698     fi
9699     supports_anon_versioning=no
9700     case `$LD -v 2>&1` in
9701       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9702       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9703       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9704       *\ 2.11.*) ;; # other 2.11 versions
9705       *) supports_anon_versioning=yes ;;
9706     esac
9707
9708     # See if GNU ld supports shared libraries.
9709     case $host_os in
9710     aix[3-9]*)
9711       # On AIX/PPC, the GNU linker is very broken
9712       if test "$host_cpu" != ia64; then
9713         ld_shlibs=no
9714         cat <<_LT_EOF 1>&2
9715
9716 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9717 *** to be unable to reliably create shared libraries on AIX.
9718 *** Therefore, libtool is disabling shared libraries support.  If you
9719 *** really care for shared libraries, you may want to modify your PATH
9720 *** so that a non-GNU linker is found, and then restart.
9721
9722 _LT_EOF
9723       fi
9724       ;;
9725
9726     amigaos*)
9727       if test "$host_cpu" = m68k; then
9728         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)'
9729         hardcode_libdir_flag_spec='-L$libdir'
9730         hardcode_minus_L=yes
9731       fi
9732
9733       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9734       # that the semantics of dynamic libraries on AmigaOS, at least up
9735       # to version 4, is to share data among multiple programs linked
9736       # with the same dynamic library.  Since this doesn't match the
9737       # behavior of shared libraries on other platforms, we can't use
9738       # them.
9739       ld_shlibs=no
9740       ;;
9741
9742     beos*)
9743       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9744         allow_undefined_flag=unsupported
9745         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9746         # support --undefined.  This deserves some investigation.  FIXME
9747         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9748       else
9749         ld_shlibs=no
9750       fi
9751       ;;
9752
9753     cygwin* | mingw* | pw32*)
9754       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9755       # as there is no search path for DLLs.
9756       hardcode_libdir_flag_spec='-L$libdir'
9757       allow_undefined_flag=unsupported
9758       always_export_symbols=no
9759       enable_shared_with_static_runtimes=yes
9760       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9761
9762       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9763         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9764         # If the export-symbols file already is a .def file (1st line
9765         # is EXPORTS), use it as is; otherwise, prepend...
9766         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9767           cp $export_symbols $output_objdir/$soname.def;
9768         else
9769           echo EXPORTS > $output_objdir/$soname.def;
9770           cat $export_symbols >> $output_objdir/$soname.def;
9771         fi~
9772         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9773       else
9774         ld_shlibs=no
9775       fi
9776       ;;
9777
9778     interix[3-9]*)
9779       hardcode_direct=no
9780       hardcode_shlibpath_var=no
9781       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9782       export_dynamic_flag_spec='${wl}-E'
9783       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9784       # Instead, shared libraries are loaded at an image base (0x10000000 by
9785       # default) and relocated if they conflict, which is a slow very memory
9786       # consuming and fragmenting process.  To avoid this, we pick a random,
9787       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9788       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9789       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9790       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'
9791       ;;
9792
9793     gnu* | linux* | tpf* | k*bsd*-gnu)
9794       tmp_diet=no
9795       if test "$host_os" = linux-dietlibc; then
9796         case $cc_basename in
9797           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9798         esac
9799       fi
9800       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9801          && test "$tmp_diet" = no
9802       then
9803         tmp_addflag=
9804         tmp_sharedflag='-shared'
9805         case $cc_basename,$host_cpu in
9806         pgcc*)                          # Portland Group C compiler
9807           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9808           tmp_addflag=' $pic_flag'
9809           ;;
9810         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9811           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9812           tmp_addflag=' $pic_flag -Mnomain' ;;
9813         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9814           tmp_addflag=' -i_dynamic' ;;
9815         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9816           tmp_addflag=' -i_dynamic -nofor_main' ;;
9817         ifc* | ifort*)                  # Intel Fortran compiler
9818           tmp_addflag=' -nofor_main' ;;
9819         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9820           tmp_sharedflag='-qmkshrobj'
9821           tmp_addflag= ;;
9822         esac
9823         case `$CC -V 2>&1 | sed 5q` in
9824         *Sun\ C*)                       # Sun C 5.9
9825           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9826           compiler_needs_object=yes
9827           tmp_sharedflag='-G' ;;
9828         *Sun\ F*)                       # Sun Fortran 8.3
9829           tmp_sharedflag='-G' ;;
9830         esac
9831         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9832
9833         if test "x$supports_anon_versioning" = xyes; then
9834           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9835             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9836             echo "local: *; };" >> $output_objdir/$libname.ver~
9837             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9838         fi
9839
9840         case $cc_basename in
9841         xlf*)
9842           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9843           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9844           hardcode_libdir_flag_spec=
9845           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9846           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9847           if test "x$supports_anon_versioning" = xyes; then
9848             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9849               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9850               echo "local: *; };" >> $output_objdir/$libname.ver~
9851               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9852           fi
9853           ;;
9854         esac
9855       else
9856         ld_shlibs=no
9857       fi
9858       ;;
9859
9860     netbsd*)
9861       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9862         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9863         wlarc=
9864       else
9865         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9866         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9867       fi
9868       ;;
9869
9870     solaris*)
9871       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9872         ld_shlibs=no
9873         cat <<_LT_EOF 1>&2
9874
9875 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9876 *** create shared libraries on Solaris systems.  Therefore, libtool
9877 *** is disabling shared libraries support.  We urge you to upgrade GNU
9878 *** binutils to release 2.9.1 or newer.  Another option is to modify
9879 *** your PATH or compiler configuration so that the native linker is
9880 *** used, and then restart.
9881
9882 _LT_EOF
9883       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9884         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9885         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9886       else
9887         ld_shlibs=no
9888       fi
9889       ;;
9890
9891     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9892       case `$LD -v 2>&1` in
9893         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9894         ld_shlibs=no
9895         cat <<_LT_EOF 1>&2
9896
9897 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9898 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9899 *** is disabling shared libraries support.  We urge you to upgrade GNU
9900 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9901 *** your PATH or compiler configuration so that the native linker is
9902 *** used, and then restart.
9903
9904 _LT_EOF
9905         ;;
9906         *)
9907           # For security reasons, it is highly recommended that you always
9908           # use absolute paths for naming shared libraries, and exclude the
9909           # DT_RUNPATH tag from executables and libraries.  But doing so
9910           # requires that you compile everything twice, which is a pain.
9911           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9912             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9913             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9914             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9915           else
9916             ld_shlibs=no
9917           fi
9918         ;;
9919       esac
9920       ;;
9921
9922     sunos4*)
9923       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9924       wlarc=
9925       hardcode_direct=yes
9926       hardcode_shlibpath_var=no
9927       ;;
9928
9929     *)
9930       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9931         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9932         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9933       else
9934         ld_shlibs=no
9935       fi
9936       ;;
9937     esac
9938
9939     if test "$ld_shlibs" = no; then
9940       runpath_var=
9941       hardcode_libdir_flag_spec=
9942       export_dynamic_flag_spec=
9943       whole_archive_flag_spec=
9944     fi
9945   else
9946     # PORTME fill in a description of your system's linker (not GNU ld)
9947     case $host_os in
9948     aix3*)
9949       allow_undefined_flag=unsupported
9950       always_export_symbols=yes
9951       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'
9952       # Note: this linker hardcodes the directories in LIBPATH if there
9953       # are no directories specified by -L.
9954       hardcode_minus_L=yes
9955       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9956         # Neither direct hardcoding nor static linking is supported with a
9957         # broken collect2.
9958         hardcode_direct=unsupported
9959       fi
9960       ;;
9961
9962     aix[4-9]*)
9963       if test "$host_cpu" = ia64; then
9964         # On IA64, the linker does run time linking by default, so we don't
9965         # have to do anything special.
9966         aix_use_runtimelinking=no
9967         exp_sym_flag='-Bexport'
9968         no_entry_flag=""
9969       else
9970         # If we're using GNU nm, then we don't want the "-C" option.
9971         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9972         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9973           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9974         else
9975           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'
9976         fi
9977         aix_use_runtimelinking=no
9978
9979         # Test if we are trying to use run time linking or normal
9980         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9981         # need to do runtime linking.
9982         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9983           for ld_flag in $LDFLAGS; do
9984           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9985             aix_use_runtimelinking=yes
9986             break
9987           fi
9988           done
9989           ;;
9990         esac
9991
9992         exp_sym_flag='-bexport'
9993         no_entry_flag='-bnoentry'
9994       fi
9995
9996       # When large executables or shared objects are built, AIX ld can
9997       # have problems creating the table of contents.  If linking a library
9998       # or program results in "error TOC overflow" add -mminimal-toc to
9999       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10000       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10001
10002       archive_cmds=''
10003       hardcode_direct=yes
10004       hardcode_direct_absolute=yes
10005       hardcode_libdir_separator=':'
10006       link_all_deplibs=yes
10007       file_list_spec='${wl}-f,'
10008
10009       if test "$GCC" = yes; then
10010         case $host_os in aix4.[012]|aix4.[012].*)
10011         # We only want to do this on AIX 4.2 and lower, the check
10012         # below for broken collect2 doesn't work under 4.3+
10013           collect2name=`${CC} -print-prog-name=collect2`
10014           if test -f "$collect2name" &&
10015            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10016           then
10017           # We have reworked collect2
10018           :
10019           else
10020           # We have old collect2
10021           hardcode_direct=unsupported
10022           # It fails to find uninstalled libraries when the uninstalled
10023           # path is not listed in the libpath.  Setting hardcode_minus_L
10024           # to unsupported forces relinking
10025           hardcode_minus_L=yes
10026           hardcode_libdir_flag_spec='-L$libdir'
10027           hardcode_libdir_separator=
10028           fi
10029           ;;
10030         esac
10031         shared_flag='-shared'
10032         if test "$aix_use_runtimelinking" = yes; then
10033           shared_flag="$shared_flag "'${wl}-G'
10034         fi
10035       else
10036         # not using gcc
10037         if test "$host_cpu" = ia64; then
10038         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10039         # chokes on -Wl,-G. The following line is correct:
10040           shared_flag='-G'
10041         else
10042           if test "$aix_use_runtimelinking" = yes; then
10043             shared_flag='${wl}-G'
10044           else
10045             shared_flag='${wl}-bM:SRE'
10046           fi
10047         fi
10048       fi
10049
10050       # It seems that -bexpall does not export symbols beginning with
10051       # underscore (_), so it is better to generate a list of symbols to export.
10052       always_export_symbols=yes
10053       if test "$aix_use_runtimelinking" = yes; then
10054         # Warning - without using the other runtime loading flags (-brtl),
10055         # -berok will link without error, but may produce a broken library.
10056         allow_undefined_flag='-berok'
10057         # Determine the default libpath from the value encoded in an
10058         # empty executable.
10059         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10060 /* end confdefs.h.  */
10061
10062 int
10063 main ()
10064 {
10065
10066   ;
10067   return 0;
10068 }
10069 _ACEOF
10070 if ac_fn_c_try_link "$LINENO"; then :
10071
10072 lt_aix_libpath_sed='
10073     /Import File Strings/,/^$/ {
10074         /^0/ {
10075             s/^0  *\(.*\)$/\1/
10076             p
10077         }
10078     }'
10079 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10080 # Check for a 64-bit object if we didn't find anything.
10081 if test -z "$aix_libpath"; then
10082   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10083 fi
10084 fi
10085 rm -f core conftest.err conftest.$ac_objext \
10086     conftest$ac_exeext conftest.$ac_ext
10087 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10088
10089         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10090         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10091       else
10092         if test "$host_cpu" = ia64; then
10093           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10094           allow_undefined_flag="-z nodefs"
10095           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"
10096         else
10097          # Determine the default libpath from the value encoded in an
10098          # empty executable.
10099          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10100 /* end confdefs.h.  */
10101
10102 int
10103 main ()
10104 {
10105
10106   ;
10107   return 0;
10108 }
10109 _ACEOF
10110 if ac_fn_c_try_link "$LINENO"; then :
10111
10112 lt_aix_libpath_sed='
10113     /Import File Strings/,/^$/ {
10114         /^0/ {
10115             s/^0  *\(.*\)$/\1/
10116             p
10117         }
10118     }'
10119 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10120 # Check for a 64-bit object if we didn't find anything.
10121 if test -z "$aix_libpath"; then
10122   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10123 fi
10124 fi
10125 rm -f core conftest.err conftest.$ac_objext \
10126     conftest$ac_exeext conftest.$ac_ext
10127 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10128
10129          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10130           # Warning - without using the other run time loading flags,
10131           # -berok will link without error, but may produce a broken library.
10132           no_undefined_flag=' ${wl}-bernotok'
10133           allow_undefined_flag=' ${wl}-berok'
10134           # Exported symbols can be pulled into shared objects from archives
10135           whole_archive_flag_spec='$convenience'
10136           archive_cmds_need_lc=yes
10137           # This is similar to how AIX traditionally builds its shared libraries.
10138           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'
10139         fi
10140       fi
10141       ;;
10142
10143     amigaos*)
10144       if test "$host_cpu" = m68k; then
10145         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)'
10146         hardcode_libdir_flag_spec='-L$libdir'
10147         hardcode_minus_L=yes
10148       fi
10149       # see comment about different semantics on the GNU ld section
10150       ld_shlibs=no
10151       ;;
10152
10153     bsdi[45]*)
10154       export_dynamic_flag_spec=-rdynamic
10155       ;;
10156
10157     cygwin* | mingw* | pw32*)
10158       # When not using gcc, we currently assume that we are using
10159       # Microsoft Visual C++.
10160       # hardcode_libdir_flag_spec is actually meaningless, as there is
10161       # no search path for DLLs.
10162       hardcode_libdir_flag_spec=' '
10163       allow_undefined_flag=unsupported
10164       # Tell ltmain to make .lib files, not .a files.
10165       libext=lib
10166       # Tell ltmain to make .dll files, not .so files.
10167       shrext_cmds=".dll"
10168       # FIXME: Setting linknames here is a bad hack.
10169       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10170       # The linker will automatically build a .lib file if we build a DLL.
10171       old_archive_from_new_cmds='true'
10172       # FIXME: Should let the user specify the lib program.
10173       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10174       fix_srcfile_path='`cygpath -w "$srcfile"`'
10175       enable_shared_with_static_runtimes=yes
10176       ;;
10177
10178     darwin* | rhapsody*)
10179
10180
10181   archive_cmds_need_lc=no
10182   hardcode_direct=no
10183   hardcode_automatic=yes
10184   hardcode_shlibpath_var=unsupported
10185   whole_archive_flag_spec=''
10186   link_all_deplibs=yes
10187   allow_undefined_flag="$_lt_dar_allow_undefined"
10188   if test "$GCC" = "yes"; then
10189     output_verbose_link_cmd=echo
10190     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10191     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10192     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}"
10193     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}"
10194
10195   else
10196   ld_shlibs=no
10197   fi
10198
10199       ;;
10200
10201     dgux*)
10202       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10203       hardcode_libdir_flag_spec='-L$libdir'
10204       hardcode_shlibpath_var=no
10205       ;;
10206
10207     freebsd1*)
10208       ld_shlibs=no
10209       ;;
10210
10211     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10212     # support.  Future versions do this automatically, but an explicit c++rt0.o
10213     # does not break anything, and helps significantly (at the cost of a little
10214     # extra space).
10215     freebsd2.2*)
10216       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10217       hardcode_libdir_flag_spec='-R$libdir'
10218       hardcode_direct=yes
10219       hardcode_shlibpath_var=no
10220       ;;
10221
10222     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10223     freebsd2*)
10224       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10225       hardcode_direct=yes
10226       hardcode_minus_L=yes
10227       hardcode_shlibpath_var=no
10228       ;;
10229
10230     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10231     freebsd* | dragonfly*)
10232       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10233       hardcode_libdir_flag_spec='-R$libdir'
10234       hardcode_direct=yes
10235       hardcode_shlibpath_var=no
10236       ;;
10237
10238     hpux9*)
10239       if test "$GCC" = yes; then
10240         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10241       else
10242         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'
10243       fi
10244       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10245       hardcode_libdir_separator=:
10246       hardcode_direct=yes
10247
10248       # hardcode_minus_L: Not really in the search PATH,
10249       # but as the default location of the library.
10250       hardcode_minus_L=yes
10251       export_dynamic_flag_spec='${wl}-E'
10252       ;;
10253
10254     hpux10*)
10255       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10256         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10257       else
10258         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10259       fi
10260       if test "$with_gnu_ld" = no; then
10261         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10262         hardcode_libdir_flag_spec_ld='+b $libdir'
10263         hardcode_libdir_separator=:
10264         hardcode_direct=yes
10265         hardcode_direct_absolute=yes
10266         export_dynamic_flag_spec='${wl}-E'
10267         # hardcode_minus_L: Not really in the search PATH,
10268         # but as the default location of the library.
10269         hardcode_minus_L=yes
10270       fi
10271       ;;
10272
10273     hpux11*)
10274       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10275         case $host_cpu in
10276         hppa*64*)
10277           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10278           ;;
10279         ia64*)
10280           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10281           ;;
10282         *)
10283           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10284           ;;
10285         esac
10286       else
10287         case $host_cpu in
10288         hppa*64*)
10289           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10290           ;;
10291         ia64*)
10292           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10293           ;;
10294         *)
10295           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10296           ;;
10297         esac
10298       fi
10299       if test "$with_gnu_ld" = no; then
10300         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10301         hardcode_libdir_separator=:
10302
10303         case $host_cpu in
10304         hppa*64*|ia64*)
10305           hardcode_direct=no
10306           hardcode_shlibpath_var=no
10307           ;;
10308         *)
10309           hardcode_direct=yes
10310           hardcode_direct_absolute=yes
10311           export_dynamic_flag_spec='${wl}-E'
10312
10313           # hardcode_minus_L: Not really in the search PATH,
10314           # but as the default location of the library.
10315           hardcode_minus_L=yes
10316           ;;
10317         esac
10318       fi
10319       ;;
10320
10321     irix5* | irix6* | nonstopux*)
10322       if test "$GCC" = yes; then
10323         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10324         # Try to use the -exported_symbol ld option, if it does not
10325         # work, assume that -exports_file does not work either and
10326         # implicitly export all symbols.
10327         save_LDFLAGS="$LDFLAGS"
10328         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10329         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10330 /* end confdefs.h.  */
10331 int foo(void) {}
10332 _ACEOF
10333 if ac_fn_c_try_link "$LINENO"; then :
10334   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10335
10336 fi
10337 rm -f core conftest.err conftest.$ac_objext \
10338     conftest$ac_exeext conftest.$ac_ext
10339         LDFLAGS="$save_LDFLAGS"
10340       else
10341         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10342         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10343       fi
10344       archive_cmds_need_lc='no'
10345       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10346       hardcode_libdir_separator=:
10347       inherit_rpath=yes
10348       link_all_deplibs=yes
10349       ;;
10350
10351     netbsd*)
10352       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10353         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10354       else
10355         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10356       fi
10357       hardcode_libdir_flag_spec='-R$libdir'
10358       hardcode_direct=yes
10359       hardcode_shlibpath_var=no
10360       ;;
10361
10362     newsos6)
10363       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10364       hardcode_direct=yes
10365       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10366       hardcode_libdir_separator=:
10367       hardcode_shlibpath_var=no
10368       ;;
10369
10370     *nto* | *qnx*)
10371       ;;
10372
10373     openbsd*)
10374       if test -f /usr/libexec/ld.so; then
10375         hardcode_direct=yes
10376         hardcode_shlibpath_var=no
10377         hardcode_direct_absolute=yes
10378         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10379           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10380           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10381           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10382           export_dynamic_flag_spec='${wl}-E'
10383         else
10384           case $host_os in
10385            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10386              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10387              hardcode_libdir_flag_spec='-R$libdir'
10388              ;;
10389            *)
10390              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10391              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10392              ;;
10393           esac
10394         fi
10395       else
10396         ld_shlibs=no
10397       fi
10398       ;;
10399
10400     os2*)
10401       hardcode_libdir_flag_spec='-L$libdir'
10402       hardcode_minus_L=yes
10403       allow_undefined_flag=unsupported
10404       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'
10405       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10406       ;;
10407
10408     osf3*)
10409       if test "$GCC" = yes; then
10410         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10411         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10412       else
10413         allow_undefined_flag=' -expect_unresolved \*'
10414         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10415       fi
10416       archive_cmds_need_lc='no'
10417       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10418       hardcode_libdir_separator=:
10419       ;;
10420
10421     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10422       if test "$GCC" = yes; then
10423         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10424         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10425         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10426       else
10427         allow_undefined_flag=' -expect_unresolved \*'
10428         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10429         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~
10430         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10431
10432         # Both c and cxx compiler support -rpath directly
10433         hardcode_libdir_flag_spec='-rpath $libdir'
10434       fi
10435       archive_cmds_need_lc='no'
10436       hardcode_libdir_separator=:
10437       ;;
10438
10439     solaris*)
10440       no_undefined_flag=' -z defs'
10441       if test "$GCC" = yes; then
10442         wlarc='${wl}'
10443         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10444         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10445           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10446       else
10447         case `$CC -V 2>&1` in
10448         *"Compilers 5.0"*)
10449           wlarc=''
10450           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10451           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10452           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10453           ;;
10454         *)
10455           wlarc='${wl}'
10456           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10457           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10458           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10459           ;;
10460         esac
10461       fi
10462       hardcode_libdir_flag_spec='-R$libdir'
10463       hardcode_shlibpath_var=no
10464       case $host_os in
10465       solaris2.[0-5] | solaris2.[0-5].*) ;;
10466       *)
10467         # The compiler driver will combine and reorder linker options,
10468         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10469         # but is careful enough not to reorder.
10470         # Supported since Solaris 2.6 (maybe 2.5.1?)
10471         if test "$GCC" = yes; then
10472           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10473         else
10474           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10475         fi
10476         ;;
10477       esac
10478       link_all_deplibs=yes
10479       ;;
10480
10481     sunos4*)
10482       if test "x$host_vendor" = xsequent; then
10483         # Use $CC to link under sequent, because it throws in some extra .o
10484         # files that make .init and .fini sections work.
10485         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10486       else
10487         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10488       fi
10489       hardcode_libdir_flag_spec='-L$libdir'
10490       hardcode_direct=yes
10491       hardcode_minus_L=yes
10492       hardcode_shlibpath_var=no
10493       ;;
10494
10495     sysv4)
10496       case $host_vendor in
10497         sni)
10498           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10499           hardcode_direct=yes # is this really true???
10500         ;;
10501         siemens)
10502           ## LD is ld it makes a PLAMLIB
10503           ## CC just makes a GrossModule.
10504           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10505           reload_cmds='$CC -r -o $output$reload_objs'
10506           hardcode_direct=no
10507         ;;
10508         motorola)
10509           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10510           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10511         ;;
10512       esac
10513       runpath_var='LD_RUN_PATH'
10514       hardcode_shlibpath_var=no
10515       ;;
10516
10517     sysv4.3*)
10518       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10519       hardcode_shlibpath_var=no
10520       export_dynamic_flag_spec='-Bexport'
10521       ;;
10522
10523     sysv4*MP*)
10524       if test -d /usr/nec; then
10525         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10526         hardcode_shlibpath_var=no
10527         runpath_var=LD_RUN_PATH
10528         hardcode_runpath_var=yes
10529         ld_shlibs=yes
10530       fi
10531       ;;
10532
10533     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10534       no_undefined_flag='${wl}-z,text'
10535       archive_cmds_need_lc=no
10536       hardcode_shlibpath_var=no
10537       runpath_var='LD_RUN_PATH'
10538
10539       if test "$GCC" = yes; then
10540         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10541         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10542       else
10543         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10544         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10545       fi
10546       ;;
10547
10548     sysv5* | sco3.2v5* | sco5v6*)
10549       # Note: We can NOT use -z defs as we might desire, because we do not
10550       # link with -lc, and that would cause any symbols used from libc to
10551       # always be unresolved, which means just about no library would
10552       # ever link correctly.  If we're not using GNU ld we use -z text
10553       # though, which does catch some bad symbols but isn't as heavy-handed
10554       # as -z defs.
10555       no_undefined_flag='${wl}-z,text'
10556       allow_undefined_flag='${wl}-z,nodefs'
10557       archive_cmds_need_lc=no
10558       hardcode_shlibpath_var=no
10559       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10560       hardcode_libdir_separator=':'
10561       link_all_deplibs=yes
10562       export_dynamic_flag_spec='${wl}-Bexport'
10563       runpath_var='LD_RUN_PATH'
10564
10565       if test "$GCC" = yes; then
10566         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10567         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10568       else
10569         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10570         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10571       fi
10572       ;;
10573
10574     uts4*)
10575       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10576       hardcode_libdir_flag_spec='-L$libdir'
10577       hardcode_shlibpath_var=no
10578       ;;
10579
10580     *)
10581       ld_shlibs=no
10582       ;;
10583     esac
10584
10585     if test x$host_vendor = xsni; then
10586       case $host in
10587       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10588         export_dynamic_flag_spec='${wl}-Blargedynsym'
10589         ;;
10590       esac
10591     fi
10592   fi
10593
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10595 $as_echo "$ld_shlibs" >&6; }
10596 test "$ld_shlibs" = no && can_build_shared=no
10597
10598 with_gnu_ld=$with_gnu_ld
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614 #
10615 # Do we need to explicitly link libc?
10616 #
10617 case "x$archive_cmds_need_lc" in
10618 x|xyes)
10619   # Assume -lc should be added
10620   archive_cmds_need_lc=yes
10621
10622   if test "$enable_shared" = yes && test "$GCC" = yes; then
10623     case $archive_cmds in
10624     *'~'*)
10625       # FIXME: we may have to deal with multi-command sequences.
10626       ;;
10627     '$CC '*)
10628       # Test whether the compiler implicitly links with -lc since on some
10629       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10630       # to ld, don't add -lc before -lgcc.
10631       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10632 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10633       $RM conftest*
10634       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10635
10636       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10637   (eval $ac_compile) 2>&5
10638   ac_status=$?
10639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10640   test $ac_status = 0; } 2>conftest.err; then
10641         soname=conftest
10642         lib=conftest
10643         libobjs=conftest.$ac_objext
10644         deplibs=
10645         wl=$lt_prog_compiler_wl
10646         pic_flag=$lt_prog_compiler_pic
10647         compiler_flags=-v
10648         linker_flags=-v
10649         verstring=
10650         output_objdir=.
10651         libname=conftest
10652         lt_save_allow_undefined_flag=$allow_undefined_flag
10653         allow_undefined_flag=
10654         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10655   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10656   ac_status=$?
10657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10658   test $ac_status = 0; }
10659         then
10660           archive_cmds_need_lc=no
10661         else
10662           archive_cmds_need_lc=yes
10663         fi
10664         allow_undefined_flag=$lt_save_allow_undefined_flag
10665       else
10666         cat conftest.err 1>&5
10667       fi
10668       $RM conftest*
10669       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10670 $as_echo "$archive_cmds_need_lc" >&6; }
10671       ;;
10672     esac
10673   fi
10674   ;;
10675 esac
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10834 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10835
10836 if test "$GCC" = yes; then
10837   case $host_os in
10838     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10839     *) lt_awk_arg="/^libraries:/" ;;
10840   esac
10841   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10842   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10843     # if the path contains ";" then we assume it to be the separator
10844     # otherwise default to the standard path separator (i.e. ":") - it is
10845     # assumed that no part of a normal pathname contains ";" but that should
10846     # okay in the real world where ";" in dirpaths is itself problematic.
10847     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10848   else
10849     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10850   fi
10851   # Ok, now we have the path, separated by spaces, we can step through it
10852   # and add multilib dir if necessary.
10853   lt_tmp_lt_search_path_spec=
10854   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10855   for lt_sys_path in $lt_search_path_spec; do
10856     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10857       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10858     else
10859       test -d "$lt_sys_path" && \
10860         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10861     fi
10862   done
10863   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10864 BEGIN {RS=" "; FS="/|\n";} {
10865   lt_foo="";
10866   lt_count=0;
10867   for (lt_i = NF; lt_i > 0; lt_i--) {
10868     if ($lt_i != "" && $lt_i != ".") {
10869       if ($lt_i == "..") {
10870         lt_count++;
10871       } else {
10872         if (lt_count == 0) {
10873           lt_foo="/" $lt_i lt_foo;
10874         } else {
10875           lt_count--;
10876         }
10877       }
10878     }
10879   }
10880   if (lt_foo != "") { lt_freq[lt_foo]++; }
10881   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10882 }'`
10883   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10884 else
10885   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10886 fi
10887 library_names_spec=
10888 libname_spec='lib$name'
10889 soname_spec=
10890 shrext_cmds=".so"
10891 postinstall_cmds=
10892 postuninstall_cmds=
10893 finish_cmds=
10894 finish_eval=
10895 shlibpath_var=
10896 shlibpath_overrides_runpath=unknown
10897 version_type=none
10898 dynamic_linker="$host_os ld.so"
10899 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10900 need_lib_prefix=unknown
10901 hardcode_into_libs=no
10902
10903 # when you set need_version to no, make sure it does not cause -set_version
10904 # flags to be left without arguments
10905 need_version=unknown
10906
10907 case $host_os in
10908 aix3*)
10909   version_type=linux
10910   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10911   shlibpath_var=LIBPATH
10912
10913   # AIX 3 has no versioning support, so we append a major version to the name.
10914   soname_spec='${libname}${release}${shared_ext}$major'
10915   ;;
10916
10917 aix[4-9]*)
10918   version_type=linux
10919   need_lib_prefix=no
10920   need_version=no
10921   hardcode_into_libs=yes
10922   if test "$host_cpu" = ia64; then
10923     # AIX 5 supports IA64
10924     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10925     shlibpath_var=LD_LIBRARY_PATH
10926   else
10927     # With GCC up to 2.95.x, collect2 would create an import file
10928     # for dependence libraries.  The import file would start with
10929     # the line `#! .'.  This would cause the generated library to
10930     # depend on `.', always an invalid library.  This was fixed in
10931     # development snapshots of GCC prior to 3.0.
10932     case $host_os in
10933       aix4 | aix4.[01] | aix4.[01].*)
10934       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10935            echo ' yes '
10936            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10937         :
10938       else
10939         can_build_shared=no
10940       fi
10941       ;;
10942     esac
10943     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10944     # soname into executable. Probably we can add versioning support to
10945     # collect2, so additional links can be useful in future.
10946     if test "$aix_use_runtimelinking" = yes; then
10947       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10948       # instead of lib<name>.a to let people know that these are not
10949       # typical AIX shared libraries.
10950       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10951     else
10952       # We preserve .a as extension for shared libraries through AIX4.2
10953       # and later when we are not doing run time linking.
10954       library_names_spec='${libname}${release}.a $libname.a'
10955       soname_spec='${libname}${release}${shared_ext}$major'
10956     fi
10957     shlibpath_var=LIBPATH
10958   fi
10959   ;;
10960
10961 amigaos*)
10962   if test "$host_cpu" = m68k; then
10963     library_names_spec='$libname.ixlibrary $libname.a'
10964     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10965     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
10966   else
10967     dynamic_linker=no
10968   fi
10969   ;;
10970
10971 beos*)
10972   library_names_spec='${libname}${shared_ext}'
10973   dynamic_linker="$host_os ld.so"
10974   shlibpath_var=LIBRARY_PATH
10975   ;;
10976
10977 bsdi[45]*)
10978   version_type=linux
10979   need_version=no
10980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10981   soname_spec='${libname}${release}${shared_ext}$major'
10982   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10983   shlibpath_var=LD_LIBRARY_PATH
10984   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10985   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10986   # the default ld.so.conf also contains /usr/contrib/lib and
10987   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10988   # libtool to hard-code these into programs
10989   ;;
10990
10991 cygwin* | mingw* | pw32*)
10992   version_type=windows
10993   shrext_cmds=".dll"
10994   need_version=no
10995   need_lib_prefix=no
10996
10997   case $GCC,$host_os in
10998   yes,cygwin* | yes,mingw* | yes,pw32*)
10999     library_names_spec='$libname.dll.a'
11000     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11001     postinstall_cmds='base_file=`basename \${file}`~
11002       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11003       dldir=$destdir/`dirname \$dlpath`~
11004       test -d \$dldir || mkdir -p \$dldir~
11005       $install_prog $dir/$dlname \$dldir/$dlname~
11006       chmod a+x \$dldir/$dlname~
11007       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11008         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11009       fi'
11010     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11011       dlpath=$dir/\$dldll~
11012        $RM \$dlpath'
11013     shlibpath_overrides_runpath=yes
11014
11015     case $host_os in
11016     cygwin*)
11017       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11018       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11019       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11020       ;;
11021     mingw*)
11022       # MinGW DLLs use traditional 'lib' prefix
11023       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11024       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11025       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11026         # It is most probably a Windows format PATH printed by
11027         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11028         # path with ; separators, and with drive letters. We can handle the
11029         # drive letters (cygwin fileutils understands them), so leave them,
11030         # especially as we might pass files found there to a mingw objdump,
11031         # which wouldn't understand a cygwinified path. Ahh.
11032         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11033       else
11034         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11035       fi
11036       ;;
11037     pw32*)
11038       # pw32 DLLs use 'pw' prefix rather than 'lib'
11039       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11040       ;;
11041     esac
11042     ;;
11043
11044   *)
11045     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11046     ;;
11047   esac
11048   dynamic_linker='Win32 ld.exe'
11049   # FIXME: first we should search . and the directory the executable is in
11050   shlibpath_var=PATH
11051   ;;
11052
11053 darwin* | rhapsody*)
11054   dynamic_linker="$host_os dyld"
11055   version_type=darwin
11056   need_lib_prefix=no
11057   need_version=no
11058   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11059   soname_spec='${libname}${release}${major}$shared_ext'
11060   shlibpath_overrides_runpath=yes
11061   shlibpath_var=DYLD_LIBRARY_PATH
11062   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11063
11064   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11065   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11066   ;;
11067
11068 dgux*)
11069   version_type=linux
11070   need_lib_prefix=no
11071   need_version=no
11072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11073   soname_spec='${libname}${release}${shared_ext}$major'
11074   shlibpath_var=LD_LIBRARY_PATH
11075   ;;
11076
11077 freebsd1*)
11078   dynamic_linker=no
11079   ;;
11080
11081 freebsd* | dragonfly*)
11082   # DragonFly does not have aout.  When/if they implement a new
11083   # versioning mechanism, adjust this.
11084   if test -x /usr/bin/objformat; then
11085     objformat=`/usr/bin/objformat`
11086   else
11087     case $host_os in
11088     freebsd[123]*) objformat=aout ;;
11089     *) objformat=elf ;;
11090     esac
11091   fi
11092   version_type=freebsd-$objformat
11093   case $version_type in
11094     freebsd-elf*)
11095       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11096       need_version=no
11097       need_lib_prefix=no
11098       ;;
11099     freebsd-*)
11100       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11101       need_version=yes
11102       ;;
11103   esac
11104   shlibpath_var=LD_LIBRARY_PATH
11105   case $host_os in
11106   freebsd2*)
11107     shlibpath_overrides_runpath=yes
11108     ;;
11109   freebsd3.[01]* | freebsdelf3.[01]*)
11110     shlibpath_overrides_runpath=yes
11111     hardcode_into_libs=yes
11112     ;;
11113   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11114   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11115     shlibpath_overrides_runpath=no
11116     hardcode_into_libs=yes
11117     ;;
11118   *) # from 4.6 on, and DragonFly
11119     shlibpath_overrides_runpath=yes
11120     hardcode_into_libs=yes
11121     ;;
11122   esac
11123   ;;
11124
11125 gnu*)
11126   version_type=linux
11127   need_lib_prefix=no
11128   need_version=no
11129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11130   soname_spec='${libname}${release}${shared_ext}$major'
11131   shlibpath_var=LD_LIBRARY_PATH
11132   hardcode_into_libs=yes
11133   ;;
11134
11135 hpux9* | hpux10* | hpux11*)
11136   # Give a soname corresponding to the major version so that dld.sl refuses to
11137   # link against other versions.
11138   version_type=sunos
11139   need_lib_prefix=no
11140   need_version=no
11141   case $host_cpu in
11142   ia64*)
11143     shrext_cmds='.so'
11144     hardcode_into_libs=yes
11145     dynamic_linker="$host_os dld.so"
11146     shlibpath_var=LD_LIBRARY_PATH
11147     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11148     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11149     soname_spec='${libname}${release}${shared_ext}$major'
11150     if test "X$HPUX_IA64_MODE" = X32; then
11151       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11152     else
11153       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11154     fi
11155     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11156     ;;
11157   hppa*64*)
11158     shrext_cmds='.sl'
11159     hardcode_into_libs=yes
11160     dynamic_linker="$host_os dld.sl"
11161     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11162     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11163     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11164     soname_spec='${libname}${release}${shared_ext}$major'
11165     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11166     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11167     ;;
11168   *)
11169     shrext_cmds='.sl'
11170     dynamic_linker="$host_os dld.sl"
11171     shlibpath_var=SHLIB_PATH
11172     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11173     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11174     soname_spec='${libname}${release}${shared_ext}$major'
11175     ;;
11176   esac
11177   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11178   postinstall_cmds='chmod 555 $lib'
11179   ;;
11180
11181 interix[3-9]*)
11182   version_type=linux
11183   need_lib_prefix=no
11184   need_version=no
11185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11186   soname_spec='${libname}${release}${shared_ext}$major'
11187   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11188   shlibpath_var=LD_LIBRARY_PATH
11189   shlibpath_overrides_runpath=no
11190   hardcode_into_libs=yes
11191   ;;
11192
11193 irix5* | irix6* | nonstopux*)
11194   case $host_os in
11195     nonstopux*) version_type=nonstopux ;;
11196     *)
11197         if test "$lt_cv_prog_gnu_ld" = yes; then
11198                 version_type=linux
11199         else
11200                 version_type=irix
11201         fi ;;
11202   esac
11203   need_lib_prefix=no
11204   need_version=no
11205   soname_spec='${libname}${release}${shared_ext}$major'
11206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11207   case $host_os in
11208   irix5* | nonstopux*)
11209     libsuff= shlibsuff=
11210     ;;
11211   *)
11212     case $LD in # libtool.m4 will add one of these switches to LD
11213     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11214       libsuff= shlibsuff= libmagic=32-bit;;
11215     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11216       libsuff=32 shlibsuff=N32 libmagic=N32;;
11217     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11218       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11219     *) libsuff= shlibsuff= libmagic=never-match;;
11220     esac
11221     ;;
11222   esac
11223   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11224   shlibpath_overrides_runpath=no
11225   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11226   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11227   hardcode_into_libs=yes
11228   ;;
11229
11230 # No shared lib support for Linux oldld, aout, or coff.
11231 linux*oldld* | linux*aout* | linux*coff*)
11232   dynamic_linker=no
11233   ;;
11234
11235 # This must be Linux ELF.
11236 linux* | k*bsd*-gnu)
11237   version_type=linux
11238   need_lib_prefix=no
11239   need_version=no
11240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11241   soname_spec='${libname}${release}${shared_ext}$major'
11242   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11243   shlibpath_var=LD_LIBRARY_PATH
11244   shlibpath_overrides_runpath=no
11245   # Some binutils ld are patched to set DT_RUNPATH
11246   save_LDFLAGS=$LDFLAGS
11247   save_libdir=$libdir
11248   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11249        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11251 /* end confdefs.h.  */
11252
11253 int
11254 main ()
11255 {
11256
11257   ;
11258   return 0;
11259 }
11260 _ACEOF
11261 if ac_fn_c_try_link "$LINENO"; then :
11262   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11263   shlibpath_overrides_runpath=yes
11264 fi
11265 fi
11266 rm -f core conftest.err conftest.$ac_objext \
11267     conftest$ac_exeext conftest.$ac_ext
11268   LDFLAGS=$save_LDFLAGS
11269   libdir=$save_libdir
11270
11271   # This implies no fast_install, which is unacceptable.
11272   # Some rework will be needed to allow for fast_install
11273   # before this can be enabled.
11274   hardcode_into_libs=yes
11275
11276   # Append ld.so.conf contents to the search path
11277   if test -f /etc/ld.so.conf; then
11278     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;/^$/d' | tr '\n' ' '`
11279     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11280   fi
11281
11282   # We used to test for /lib/ld.so.1 and disable shared libraries on
11283   # powerpc, because MkLinux only supported shared libraries with the
11284   # GNU dynamic linker.  Since this was broken with cross compilers,
11285   # most powerpc-linux boxes support dynamic linking these days and
11286   # people can always --disable-shared, the test was removed, and we
11287   # assume the GNU/Linux dynamic linker is in use.
11288   dynamic_linker='GNU/Linux ld.so'
11289   ;;
11290
11291 netbsd*)
11292   version_type=sunos
11293   need_lib_prefix=no
11294   need_version=no
11295   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11296     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11297     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11298     dynamic_linker='NetBSD (a.out) ld.so'
11299   else
11300     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11301     soname_spec='${libname}${release}${shared_ext}$major'
11302     dynamic_linker='NetBSD ld.elf_so'
11303   fi
11304   shlibpath_var=LD_LIBRARY_PATH
11305   shlibpath_overrides_runpath=yes
11306   hardcode_into_libs=yes
11307   ;;
11308
11309 newsos6)
11310   version_type=linux
11311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11312   shlibpath_var=LD_LIBRARY_PATH
11313   shlibpath_overrides_runpath=yes
11314   ;;
11315
11316 *nto* | *qnx*)
11317   version_type=qnx
11318   need_lib_prefix=no
11319   need_version=no
11320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11321   soname_spec='${libname}${release}${shared_ext}$major'
11322   shlibpath_var=LD_LIBRARY_PATH
11323   shlibpath_overrides_runpath=no
11324   hardcode_into_libs=yes
11325   dynamic_linker='ldqnx.so'
11326   ;;
11327
11328 openbsd*)
11329   version_type=sunos
11330   sys_lib_dlsearch_path_spec="/usr/lib"
11331   need_lib_prefix=no
11332   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11333   case $host_os in
11334     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11335     *)                          need_version=no  ;;
11336   esac
11337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11338   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11339   shlibpath_var=LD_LIBRARY_PATH
11340   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11341     case $host_os in
11342       openbsd2.[89] | openbsd2.[89].*)
11343         shlibpath_overrides_runpath=no
11344         ;;
11345       *)
11346         shlibpath_overrides_runpath=yes
11347         ;;
11348       esac
11349   else
11350     shlibpath_overrides_runpath=yes
11351   fi
11352   ;;
11353
11354 os2*)
11355   libname_spec='$name'
11356   shrext_cmds=".dll"
11357   need_lib_prefix=no
11358   library_names_spec='$libname${shared_ext} $libname.a'
11359   dynamic_linker='OS/2 ld.exe'
11360   shlibpath_var=LIBPATH
11361   ;;
11362
11363 osf3* | osf4* | osf5*)
11364   version_type=osf
11365   need_lib_prefix=no
11366   need_version=no
11367   soname_spec='${libname}${release}${shared_ext}$major'
11368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11369   shlibpath_var=LD_LIBRARY_PATH
11370   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11371   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11372   ;;
11373
11374 rdos*)
11375   dynamic_linker=no
11376   ;;
11377
11378 solaris*)
11379   version_type=linux
11380   need_lib_prefix=no
11381   need_version=no
11382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11383   soname_spec='${libname}${release}${shared_ext}$major'
11384   shlibpath_var=LD_LIBRARY_PATH
11385   shlibpath_overrides_runpath=yes
11386   hardcode_into_libs=yes
11387   # ldd complains unless libraries are executable
11388   postinstall_cmds='chmod +x $lib'
11389   ;;
11390
11391 sunos4*)
11392   version_type=sunos
11393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11394   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11395   shlibpath_var=LD_LIBRARY_PATH
11396   shlibpath_overrides_runpath=yes
11397   if test "$with_gnu_ld" = yes; then
11398     need_lib_prefix=no
11399   fi
11400   need_version=yes
11401   ;;
11402
11403 sysv4 | sysv4.3*)
11404   version_type=linux
11405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11406   soname_spec='${libname}${release}${shared_ext}$major'
11407   shlibpath_var=LD_LIBRARY_PATH
11408   case $host_vendor in
11409     sni)
11410       shlibpath_overrides_runpath=no
11411       need_lib_prefix=no
11412       runpath_var=LD_RUN_PATH
11413       ;;
11414     siemens)
11415       need_lib_prefix=no
11416       ;;
11417     motorola)
11418       need_lib_prefix=no
11419       need_version=no
11420       shlibpath_overrides_runpath=no
11421       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11422       ;;
11423   esac
11424   ;;
11425
11426 sysv4*MP*)
11427   if test -d /usr/nec ;then
11428     version_type=linux
11429     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11430     soname_spec='$libname${shared_ext}.$major'
11431     shlibpath_var=LD_LIBRARY_PATH
11432   fi
11433   ;;
11434
11435 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11436   version_type=freebsd-elf
11437   need_lib_prefix=no
11438   need_version=no
11439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11440   soname_spec='${libname}${release}${shared_ext}$major'
11441   shlibpath_var=LD_LIBRARY_PATH
11442   shlibpath_overrides_runpath=yes
11443   hardcode_into_libs=yes
11444   if test "$with_gnu_ld" = yes; then
11445     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11446   else
11447     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11448     case $host_os in
11449       sco3.2v5*)
11450         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11451         ;;
11452     esac
11453   fi
11454   sys_lib_dlsearch_path_spec='/usr/lib'
11455   ;;
11456
11457 tpf*)
11458   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11459   version_type=linux
11460   need_lib_prefix=no
11461   need_version=no
11462   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11463   shlibpath_var=LD_LIBRARY_PATH
11464   shlibpath_overrides_runpath=no
11465   hardcode_into_libs=yes
11466   ;;
11467
11468 uts4*)
11469   version_type=linux
11470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11471   soname_spec='${libname}${release}${shared_ext}$major'
11472   shlibpath_var=LD_LIBRARY_PATH
11473   ;;
11474
11475 *)
11476   dynamic_linker=no
11477   ;;
11478 esac
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11480 $as_echo "$dynamic_linker" >&6; }
11481 test "$dynamic_linker" = no && can_build_shared=no
11482
11483 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11484 if test "$GCC" = yes; then
11485   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11486 fi
11487
11488 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11489   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11490 fi
11491 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11492   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11493 fi
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11582 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11583 hardcode_action=
11584 if test -n "$hardcode_libdir_flag_spec" ||
11585    test -n "$runpath_var" ||
11586    test "X$hardcode_automatic" = "Xyes" ; then
11587
11588   # We can hardcode non-existent directories.
11589   if test "$hardcode_direct" != no &&
11590      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11591      # have to relink, otherwise we might link with an installed library
11592      # when we should be linking with a yet-to-be-installed one
11593      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11594      test "$hardcode_minus_L" != no; then
11595     # Linking always hardcodes the temporary library directory.
11596     hardcode_action=relink
11597   else
11598     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11599     hardcode_action=immediate
11600   fi
11601 else
11602   # We cannot hardcode anything, or else we can only hardcode existing
11603   # directories.
11604   hardcode_action=unsupported
11605 fi
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11607 $as_echo "$hardcode_action" >&6; }
11608
11609 if test "$hardcode_action" = relink ||
11610    test "$inherit_rpath" = yes; then
11611   # Fast installation is not supported
11612   enable_fast_install=no
11613 elif test "$shlibpath_overrides_runpath" = yes ||
11614      test "$enable_shared" = no; then
11615   # Fast installation is not necessary
11616   enable_fast_install=needless
11617 fi
11618
11619
11620
11621
11622
11623
11624   if test "x$enable_dlopen" != xyes; then
11625   enable_dlopen=unknown
11626   enable_dlopen_self=unknown
11627   enable_dlopen_self_static=unknown
11628 else
11629   lt_cv_dlopen=no
11630   lt_cv_dlopen_libs=
11631
11632   case $host_os in
11633   beos*)
11634     lt_cv_dlopen="load_add_on"
11635     lt_cv_dlopen_libs=
11636     lt_cv_dlopen_self=yes
11637     ;;
11638
11639   mingw* | pw32*)
11640     lt_cv_dlopen="LoadLibrary"
11641     lt_cv_dlopen_libs=
11642     ;;
11643
11644   cygwin*)
11645     lt_cv_dlopen="dlopen"
11646     lt_cv_dlopen_libs=
11647     ;;
11648
11649   darwin*)
11650   # if libdl is installed we need to link against it
11651     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11652 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11653 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11654   $as_echo_n "(cached) " >&6
11655 else
11656   ac_check_lib_save_LIBS=$LIBS
11657 LIBS="-ldl  $LIBS"
11658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659 /* end confdefs.h.  */
11660
11661 /* Override any GCC internal prototype to avoid an error.
11662    Use char because int might match the return type of a GCC
11663    builtin and then its argument prototype would still apply.  */
11664 #ifdef __cplusplus
11665 extern "C"
11666 #endif
11667 char dlopen ();
11668 int
11669 main ()
11670 {
11671 return dlopen ();
11672   ;
11673   return 0;
11674 }
11675 _ACEOF
11676 if ac_fn_c_try_link "$LINENO"; then :
11677   ac_cv_lib_dl_dlopen=yes
11678 else
11679   ac_cv_lib_dl_dlopen=no
11680 fi
11681 rm -f core conftest.err conftest.$ac_objext \
11682     conftest$ac_exeext conftest.$ac_ext
11683 LIBS=$ac_check_lib_save_LIBS
11684 fi
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11686 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11687 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11688   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11689 else
11690
11691     lt_cv_dlopen="dyld"
11692     lt_cv_dlopen_libs=
11693     lt_cv_dlopen_self=yes
11694
11695 fi
11696
11697     ;;
11698
11699   *)
11700     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11701 if test "x$ac_cv_func_shl_load" = x""yes; then :
11702   lt_cv_dlopen="shl_load"
11703 else
11704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11705 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11706 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11707   $as_echo_n "(cached) " >&6
11708 else
11709   ac_check_lib_save_LIBS=$LIBS
11710 LIBS="-ldld  $LIBS"
11711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11712 /* end confdefs.h.  */
11713
11714 /* Override any GCC internal prototype to avoid an error.
11715    Use char because int might match the return type of a GCC
11716    builtin and then its argument prototype would still apply.  */
11717 #ifdef __cplusplus
11718 extern "C"
11719 #endif
11720 char shl_load ();
11721 int
11722 main ()
11723 {
11724 return shl_load ();
11725   ;
11726   return 0;
11727 }
11728 _ACEOF
11729 if ac_fn_c_try_link "$LINENO"; then :
11730   ac_cv_lib_dld_shl_load=yes
11731 else
11732   ac_cv_lib_dld_shl_load=no
11733 fi
11734 rm -f core conftest.err conftest.$ac_objext \
11735     conftest$ac_exeext conftest.$ac_ext
11736 LIBS=$ac_check_lib_save_LIBS
11737 fi
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11739 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11740 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11741   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11742 else
11743   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11744 if test "x$ac_cv_func_dlopen" = x""yes; then :
11745   lt_cv_dlopen="dlopen"
11746 else
11747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11748 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11749 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11750   $as_echo_n "(cached) " >&6
11751 else
11752   ac_check_lib_save_LIBS=$LIBS
11753 LIBS="-ldl  $LIBS"
11754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11755 /* end confdefs.h.  */
11756
11757 /* Override any GCC internal prototype to avoid an error.
11758    Use char because int might match the return type of a GCC
11759    builtin and then its argument prototype would still apply.  */
11760 #ifdef __cplusplus
11761 extern "C"
11762 #endif
11763 char dlopen ();
11764 int
11765 main ()
11766 {
11767 return dlopen ();
11768   ;
11769   return 0;
11770 }
11771 _ACEOF
11772 if ac_fn_c_try_link "$LINENO"; then :
11773   ac_cv_lib_dl_dlopen=yes
11774 else
11775   ac_cv_lib_dl_dlopen=no
11776 fi
11777 rm -f core conftest.err conftest.$ac_objext \
11778     conftest$ac_exeext conftest.$ac_ext
11779 LIBS=$ac_check_lib_save_LIBS
11780 fi
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11782 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11783 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11784   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11785 else
11786   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11787 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11788 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11789   $as_echo_n "(cached) " >&6
11790 else
11791   ac_check_lib_save_LIBS=$LIBS
11792 LIBS="-lsvld  $LIBS"
11793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11794 /* end confdefs.h.  */
11795
11796 /* Override any GCC internal prototype to avoid an error.
11797    Use char because int might match the return type of a GCC
11798    builtin and then its argument prototype would still apply.  */
11799 #ifdef __cplusplus
11800 extern "C"
11801 #endif
11802 char dlopen ();
11803 int
11804 main ()
11805 {
11806 return dlopen ();
11807   ;
11808   return 0;
11809 }
11810 _ACEOF
11811 if ac_fn_c_try_link "$LINENO"; then :
11812   ac_cv_lib_svld_dlopen=yes
11813 else
11814   ac_cv_lib_svld_dlopen=no
11815 fi
11816 rm -f core conftest.err conftest.$ac_objext \
11817     conftest$ac_exeext conftest.$ac_ext
11818 LIBS=$ac_check_lib_save_LIBS
11819 fi
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11821 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11822 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11823   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11824 else
11825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11826 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11827 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11828   $as_echo_n "(cached) " >&6
11829 else
11830   ac_check_lib_save_LIBS=$LIBS
11831 LIBS="-ldld  $LIBS"
11832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11833 /* end confdefs.h.  */
11834
11835 /* Override any GCC internal prototype to avoid an error.
11836    Use char because int might match the return type of a GCC
11837    builtin and then its argument prototype would still apply.  */
11838 #ifdef __cplusplus
11839 extern "C"
11840 #endif
11841 char dld_link ();
11842 int
11843 main ()
11844 {
11845 return dld_link ();
11846   ;
11847   return 0;
11848 }
11849 _ACEOF
11850 if ac_fn_c_try_link "$LINENO"; then :
11851   ac_cv_lib_dld_dld_link=yes
11852 else
11853   ac_cv_lib_dld_dld_link=no
11854 fi
11855 rm -f core conftest.err conftest.$ac_objext \
11856     conftest$ac_exeext conftest.$ac_ext
11857 LIBS=$ac_check_lib_save_LIBS
11858 fi
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11860 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11861 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11862   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11863 fi
11864
11865
11866 fi
11867
11868
11869 fi
11870
11871
11872 fi
11873
11874
11875 fi
11876
11877
11878 fi
11879
11880     ;;
11881   esac
11882
11883   if test "x$lt_cv_dlopen" != xno; then
11884     enable_dlopen=yes
11885   else
11886     enable_dlopen=no
11887   fi
11888
11889   case $lt_cv_dlopen in
11890   dlopen)
11891     save_CPPFLAGS="$CPPFLAGS"
11892     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11893
11894     save_LDFLAGS="$LDFLAGS"
11895     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11896
11897     save_LIBS="$LIBS"
11898     LIBS="$lt_cv_dlopen_libs $LIBS"
11899
11900     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11901 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11902 if test "${lt_cv_dlopen_self+set}" = set; then :
11903   $as_echo_n "(cached) " >&6
11904 else
11905           if test "$cross_compiling" = yes; then :
11906   lt_cv_dlopen_self=cross
11907 else
11908   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11909   lt_status=$lt_dlunknown
11910   cat > conftest.$ac_ext <<_LT_EOF
11911 #line 11911 "configure"
11912 #include "confdefs.h"
11913
11914 #if HAVE_DLFCN_H
11915 #include <dlfcn.h>
11916 #endif
11917
11918 #include <stdio.h>
11919
11920 #ifdef RTLD_GLOBAL
11921 #  define LT_DLGLOBAL           RTLD_GLOBAL
11922 #else
11923 #  ifdef DL_GLOBAL
11924 #    define LT_DLGLOBAL         DL_GLOBAL
11925 #  else
11926 #    define LT_DLGLOBAL         0
11927 #  endif
11928 #endif
11929
11930 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11931    find out it does not work in some platform. */
11932 #ifndef LT_DLLAZY_OR_NOW
11933 #  ifdef RTLD_LAZY
11934 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11935 #  else
11936 #    ifdef DL_LAZY
11937 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11938 #    else
11939 #      ifdef RTLD_NOW
11940 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11941 #      else
11942 #        ifdef DL_NOW
11943 #          define LT_DLLAZY_OR_NOW      DL_NOW
11944 #        else
11945 #          define LT_DLLAZY_OR_NOW      0
11946 #        endif
11947 #      endif
11948 #    endif
11949 #  endif
11950 #endif
11951
11952 #ifdef __cplusplus
11953 extern "C" void exit (int);
11954 #endif
11955
11956 void fnord() { int i=42;}
11957 int main ()
11958 {
11959   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11960   int status = $lt_dlunknown;
11961
11962   if (self)
11963     {
11964       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11965       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11966       /* dlclose (self); */
11967     }
11968   else
11969     puts (dlerror ());
11970
11971     exit (status);
11972 }
11973 _LT_EOF
11974   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11975   (eval $ac_link) 2>&5
11976   ac_status=$?
11977   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11978   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11979     (./conftest; exit; ) >&5 2>/dev/null
11980     lt_status=$?
11981     case x$lt_status in
11982       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11983       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11984       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11985     esac
11986   else :
11987     # compilation failed
11988     lt_cv_dlopen_self=no
11989   fi
11990 fi
11991 rm -fr conftest*
11992
11993
11994 fi
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11996 $as_echo "$lt_cv_dlopen_self" >&6; }
11997
11998     if test "x$lt_cv_dlopen_self" = xyes; then
11999       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12000       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12001 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12002 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12003   $as_echo_n "(cached) " >&6
12004 else
12005           if test "$cross_compiling" = yes; then :
12006   lt_cv_dlopen_self_static=cross
12007 else
12008   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12009   lt_status=$lt_dlunknown
12010   cat > conftest.$ac_ext <<_LT_EOF
12011 #line 12011 "configure"
12012 #include "confdefs.h"
12013
12014 #if HAVE_DLFCN_H
12015 #include <dlfcn.h>
12016 #endif
12017
12018 #include <stdio.h>
12019
12020 #ifdef RTLD_GLOBAL
12021 #  define LT_DLGLOBAL           RTLD_GLOBAL
12022 #else
12023 #  ifdef DL_GLOBAL
12024 #    define LT_DLGLOBAL         DL_GLOBAL
12025 #  else
12026 #    define LT_DLGLOBAL         0
12027 #  endif
12028 #endif
12029
12030 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12031    find out it does not work in some platform. */
12032 #ifndef LT_DLLAZY_OR_NOW
12033 #  ifdef RTLD_LAZY
12034 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12035 #  else
12036 #    ifdef DL_LAZY
12037 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12038 #    else
12039 #      ifdef RTLD_NOW
12040 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12041 #      else
12042 #        ifdef DL_NOW
12043 #          define LT_DLLAZY_OR_NOW      DL_NOW
12044 #        else
12045 #          define LT_DLLAZY_OR_NOW      0
12046 #        endif
12047 #      endif
12048 #    endif
12049 #  endif
12050 #endif
12051
12052 #ifdef __cplusplus
12053 extern "C" void exit (int);
12054 #endif
12055
12056 void fnord() { int i=42;}
12057 int main ()
12058 {
12059   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12060   int status = $lt_dlunknown;
12061
12062   if (self)
12063     {
12064       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12065       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12066       /* dlclose (self); */
12067     }
12068   else
12069     puts (dlerror ());
12070
12071     exit (status);
12072 }
12073 _LT_EOF
12074   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12075   (eval $ac_link) 2>&5
12076   ac_status=$?
12077   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12078   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12079     (./conftest; exit; ) >&5 2>/dev/null
12080     lt_status=$?
12081     case x$lt_status in
12082       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12083       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12084       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12085     esac
12086   else :
12087     # compilation failed
12088     lt_cv_dlopen_self_static=no
12089   fi
12090 fi
12091 rm -fr conftest*
12092
12093
12094 fi
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12096 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12097     fi
12098
12099     CPPFLAGS="$save_CPPFLAGS"
12100     LDFLAGS="$save_LDFLAGS"
12101     LIBS="$save_LIBS"
12102     ;;
12103   esac
12104
12105   case $lt_cv_dlopen_self in
12106   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12107   *) enable_dlopen_self=unknown ;;
12108   esac
12109
12110   case $lt_cv_dlopen_self_static in
12111   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12112   *) enable_dlopen_self_static=unknown ;;
12113   esac
12114 fi
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132 striplib=
12133 old_striplib=
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12135 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12136 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12137   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12138   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12140 $as_echo "yes" >&6; }
12141 else
12142 # FIXME - insert some real tests, host_os isn't really good enough
12143   case $host_os in
12144   darwin*)
12145     if test -n "$STRIP" ; then
12146       striplib="$STRIP -x"
12147       old_striplib="$STRIP -S"
12148       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12149 $as_echo "yes" >&6; }
12150     else
12151       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12152 $as_echo "no" >&6; }
12153     fi
12154     ;;
12155   *)
12156     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12157 $as_echo "no" >&6; }
12158     ;;
12159   esac
12160 fi
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173   # Report which library types will actually be built
12174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12175 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12177 $as_echo "$can_build_shared" >&6; }
12178
12179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12180 $as_echo_n "checking whether to build shared libraries... " >&6; }
12181   test "$can_build_shared" = "no" && enable_shared=no
12182
12183   # On AIX, shared libraries and static libraries use the same namespace, and
12184   # are all built from PIC.
12185   case $host_os in
12186   aix3*)
12187     test "$enable_shared" = yes && enable_static=no
12188     if test -n "$RANLIB"; then
12189       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12190       postinstall_cmds='$RANLIB $lib'
12191     fi
12192     ;;
12193
12194   aix[4-9]*)
12195     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12196       test "$enable_shared" = yes && enable_static=no
12197     fi
12198     ;;
12199   esac
12200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12201 $as_echo "$enable_shared" >&6; }
12202
12203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12204 $as_echo_n "checking whether to build static libraries... " >&6; }
12205   # Make sure either enable_shared or enable_static is yes.
12206   test "$enable_shared" = yes || enable_static=yes
12207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12208 $as_echo "$enable_static" >&6; }
12209
12210
12211
12212
12213 fi
12214 ac_ext=c
12215 ac_cpp='$CPP $CPPFLAGS'
12216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12219
12220 CC="$lt_save_CC"
12221
12222
12223 ac_ext=cpp
12224 ac_cpp='$CXXCPP $CPPFLAGS'
12225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12228
12229 archive_cmds_need_lc_CXX=no
12230 allow_undefined_flag_CXX=
12231 always_export_symbols_CXX=no
12232 archive_expsym_cmds_CXX=
12233 compiler_needs_object_CXX=no
12234 export_dynamic_flag_spec_CXX=
12235 hardcode_direct_CXX=no
12236 hardcode_direct_absolute_CXX=no
12237 hardcode_libdir_flag_spec_CXX=
12238 hardcode_libdir_flag_spec_ld_CXX=
12239 hardcode_libdir_separator_CXX=
12240 hardcode_minus_L_CXX=no
12241 hardcode_shlibpath_var_CXX=unsupported
12242 hardcode_automatic_CXX=no
12243 inherit_rpath_CXX=no
12244 module_cmds_CXX=
12245 module_expsym_cmds_CXX=
12246 link_all_deplibs_CXX=unknown
12247 old_archive_cmds_CXX=$old_archive_cmds
12248 no_undefined_flag_CXX=
12249 whole_archive_flag_spec_CXX=
12250 enable_shared_with_static_runtimes_CXX=no
12251
12252 # Source file extension for C++ test sources.
12253 ac_ext=cpp
12254
12255 # Object file extension for compiled C++ test sources.
12256 objext=o
12257 objext_CXX=$objext
12258
12259 # No sense in running all these tests if we already determined that
12260 # the CXX compiler isn't working.  Some variables (like enable_shared)
12261 # are currently assumed to apply to all compilers on this platform,
12262 # and will be corrupted by setting them based on a non-working compiler.
12263 if test "$_lt_caught_CXX_error" != yes; then
12264   # Code to be used in simple compile tests
12265   lt_simple_compile_test_code="int some_variable = 0;"
12266
12267   # Code to be used in simple link tests
12268   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12269
12270   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12271
12272
12273
12274
12275
12276
12277 # If no C compiler was specified, use CC.
12278 LTCC=${LTCC-"$CC"}
12279
12280 # If no C compiler flags were specified, use CFLAGS.
12281 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12282
12283 # Allow CC to be a program name with arguments.
12284 compiler=$CC
12285
12286
12287   # save warnings/boilerplate of simple test code
12288   ac_outfile=conftest.$ac_objext
12289 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12290 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12291 _lt_compiler_boilerplate=`cat conftest.err`
12292 $RM conftest*
12293
12294   ac_outfile=conftest.$ac_objext
12295 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12296 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12297 _lt_linker_boilerplate=`cat conftest.err`
12298 $RM -r conftest*
12299
12300
12301   # Allow CC to be a program name with arguments.
12302   lt_save_CC=$CC
12303   lt_save_LD=$LD
12304   lt_save_GCC=$GCC
12305   GCC=$GXX
12306   lt_save_with_gnu_ld=$with_gnu_ld
12307   lt_save_path_LD=$lt_cv_path_LD
12308   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12309     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12310   else
12311     $as_unset lt_cv_prog_gnu_ld
12312   fi
12313   if test -n "${lt_cv_path_LDCXX+set}"; then
12314     lt_cv_path_LD=$lt_cv_path_LDCXX
12315   else
12316     $as_unset lt_cv_path_LD
12317   fi
12318   test -z "${LDCXX+set}" || LD=$LDCXX
12319   CC=${CXX-"c++"}
12320   compiler=$CC
12321   compiler_CXX=$CC
12322   for cc_temp in $compiler""; do
12323   case $cc_temp in
12324     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12325     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12326     \-*) ;;
12327     *) break;;
12328   esac
12329 done
12330 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12331
12332
12333   if test -n "$compiler"; then
12334     # We don't want -fno-exception when compiling C++ code, so set the
12335     # no_builtin_flag separately
12336     if test "$GXX" = yes; then
12337       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12338     else
12339       lt_prog_compiler_no_builtin_flag_CXX=
12340     fi
12341
12342     if test "$GXX" = yes; then
12343       # Set up default GNU C++ configuration
12344
12345
12346
12347 # Check whether --with-gnu-ld was given.
12348 if test "${with_gnu_ld+set}" = set; then :
12349   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12350 else
12351   with_gnu_ld=no
12352 fi
12353
12354 ac_prog=ld
12355 if test "$GCC" = yes; then
12356   # Check if gcc -print-prog-name=ld gives a path.
12357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12358 $as_echo_n "checking for ld used by $CC... " >&6; }
12359   case $host in
12360   *-*-mingw*)
12361     # gcc leaves a trailing carriage return which upsets mingw
12362     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12363   *)
12364     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12365   esac
12366   case $ac_prog in
12367     # Accept absolute paths.
12368     [\\/]* | ?:[\\/]*)
12369       re_direlt='/[^/][^/]*/\.\./'
12370       # Canonicalize the pathname of ld
12371       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12372       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12373         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12374       done
12375       test -z "$LD" && LD="$ac_prog"
12376       ;;
12377   "")
12378     # If it fails, then pretend we aren't using GCC.
12379     ac_prog=ld
12380     ;;
12381   *)
12382     # If it is relative, then search for the first ld in PATH.
12383     with_gnu_ld=unknown
12384     ;;
12385   esac
12386 elif test "$with_gnu_ld" = yes; then
12387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12388 $as_echo_n "checking for GNU ld... " >&6; }
12389 else
12390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12391 $as_echo_n "checking for non-GNU ld... " >&6; }
12392 fi
12393 if test "${lt_cv_path_LD+set}" = set; then :
12394   $as_echo_n "(cached) " >&6
12395 else
12396   if test -z "$LD"; then
12397   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12398   for ac_dir in $PATH; do
12399     IFS="$lt_save_ifs"
12400     test -z "$ac_dir" && ac_dir=.
12401     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12402       lt_cv_path_LD="$ac_dir/$ac_prog"
12403       # Check to see if the program is GNU ld.  I'd rather use --version,
12404       # but apparently some variants of GNU ld only accept -v.
12405       # Break only if it was the GNU/non-GNU ld that we prefer.
12406       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12407       *GNU* | *'with BFD'*)
12408         test "$with_gnu_ld" != no && break
12409         ;;
12410       *)
12411         test "$with_gnu_ld" != yes && break
12412         ;;
12413       esac
12414     fi
12415   done
12416   IFS="$lt_save_ifs"
12417 else
12418   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12419 fi
12420 fi
12421
12422 LD="$lt_cv_path_LD"
12423 if test -n "$LD"; then
12424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12425 $as_echo "$LD" >&6; }
12426 else
12427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12428 $as_echo "no" >&6; }
12429 fi
12430 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12432 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12433 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12434   $as_echo_n "(cached) " >&6
12435 else
12436   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12437 case `$LD -v 2>&1 </dev/null` in
12438 *GNU* | *'with BFD'*)
12439   lt_cv_prog_gnu_ld=yes
12440   ;;
12441 *)
12442   lt_cv_prog_gnu_ld=no
12443   ;;
12444 esac
12445 fi
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12447 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12448 with_gnu_ld=$lt_cv_prog_gnu_ld
12449
12450
12451
12452
12453
12454
12455
12456       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12457       # archiving commands below assume that GNU ld is being used.
12458       if test "$with_gnu_ld" = yes; then
12459         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12460         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12461
12462         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12463         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12464
12465         # If archive_cmds runs LD, not CC, wlarc should be empty
12466         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12467         #     investigate it a little bit more. (MM)
12468         wlarc='${wl}'
12469
12470         # ancient GNU ld didn't support --whole-archive et. al.
12471         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12472           $GREP 'no-whole-archive' > /dev/null; then
12473           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12474         else
12475           whole_archive_flag_spec_CXX=
12476         fi
12477       else
12478         with_gnu_ld=no
12479         wlarc=
12480
12481         # A generic and very simple default shared library creation
12482         # command for GNU C++ for the case where it uses the native
12483         # linker, instead of GNU ld.  If possible, this setting should
12484         # overridden to take advantage of the native linker features on
12485         # the platform it is being used on.
12486         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12487       fi
12488
12489       # Commands to make compiler produce verbose output that lists
12490       # what "hidden" libraries, object files and flags are used when
12491       # linking a shared library.
12492       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12493
12494     else
12495       GXX=no
12496       with_gnu_ld=no
12497       wlarc=
12498     fi
12499
12500     # PORTME: fill in a description of your system's C++ link characteristics
12501     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12502 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12503     ld_shlibs_CXX=yes
12504     case $host_os in
12505       aix3*)
12506         # FIXME: insert proper C++ library support
12507         ld_shlibs_CXX=no
12508         ;;
12509       aix[4-9]*)
12510         if test "$host_cpu" = ia64; then
12511           # On IA64, the linker does run time linking by default, so we don't
12512           # have to do anything special.
12513           aix_use_runtimelinking=no
12514           exp_sym_flag='-Bexport'
12515           no_entry_flag=""
12516         else
12517           aix_use_runtimelinking=no
12518
12519           # Test if we are trying to use run time linking or normal
12520           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12521           # need to do runtime linking.
12522           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12523             for ld_flag in $LDFLAGS; do
12524               case $ld_flag in
12525               *-brtl*)
12526                 aix_use_runtimelinking=yes
12527                 break
12528                 ;;
12529               esac
12530             done
12531             ;;
12532           esac
12533
12534           exp_sym_flag='-bexport'
12535           no_entry_flag='-bnoentry'
12536         fi
12537
12538         # When large executables or shared objects are built, AIX ld can
12539         # have problems creating the table of contents.  If linking a library
12540         # or program results in "error TOC overflow" add -mminimal-toc to
12541         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12542         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12543
12544         archive_cmds_CXX=''
12545         hardcode_direct_CXX=yes
12546         hardcode_direct_absolute_CXX=yes
12547         hardcode_libdir_separator_CXX=':'
12548         link_all_deplibs_CXX=yes
12549         file_list_spec_CXX='${wl}-f,'
12550
12551         if test "$GXX" = yes; then
12552           case $host_os in aix4.[012]|aix4.[012].*)
12553           # We only want to do this on AIX 4.2 and lower, the check
12554           # below for broken collect2 doesn't work under 4.3+
12555           collect2name=`${CC} -print-prog-name=collect2`
12556           if test -f "$collect2name" &&
12557              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12558           then
12559             # We have reworked collect2
12560             :
12561           else
12562             # We have old collect2
12563             hardcode_direct_CXX=unsupported
12564             # It fails to find uninstalled libraries when the uninstalled
12565             # path is not listed in the libpath.  Setting hardcode_minus_L
12566             # to unsupported forces relinking
12567             hardcode_minus_L_CXX=yes
12568             hardcode_libdir_flag_spec_CXX='-L$libdir'
12569             hardcode_libdir_separator_CXX=
12570           fi
12571           esac
12572           shared_flag='-shared'
12573           if test "$aix_use_runtimelinking" = yes; then
12574             shared_flag="$shared_flag "'${wl}-G'
12575           fi
12576         else
12577           # not using gcc
12578           if test "$host_cpu" = ia64; then
12579           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12580           # chokes on -Wl,-G. The following line is correct:
12581           shared_flag='-G'
12582           else
12583             if test "$aix_use_runtimelinking" = yes; then
12584               shared_flag='${wl}-G'
12585             else
12586               shared_flag='${wl}-bM:SRE'
12587             fi
12588           fi
12589         fi
12590
12591         # It seems that -bexpall does not export symbols beginning with
12592         # underscore (_), so it is better to generate a list of symbols to
12593         # export.
12594         always_export_symbols_CXX=yes
12595         if test "$aix_use_runtimelinking" = yes; then
12596           # Warning - without using the other runtime loading flags (-brtl),
12597           # -berok will link without error, but may produce a broken library.
12598           allow_undefined_flag_CXX='-berok'
12599           # Determine the default libpath from the value encoded in an empty
12600           # executable.
12601           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12602 /* end confdefs.h.  */
12603
12604 int
12605 main ()
12606 {
12607
12608   ;
12609   return 0;
12610 }
12611 _ACEOF
12612 if ac_fn_cxx_try_link "$LINENO"; then :
12613
12614 lt_aix_libpath_sed='
12615     /Import File Strings/,/^$/ {
12616         /^0/ {
12617             s/^0  *\(.*\)$/\1/
12618             p
12619         }
12620     }'
12621 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12622 # Check for a 64-bit object if we didn't find anything.
12623 if test -z "$aix_libpath"; then
12624   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12625 fi
12626 fi
12627 rm -f core conftest.err conftest.$ac_objext \
12628     conftest$ac_exeext conftest.$ac_ext
12629 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12630
12631           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12632
12633           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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12634         else
12635           if test "$host_cpu" = ia64; then
12636             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12637             allow_undefined_flag_CXX="-z nodefs"
12638             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"
12639           else
12640             # Determine the default libpath from the value encoded in an
12641             # empty executable.
12642             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12643 /* end confdefs.h.  */
12644
12645 int
12646 main ()
12647 {
12648
12649   ;
12650   return 0;
12651 }
12652 _ACEOF
12653 if ac_fn_cxx_try_link "$LINENO"; then :
12654
12655 lt_aix_libpath_sed='
12656     /Import File Strings/,/^$/ {
12657         /^0/ {
12658             s/^0  *\(.*\)$/\1/
12659             p
12660         }
12661     }'
12662 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12663 # Check for a 64-bit object if we didn't find anything.
12664 if test -z "$aix_libpath"; then
12665   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12666 fi
12667 fi
12668 rm -f core conftest.err conftest.$ac_objext \
12669     conftest$ac_exeext conftest.$ac_ext
12670 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12671
12672             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12673             # Warning - without using the other run time loading flags,
12674             # -berok will link without error, but may produce a broken library.
12675             no_undefined_flag_CXX=' ${wl}-bernotok'
12676             allow_undefined_flag_CXX=' ${wl}-berok'
12677             # Exported symbols can be pulled into shared objects from archives
12678             whole_archive_flag_spec_CXX='$convenience'
12679             archive_cmds_need_lc_CXX=yes
12680             # This is similar to how AIX traditionally builds its shared
12681             # libraries.
12682             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'
12683           fi
12684         fi
12685         ;;
12686
12687       beos*)
12688         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12689           allow_undefined_flag_CXX=unsupported
12690           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12691           # support --undefined.  This deserves some investigation.  FIXME
12692           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12693         else
12694           ld_shlibs_CXX=no
12695         fi
12696         ;;
12697
12698       chorus*)
12699         case $cc_basename in
12700           *)
12701           # FIXME: insert proper C++ library support
12702           ld_shlibs_CXX=no
12703           ;;
12704         esac
12705         ;;
12706
12707       cygwin* | mingw* | pw32*)
12708         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12709         # as there is no search path for DLLs.
12710         hardcode_libdir_flag_spec_CXX='-L$libdir'
12711         allow_undefined_flag_CXX=unsupported
12712         always_export_symbols_CXX=no
12713         enable_shared_with_static_runtimes_CXX=yes
12714
12715         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12716           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'
12717           # If the export-symbols file already is a .def file (1st line
12718           # is EXPORTS), use it as is; otherwise, prepend...
12719           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12720             cp $export_symbols $output_objdir/$soname.def;
12721           else
12722             echo EXPORTS > $output_objdir/$soname.def;
12723             cat $export_symbols >> $output_objdir/$soname.def;
12724           fi~
12725           $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'
12726         else
12727           ld_shlibs_CXX=no
12728         fi
12729         ;;
12730       darwin* | rhapsody*)
12731
12732
12733   archive_cmds_need_lc_CXX=no
12734   hardcode_direct_CXX=no
12735   hardcode_automatic_CXX=yes
12736   hardcode_shlibpath_var_CXX=unsupported
12737   whole_archive_flag_spec_CXX=''
12738   link_all_deplibs_CXX=yes
12739   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12740   if test "$GCC" = "yes"; then
12741     output_verbose_link_cmd=echo
12742     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}"
12743     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12744     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}"
12745     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}"
12746        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12747       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}"
12748       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}"
12749     fi
12750
12751   else
12752   ld_shlibs_CXX=no
12753   fi
12754
12755         ;;
12756
12757       dgux*)
12758         case $cc_basename in
12759           ec++*)
12760             # FIXME: insert proper C++ library support
12761             ld_shlibs_CXX=no
12762             ;;
12763           ghcx*)
12764             # Green Hills C++ Compiler
12765             # FIXME: insert proper C++ library support
12766             ld_shlibs_CXX=no
12767             ;;
12768           *)
12769             # FIXME: insert proper C++ library support
12770             ld_shlibs_CXX=no
12771             ;;
12772         esac
12773         ;;
12774
12775       freebsd[12]*)
12776         # C++ shared libraries reported to be fairly broken before
12777         # switch to ELF
12778         ld_shlibs_CXX=no
12779         ;;
12780
12781       freebsd-elf*)
12782         archive_cmds_need_lc_CXX=no
12783         ;;
12784
12785       freebsd* | dragonfly*)
12786         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12787         # conventions
12788         ld_shlibs_CXX=yes
12789         ;;
12790
12791       gnu*)
12792         ;;
12793
12794       hpux9*)
12795         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12796         hardcode_libdir_separator_CXX=:
12797         export_dynamic_flag_spec_CXX='${wl}-E'
12798         hardcode_direct_CXX=yes
12799         hardcode_minus_L_CXX=yes # Not in the search PATH,
12800                                              # but as the default
12801                                              # location of the library.
12802
12803         case $cc_basename in
12804           CC*)
12805             # FIXME: insert proper C++ library support
12806             ld_shlibs_CXX=no
12807             ;;
12808           aCC*)
12809             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'
12810             # Commands to make compiler produce verbose output that lists
12811             # what "hidden" libraries, object files and flags are used when
12812             # linking a shared library.
12813             #
12814             # There doesn't appear to be a way to prevent this compiler from
12815             # explicitly linking system object files so we need to strip them
12816             # from the output so that they don't get included in the library
12817             # dependencies.
12818             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; $ECHO "X$list" | $Xsed'
12819             ;;
12820           *)
12821             if test "$GXX" = yes; then
12822               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
12823             else
12824               # FIXME: insert proper C++ library support
12825               ld_shlibs_CXX=no
12826             fi
12827             ;;
12828         esac
12829         ;;
12830
12831       hpux10*|hpux11*)
12832         if test $with_gnu_ld = no; then
12833           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12834           hardcode_libdir_separator_CXX=:
12835
12836           case $host_cpu in
12837             hppa*64*|ia64*)
12838               ;;
12839             *)
12840               export_dynamic_flag_spec_CXX='${wl}-E'
12841               ;;
12842           esac
12843         fi
12844         case $host_cpu in
12845           hppa*64*|ia64*)
12846             hardcode_direct_CXX=no
12847             hardcode_shlibpath_var_CXX=no
12848             ;;
12849           *)
12850             hardcode_direct_CXX=yes
12851             hardcode_direct_absolute_CXX=yes
12852             hardcode_minus_L_CXX=yes # Not in the search PATH,
12853                                                  # but as the default
12854                                                  # location of the library.
12855             ;;
12856         esac
12857
12858         case $cc_basename in
12859           CC*)
12860             # FIXME: insert proper C++ library support
12861             ld_shlibs_CXX=no
12862             ;;
12863           aCC*)
12864             case $host_cpu in
12865               hppa*64*)
12866                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12867                 ;;
12868               ia64*)
12869                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12870                 ;;
12871               *)
12872                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12873                 ;;
12874             esac
12875             # Commands to make compiler produce verbose output that lists
12876             # what "hidden" libraries, object files and flags are used when
12877             # linking a shared library.
12878             #
12879             # There doesn't appear to be a way to prevent this compiler from
12880             # explicitly linking system object files so we need to strip them
12881             # from the output so that they don't get included in the library
12882             # dependencies.
12883             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; $ECHO "X$list" | $Xsed'
12884             ;;
12885           *)
12886             if test "$GXX" = yes; then
12887               if test $with_gnu_ld = no; then
12888                 case $host_cpu in
12889                   hppa*64*)
12890                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12891                     ;;
12892                   ia64*)
12893                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12894                     ;;
12895                   *)
12896                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12897                     ;;
12898                 esac
12899               fi
12900             else
12901               # FIXME: insert proper C++ library support
12902               ld_shlibs_CXX=no
12903             fi
12904             ;;
12905         esac
12906         ;;
12907
12908       interix[3-9]*)
12909         hardcode_direct_CXX=no
12910         hardcode_shlibpath_var_CXX=no
12911         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12912         export_dynamic_flag_spec_CXX='${wl}-E'
12913         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12914         # Instead, shared libraries are loaded at an image base (0x10000000 by
12915         # default) and relocated if they conflict, which is a slow very memory
12916         # consuming and fragmenting process.  To avoid this, we pick a random,
12917         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12918         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12919         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'
12920         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'
12921         ;;
12922       irix5* | irix6*)
12923         case $cc_basename in
12924           CC*)
12925             # SGI C++
12926             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12927
12928             # Archives containing C++ object files must be created using
12929             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12930             # necessary to make sure instantiated templates are included
12931             # in the archive.
12932             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12933             ;;
12934           *)
12935             if test "$GXX" = yes; then
12936               if test "$with_gnu_ld" = no; then
12937                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12938               else
12939                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12940               fi
12941             fi
12942             link_all_deplibs_CXX=yes
12943             ;;
12944         esac
12945         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12946         hardcode_libdir_separator_CXX=:
12947         inherit_rpath_CXX=yes
12948         ;;
12949
12950       linux* | k*bsd*-gnu)
12951         case $cc_basename in
12952           KCC*)
12953             # Kuck and Associates, Inc. (KAI) C++ Compiler
12954
12955             # KCC will only create a shared library if the output file
12956             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12957             # to its proper name (with version) after linking.
12958             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'
12959             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'
12960             # Commands to make compiler produce verbose output that lists
12961             # what "hidden" libraries, object files and flags are used when
12962             # linking a shared library.
12963             #
12964             # There doesn't appear to be a way to prevent this compiler from
12965             # explicitly linking system object files so we need to strip them
12966             # from the output so that they don't get included in the library
12967             # dependencies.
12968             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; $ECHO "X$list" | $Xsed'
12969
12970             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12971             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12972
12973             # Archives containing C++ object files must be created using
12974             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12975             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12976             ;;
12977           icpc* | ecpc* )
12978             # Intel C++
12979             with_gnu_ld=yes
12980             # version 8.0 and above of icpc choke on multiply defined symbols
12981             # if we add $predep_objects and $postdep_objects, however 7.1 and
12982             # earlier do not add the objects themselves.
12983             case `$CC -V 2>&1` in
12984               *"Version 7."*)
12985                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12986                 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'
12987                 ;;
12988               *)  # Version 8.0 or newer
12989                 tmp_idyn=
12990                 case $host_cpu in
12991                   ia64*) tmp_idyn=' -i_dynamic';;
12992                 esac
12993                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12994                 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'
12995                 ;;
12996             esac
12997             archive_cmds_need_lc_CXX=no
12998             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12999             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13000             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13001             ;;
13002           pgCC* | pgcpp*)
13003             # Portland Group C++ compiler
13004             case `$CC -V` in
13005             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13006               prelink_cmds_CXX='tpldir=Template.dir~
13007                 rm -rf $tpldir~
13008                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13009                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13010               old_archive_cmds_CXX='tpldir=Template.dir~
13011                 rm -rf $tpldir~
13012                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13013                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13014                 $RANLIB $oldlib'
13015               archive_cmds_CXX='tpldir=Template.dir~
13016                 rm -rf $tpldir~
13017                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13018                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13019               archive_expsym_cmds_CXX='tpldir=Template.dir~
13020                 rm -rf $tpldir~
13021                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13022                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13023               ;;
13024             *) # Version 6 will use weak symbols
13025               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13026               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'
13027               ;;
13028             esac
13029
13030             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13031             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13032             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13033             ;;
13034           cxx*)
13035             # Compaq C++
13036             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13037             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'
13038
13039             runpath_var=LD_RUN_PATH
13040             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13041             hardcode_libdir_separator_CXX=:
13042
13043             # Commands to make compiler produce verbose output that lists
13044             # what "hidden" libraries, object files and flags are used when
13045             # linking a shared library.
13046             #
13047             # There doesn't appear to be a way to prevent this compiler from
13048             # explicitly linking system object files so we need to strip them
13049             # from the output so that they don't get included in the library
13050             # dependencies.
13051             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13052             ;;
13053           xl*)
13054             # IBM XL 8.0 on PPC, with GNU ld
13055             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13056             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13057             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13058             if test "x$supports_anon_versioning" = xyes; then
13059               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13060                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13061                 echo "local: *; };" >> $output_objdir/$libname.ver~
13062                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13063             fi
13064             ;;
13065           *)
13066             case `$CC -V 2>&1 | sed 5q` in
13067             *Sun\ C*)
13068               # Sun C++ 5.9
13069               no_undefined_flag_CXX=' -zdefs'
13070               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13071               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'
13072               hardcode_libdir_flag_spec_CXX='-R$libdir'
13073               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13074               compiler_needs_object_CXX=yes
13075
13076               # Not sure whether something based on
13077               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13078               # would be better.
13079               output_verbose_link_cmd='echo'
13080
13081               # Archives containing C++ object files must be created using
13082               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13083               # necessary to make sure instantiated templates are included
13084               # in the archive.
13085               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13086               ;;
13087             esac
13088             ;;
13089         esac
13090         ;;
13091
13092       lynxos*)
13093         # FIXME: insert proper C++ library support
13094         ld_shlibs_CXX=no
13095         ;;
13096
13097       m88k*)
13098         # FIXME: insert proper C++ library support
13099         ld_shlibs_CXX=no
13100         ;;
13101
13102       mvs*)
13103         case $cc_basename in
13104           cxx*)
13105             # FIXME: insert proper C++ library support
13106             ld_shlibs_CXX=no
13107             ;;
13108           *)
13109             # FIXME: insert proper C++ library support
13110             ld_shlibs_CXX=no
13111             ;;
13112         esac
13113         ;;
13114
13115       netbsd*)
13116         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13117           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13118           wlarc=
13119           hardcode_libdir_flag_spec_CXX='-R$libdir'
13120           hardcode_direct_CXX=yes
13121           hardcode_shlibpath_var_CXX=no
13122         fi
13123         # Workaround some broken pre-1.5 toolchains
13124         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13125         ;;
13126
13127       *nto* | *qnx*)
13128         ld_shlibs_CXX=yes
13129         ;;
13130
13131       openbsd2*)
13132         # C++ shared libraries are fairly broken
13133         ld_shlibs_CXX=no
13134         ;;
13135
13136       openbsd*)
13137         if test -f /usr/libexec/ld.so; then
13138           hardcode_direct_CXX=yes
13139           hardcode_shlibpath_var_CXX=no
13140           hardcode_direct_absolute_CXX=yes
13141           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13142           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13143           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13144             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13145             export_dynamic_flag_spec_CXX='${wl}-E'
13146             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13147           fi
13148           output_verbose_link_cmd=echo
13149         else
13150           ld_shlibs_CXX=no
13151         fi
13152         ;;
13153
13154       osf3* | osf4* | osf5*)
13155         case $cc_basename in
13156           KCC*)
13157             # Kuck and Associates, Inc. (KAI) C++ Compiler
13158
13159             # KCC will only create a shared library if the output file
13160             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13161             # to its proper name (with version) after linking.
13162             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'
13163
13164             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13165             hardcode_libdir_separator_CXX=:
13166
13167             # Archives containing C++ object files must be created using
13168             # the KAI C++ compiler.
13169             case $host in
13170               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13171               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13172             esac
13173             ;;
13174           RCC*)
13175             # Rational C++ 2.4.1
13176             # FIXME: insert proper C++ library support
13177             ld_shlibs_CXX=no
13178             ;;
13179           cxx*)
13180             case $host in
13181               osf3*)
13182                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13183                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13184                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13185                 ;;
13186               *)
13187                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13188                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13189                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13190                   echo "-hidden">> $lib.exp~
13191                   $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13192                   $RM $lib.exp'
13193                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13194                 ;;
13195             esac
13196
13197             hardcode_libdir_separator_CXX=:
13198
13199             # Commands to make compiler produce verbose output that lists
13200             # what "hidden" libraries, object files and flags are used when
13201             # linking a shared library.
13202             #
13203             # There doesn't appear to be a way to prevent this compiler from
13204             # explicitly linking system object files so we need to strip them
13205             # from the output so that they don't get included in the library
13206             # dependencies.
13207             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13208             ;;
13209           *)
13210             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13211               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13212               case $host in
13213                 osf3*)
13214                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13215                   ;;
13216                 *)
13217                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13218                   ;;
13219               esac
13220
13221               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13222               hardcode_libdir_separator_CXX=:
13223
13224               # Commands to make compiler produce verbose output that lists
13225               # what "hidden" libraries, object files and flags are used when
13226               # linking a shared library.
13227               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13228
13229             else
13230               # FIXME: insert proper C++ library support
13231               ld_shlibs_CXX=no
13232             fi
13233             ;;
13234         esac
13235         ;;
13236
13237       psos*)
13238         # FIXME: insert proper C++ library support
13239         ld_shlibs_CXX=no
13240         ;;
13241
13242       sunos4*)
13243         case $cc_basename in
13244           CC*)
13245             # Sun C++ 4.x
13246             # FIXME: insert proper C++ library support
13247             ld_shlibs_CXX=no
13248             ;;
13249           lcc*)
13250             # Lucid
13251             # FIXME: insert proper C++ library support
13252             ld_shlibs_CXX=no
13253             ;;
13254           *)
13255             # FIXME: insert proper C++ library support
13256             ld_shlibs_CXX=no
13257             ;;
13258         esac
13259         ;;
13260
13261       solaris*)
13262         case $cc_basename in
13263           CC*)
13264             # Sun C++ 4.2, 5.x and Centerline C++
13265             archive_cmds_need_lc_CXX=yes
13266             no_undefined_flag_CXX=' -zdefs'
13267             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13268             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13269               $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'
13270
13271             hardcode_libdir_flag_spec_CXX='-R$libdir'
13272             hardcode_shlibpath_var_CXX=no
13273             case $host_os in
13274               solaris2.[0-5] | solaris2.[0-5].*) ;;
13275               *)
13276                 # The compiler driver will combine and reorder linker options,
13277                 # but understands `-z linker_flag'.
13278                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13279                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13280                 ;;
13281             esac
13282             link_all_deplibs_CXX=yes
13283
13284             output_verbose_link_cmd='echo'
13285
13286             # Archives containing C++ object files must be created using
13287             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13288             # necessary to make sure instantiated templates are included
13289             # in the archive.
13290             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13291             ;;
13292           gcx*)
13293             # Green Hills C++ Compiler
13294             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13295
13296             # The C++ compiler must be used to create the archive.
13297             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13298             ;;
13299           *)
13300             # GNU C++ compiler with Solaris linker
13301             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13302               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13303               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13304                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13305                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13306                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13307
13308                 # Commands to make compiler produce verbose output that lists
13309                 # what "hidden" libraries, object files and flags are used when
13310                 # linking a shared library.
13311                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13312               else
13313                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13314                 # platform.
13315                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13316                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13317                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13318
13319                 # Commands to make compiler produce verbose output that lists
13320                 # what "hidden" libraries, object files and flags are used when
13321                 # linking a shared library.
13322                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13323               fi
13324
13325               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13326               case $host_os in
13327                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13328                 *)
13329                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13330                   ;;
13331               esac
13332             fi
13333             ;;
13334         esac
13335         ;;
13336
13337     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13338       no_undefined_flag_CXX='${wl}-z,text'
13339       archive_cmds_need_lc_CXX=no
13340       hardcode_shlibpath_var_CXX=no
13341       runpath_var='LD_RUN_PATH'
13342
13343       case $cc_basename in
13344         CC*)
13345           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13346           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13347           ;;
13348         *)
13349           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13350           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13351           ;;
13352       esac
13353       ;;
13354
13355       sysv5* | sco3.2v5* | sco5v6*)
13356         # Note: We can NOT use -z defs as we might desire, because we do not
13357         # link with -lc, and that would cause any symbols used from libc to
13358         # always be unresolved, which means just about no library would
13359         # ever link correctly.  If we're not using GNU ld we use -z text
13360         # though, which does catch some bad symbols but isn't as heavy-handed
13361         # as -z defs.
13362         no_undefined_flag_CXX='${wl}-z,text'
13363         allow_undefined_flag_CXX='${wl}-z,nodefs'
13364         archive_cmds_need_lc_CXX=no
13365         hardcode_shlibpath_var_CXX=no
13366         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13367         hardcode_libdir_separator_CXX=':'
13368         link_all_deplibs_CXX=yes
13369         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13370         runpath_var='LD_RUN_PATH'
13371
13372         case $cc_basename in
13373           CC*)
13374             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13375             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13376             ;;
13377           *)
13378             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13379             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13380             ;;
13381         esac
13382       ;;
13383
13384       tandem*)
13385         case $cc_basename in
13386           NCC*)
13387             # NonStop-UX NCC 3.20
13388             # FIXME: insert proper C++ library support
13389             ld_shlibs_CXX=no
13390             ;;
13391           *)
13392             # FIXME: insert proper C++ library support
13393             ld_shlibs_CXX=no
13394             ;;
13395         esac
13396         ;;
13397
13398       vxworks*)
13399         # FIXME: insert proper C++ library support
13400         ld_shlibs_CXX=no
13401         ;;
13402
13403       *)
13404         # FIXME: insert proper C++ library support
13405         ld_shlibs_CXX=no
13406         ;;
13407     esac
13408
13409     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13410 $as_echo "$ld_shlibs_CXX" >&6; }
13411     test "$ld_shlibs_CXX" = no && can_build_shared=no
13412
13413     GCC_CXX="$GXX"
13414     LD_CXX="$LD"
13415
13416     ## CAVEAT EMPTOR:
13417     ## There is no encapsulation within the following macros, do not change
13418     ## the running order or otherwise move them around unless you know exactly
13419     ## what you are doing...
13420     # Dependencies to place before and after the object being linked:
13421 predep_objects_CXX=
13422 postdep_objects_CXX=
13423 predeps_CXX=
13424 postdeps_CXX=
13425 compiler_lib_search_path_CXX=
13426
13427 cat > conftest.$ac_ext <<_LT_EOF
13428 class Foo
13429 {
13430 public:
13431   Foo (void) { a = 0; }
13432 private:
13433   int a;
13434 };
13435 _LT_EOF
13436
13437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13438   (eval $ac_compile) 2>&5
13439   ac_status=$?
13440   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13441   test $ac_status = 0; }; then
13442   # Parse the compiler output and extract the necessary
13443   # objects, libraries and library flags.
13444
13445   # Sentinel used to keep track of whether or not we are before
13446   # the conftest object file.
13447   pre_test_object_deps_done=no
13448
13449   for p in `eval "$output_verbose_link_cmd"`; do
13450     case $p in
13451
13452     -L* | -R* | -l*)
13453        # Some compilers place space between "-{L,R}" and the path.
13454        # Remove the space.
13455        if test $p = "-L" ||
13456           test $p = "-R"; then
13457          prev=$p
13458          continue
13459        else
13460          prev=
13461        fi
13462
13463        if test "$pre_test_object_deps_done" = no; then
13464          case $p in
13465          -L* | -R*)
13466            # Internal compiler library paths should come after those
13467            # provided the user.  The postdeps already come after the
13468            # user supplied libs so there is no need to process them.
13469            if test -z "$compiler_lib_search_path_CXX"; then
13470              compiler_lib_search_path_CXX="${prev}${p}"
13471            else
13472              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13473            fi
13474            ;;
13475          # The "-l" case would never come before the object being
13476          # linked, so don't bother handling this case.
13477          esac
13478        else
13479          if test -z "$postdeps_CXX"; then
13480            postdeps_CXX="${prev}${p}"
13481          else
13482            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13483          fi
13484        fi
13485        ;;
13486
13487     *.$objext)
13488        # This assumes that the test object file only shows up
13489        # once in the compiler output.
13490        if test "$p" = "conftest.$objext"; then
13491          pre_test_object_deps_done=yes
13492          continue
13493        fi
13494
13495        if test "$pre_test_object_deps_done" = no; then
13496          if test -z "$predep_objects_CXX"; then
13497            predep_objects_CXX="$p"
13498          else
13499            predep_objects_CXX="$predep_objects_CXX $p"
13500          fi
13501        else
13502          if test -z "$postdep_objects_CXX"; then
13503            postdep_objects_CXX="$p"
13504          else
13505            postdep_objects_CXX="$postdep_objects_CXX $p"
13506          fi
13507        fi
13508        ;;
13509
13510     *) ;; # Ignore the rest.
13511
13512     esac
13513   done
13514
13515   # Clean up.
13516   rm -f a.out a.exe
13517 else
13518   echo "libtool.m4: error: problem compiling CXX test program"
13519 fi
13520
13521 $RM -f confest.$objext
13522
13523 # PORTME: override above test on systems where it is broken
13524 case $host_os in
13525 interix[3-9]*)
13526   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13527   # hack all around it, let's just trust "g++" to DTRT.
13528   predep_objects_CXX=
13529   postdep_objects_CXX=
13530   postdeps_CXX=
13531   ;;
13532
13533 linux*)
13534   case `$CC -V 2>&1 | sed 5q` in
13535   *Sun\ C*)
13536     # Sun C++ 5.9
13537
13538     # The more standards-conforming stlport4 library is
13539     # incompatible with the Cstd library. Avoid specifying
13540     # it if it's in CXXFLAGS. Ignore libCrun as
13541     # -library=stlport4 depends on it.
13542     case " $CXX $CXXFLAGS " in
13543     *" -library=stlport4 "*)
13544       solaris_use_stlport4=yes
13545       ;;
13546     esac
13547
13548     if test "$solaris_use_stlport4" != yes; then
13549       postdeps_CXX='-library=Cstd -library=Crun'
13550     fi
13551     ;;
13552   esac
13553   ;;
13554
13555 solaris*)
13556   case $cc_basename in
13557   CC*)
13558     # The more standards-conforming stlport4 library is
13559     # incompatible with the Cstd library. Avoid specifying
13560     # it if it's in CXXFLAGS. Ignore libCrun as
13561     # -library=stlport4 depends on it.
13562     case " $CXX $CXXFLAGS " in
13563     *" -library=stlport4 "*)
13564       solaris_use_stlport4=yes
13565       ;;
13566     esac
13567
13568     # Adding this requires a known-good setup of shared libraries for
13569     # Sun compiler versions before 5.6, else PIC objects from an old
13570     # archive will be linked into the output, leading to subtle bugs.
13571     if test "$solaris_use_stlport4" != yes; then
13572       postdeps_CXX='-library=Cstd -library=Crun'
13573     fi
13574     ;;
13575   esac
13576   ;;
13577 esac
13578
13579
13580 case " $postdeps_CXX " in
13581 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13582 esac
13583  compiler_lib_search_dirs_CXX=
13584 if test -n "${compiler_lib_search_path_CXX}"; then
13585  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13586 fi
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618     lt_prog_compiler_wl_CXX=
13619 lt_prog_compiler_pic_CXX=
13620 lt_prog_compiler_static_CXX=
13621
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13623 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13624
13625   # C++ specific cases for pic, static, wl, etc.
13626   if test "$GXX" = yes; then
13627     lt_prog_compiler_wl_CXX='-Wl,'
13628     lt_prog_compiler_static_CXX='-static'
13629
13630     case $host_os in
13631     aix*)
13632       # All AIX code is PIC.
13633       if test "$host_cpu" = ia64; then
13634         # AIX 5 now supports IA64 processor
13635         lt_prog_compiler_static_CXX='-Bstatic'
13636       fi
13637       ;;
13638     amigaos*)
13639       if test "$host_cpu" = m68k; then
13640         # FIXME: we need at least 68020 code to build shared libraries, but
13641         # adding the `-m68020' flag to GCC prevents building anything better,
13642         # like `-m68040'.
13643         lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13644       fi
13645       ;;
13646     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13647       # PIC is the default for these OSes.
13648       ;;
13649     mingw* | cygwin* | os2* | pw32*)
13650       # This hack is so that the source file can tell whether it is being
13651       # built for inclusion in a dll (and should export symbols for example).
13652       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13653       # (--disable-auto-import) libraries
13654       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13655       ;;
13656     darwin* | rhapsody*)
13657       # PIC is the default on this platform
13658       # Common symbols not allowed in MH_DYLIB files
13659       lt_prog_compiler_pic_CXX='-fno-common'
13660       ;;
13661     *djgpp*)
13662       # DJGPP does not support shared libraries at all
13663       lt_prog_compiler_pic_CXX=
13664       ;;
13665     interix[3-9]*)
13666       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13667       # Instead, we relocate shared libraries at runtime.
13668       ;;
13669     sysv4*MP*)
13670       if test -d /usr/nec; then
13671         lt_prog_compiler_pic_CXX=-Kconform_pic
13672       fi
13673       ;;
13674     hpux*)
13675       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13676       # not for PA HP-UX.
13677       case $host_cpu in
13678       hppa*64*|ia64*)
13679         ;;
13680       *)
13681         lt_prog_compiler_pic_CXX='-fPIC'
13682         ;;
13683       esac
13684       ;;
13685     *qnx* | *nto*)
13686       # QNX uses GNU C++, but need to define -shared option too, otherwise
13687       # it will coredump.
13688       lt_prog_compiler_pic_CXX='-fPIC -shared'
13689       ;;
13690     *)
13691       lt_prog_compiler_pic_CXX='-fPIC'
13692       ;;
13693     esac
13694   else
13695     case $host_os in
13696       aix[4-9]*)
13697         # All AIX code is PIC.
13698         if test "$host_cpu" = ia64; then
13699           # AIX 5 now supports IA64 processor
13700           lt_prog_compiler_static_CXX='-Bstatic'
13701         else
13702           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13703         fi
13704         ;;
13705       chorus*)
13706         case $cc_basename in
13707         cxch68*)
13708           # Green Hills C++ Compiler
13709           # _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"
13710           ;;
13711         esac
13712         ;;
13713       dgux*)
13714         case $cc_basename in
13715           ec++*)
13716             lt_prog_compiler_pic_CXX='-KPIC'
13717             ;;
13718           ghcx*)
13719             # Green Hills C++ Compiler
13720             lt_prog_compiler_pic_CXX='-pic'
13721             ;;
13722           *)
13723             ;;
13724         esac
13725         ;;
13726       freebsd* | dragonfly*)
13727         # FreeBSD uses GNU C++
13728         ;;
13729       hpux9* | hpux10* | hpux11*)
13730         case $cc_basename in
13731           CC*)
13732             lt_prog_compiler_wl_CXX='-Wl,'
13733             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13734             if test "$host_cpu" != ia64; then
13735               lt_prog_compiler_pic_CXX='+Z'
13736             fi
13737             ;;
13738           aCC*)
13739             lt_prog_compiler_wl_CXX='-Wl,'
13740             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13741             case $host_cpu in
13742             hppa*64*|ia64*)
13743               # +Z the default
13744               ;;
13745             *)
13746               lt_prog_compiler_pic_CXX='+Z'
13747               ;;
13748             esac
13749             ;;
13750           *)
13751             ;;
13752         esac
13753         ;;
13754       interix*)
13755         # This is c89, which is MS Visual C++ (no shared libs)
13756         # Anyone wants to do a port?
13757         ;;
13758       irix5* | irix6* | nonstopux*)
13759         case $cc_basename in
13760           CC*)
13761             lt_prog_compiler_wl_CXX='-Wl,'
13762             lt_prog_compiler_static_CXX='-non_shared'
13763             # CC pic flag -KPIC is the default.
13764             ;;
13765           *)
13766             ;;
13767         esac
13768         ;;
13769       linux* | k*bsd*-gnu)
13770         case $cc_basename in
13771           KCC*)
13772             # KAI C++ Compiler
13773             lt_prog_compiler_wl_CXX='--backend -Wl,'
13774             lt_prog_compiler_pic_CXX='-fPIC'
13775             ;;
13776           icpc* | ecpc* )
13777             # Intel C++
13778             lt_prog_compiler_wl_CXX='-Wl,'
13779             lt_prog_compiler_pic_CXX='-KPIC'
13780             lt_prog_compiler_static_CXX='-static'
13781             ;;
13782           pgCC* | pgcpp*)
13783             # Portland Group C++ compiler
13784             lt_prog_compiler_wl_CXX='-Wl,'
13785             lt_prog_compiler_pic_CXX='-fpic'
13786             lt_prog_compiler_static_CXX='-Bstatic'
13787             ;;
13788           cxx*)
13789             # Compaq C++
13790             # Make sure the PIC flag is empty.  It appears that all Alpha
13791             # Linux and Compaq Tru64 Unix objects are PIC.
13792             lt_prog_compiler_pic_CXX=
13793             lt_prog_compiler_static_CXX='-non_shared'
13794             ;;
13795           xlc* | xlC*)
13796             # IBM XL 8.0 on PPC
13797             lt_prog_compiler_wl_CXX='-Wl,'
13798             lt_prog_compiler_pic_CXX='-qpic'
13799             lt_prog_compiler_static_CXX='-qstaticlink'
13800             ;;
13801           *)
13802             case `$CC -V 2>&1 | sed 5q` in
13803             *Sun\ C*)
13804               # Sun C++ 5.9
13805               lt_prog_compiler_pic_CXX='-KPIC'
13806               lt_prog_compiler_static_CXX='-Bstatic'
13807               lt_prog_compiler_wl_CXX='-Qoption ld '
13808               ;;
13809             esac
13810             ;;
13811         esac
13812         ;;
13813       lynxos*)
13814         ;;
13815       m88k*)
13816         ;;
13817       mvs*)
13818         case $cc_basename in
13819           cxx*)
13820             lt_prog_compiler_pic_CXX='-W c,exportall'
13821             ;;
13822           *)
13823             ;;
13824         esac
13825         ;;
13826       netbsd*)
13827         ;;
13828       *qnx* | *nto*)
13829         # QNX uses GNU C++, but need to define -shared option too, otherwise
13830         # it will coredump.
13831         lt_prog_compiler_pic_CXX='-fPIC -shared'
13832         ;;
13833       osf3* | osf4* | osf5*)
13834         case $cc_basename in
13835           KCC*)
13836             lt_prog_compiler_wl_CXX='--backend -Wl,'
13837             ;;
13838           RCC*)
13839             # Rational C++ 2.4.1
13840             lt_prog_compiler_pic_CXX='-pic'
13841             ;;
13842           cxx*)
13843             # Digital/Compaq C++
13844             lt_prog_compiler_wl_CXX='-Wl,'
13845             # Make sure the PIC flag is empty.  It appears that all Alpha
13846             # Linux and Compaq Tru64 Unix objects are PIC.
13847             lt_prog_compiler_pic_CXX=
13848             lt_prog_compiler_static_CXX='-non_shared'
13849             ;;
13850           *)
13851             ;;
13852         esac
13853         ;;
13854       psos*)
13855         ;;
13856       solaris*)
13857         case $cc_basename in
13858           CC*)
13859             # Sun C++ 4.2, 5.x and Centerline C++
13860             lt_prog_compiler_pic_CXX='-KPIC'
13861             lt_prog_compiler_static_CXX='-Bstatic'
13862             lt_prog_compiler_wl_CXX='-Qoption ld '
13863             ;;
13864           gcx*)
13865             # Green Hills C++ Compiler
13866             lt_prog_compiler_pic_CXX='-PIC'
13867             ;;
13868           *)
13869             ;;
13870         esac
13871         ;;
13872       sunos4*)
13873         case $cc_basename in
13874           CC*)
13875             # Sun C++ 4.x
13876             lt_prog_compiler_pic_CXX='-pic'
13877             lt_prog_compiler_static_CXX='-Bstatic'
13878             ;;
13879           lcc*)
13880             # Lucid
13881             lt_prog_compiler_pic_CXX='-pic'
13882             ;;
13883           *)
13884             ;;
13885         esac
13886         ;;
13887       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13888         case $cc_basename in
13889           CC*)
13890             lt_prog_compiler_wl_CXX='-Wl,'
13891             lt_prog_compiler_pic_CXX='-KPIC'
13892             lt_prog_compiler_static_CXX='-Bstatic'
13893             ;;
13894         esac
13895         ;;
13896       tandem*)
13897         case $cc_basename in
13898           NCC*)
13899             # NonStop-UX NCC 3.20
13900             lt_prog_compiler_pic_CXX='-KPIC'
13901             ;;
13902           *)
13903             ;;
13904         esac
13905         ;;
13906       vxworks*)
13907         ;;
13908       *)
13909         lt_prog_compiler_can_build_shared_CXX=no
13910         ;;
13911     esac
13912   fi
13913
13914 case $host_os in
13915   # For platforms which do not support PIC, -DPIC is meaningless:
13916   *djgpp*)
13917     lt_prog_compiler_pic_CXX=
13918     ;;
13919   *)
13920     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13921     ;;
13922 esac
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13924 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13925
13926
13927
13928 #
13929 # Check to make sure the PIC flag actually works.
13930 #
13931 if test -n "$lt_prog_compiler_pic_CXX"; then
13932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13933 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13934 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13935   $as_echo_n "(cached) " >&6
13936 else
13937   lt_cv_prog_compiler_pic_works_CXX=no
13938    ac_outfile=conftest.$ac_objext
13939    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13940    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13941    # Insert the option either (1) after the last *FLAGS variable, or
13942    # (2) before a word containing "conftest.", or (3) at the end.
13943    # Note that $ac_compile itself does not contain backslashes and begins
13944    # with a dollar sign (not a hyphen), so the echo should work correctly.
13945    # The option is referenced via a variable to avoid confusing sed.
13946    lt_compile=`echo "$ac_compile" | $SED \
13947    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13948    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13949    -e 's:$: $lt_compiler_flag:'`
13950    (eval echo "\"\$as_me:13950: $lt_compile\"" >&5)
13951    (eval "$lt_compile" 2>conftest.err)
13952    ac_status=$?
13953    cat conftest.err >&5
13954    echo "$as_me:13954: \$? = $ac_status" >&5
13955    if (exit $ac_status) && test -s "$ac_outfile"; then
13956      # The compiler can only warn and ignore the option if not recognized
13957      # So say no if there are warnings other than the usual output.
13958      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13959      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13960      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13961        lt_cv_prog_compiler_pic_works_CXX=yes
13962      fi
13963    fi
13964    $RM conftest*
13965
13966 fi
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13968 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13969
13970 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13971     case $lt_prog_compiler_pic_CXX in
13972      "" | " "*) ;;
13973      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13974      esac
13975 else
13976     lt_prog_compiler_pic_CXX=
13977      lt_prog_compiler_can_build_shared_CXX=no
13978 fi
13979
13980 fi
13981
13982
13983
13984 #
13985 # Check to make sure the static flag actually works.
13986 #
13987 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13989 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13990 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13991   $as_echo_n "(cached) " >&6
13992 else
13993   lt_cv_prog_compiler_static_works_CXX=no
13994    save_LDFLAGS="$LDFLAGS"
13995    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13996    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13997    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13998      # The linker can only warn and ignore the option if not recognized
13999      # So say no if there are warnings
14000      if test -s conftest.err; then
14001        # Append any errors to the config.log.
14002        cat conftest.err 1>&5
14003        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14004        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14005        if diff conftest.exp conftest.er2 >/dev/null; then
14006          lt_cv_prog_compiler_static_works_CXX=yes
14007        fi
14008      else
14009        lt_cv_prog_compiler_static_works_CXX=yes
14010      fi
14011    fi
14012    $RM -r conftest*
14013    LDFLAGS="$save_LDFLAGS"
14014
14015 fi
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14017 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14018
14019 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14020     :
14021 else
14022     lt_prog_compiler_static_CXX=
14023 fi
14024
14025
14026
14027
14028     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14029 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14030 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14031   $as_echo_n "(cached) " >&6
14032 else
14033   lt_cv_prog_compiler_c_o_CXX=no
14034    $RM -r conftest 2>/dev/null
14035    mkdir conftest
14036    cd conftest
14037    mkdir out
14038    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14039
14040    lt_compiler_flag="-o out/conftest2.$ac_objext"
14041    # Insert the option either (1) after the last *FLAGS variable, or
14042    # (2) before a word containing "conftest.", or (3) at the end.
14043    # Note that $ac_compile itself does not contain backslashes and begins
14044    # with a dollar sign (not a hyphen), so the echo should work correctly.
14045    lt_compile=`echo "$ac_compile" | $SED \
14046    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14047    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14048    -e 's:$: $lt_compiler_flag:'`
14049    (eval echo "\"\$as_me:14049: $lt_compile\"" >&5)
14050    (eval "$lt_compile" 2>out/conftest.err)
14051    ac_status=$?
14052    cat out/conftest.err >&5
14053    echo "$as_me:14053: \$? = $ac_status" >&5
14054    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14055    then
14056      # The compiler can only warn and ignore the option if not recognized
14057      # So say no if there are warnings
14058      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14059      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14060      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14061        lt_cv_prog_compiler_c_o_CXX=yes
14062      fi
14063    fi
14064    chmod u+w . 2>&5
14065    $RM conftest*
14066    # SGI C++ compiler will create directory out/ii_files/ for
14067    # template instantiation
14068    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14069    $RM out/* && rmdir out
14070    cd ..
14071    $RM -r conftest
14072    $RM conftest*
14073
14074 fi
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14076 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14077
14078
14079
14080     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14081 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14082 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14083   $as_echo_n "(cached) " >&6
14084 else
14085   lt_cv_prog_compiler_c_o_CXX=no
14086    $RM -r conftest 2>/dev/null
14087    mkdir conftest
14088    cd conftest
14089    mkdir out
14090    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14091
14092    lt_compiler_flag="-o out/conftest2.$ac_objext"
14093    # Insert the option either (1) after the last *FLAGS variable, or
14094    # (2) before a word containing "conftest.", or (3) at the end.
14095    # Note that $ac_compile itself does not contain backslashes and begins
14096    # with a dollar sign (not a hyphen), so the echo should work correctly.
14097    lt_compile=`echo "$ac_compile" | $SED \
14098    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14099    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14100    -e 's:$: $lt_compiler_flag:'`
14101    (eval echo "\"\$as_me:14101: $lt_compile\"" >&5)
14102    (eval "$lt_compile" 2>out/conftest.err)
14103    ac_status=$?
14104    cat out/conftest.err >&5
14105    echo "$as_me:14105: \$? = $ac_status" >&5
14106    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14107    then
14108      # The compiler can only warn and ignore the option if not recognized
14109      # So say no if there are warnings
14110      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14111      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14112      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14113        lt_cv_prog_compiler_c_o_CXX=yes
14114      fi
14115    fi
14116    chmod u+w . 2>&5
14117    $RM conftest*
14118    # SGI C++ compiler will create directory out/ii_files/ for
14119    # template instantiation
14120    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14121    $RM out/* && rmdir out
14122    cd ..
14123    $RM -r conftest
14124    $RM conftest*
14125
14126 fi
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14128 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14129
14130
14131
14132
14133 hard_links="nottested"
14134 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14135   # do not overwrite the value of need_locks provided by the user
14136   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14137 $as_echo_n "checking if we can lock with hard links... " >&6; }
14138   hard_links=yes
14139   $RM conftest*
14140   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14141   touch conftest.a
14142   ln conftest.a conftest.b 2>&5 || hard_links=no
14143   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14145 $as_echo "$hard_links" >&6; }
14146   if test "$hard_links" = no; then
14147     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14148 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14149     need_locks=warn
14150   fi
14151 else
14152   need_locks=no
14153 fi
14154
14155
14156
14157     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14158 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14159
14160   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14161   case $host_os in
14162   aix[4-9]*)
14163     # If we're using GNU nm, then we don't want the "-C" option.
14164     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14165     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14166       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14167     else
14168       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'
14169     fi
14170     ;;
14171   pw32*)
14172     export_symbols_cmds_CXX="$ltdll_cmds"
14173   ;;
14174   cygwin* | mingw*)
14175     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14176   ;;
14177   *)
14178     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14179   ;;
14180   esac
14181   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14182
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14184 $as_echo "$ld_shlibs_CXX" >&6; }
14185 test "$ld_shlibs_CXX" = no && can_build_shared=no
14186
14187 with_gnu_ld_CXX=$with_gnu_ld
14188
14189
14190
14191
14192
14193
14194 #
14195 # Do we need to explicitly link libc?
14196 #
14197 case "x$archive_cmds_need_lc_CXX" in
14198 x|xyes)
14199   # Assume -lc should be added
14200   archive_cmds_need_lc_CXX=yes
14201
14202   if test "$enable_shared" = yes && test "$GCC" = yes; then
14203     case $archive_cmds_CXX in
14204     *'~'*)
14205       # FIXME: we may have to deal with multi-command sequences.
14206       ;;
14207     '$CC '*)
14208       # Test whether the compiler implicitly links with -lc since on some
14209       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14210       # to ld, don't add -lc before -lgcc.
14211       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14212 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14213       $RM conftest*
14214       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14215
14216       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14217   (eval $ac_compile) 2>&5
14218   ac_status=$?
14219   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14220   test $ac_status = 0; } 2>conftest.err; then
14221         soname=conftest
14222         lib=conftest
14223         libobjs=conftest.$ac_objext
14224         deplibs=
14225         wl=$lt_prog_compiler_wl_CXX
14226         pic_flag=$lt_prog_compiler_pic_CXX
14227         compiler_flags=-v
14228         linker_flags=-v
14229         verstring=
14230         output_objdir=.
14231         libname=conftest
14232         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14233         allow_undefined_flag_CXX=
14234         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14235   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14236   ac_status=$?
14237   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14238   test $ac_status = 0; }
14239         then
14240           archive_cmds_need_lc_CXX=no
14241         else
14242           archive_cmds_need_lc_CXX=yes
14243         fi
14244         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14245       else
14246         cat conftest.err 1>&5
14247       fi
14248       $RM conftest*
14249       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14250 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14251       ;;
14252     esac
14253   fi
14254   ;;
14255 esac
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14321 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14322
14323 library_names_spec=
14324 libname_spec='lib$name'
14325 soname_spec=
14326 shrext_cmds=".so"
14327 postinstall_cmds=
14328 postuninstall_cmds=
14329 finish_cmds=
14330 finish_eval=
14331 shlibpath_var=
14332 shlibpath_overrides_runpath=unknown
14333 version_type=none
14334 dynamic_linker="$host_os ld.so"
14335 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14336 need_lib_prefix=unknown
14337 hardcode_into_libs=no
14338
14339 # when you set need_version to no, make sure it does not cause -set_version
14340 # flags to be left without arguments
14341 need_version=unknown
14342
14343 case $host_os in
14344 aix3*)
14345   version_type=linux
14346   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14347   shlibpath_var=LIBPATH
14348
14349   # AIX 3 has no versioning support, so we append a major version to the name.
14350   soname_spec='${libname}${release}${shared_ext}$major'
14351   ;;
14352
14353 aix[4-9]*)
14354   version_type=linux
14355   need_lib_prefix=no
14356   need_version=no
14357   hardcode_into_libs=yes
14358   if test "$host_cpu" = ia64; then
14359     # AIX 5 supports IA64
14360     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14361     shlibpath_var=LD_LIBRARY_PATH
14362   else
14363     # With GCC up to 2.95.x, collect2 would create an import file
14364     # for dependence libraries.  The import file would start with
14365     # the line `#! .'.  This would cause the generated library to
14366     # depend on `.', always an invalid library.  This was fixed in
14367     # development snapshots of GCC prior to 3.0.
14368     case $host_os in
14369       aix4 | aix4.[01] | aix4.[01].*)
14370       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14371            echo ' yes '
14372            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14373         :
14374       else
14375         can_build_shared=no
14376       fi
14377       ;;
14378     esac
14379     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14380     # soname into executable. Probably we can add versioning support to
14381     # collect2, so additional links can be useful in future.
14382     if test "$aix_use_runtimelinking" = yes; then
14383       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14384       # instead of lib<name>.a to let people know that these are not
14385       # typical AIX shared libraries.
14386       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14387     else
14388       # We preserve .a as extension for shared libraries through AIX4.2
14389       # and later when we are not doing run time linking.
14390       library_names_spec='${libname}${release}.a $libname.a'
14391       soname_spec='${libname}${release}${shared_ext}$major'
14392     fi
14393     shlibpath_var=LIBPATH
14394   fi
14395   ;;
14396
14397 amigaos*)
14398   if test "$host_cpu" = m68k; then
14399     library_names_spec='$libname.ixlibrary $libname.a'
14400     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14401     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
14402   else
14403     dynamic_linker=no
14404   fi
14405   ;;
14406
14407 beos*)
14408   library_names_spec='${libname}${shared_ext}'
14409   dynamic_linker="$host_os ld.so"
14410   shlibpath_var=LIBRARY_PATH
14411   ;;
14412
14413 bsdi[45]*)
14414   version_type=linux
14415   need_version=no
14416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14417   soname_spec='${libname}${release}${shared_ext}$major'
14418   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14419   shlibpath_var=LD_LIBRARY_PATH
14420   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14421   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14422   # the default ld.so.conf also contains /usr/contrib/lib and
14423   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14424   # libtool to hard-code these into programs
14425   ;;
14426
14427 cygwin* | mingw* | pw32*)
14428   version_type=windows
14429   shrext_cmds=".dll"
14430   need_version=no
14431   need_lib_prefix=no
14432
14433   case $GCC,$host_os in
14434   yes,cygwin* | yes,mingw* | yes,pw32*)
14435     library_names_spec='$libname.dll.a'
14436     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14437     postinstall_cmds='base_file=`basename \${file}`~
14438       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14439       dldir=$destdir/`dirname \$dlpath`~
14440       test -d \$dldir || mkdir -p \$dldir~
14441       $install_prog $dir/$dlname \$dldir/$dlname~
14442       chmod a+x \$dldir/$dlname~
14443       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14444         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14445       fi'
14446     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14447       dlpath=$dir/\$dldll~
14448        $RM \$dlpath'
14449     shlibpath_overrides_runpath=yes
14450
14451     case $host_os in
14452     cygwin*)
14453       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14454       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14455       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14456       ;;
14457     mingw*)
14458       # MinGW DLLs use traditional 'lib' prefix
14459       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14460       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14461       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14462         # It is most probably a Windows format PATH printed by
14463         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14464         # path with ; separators, and with drive letters. We can handle the
14465         # drive letters (cygwin fileutils understands them), so leave them,
14466         # especially as we might pass files found there to a mingw objdump,
14467         # which wouldn't understand a cygwinified path. Ahh.
14468         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14469       else
14470         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14471       fi
14472       ;;
14473     pw32*)
14474       # pw32 DLLs use 'pw' prefix rather than 'lib'
14475       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14476       ;;
14477     esac
14478     ;;
14479
14480   *)
14481     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14482     ;;
14483   esac
14484   dynamic_linker='Win32 ld.exe'
14485   # FIXME: first we should search . and the directory the executable is in
14486   shlibpath_var=PATH
14487   ;;
14488
14489 darwin* | rhapsody*)
14490   dynamic_linker="$host_os dyld"
14491   version_type=darwin
14492   need_lib_prefix=no
14493   need_version=no
14494   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14495   soname_spec='${libname}${release}${major}$shared_ext'
14496   shlibpath_overrides_runpath=yes
14497   shlibpath_var=DYLD_LIBRARY_PATH
14498   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14499
14500   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14501   ;;
14502
14503 dgux*)
14504   version_type=linux
14505   need_lib_prefix=no
14506   need_version=no
14507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14508   soname_spec='${libname}${release}${shared_ext}$major'
14509   shlibpath_var=LD_LIBRARY_PATH
14510   ;;
14511
14512 freebsd1*)
14513   dynamic_linker=no
14514   ;;
14515
14516 freebsd* | dragonfly*)
14517   # DragonFly does not have aout.  When/if they implement a new
14518   # versioning mechanism, adjust this.
14519   if test -x /usr/bin/objformat; then
14520     objformat=`/usr/bin/objformat`
14521   else
14522     case $host_os in
14523     freebsd[123]*) objformat=aout ;;
14524     *) objformat=elf ;;
14525     esac
14526   fi
14527   version_type=freebsd-$objformat
14528   case $version_type in
14529     freebsd-elf*)
14530       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14531       need_version=no
14532       need_lib_prefix=no
14533       ;;
14534     freebsd-*)
14535       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14536       need_version=yes
14537       ;;
14538   esac
14539   shlibpath_var=LD_LIBRARY_PATH
14540   case $host_os in
14541   freebsd2*)
14542     shlibpath_overrides_runpath=yes
14543     ;;
14544   freebsd3.[01]* | freebsdelf3.[01]*)
14545     shlibpath_overrides_runpath=yes
14546     hardcode_into_libs=yes
14547     ;;
14548   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14549   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14550     shlibpath_overrides_runpath=no
14551     hardcode_into_libs=yes
14552     ;;
14553   *) # from 4.6 on, and DragonFly
14554     shlibpath_overrides_runpath=yes
14555     hardcode_into_libs=yes
14556     ;;
14557   esac
14558   ;;
14559
14560 gnu*)
14561   version_type=linux
14562   need_lib_prefix=no
14563   need_version=no
14564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14565   soname_spec='${libname}${release}${shared_ext}$major'
14566   shlibpath_var=LD_LIBRARY_PATH
14567   hardcode_into_libs=yes
14568   ;;
14569
14570 hpux9* | hpux10* | hpux11*)
14571   # Give a soname corresponding to the major version so that dld.sl refuses to
14572   # link against other versions.
14573   version_type=sunos
14574   need_lib_prefix=no
14575   need_version=no
14576   case $host_cpu in
14577   ia64*)
14578     shrext_cmds='.so'
14579     hardcode_into_libs=yes
14580     dynamic_linker="$host_os dld.so"
14581     shlibpath_var=LD_LIBRARY_PATH
14582     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14583     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14584     soname_spec='${libname}${release}${shared_ext}$major'
14585     if test "X$HPUX_IA64_MODE" = X32; then
14586       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14587     else
14588       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14589     fi
14590     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14591     ;;
14592   hppa*64*)
14593     shrext_cmds='.sl'
14594     hardcode_into_libs=yes
14595     dynamic_linker="$host_os dld.sl"
14596     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14597     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14598     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14599     soname_spec='${libname}${release}${shared_ext}$major'
14600     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14601     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14602     ;;
14603   *)
14604     shrext_cmds='.sl'
14605     dynamic_linker="$host_os dld.sl"
14606     shlibpath_var=SHLIB_PATH
14607     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14608     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14609     soname_spec='${libname}${release}${shared_ext}$major'
14610     ;;
14611   esac
14612   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14613   postinstall_cmds='chmod 555 $lib'
14614   ;;
14615
14616 interix[3-9]*)
14617   version_type=linux
14618   need_lib_prefix=no
14619   need_version=no
14620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14621   soname_spec='${libname}${release}${shared_ext}$major'
14622   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14623   shlibpath_var=LD_LIBRARY_PATH
14624   shlibpath_overrides_runpath=no
14625   hardcode_into_libs=yes
14626   ;;
14627
14628 irix5* | irix6* | nonstopux*)
14629   case $host_os in
14630     nonstopux*) version_type=nonstopux ;;
14631     *)
14632         if test "$lt_cv_prog_gnu_ld" = yes; then
14633                 version_type=linux
14634         else
14635                 version_type=irix
14636         fi ;;
14637   esac
14638   need_lib_prefix=no
14639   need_version=no
14640   soname_spec='${libname}${release}${shared_ext}$major'
14641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14642   case $host_os in
14643   irix5* | nonstopux*)
14644     libsuff= shlibsuff=
14645     ;;
14646   *)
14647     case $LD in # libtool.m4 will add one of these switches to LD
14648     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14649       libsuff= shlibsuff= libmagic=32-bit;;
14650     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14651       libsuff=32 shlibsuff=N32 libmagic=N32;;
14652     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14653       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14654     *) libsuff= shlibsuff= libmagic=never-match;;
14655     esac
14656     ;;
14657   esac
14658   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14659   shlibpath_overrides_runpath=no
14660   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14661   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14662   hardcode_into_libs=yes
14663   ;;
14664
14665 # No shared lib support for Linux oldld, aout, or coff.
14666 linux*oldld* | linux*aout* | linux*coff*)
14667   dynamic_linker=no
14668   ;;
14669
14670 # This must be Linux ELF.
14671 linux* | k*bsd*-gnu)
14672   version_type=linux
14673   need_lib_prefix=no
14674   need_version=no
14675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14676   soname_spec='${libname}${release}${shared_ext}$major'
14677   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14678   shlibpath_var=LD_LIBRARY_PATH
14679   shlibpath_overrides_runpath=no
14680   # Some binutils ld are patched to set DT_RUNPATH
14681   save_LDFLAGS=$LDFLAGS
14682   save_libdir=$libdir
14683   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14684        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14686 /* end confdefs.h.  */
14687
14688 int
14689 main ()
14690 {
14691
14692   ;
14693   return 0;
14694 }
14695 _ACEOF
14696 if ac_fn_cxx_try_link "$LINENO"; then :
14697   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14698   shlibpath_overrides_runpath=yes
14699 fi
14700 fi
14701 rm -f core conftest.err conftest.$ac_objext \
14702     conftest$ac_exeext conftest.$ac_ext
14703   LDFLAGS=$save_LDFLAGS
14704   libdir=$save_libdir
14705
14706   # This implies no fast_install, which is unacceptable.
14707   # Some rework will be needed to allow for fast_install
14708   # before this can be enabled.
14709   hardcode_into_libs=yes
14710
14711   # Append ld.so.conf contents to the search path
14712   if test -f /etc/ld.so.conf; then
14713     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;/^$/d' | tr '\n' ' '`
14714     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14715   fi
14716
14717   # We used to test for /lib/ld.so.1 and disable shared libraries on
14718   # powerpc, because MkLinux only supported shared libraries with the
14719   # GNU dynamic linker.  Since this was broken with cross compilers,
14720   # most powerpc-linux boxes support dynamic linking these days and
14721   # people can always --disable-shared, the test was removed, and we
14722   # assume the GNU/Linux dynamic linker is in use.
14723   dynamic_linker='GNU/Linux ld.so'
14724   ;;
14725
14726 netbsd*)
14727   version_type=sunos
14728   need_lib_prefix=no
14729   need_version=no
14730   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14731     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14732     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14733     dynamic_linker='NetBSD (a.out) ld.so'
14734   else
14735     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14736     soname_spec='${libname}${release}${shared_ext}$major'
14737     dynamic_linker='NetBSD ld.elf_so'
14738   fi
14739   shlibpath_var=LD_LIBRARY_PATH
14740   shlibpath_overrides_runpath=yes
14741   hardcode_into_libs=yes
14742   ;;
14743
14744 newsos6)
14745   version_type=linux
14746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14747   shlibpath_var=LD_LIBRARY_PATH
14748   shlibpath_overrides_runpath=yes
14749   ;;
14750
14751 *nto* | *qnx*)
14752   version_type=qnx
14753   need_lib_prefix=no
14754   need_version=no
14755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14756   soname_spec='${libname}${release}${shared_ext}$major'
14757   shlibpath_var=LD_LIBRARY_PATH
14758   shlibpath_overrides_runpath=no
14759   hardcode_into_libs=yes
14760   dynamic_linker='ldqnx.so'
14761   ;;
14762
14763 openbsd*)
14764   version_type=sunos
14765   sys_lib_dlsearch_path_spec="/usr/lib"
14766   need_lib_prefix=no
14767   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14768   case $host_os in
14769     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14770     *)                          need_version=no  ;;
14771   esac
14772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14773   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14774   shlibpath_var=LD_LIBRARY_PATH
14775   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14776     case $host_os in
14777       openbsd2.[89] | openbsd2.[89].*)
14778         shlibpath_overrides_runpath=no
14779         ;;
14780       *)
14781         shlibpath_overrides_runpath=yes
14782         ;;
14783       esac
14784   else
14785     shlibpath_overrides_runpath=yes
14786   fi
14787   ;;
14788
14789 os2*)
14790   libname_spec='$name'
14791   shrext_cmds=".dll"
14792   need_lib_prefix=no
14793   library_names_spec='$libname${shared_ext} $libname.a'
14794   dynamic_linker='OS/2 ld.exe'
14795   shlibpath_var=LIBPATH
14796   ;;
14797
14798 osf3* | osf4* | osf5*)
14799   version_type=osf
14800   need_lib_prefix=no
14801   need_version=no
14802   soname_spec='${libname}${release}${shared_ext}$major'
14803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14804   shlibpath_var=LD_LIBRARY_PATH
14805   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14806   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14807   ;;
14808
14809 rdos*)
14810   dynamic_linker=no
14811   ;;
14812
14813 solaris*)
14814   version_type=linux
14815   need_lib_prefix=no
14816   need_version=no
14817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14818   soname_spec='${libname}${release}${shared_ext}$major'
14819   shlibpath_var=LD_LIBRARY_PATH
14820   shlibpath_overrides_runpath=yes
14821   hardcode_into_libs=yes
14822   # ldd complains unless libraries are executable
14823   postinstall_cmds='chmod +x $lib'
14824   ;;
14825
14826 sunos4*)
14827   version_type=sunos
14828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14829   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14830   shlibpath_var=LD_LIBRARY_PATH
14831   shlibpath_overrides_runpath=yes
14832   if test "$with_gnu_ld" = yes; then
14833     need_lib_prefix=no
14834   fi
14835   need_version=yes
14836   ;;
14837
14838 sysv4 | sysv4.3*)
14839   version_type=linux
14840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14841   soname_spec='${libname}${release}${shared_ext}$major'
14842   shlibpath_var=LD_LIBRARY_PATH
14843   case $host_vendor in
14844     sni)
14845       shlibpath_overrides_runpath=no
14846       need_lib_prefix=no
14847       runpath_var=LD_RUN_PATH
14848       ;;
14849     siemens)
14850       need_lib_prefix=no
14851       ;;
14852     motorola)
14853       need_lib_prefix=no
14854       need_version=no
14855       shlibpath_overrides_runpath=no
14856       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14857       ;;
14858   esac
14859   ;;
14860
14861 sysv4*MP*)
14862   if test -d /usr/nec ;then
14863     version_type=linux
14864     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14865     soname_spec='$libname${shared_ext}.$major'
14866     shlibpath_var=LD_LIBRARY_PATH
14867   fi
14868   ;;
14869
14870 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14871   version_type=freebsd-elf
14872   need_lib_prefix=no
14873   need_version=no
14874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14875   soname_spec='${libname}${release}${shared_ext}$major'
14876   shlibpath_var=LD_LIBRARY_PATH
14877   shlibpath_overrides_runpath=yes
14878   hardcode_into_libs=yes
14879   if test "$with_gnu_ld" = yes; then
14880     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14881   else
14882     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14883     case $host_os in
14884       sco3.2v5*)
14885         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14886         ;;
14887     esac
14888   fi
14889   sys_lib_dlsearch_path_spec='/usr/lib'
14890   ;;
14891
14892 tpf*)
14893   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14894   version_type=linux
14895   need_lib_prefix=no
14896   need_version=no
14897   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14898   shlibpath_var=LD_LIBRARY_PATH
14899   shlibpath_overrides_runpath=no
14900   hardcode_into_libs=yes
14901   ;;
14902
14903 uts4*)
14904   version_type=linux
14905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14906   soname_spec='${libname}${release}${shared_ext}$major'
14907   shlibpath_var=LD_LIBRARY_PATH
14908   ;;
14909
14910 *)
14911   dynamic_linker=no
14912   ;;
14913 esac
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14915 $as_echo "$dynamic_linker" >&6; }
14916 test "$dynamic_linker" = no && can_build_shared=no
14917
14918 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14919 if test "$GCC" = yes; then
14920   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14921 fi
14922
14923 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14924   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14925 fi
14926 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14927   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14928 fi
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14966 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14967 hardcode_action_CXX=
14968 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14969    test -n "$runpath_var_CXX" ||
14970    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14971
14972   # We can hardcode non-existent directories.
14973   if test "$hardcode_direct_CXX" != no &&
14974      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14975      # have to relink, otherwise we might link with an installed library
14976      # when we should be linking with a yet-to-be-installed one
14977      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14978      test "$hardcode_minus_L_CXX" != no; then
14979     # Linking always hardcodes the temporary library directory.
14980     hardcode_action_CXX=relink
14981   else
14982     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14983     hardcode_action_CXX=immediate
14984   fi
14985 else
14986   # We cannot hardcode anything, or else we can only hardcode existing
14987   # directories.
14988   hardcode_action_CXX=unsupported
14989 fi
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14991 $as_echo "$hardcode_action_CXX" >&6; }
14992
14993 if test "$hardcode_action_CXX" = relink ||
14994    test "$inherit_rpath_CXX" = yes; then
14995   # Fast installation is not supported
14996   enable_fast_install=no
14997 elif test "$shlibpath_overrides_runpath" = yes ||
14998      test "$enable_shared" = no; then
14999   # Fast installation is not necessary
15000   enable_fast_install=needless
15001 fi
15002
15003
15004
15005
15006
15007
15008
15009   fi # test -n "$compiler"
15010
15011   CC=$lt_save_CC
15012   LDCXX=$LD
15013   LD=$lt_save_LD
15014   GCC=$lt_save_GCC
15015   with_gnu_ld=$lt_save_with_gnu_ld
15016   lt_cv_path_LDCXX=$lt_cv_path_LD
15017   lt_cv_path_LD=$lt_save_path_LD
15018   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15019   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15020 fi # test "$_lt_caught_CXX_error" != yes
15021
15022 ac_ext=c
15023 ac_cpp='$CPP $CPPFLAGS'
15024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040         ac_config_commands="$ac_config_commands libtool"
15041
15042
15043
15044
15045 # Only expand once:
15046
15047
15048
15049 #
15050 # Check for AViiON Machines running DGUX
15051 # FIXME: Should this be moved down to below the gc-debug processing?
15052 #
15053 ac_is_dgux=no
15054 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15055 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
15056   ac_is_dgux=yes;
15057 fi
15058
15059
15060
15061     ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
15062 if test $ac_is_dgux = yes; then
15063     if test "$enable_gc_debug" = "yes"; then
15064       CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15065       CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15066     else
15067       CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15068       CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15069     fi
15070
15071
15072 fi
15073
15074
15075 # Check whether --with-target-subdir was given.
15076 if test "${with_target_subdir+set}" = set; then :
15077   withval=$with_target_subdir;
15078 fi
15079
15080
15081 # Check whether --with-cross-host was given.
15082 if test "${with_cross_host+set}" = set; then :
15083   withval=$with_cross_host;
15084 fi
15085
15086
15087 # automake wants to see AC_EXEEXT.  But we don't need it.  And having
15088 # it is actually a problem, because the compiler we're passed can't
15089 # necessarily do a full link.  So we fool automake here.
15090 if false; then
15091   # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
15092   # to nothing, so nothing would remain between `then' and `fi' if it
15093   # were not for the `:' below.
15094   :
15095
15096 fi
15097
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Solaris gcc optimization fix is necessary" >&5
15099 $as_echo_n "checking whether Solaris gcc optimization fix is necessary... " >&6; }
15100 case "$host" in
15101  *aix*)
15102     if test "$GCC" = yes; then
15103        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15104 $as_echo "yes" >&6; }
15105        new_CFLAGS=
15106        for i in $CFLAGS; do
15107           case "$i" in
15108            -O*)
15109               ;;
15110            *)
15111               new_CFLAGS="$new_CFLAGS $i"
15112               ;;
15113           esac
15114        done
15115        CFLAGS="$new_CFLAGS"
15116     else
15117        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15118 $as_echo "no" >&6; }
15119     fi
15120     ;;
15121  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15122 $as_echo "no" >&6; } ;;
15123 esac
15124
15125
15126 $as_echo "#define NO_EXECUTE_PERMISSION 1" >>confdefs.h
15127
15128
15129 $as_echo "#define ALL_INTERIOR_POINTERS 1" >>confdefs.h
15130
15131
15132
15133 # Check whether --enable-gcj-support was given.
15134 if test "${enable_gcj_support+set}" = set; then :
15135   enableval=$enable_gcj_support;
15136 fi
15137
15138  if test x"$enable_gcj_support" != xno; then
15139   ENABLE_GCJ_SUPPORT_TRUE=
15140   ENABLE_GCJ_SUPPORT_FALSE='#'
15141 else
15142   ENABLE_GCJ_SUPPORT_TRUE='#'
15143   ENABLE_GCJ_SUPPORT_FALSE=
15144 fi
15145
15146 if test x"$enable_gcj_support" != xno; then
15147
15148 $as_echo "#define GC_GCJ_SUPPORT 1" >>confdefs.h
15149
15150 fi
15151
15152
15153
15154
15155
15156 UNWINDLIBS=
15157 # Check whether --enable-gc-debug was given.
15158 if test "${enable_gc_debug+set}" = set; then :
15159   enableval=$enable_gc_debug;  if test "$enable_gc_debug" = "yes"; then
15160     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Should define GC_DEBUG and use debug alloc. in clients.\"" >&5
15161 $as_echo "$as_me: WARNING: \"Should define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
15162
15163 $as_echo "#define KEEP_BACK_PTRS 1" >>confdefs.h
15164
15165     keep_back_ptrs=true
15166
15167 $as_echo "#define DBG_HDRS_ALL 1" >>confdefs.h
15168
15169     case $host in
15170       ia64-*-linux* )
15171         $as_echo "#define MAKE_BACK_GRAPH 1" >>confdefs.h
15172
15173         $as_echo "#define SAVE_CALL_COUNT 8" >>confdefs.h
15174
15175         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5
15176 $as_echo_n "checking for backtrace in -lunwind... " >&6; }
15177 if test "${ac_cv_lib_unwind_backtrace+set}" = set; then :
15178   $as_echo_n "(cached) " >&6
15179 else
15180   ac_check_lib_save_LIBS=$LIBS
15181 LIBS="-lunwind  $LIBS"
15182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15183 /* end confdefs.h.  */
15184
15185 /* Override any GCC internal prototype to avoid an error.
15186    Use char because int might match the return type of a GCC
15187    builtin and then its argument prototype would still apply.  */
15188 #ifdef __cplusplus
15189 extern "C"
15190 #endif
15191 char backtrace ();
15192 int
15193 main ()
15194 {
15195 return backtrace ();
15196   ;
15197   return 0;
15198 }
15199 _ACEOF
15200 if ac_fn_c_try_link "$LINENO"; then :
15201   ac_cv_lib_unwind_backtrace=yes
15202 else
15203   ac_cv_lib_unwind_backtrace=no
15204 fi
15205 rm -f core conftest.err conftest.$ac_objext \
15206     conftest$ac_exeext conftest.$ac_ext
15207 LIBS=$ac_check_lib_save_LIBS
15208 fi
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5
15210 $as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
15211 if test "x$ac_cv_lib_unwind_backtrace" = x""yes; then :
15212
15213           $as_echo "#define GC_HAVE_BUILTIN_BACKTRACE 1" >>confdefs.h
15214
15215           UNWINDLIBS=-lunwind
15216           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Client code may need to link against libunwind.\"" >&5
15217 $as_echo "$as_me: WARNING: \"Client code may need to link against libunwind.\"" >&2;}
15218
15219 fi
15220
15221       ;;
15222       x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
15223         $as_echo "#define MAKE_BACK_GRAPH 1" >>confdefs.h
15224
15225         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
15226 $as_echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
15227         $as_echo "#define SAVE_CALL_COUNT 8" >>confdefs.h
15228
15229       ;;
15230       i345686-*-dgux*)
15231         $as_echo "#define MAKE_BACK_GRAPH 1" >>confdefs.h
15232
15233       ;;
15234     esac
15235   fi
15236 fi
15237
15238  if test x"$keep_back_ptrs" = xtrue; then
15239   KEEP_BACK_PTRS_TRUE=
15240   KEEP_BACK_PTRS_FALSE='#'
15241 else
15242   KEEP_BACK_PTRS_TRUE='#'
15243   KEEP_BACK_PTRS_FALSE=
15244 fi
15245
15246
15247 # Check whether --enable-java-finalization was given.
15248 if test "${enable_java_finalization+set}" = set; then :
15249   enableval=$enable_java_finalization;
15250 fi
15251
15252 if test x"$enable_java_finalization" != xno; then
15253
15254 $as_echo "#define JAVA_FINALIZATION 1" >>confdefs.h
15255
15256 fi
15257
15258 # Check whether --enable-atomic-uncollectable was given.
15259 if test "${enable_atomic_uncollectable+set}" = set; then :
15260   enableval=$enable_atomic_uncollectable;
15261 fi
15262
15263 if test x"$enable_atomic_uncollectible" != x"no"; then
15264
15265 $as_echo "#define ATOMIC_UNCOLLECTABLE 1" >>confdefs.h
15266
15267 fi
15268
15269 # Check whether --enable-redirect-malloc was given.
15270 if test "${enable_redirect_malloc+set}" = set; then :
15271   enableval=$enable_redirect_malloc;
15272 fi
15273
15274
15275 if test "${enable_redirect_malloc}" = yes; then
15276     if test "${enable_gc_debug}" = yes; then
15277
15278 $as_echo "#define REDIRECT_MALLOC GC_debug_malloc_replacement" >>confdefs.h
15279
15280
15281 $as_echo "#define REDIRECT_REALLOC GC_debug_realloc_replacement" >>confdefs.h
15282
15283
15284 $as_echo "#define REDIRECT_FREE GC_debug_free" >>confdefs.h
15285
15286     else
15287         $as_echo "#define REDIRECT_MALLOC GC_malloc" >>confdefs.h
15288
15289     fi
15290
15291 $as_echo "#define GC_USE_DLOPEN_WRAP 1" >>confdefs.h
15292
15293 fi
15294
15295 # Check whether --enable-large-config was given.
15296 if test "${enable_large_config+set}" = set; then :
15297   enableval=$enable_large_config;
15298 fi
15299
15300
15301 if test "${enable_large_config}" = yes; then
15302
15303 $as_echo "#define LARGE_CONFIG 1" >>confdefs.h
15304
15305 fi
15306
15307 if test -n "${with_cross_host}"; then
15308
15309 $as_echo "#define NO_CLOCK 1" >>confdefs.h
15310
15311
15312 $as_echo "#define SMALL_CONFIG 1" >>confdefs.h
15313
15314
15315 $as_echo "#define NO_DEBUGGING 1" >>confdefs.h
15316
15317 fi
15318
15319
15320
15321
15322 # Check whether --enable-gc-assertions was given.
15323 if test "${enable_gc_assertions+set}" = set; then :
15324   enableval=$enable_gc_assertions;
15325 fi
15326
15327 if test "${enable_gc_assertions}" = yes; then
15328
15329 $as_echo "#define GC_ASSERTIONS 1" >>confdefs.h
15330
15331 fi
15332
15333 # Check whether --enable-munmap was given.
15334 if test "${enable_munmap+set}" = set; then :
15335   enableval=$enable_munmap; MUNMAP_THRESHOLD=$enableval;
15336    case "$MMAP" in
15337       no)
15338         as_fn_error "--enable-munmap requires --enable-mmap" "$LINENO" 5
15339         ;;
15340     esac
15341
15342 fi
15343
15344 if test "${enable_munmap}" != ""; then
15345
15346 $as_echo "#define USE_MMAP 1" >>confdefs.h
15347
15348
15349 $as_echo "#define USE_MUNMAP 1" >>confdefs.h
15350
15351     if test "${MUNMAP_THRESHOLD}" = "yes"; then
15352       MUNMAP_THRESHOLD=6
15353     fi
15354
15355 cat >>confdefs.h <<_ACEOF
15356 #define MUNMAP_THRESHOLD ${MUNMAP_THRESHOLD}
15357 _ACEOF
15358
15359 fi
15360
15361  if test -z "$with_cross_host"; then
15362   USE_LIBDIR_TRUE=
15363   USE_LIBDIR_FALSE='#'
15364 else
15365   USE_LIBDIR_TRUE='#'
15366   USE_LIBDIR_FALSE=
15367 fi
15368
15369
15370
15371 # Atomic Ops
15372 # ----------
15373
15374 # Do we want to use an external libatomic_ops?  By default use it if it's
15375 # found.
15376
15377 # Check whether --with-libatomic-ops was given.
15378 if test "${with_libatomic_ops+set}" = set; then :
15379   withval=$with_libatomic_ops;
15380 else
15381   with_libatomic_ops=check
15382 fi
15383
15384
15385 # Check for an external libatomic_ops if the answer was yes or check.  If not
15386 # found, fail on yes, and convert check to no.
15387 if test x"$with_libatomic_ops" != xno; then :
15388    ac_fn_c_check_header_mongrel "$LINENO" "atomic_ops.h" "ac_cv_header_atomic_ops_h" "$ac_includes_default"
15389 if test "x$ac_cv_header_atomic_ops_h" = x""yes; then :
15390
15391 else
15392    if test x"$with_libatomic_ops" != xcheck; then :
15393   as_fn_error "A pre-installed libatomic_ops was not found." "$LINENO" 5
15394 fi
15395         with_libatomic_ops=no
15396 fi
15397
15398
15399 fi
15400
15401 # Finally, emit the definitions for bundled or pre-installed AO.
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which libatomic_ops to use" >&5
15403 $as_echo_n "checking which libatomic_ops to use... " >&6; }
15404
15405
15406 if test x"$with_libatomic_ops" != xno; then :
15407    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15408 $as_echo "pre-installed" >&6; }
15409     ATOMIC_OPS_LIBS="-latomic_ops"
15410
15411 else
15412    { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5
15413 $as_echo "bundled" >&6; }
15414     subdirs="$subdirs libatomic_ops"
15415
15416
15417 fi
15418  if test x$with_libatomic_ops = xno -a x"$THREADS" != xnone; then
15419   USE_INTERNAL_LIBATOMIC_OPS_TRUE=
15420   USE_INTERNAL_LIBATOMIC_OPS_FALSE='#'
15421 else
15422   USE_INTERNAL_LIBATOMIC_OPS_TRUE='#'
15423   USE_INTERNAL_LIBATOMIC_OPS_FALSE=
15424 fi
15425
15426  if test x$with_libatomic_ops = xno -a x$need_atomic_ops_asm = xtrue; then
15427   NEED_ATOMIC_OPS_ASM_TRUE=
15428   NEED_ATOMIC_OPS_ASM_FALSE='#'
15429 else
15430   NEED_ATOMIC_OPS_ASM_TRUE='#'
15431   NEED_ATOMIC_OPS_ASM_FALSE=
15432 fi
15433
15434
15435
15436 ac_config_files="$ac_config_files Makefile bdw-gc.pc"
15437
15438
15439 ac_config_commands="$ac_config_commands default"
15440
15441
15442 cat >confcache <<\_ACEOF
15443 # This file is a shell script that caches the results of configure
15444 # tests run on this system so they can be shared between configure
15445 # scripts and configure runs, see configure's option --config-cache.
15446 # It is not useful on other systems.  If it contains results you don't
15447 # want to keep, you may remove or edit it.
15448 #
15449 # config.status only pays attention to the cache file if you give it
15450 # the --recheck option to rerun configure.
15451 #
15452 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15453 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15454 # following values.
15455
15456 _ACEOF
15457
15458 # The following way of writing the cache mishandles newlines in values,
15459 # but we know of no workaround that is simple, portable, and efficient.
15460 # So, we kill variables containing newlines.
15461 # Ultrix sh set writes to stderr and can't be redirected directly,
15462 # and sets the high bit in the cache file unless we assign to the vars.
15463 (
15464   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15465     eval ac_val=\$$ac_var
15466     case $ac_val in #(
15467     *${as_nl}*)
15468       case $ac_var in #(
15469       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15470 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15471       esac
15472       case $ac_var in #(
15473       _ | IFS | as_nl) ;; #(
15474       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15475       *) { eval $ac_var=; unset $ac_var;} ;;
15476       esac ;;
15477     esac
15478   done
15479
15480   (set) 2>&1 |
15481     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15482     *${as_nl}ac_space=\ *)
15483       # `set' does not quote correctly, so add quotes: double-quote
15484       # substitution turns \\\\ into \\, and sed turns \\ into \.
15485       sed -n \
15486         "s/'/'\\\\''/g;
15487           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15488       ;; #(
15489     *)
15490       # `set' quotes correctly as required by POSIX, so do not add quotes.
15491       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15492       ;;
15493     esac |
15494     sort
15495 ) |
15496   sed '
15497      /^ac_cv_env_/b end
15498      t clear
15499      :clear
15500      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15501      t end
15502      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15503      :end' >>confcache
15504 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15505   if test -w "$cache_file"; then
15506     test "x$cache_file" != "x/dev/null" &&
15507       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15508 $as_echo "$as_me: updating cache $cache_file" >&6;}
15509     cat confcache >$cache_file
15510   else
15511     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15512 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15513   fi
15514 fi
15515 rm -f confcache
15516
15517 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15518 # Let make expand exec_prefix.
15519 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15520
15521 DEFS=-DHAVE_CONFIG_H
15522
15523 ac_libobjs=
15524 ac_ltlibobjs=
15525 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15526   # 1. Remove the extension, and $U if already installed.
15527   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15528   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15529   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15530   #    will be set to the directory where LIBOBJS objects are built.
15531   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15532   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15533 done
15534 LIBOBJS=$ac_libobjs
15535
15536 LTLIBOBJS=$ac_ltlibobjs
15537
15538
15539 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15540   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15542 fi
15543 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15544   as_fn_error "conditional \"AMDEP\" was never defined.
15545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15546 fi
15547 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15548   as_fn_error "conditional \"am__fastdepCC\" was never defined.
15549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15550 fi
15551 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15552   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15554 fi
15555 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15556   as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
15557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15558 fi
15559 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
15560   as_fn_error "conditional \"THREADS\" was never defined.
15561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15562 fi
15563 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
15564   as_fn_error "conditional \"PTHREADS\" was never defined.
15565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15566 fi
15567 if test -z "${DARWIN_THREADS_TRUE}" && test -z "${DARWIN_THREADS_FALSE}"; then
15568   as_fn_error "conditional \"DARWIN_THREADS\" was never defined.
15569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15570 fi
15571 if test -z "${WIN32_THREADS_TRUE}" && test -z "${WIN32_THREADS_FALSE}"; then
15572   as_fn_error "conditional \"WIN32_THREADS\" was never defined.
15573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15574 fi
15575 if test -z "${OPENBSD_THREADS_TRUE}" && test -z "${OPENBSD_THREADS_FALSE}"; then
15576   as_fn_error "conditional \"OPENBSD_THREADS\" was never defined.
15577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15578 fi
15579 if test -z "${COMPILER_XLC_TRUE}" && test -z "${COMPILER_XLC_FALSE}"; then
15580   as_fn_error "conditional \"COMPILER_XLC\" was never defined.
15581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15582 fi
15583 if test -z "${AVOID_CPP_LIB_TRUE}" && test -z "${AVOID_CPP_LIB_FALSE}"; then
15584   as_fn_error "conditional \"AVOID_CPP_LIB\" was never defined.
15585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15586 fi
15587 if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
15588   as_fn_error "conditional \"CPLUSPLUS\" was never defined.
15589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15590 fi
15591 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15592   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15594 fi
15595 if test -z "${ENABLE_GCJ_SUPPORT_TRUE}" && test -z "${ENABLE_GCJ_SUPPORT_FALSE}"; then
15596   as_fn_error "conditional \"ENABLE_GCJ_SUPPORT\" was never defined.
15597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15598 fi
15599 if test -z "${KEEP_BACK_PTRS_TRUE}" && test -z "${KEEP_BACK_PTRS_FALSE}"; then
15600   as_fn_error "conditional \"KEEP_BACK_PTRS\" was never defined.
15601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15602 fi
15603 if test -z "${USE_LIBDIR_TRUE}" && test -z "${USE_LIBDIR_FALSE}"; then
15604   as_fn_error "conditional \"USE_LIBDIR\" was never defined.
15605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15606 fi
15607 if test -z "${USE_INTERNAL_LIBATOMIC_OPS_TRUE}" && test -z "${USE_INTERNAL_LIBATOMIC_OPS_FALSE}"; then
15608   as_fn_error "conditional \"USE_INTERNAL_LIBATOMIC_OPS\" was never defined.
15609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15610 fi
15611 if test -z "${NEED_ATOMIC_OPS_ASM_TRUE}" && test -z "${NEED_ATOMIC_OPS_ASM_FALSE}"; then
15612   as_fn_error "conditional \"NEED_ATOMIC_OPS_ASM\" was never defined.
15613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15614 fi
15615
15616 : ${CONFIG_STATUS=./config.status}
15617 ac_write_fail=0
15618 ac_clean_files_save=$ac_clean_files
15619 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15621 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15622 as_write_fail=0
15623 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15624 #! $SHELL
15625 # Generated by $as_me.
15626 # Run this file to recreate the current configuration.
15627 # Compiler output produced by configure, useful for debugging
15628 # configure, is in config.log if it exists.
15629
15630 debug=false
15631 ac_cs_recheck=false
15632 ac_cs_silent=false
15633
15634 SHELL=\${CONFIG_SHELL-$SHELL}
15635 export SHELL
15636 _ASEOF
15637 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15638 ## -------------------- ##
15639 ## M4sh Initialization. ##
15640 ## -------------------- ##
15641
15642 # Be more Bourne compatible
15643 DUALCASE=1; export DUALCASE # for MKS sh
15644 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15645   emulate sh
15646   NULLCMD=:
15647   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15648   # is contrary to our usage.  Disable this feature.
15649   alias -g '${1+"$@"}'='"$@"'
15650   setopt NO_GLOB_SUBST
15651 else
15652   case `(set -o) 2>/dev/null` in #(
15653   *posix*) :
15654     set -o posix ;; #(
15655   *) :
15656      ;;
15657 esac
15658 fi
15659
15660
15661 as_nl='
15662 '
15663 export as_nl
15664 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15665 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15666 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15667 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15668 # Prefer a ksh shell builtin over an external printf program on Solaris,
15669 # but without wasting forks for bash or zsh.
15670 if test -z "$BASH_VERSION$ZSH_VERSION" \
15671     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15672   as_echo='print -r --'
15673   as_echo_n='print -rn --'
15674 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15675   as_echo='printf %s\n'
15676   as_echo_n='printf %s'
15677 else
15678   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15679     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15680     as_echo_n='/usr/ucb/echo -n'
15681   else
15682     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15683     as_echo_n_body='eval
15684       arg=$1;
15685       case $arg in #(
15686       *"$as_nl"*)
15687         expr "X$arg" : "X\\(.*\\)$as_nl";
15688         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15689       esac;
15690       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15691     '
15692     export as_echo_n_body
15693     as_echo_n='sh -c $as_echo_n_body as_echo'
15694   fi
15695   export as_echo_body
15696   as_echo='sh -c $as_echo_body as_echo'
15697 fi
15698
15699 # The user is always right.
15700 if test "${PATH_SEPARATOR+set}" != set; then
15701   PATH_SEPARATOR=:
15702   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15703     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15704       PATH_SEPARATOR=';'
15705   }
15706 fi
15707
15708
15709 # IFS
15710 # We need space, tab and new line, in precisely that order.  Quoting is
15711 # there to prevent editors from complaining about space-tab.
15712 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15713 # splitting by setting IFS to empty value.)
15714 IFS=" ""        $as_nl"
15715
15716 # Find who we are.  Look in the path if we contain no directory separator.
15717 case $0 in #((
15718   *[\\/]* ) as_myself=$0 ;;
15719   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15720 for as_dir in $PATH
15721 do
15722   IFS=$as_save_IFS
15723   test -z "$as_dir" && as_dir=.
15724     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15725   done
15726 IFS=$as_save_IFS
15727
15728      ;;
15729 esac
15730 # We did not find ourselves, most probably we were run as `sh COMMAND'
15731 # in which case we are not to be found in the path.
15732 if test "x$as_myself" = x; then
15733   as_myself=$0
15734 fi
15735 if test ! -f "$as_myself"; then
15736   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15737   exit 1
15738 fi
15739
15740 # Unset variables that we do not need and which cause bugs (e.g. in
15741 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15742 # suppresses any "Segmentation fault" message there.  '((' could
15743 # trigger a bug in pdksh 5.2.14.
15744 for as_var in BASH_ENV ENV MAIL MAILPATH
15745 do eval test x\${$as_var+set} = xset \
15746   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15747 done
15748 PS1='$ '
15749 PS2='> '
15750 PS4='+ '
15751
15752 # NLS nuisances.
15753 LC_ALL=C
15754 export LC_ALL
15755 LANGUAGE=C
15756 export LANGUAGE
15757
15758 # CDPATH.
15759 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15760
15761
15762 # as_fn_error ERROR [LINENO LOG_FD]
15763 # ---------------------------------
15764 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15765 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15766 # script with status $?, using 1 if that was 0.
15767 as_fn_error ()
15768 {
15769   as_status=$?; test $as_status -eq 0 && as_status=1
15770   if test "$3"; then
15771     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15772     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15773   fi
15774   $as_echo "$as_me: error: $1" >&2
15775   as_fn_exit $as_status
15776 } # as_fn_error
15777
15778
15779 # as_fn_set_status STATUS
15780 # -----------------------
15781 # Set $? to STATUS, without forking.
15782 as_fn_set_status ()
15783 {
15784   return $1
15785 } # as_fn_set_status
15786
15787 # as_fn_exit STATUS
15788 # -----------------
15789 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15790 as_fn_exit ()
15791 {
15792   set +e
15793   as_fn_set_status $1
15794   exit $1
15795 } # as_fn_exit
15796
15797 # as_fn_unset VAR
15798 # ---------------
15799 # Portably unset VAR.
15800 as_fn_unset ()
15801 {
15802   { eval $1=; unset $1;}
15803 }
15804 as_unset=as_fn_unset
15805 # as_fn_append VAR VALUE
15806 # ----------------------
15807 # Append the text in VALUE to the end of the definition contained in VAR. Take
15808 # advantage of any shell optimizations that allow amortized linear growth over
15809 # repeated appends, instead of the typical quadratic growth present in naive
15810 # implementations.
15811 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15812   eval 'as_fn_append ()
15813   {
15814     eval $1+=\$2
15815   }'
15816 else
15817   as_fn_append ()
15818   {
15819     eval $1=\$$1\$2
15820   }
15821 fi # as_fn_append
15822
15823 # as_fn_arith ARG...
15824 # ------------------
15825 # Perform arithmetic evaluation on the ARGs, and store the result in the
15826 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15827 # must be portable across $(()) and expr.
15828 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15829   eval 'as_fn_arith ()
15830   {
15831     as_val=$(( $* ))
15832   }'
15833 else
15834   as_fn_arith ()
15835   {
15836     as_val=`expr "$@" || test $? -eq 1`
15837   }
15838 fi # as_fn_arith
15839
15840
15841 if expr a : '\(a\)' >/dev/null 2>&1 &&
15842    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15843   as_expr=expr
15844 else
15845   as_expr=false
15846 fi
15847
15848 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15849   as_basename=basename
15850 else
15851   as_basename=false
15852 fi
15853
15854 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15855   as_dirname=dirname
15856 else
15857   as_dirname=false
15858 fi
15859
15860 as_me=`$as_basename -- "$0" ||
15861 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15862          X"$0" : 'X\(//\)$' \| \
15863          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15864 $as_echo X/"$0" |
15865     sed '/^.*\/\([^/][^/]*\)\/*$/{
15866             s//\1/
15867             q
15868           }
15869           /^X\/\(\/\/\)$/{
15870             s//\1/
15871             q
15872           }
15873           /^X\/\(\/\).*/{
15874             s//\1/
15875             q
15876           }
15877           s/.*/./; q'`
15878
15879 # Avoid depending upon Character Ranges.
15880 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15881 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15882 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15883 as_cr_digits='0123456789'
15884 as_cr_alnum=$as_cr_Letters$as_cr_digits
15885
15886 ECHO_C= ECHO_N= ECHO_T=
15887 case `echo -n x` in #(((((
15888 -n*)
15889   case `echo 'xy\c'` in
15890   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15891   xy)  ECHO_C='\c';;
15892   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15893        ECHO_T=' ';;
15894   esac;;
15895 *)
15896   ECHO_N='-n';;
15897 esac
15898
15899 rm -f conf$$ conf$$.exe conf$$.file
15900 if test -d conf$$.dir; then
15901   rm -f conf$$.dir/conf$$.file
15902 else
15903   rm -f conf$$.dir
15904   mkdir conf$$.dir 2>/dev/null
15905 fi
15906 if (echo >conf$$.file) 2>/dev/null; then
15907   if ln -s conf$$.file conf$$ 2>/dev/null; then
15908     as_ln_s='ln -s'
15909     # ... but there are two gotchas:
15910     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15911     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15912     # In both cases, we have to default to `cp -p'.
15913     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15914       as_ln_s='cp -p'
15915   elif ln conf$$.file conf$$ 2>/dev/null; then
15916     as_ln_s=ln
15917   else
15918     as_ln_s='cp -p'
15919   fi
15920 else
15921   as_ln_s='cp -p'
15922 fi
15923 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15924 rmdir conf$$.dir 2>/dev/null
15925
15926
15927 # as_fn_mkdir_p
15928 # -------------
15929 # Create "$as_dir" as a directory, including parents if necessary.
15930 as_fn_mkdir_p ()
15931 {
15932
15933   case $as_dir in #(
15934   -*) as_dir=./$as_dir;;
15935   esac
15936   test -d "$as_dir" || eval $as_mkdir_p || {
15937     as_dirs=
15938     while :; do
15939       case $as_dir in #(
15940       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15941       *) as_qdir=$as_dir;;
15942       esac
15943       as_dirs="'$as_qdir' $as_dirs"
15944       as_dir=`$as_dirname -- "$as_dir" ||
15945 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15946          X"$as_dir" : 'X\(//\)[^/]' \| \
15947          X"$as_dir" : 'X\(//\)$' \| \
15948          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15949 $as_echo X"$as_dir" |
15950     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15951             s//\1/
15952             q
15953           }
15954           /^X\(\/\/\)[^/].*/{
15955             s//\1/
15956             q
15957           }
15958           /^X\(\/\/\)$/{
15959             s//\1/
15960             q
15961           }
15962           /^X\(\/\).*/{
15963             s//\1/
15964             q
15965           }
15966           s/.*/./; q'`
15967       test -d "$as_dir" && break
15968     done
15969     test -z "$as_dirs" || eval "mkdir $as_dirs"
15970   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15971
15972
15973 } # as_fn_mkdir_p
15974 if mkdir -p . 2>/dev/null; then
15975   as_mkdir_p='mkdir -p "$as_dir"'
15976 else
15977   test -d ./-p && rmdir ./-p
15978   as_mkdir_p=false
15979 fi
15980
15981 if test -x / >/dev/null 2>&1; then
15982   as_test_x='test -x'
15983 else
15984   if ls -dL / >/dev/null 2>&1; then
15985     as_ls_L_option=L
15986   else
15987     as_ls_L_option=
15988   fi
15989   as_test_x='
15990     eval sh -c '\''
15991       if test -d "$1"; then
15992         test -d "$1/.";
15993       else
15994         case $1 in #(
15995         -*)set "./$1";;
15996         esac;
15997         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15998         ???[sx]*):;;*)false;;esac;fi
15999     '\'' sh
16000   '
16001 fi
16002 as_executable_p=$as_test_x
16003
16004 # Sed expression to map a string onto a valid CPP name.
16005 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16006
16007 # Sed expression to map a string onto a valid variable name.
16008 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16009
16010
16011 exec 6>&1
16012 ## ----------------------------------- ##
16013 ## Main body of $CONFIG_STATUS script. ##
16014 ## ----------------------------------- ##
16015 _ASEOF
16016 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16017
16018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16019 # Save the log message, to keep $0 and so on meaningful, and to
16020 # report actual input values of CONFIG_FILES etc. instead of their
16021 # values after options handling.
16022 ac_log="
16023 This file was extended by gc $as_me 7.2alpha4, which was
16024 generated by GNU Autoconf 2.64.  Invocation command line was
16025
16026   CONFIG_FILES    = $CONFIG_FILES
16027   CONFIG_HEADERS  = $CONFIG_HEADERS
16028   CONFIG_LINKS    = $CONFIG_LINKS
16029   CONFIG_COMMANDS = $CONFIG_COMMANDS
16030   $ $0 $@
16031
16032 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16033 "
16034
16035 _ACEOF
16036
16037 case $ac_config_files in *"
16038 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16039 esac
16040
16041 case $ac_config_headers in *"
16042 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16043 esac
16044
16045
16046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16047 # Files that config.status was made for.
16048 config_files="$ac_config_files"
16049 config_headers="$ac_config_headers"
16050 config_commands="$ac_config_commands"
16051
16052 _ACEOF
16053
16054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16055 ac_cs_usage="\
16056 \`$as_me' instantiates files and other configuration actions
16057 from templates according to the current configuration.  Unless the files
16058 and actions are specified as TAGs, all are instantiated by default.
16059
16060 Usage: $0 [OPTION]... [TAG]...
16061
16062   -h, --help       print this help, then exit
16063   -V, --version    print version number and configuration settings, then exit
16064   -q, --quiet, --silent
16065                    do not print progress messages
16066   -d, --debug      don't remove temporary files
16067       --recheck    update $as_me by reconfiguring in the same conditions
16068       --file=FILE[:TEMPLATE]
16069                    instantiate the configuration file FILE
16070       --header=FILE[:TEMPLATE]
16071                    instantiate the configuration header FILE
16072
16073 Configuration files:
16074 $config_files
16075
16076 Configuration headers:
16077 $config_headers
16078
16079 Configuration commands:
16080 $config_commands
16081
16082 Report bugs to <Hans.Boehm@hp.com>."
16083
16084 _ACEOF
16085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16086 ac_cs_version="\\
16087 gc config.status 7.2alpha4
16088 configured by $0, generated by GNU Autoconf 2.64,
16089   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16090
16091 Copyright (C) 2009 Free Software Foundation, Inc.
16092 This config.status script is free software; the Free Software Foundation
16093 gives unlimited permission to copy, distribute and modify it."
16094
16095 ac_pwd='$ac_pwd'
16096 srcdir='$srcdir'
16097 INSTALL='$INSTALL'
16098 MKDIR_P='$MKDIR_P'
16099 AWK='$AWK'
16100 test -n "\$AWK" || AWK=awk
16101 _ACEOF
16102
16103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16104 # The default lists apply if the user does not specify any file.
16105 ac_need_defaults=:
16106 while test $# != 0
16107 do
16108   case $1 in
16109   --*=*)
16110     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16111     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16112     ac_shift=:
16113     ;;
16114   *)
16115     ac_option=$1
16116     ac_optarg=$2
16117     ac_shift=shift
16118     ;;
16119   esac
16120
16121   case $ac_option in
16122   # Handling of the options.
16123   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16124     ac_cs_recheck=: ;;
16125   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16126     $as_echo "$ac_cs_version"; exit ;;
16127   --debug | --debu | --deb | --de | --d | -d )
16128     debug=: ;;
16129   --file | --fil | --fi | --f )
16130     $ac_shift
16131     case $ac_optarg in
16132     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16133     esac
16134     as_fn_append CONFIG_FILES " '$ac_optarg'"
16135     ac_need_defaults=false;;
16136   --header | --heade | --head | --hea )
16137     $ac_shift
16138     case $ac_optarg in
16139     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16140     esac
16141     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16142     ac_need_defaults=false;;
16143   --he | --h)
16144     # Conflict between --help and --header
16145     as_fn_error "ambiguous option: \`$1'
16146 Try \`$0 --help' for more information.";;
16147   --help | --hel | -h )
16148     $as_echo "$ac_cs_usage"; exit ;;
16149   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16150   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16151     ac_cs_silent=: ;;
16152
16153   # This is an error.
16154   -*) as_fn_error "unrecognized option: \`$1'
16155 Try \`$0 --help' for more information." ;;
16156
16157   *) as_fn_append ac_config_targets " $1"
16158      ac_need_defaults=false ;;
16159
16160   esac
16161   shift
16162 done
16163
16164 ac_configure_extra_args=
16165
16166 if $ac_cs_silent; then
16167   exec 6>/dev/null
16168   ac_configure_extra_args="$ac_configure_extra_args --silent"
16169 fi
16170
16171 _ACEOF
16172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16173 if \$ac_cs_recheck; then
16174   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16175   shift
16176   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16177   CONFIG_SHELL='$SHELL'
16178   export CONFIG_SHELL
16179   exec "\$@"
16180 fi
16181
16182 _ACEOF
16183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16184 exec 5>>config.log
16185 {
16186   echo
16187   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16188 ## Running $as_me. ##
16189 _ASBOX
16190   $as_echo "$ac_log"
16191 } >&5
16192
16193 _ACEOF
16194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16195 #
16196 # INIT-COMMANDS
16197 #
16198 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16199
16200
16201 # The HP-UX ksh and POSIX shell print the target directory to stdout
16202 # if CDPATH is set.
16203 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16204
16205 sed_quote_subst='$sed_quote_subst'
16206 double_quote_subst='$double_quote_subst'
16207 delay_variable_subst='$delay_variable_subst'
16208 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16209 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16210 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16211 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16212 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16213 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16214 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16215 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16216 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16217 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16218 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16219 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16220 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16221 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16222 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16223 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16224 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16225 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16226 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16227 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16228 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16229 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16230 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16231 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16232 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16233 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16234 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16235 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16236 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16237 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16238 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16239 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16240 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16241 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16242 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16243 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16244 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16245 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16246 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16247 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16248 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16249 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16250 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16251 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16252 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16253 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16254 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16255 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16256 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16257 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16258 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16259 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16260 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16261 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16262 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16263 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16264 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16265 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16266 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16267 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16268 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16269 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16270 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16271 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16272 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16273 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16274 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16275 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16276 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16277 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16278 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16279 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16280 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16281 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16282 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16283 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16284 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16285 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16286 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16287 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16288 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16289 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16290 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16291 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16292 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16293 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16294 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16295 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16296 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16297 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16298 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16299 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16300 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16301 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16302 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16303 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16304 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16305 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16306 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16307 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16308 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16309 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16310 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16311 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16312 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16313 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16314 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16315 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16316 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16317 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16318 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16319 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16320 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16321 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16322 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16323 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16324 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16325 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16326 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16327 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16328 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16329 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16330 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16331 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16332 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16333 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16334 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16335 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16336 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16337 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16338 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16339 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16340 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16341 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16342 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16343 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16344 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16345 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16346 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16347 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16348 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16349 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16350 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16351 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16352 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16353 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16354 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16355 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16356 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16357 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16358 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16359 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16360 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16361 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16362 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16363 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16364 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16365 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16366 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16367 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16368 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16369 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16370 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16371 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16372 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16373 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16374 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16375
16376 LTCC='$LTCC'
16377 LTCFLAGS='$LTCFLAGS'
16378 compiler='$compiler_DEFAULT'
16379
16380 # Quote evaled strings.
16381 for var in SED \
16382 GREP \
16383 EGREP \
16384 FGREP \
16385 LD \
16386 NM \
16387 LN_S \
16388 lt_SP2NL \
16389 lt_NL2SP \
16390 reload_flag \
16391 deplibs_check_method \
16392 file_magic_cmd \
16393 AR \
16394 AR_FLAGS \
16395 STRIP \
16396 RANLIB \
16397 CC \
16398 CFLAGS \
16399 compiler \
16400 lt_cv_sys_global_symbol_pipe \
16401 lt_cv_sys_global_symbol_to_cdecl \
16402 lt_cv_sys_global_symbol_to_c_name_address \
16403 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16404 SHELL \
16405 ECHO \
16406 lt_prog_compiler_no_builtin_flag \
16407 lt_prog_compiler_wl \
16408 lt_prog_compiler_pic \
16409 lt_prog_compiler_static \
16410 lt_cv_prog_compiler_c_o \
16411 need_locks \
16412 DSYMUTIL \
16413 NMEDIT \
16414 shrext_cmds \
16415 export_dynamic_flag_spec \
16416 whole_archive_flag_spec \
16417 compiler_needs_object \
16418 with_gnu_ld \
16419 allow_undefined_flag \
16420 no_undefined_flag \
16421 hardcode_libdir_flag_spec \
16422 hardcode_libdir_flag_spec_ld \
16423 hardcode_libdir_separator \
16424 fix_srcfile_path \
16425 exclude_expsyms \
16426 include_expsyms \
16427 file_list_spec \
16428 variables_saved_for_relink \
16429 libname_spec \
16430 library_names_spec \
16431 soname_spec \
16432 finish_eval \
16433 old_striplib \
16434 striplib \
16435 compiler_lib_search_dirs \
16436 predep_objects \
16437 postdep_objects \
16438 predeps \
16439 postdeps \
16440 compiler_lib_search_path \
16441 LD_CXX \
16442 compiler_CXX \
16443 lt_prog_compiler_no_builtin_flag_CXX \
16444 lt_prog_compiler_wl_CXX \
16445 lt_prog_compiler_pic_CXX \
16446 lt_prog_compiler_static_CXX \
16447 lt_cv_prog_compiler_c_o_CXX \
16448 export_dynamic_flag_spec_CXX \
16449 whole_archive_flag_spec_CXX \
16450 compiler_needs_object_CXX \
16451 with_gnu_ld_CXX \
16452 allow_undefined_flag_CXX \
16453 no_undefined_flag_CXX \
16454 hardcode_libdir_flag_spec_CXX \
16455 hardcode_libdir_flag_spec_ld_CXX \
16456 hardcode_libdir_separator_CXX \
16457 fix_srcfile_path_CXX \
16458 exclude_expsyms_CXX \
16459 include_expsyms_CXX \
16460 file_list_spec_CXX \
16461 compiler_lib_search_dirs_CXX \
16462 predep_objects_CXX \
16463 postdep_objects_CXX \
16464 predeps_CXX \
16465 postdeps_CXX \
16466 compiler_lib_search_path_CXX; do
16467     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16468     *[\\\\\\\`\\"\\\$]*)
16469       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16470       ;;
16471     *)
16472       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16473       ;;
16474     esac
16475 done
16476
16477 # Double-quote double-evaled strings.
16478 for var in reload_cmds \
16479 old_postinstall_cmds \
16480 old_postuninstall_cmds \
16481 old_archive_cmds \
16482 extract_expsyms_cmds \
16483 old_archive_from_new_cmds \
16484 old_archive_from_expsyms_cmds \
16485 archive_cmds \
16486 archive_expsym_cmds \
16487 module_cmds \
16488 module_expsym_cmds \
16489 export_symbols_cmds \
16490 prelink_cmds \
16491 postinstall_cmds \
16492 postuninstall_cmds \
16493 finish_cmds \
16494 sys_lib_search_path_spec \
16495 sys_lib_dlsearch_path_spec \
16496 old_archive_cmds_CXX \
16497 old_archive_from_new_cmds_CXX \
16498 old_archive_from_expsyms_cmds_CXX \
16499 archive_cmds_CXX \
16500 archive_expsym_cmds_CXX \
16501 module_cmds_CXX \
16502 module_expsym_cmds_CXX \
16503 export_symbols_cmds_CXX \
16504 prelink_cmds_CXX; do
16505     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16506     *[\\\\\\\`\\"\\\$]*)
16507       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16508       ;;
16509     *)
16510       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16511       ;;
16512     esac
16513 done
16514
16515 # Fix-up fallback echo if it was mangled by the above quoting rules.
16516 case \$lt_ECHO in
16517 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16518   ;;
16519 esac
16520
16521 ac_aux_dir='$ac_aux_dir'
16522 xsi_shell='$xsi_shell'
16523 lt_shell_append='$lt_shell_append'
16524
16525 # See if we are running on zsh, and set the options which allow our
16526 # commands through without removal of \ escapes INIT.
16527 if test -n "\${ZSH_VERSION+set}" ; then
16528    setopt NO_GLOB_SUBST
16529 fi
16530
16531
16532     PACKAGE='$PACKAGE'
16533     VERSION='$VERSION'
16534     TIMESTAMP='$TIMESTAMP'
16535     RM='$RM'
16536     ofile='$ofile'
16537
16538
16539
16540
16541
16542  srcdir="${srcdir}"
16543     host=${host}
16544     CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16545     CC="${CC}"
16546     DEFS="$DEFS"
16547
16548 _ACEOF
16549
16550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16551
16552 # Handling of arguments.
16553 for ac_config_target in $ac_config_targets
16554 do
16555   case $ac_config_target in
16556     "include/private/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/private/config.h" ;;
16557     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16558     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16559     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16560     "bdw-gc.pc") CONFIG_FILES="$CONFIG_FILES bdw-gc.pc" ;;
16561     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16562
16563   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16564   esac
16565 done
16566
16567
16568 # If the user did not use the arguments to specify the items to instantiate,
16569 # then the envvar interface is used.  Set only those that are not.
16570 # We use the long form for the default assignment because of an extremely
16571 # bizarre bug on SunOS 4.1.3.
16572 if $ac_need_defaults; then
16573   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16574   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16575   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16576 fi
16577
16578 # Have a temporary directory for convenience.  Make it in the build tree
16579 # simply because there is no reason against having it here, and in addition,
16580 # creating and moving files from /tmp can sometimes cause problems.
16581 # Hook for its removal unless debugging.
16582 # Note that there is a small window in which the directory will not be cleaned:
16583 # after its creation but before its name has been assigned to `$tmp'.
16584 $debug ||
16585 {
16586   tmp=
16587   trap 'exit_status=$?
16588   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16589 ' 0
16590   trap 'as_fn_exit 1' 1 2 13 15
16591 }
16592 # Create a (secure) tmp directory for tmp files.
16593
16594 {
16595   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16596   test -n "$tmp" && test -d "$tmp"
16597 }  ||
16598 {
16599   tmp=./conf$$-$RANDOM
16600   (umask 077 && mkdir "$tmp")
16601 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16602
16603 # Set up the scripts for CONFIG_FILES section.
16604 # No need to generate them if there are no CONFIG_FILES.
16605 # This happens for instance with `./config.status config.h'.
16606 if test -n "$CONFIG_FILES"; then
16607
16608
16609 ac_cr=`echo X | tr X '\015'`
16610 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16611 # But we know of no other shell where ac_cr would be empty at this
16612 # point, so we can use a bashism as a fallback.
16613 if test "x$ac_cr" = x; then
16614   eval ac_cr=\$\'\\r\'
16615 fi
16616 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16617 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16618   ac_cs_awk_cr='\r'
16619 else
16620   ac_cs_awk_cr=$ac_cr
16621 fi
16622
16623 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16624 _ACEOF
16625
16626
16627 {
16628   echo "cat >conf$$subs.awk <<_ACEOF" &&
16629   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16630   echo "_ACEOF"
16631 } >conf$$subs.sh ||
16632   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16633 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16634 ac_delim='%!_!# '
16635 for ac_last_try in false false false false false :; do
16636   . ./conf$$subs.sh ||
16637     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16638
16639   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16640   if test $ac_delim_n = $ac_delim_num; then
16641     break
16642   elif $ac_last_try; then
16643     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16644   else
16645     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16646   fi
16647 done
16648 rm -f conf$$subs.sh
16649
16650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16651 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16652 _ACEOF
16653 sed -n '
16654 h
16655 s/^/S["/; s/!.*/"]=/
16656 p
16657 g
16658 s/^[^!]*!//
16659 :repl
16660 t repl
16661 s/'"$ac_delim"'$//
16662 t delim
16663 :nl
16664 h
16665 s/\(.\{148\}\).*/\1/
16666 t more1
16667 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16668 p
16669 n
16670 b repl
16671 :more1
16672 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16673 p
16674 g
16675 s/.\{148\}//
16676 t nl
16677 :delim
16678 h
16679 s/\(.\{148\}\).*/\1/
16680 t more2
16681 s/["\\]/\\&/g; s/^/"/; s/$/"/
16682 p
16683 b
16684 :more2
16685 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16686 p
16687 g
16688 s/.\{148\}//
16689 t delim
16690 ' <conf$$subs.awk | sed '
16691 /^[^""]/{
16692   N
16693   s/\n//
16694 }
16695 ' >>$CONFIG_STATUS || ac_write_fail=1
16696 rm -f conf$$subs.awk
16697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16698 _ACAWK
16699 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16700   for (key in S) S_is_set[key] = 1
16701   FS = "\a"
16702
16703 }
16704 {
16705   line = $ 0
16706   nfields = split(line, field, "@")
16707   substed = 0
16708   len = length(field[1])
16709   for (i = 2; i < nfields; i++) {
16710     key = field[i]
16711     keylen = length(key)
16712     if (S_is_set[key]) {
16713       value = S[key]
16714       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16715       len += length(value) + length(field[++i])
16716       substed = 1
16717     } else
16718       len += 1 + keylen
16719   }
16720
16721   print line
16722 }
16723
16724 _ACAWK
16725 _ACEOF
16726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16727 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16728   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16729 else
16730   cat
16731 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16732   || as_fn_error "could not setup config files machinery" "$LINENO" 5
16733 _ACEOF
16734
16735 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16736 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16737 # trailing colons and then remove the whole line if VPATH becomes empty
16738 # (actually we leave an empty line to preserve line numbers).
16739 if test "x$srcdir" = x.; then
16740   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16741 s/:*\$(srcdir):*/:/
16742 s/:*\${srcdir}:*/:/
16743 s/:*@srcdir@:*/:/
16744 s/^\([^=]*=[     ]*\):*/\1/
16745 s/:*$//
16746 s/^[^=]*=[       ]*$//
16747 }'
16748 fi
16749
16750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16751 fi # test -n "$CONFIG_FILES"
16752
16753 # Set up the scripts for CONFIG_HEADERS section.
16754 # No need to generate them if there are no CONFIG_HEADERS.
16755 # This happens for instance with `./config.status Makefile'.
16756 if test -n "$CONFIG_HEADERS"; then
16757 cat >"$tmp/defines.awk" <<\_ACAWK ||
16758 BEGIN {
16759 _ACEOF
16760
16761 # Transform confdefs.h into an awk script `defines.awk', embedded as
16762 # here-document in config.status, that substitutes the proper values into
16763 # config.h.in to produce config.h.
16764
16765 # Create a delimiter string that does not exist in confdefs.h, to ease
16766 # handling of long lines.
16767 ac_delim='%!_!# '
16768 for ac_last_try in false false :; do
16769   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16770   if test -z "$ac_t"; then
16771     break
16772   elif $ac_last_try; then
16773     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16774   else
16775     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16776   fi
16777 done
16778
16779 # For the awk script, D is an array of macro values keyed by name,
16780 # likewise P contains macro parameters if any.  Preserve backslash
16781 # newline sequences.
16782
16783 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16784 sed -n '
16785 s/.\{148\}/&'"$ac_delim"'/g
16786 t rset
16787 :rset
16788 s/^[     ]*#[    ]*define[       ][      ]*/ /
16789 t def
16790 d
16791 :def
16792 s/\\$//
16793 t bsnl
16794 s/["\\]/\\&/g
16795 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16796 D["\1"]=" \3"/p
16797 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16798 d
16799 :bsnl
16800 s/["\\]/\\&/g
16801 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16802 D["\1"]=" \3\\\\\\n"\\/p
16803 t cont
16804 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16805 t cont
16806 d
16807 :cont
16808 n
16809 s/.\{148\}/&'"$ac_delim"'/g
16810 t clear
16811 :clear
16812 s/\\$//
16813 t bsnlc
16814 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16815 d
16816 :bsnlc
16817 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16818 b cont
16819 ' <confdefs.h | sed '
16820 s/'"$ac_delim"'/"\\\
16821 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16822
16823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16824   for (key in D) D_is_set[key] = 1
16825   FS = "\a"
16826 }
16827 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16828   line = \$ 0
16829   split(line, arg, " ")
16830   if (arg[1] == "#") {
16831     defundef = arg[2]
16832     mac1 = arg[3]
16833   } else {
16834     defundef = substr(arg[1], 2)
16835     mac1 = arg[2]
16836   }
16837   split(mac1, mac2, "(") #)
16838   macro = mac2[1]
16839   prefix = substr(line, 1, index(line, defundef) - 1)
16840   if (D_is_set[macro]) {
16841     # Preserve the white space surrounding the "#".
16842     print prefix "define", macro P[macro] D[macro]
16843     next
16844   } else {
16845     # Replace #undef with comments.  This is necessary, for example,
16846     # in the case of _POSIX_SOURCE, which is predefined and required
16847     # on some systems where configure will not decide to define it.
16848     if (defundef == "undef") {
16849       print "/*", prefix defundef, macro, "*/"
16850       next
16851     }
16852   }
16853 }
16854 { print }
16855 _ACAWK
16856 _ACEOF
16857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16858   as_fn_error "could not setup config headers machinery" "$LINENO" 5
16859 fi # test -n "$CONFIG_HEADERS"
16860
16861
16862 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16863 shift
16864 for ac_tag
16865 do
16866   case $ac_tag in
16867   :[FHLC]) ac_mode=$ac_tag; continue;;
16868   esac
16869   case $ac_mode$ac_tag in
16870   :[FHL]*:*);;
16871   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16872   :[FH]-) ac_tag=-:-;;
16873   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16874   esac
16875   ac_save_IFS=$IFS
16876   IFS=:
16877   set x $ac_tag
16878   IFS=$ac_save_IFS
16879   shift
16880   ac_file=$1
16881   shift
16882
16883   case $ac_mode in
16884   :L) ac_source=$1;;
16885   :[FH])
16886     ac_file_inputs=
16887     for ac_f
16888     do
16889       case $ac_f in
16890       -) ac_f="$tmp/stdin";;
16891       *) # Look for the file first in the build tree, then in the source tree
16892          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16893          # because $ac_f cannot contain `:'.
16894          test -f "$ac_f" ||
16895            case $ac_f in
16896            [\\/$]*) false;;
16897            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16898            esac ||
16899            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16900       esac
16901       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16902       as_fn_append ac_file_inputs " '$ac_f'"
16903     done
16904
16905     # Let's still pretend it is `configure' which instantiates (i.e., don't
16906     # use $as_me), people would be surprised to read:
16907     #    /* config.h.  Generated by config.status.  */
16908     configure_input='Generated from '`
16909           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16910         `' by configure.'
16911     if test x"$ac_file" != x-; then
16912       configure_input="$ac_file.  $configure_input"
16913       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16914 $as_echo "$as_me: creating $ac_file" >&6;}
16915     fi
16916     # Neutralize special characters interpreted by sed in replacement strings.
16917     case $configure_input in #(
16918     *\&* | *\|* | *\\* )
16919        ac_sed_conf_input=`$as_echo "$configure_input" |
16920        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16921     *) ac_sed_conf_input=$configure_input;;
16922     esac
16923
16924     case $ac_tag in
16925     *:-:* | *:-) cat >"$tmp/stdin" \
16926       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16927     esac
16928     ;;
16929   esac
16930
16931   ac_dir=`$as_dirname -- "$ac_file" ||
16932 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16933          X"$ac_file" : 'X\(//\)[^/]' \| \
16934          X"$ac_file" : 'X\(//\)$' \| \
16935          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16936 $as_echo X"$ac_file" |
16937     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16938             s//\1/
16939             q
16940           }
16941           /^X\(\/\/\)[^/].*/{
16942             s//\1/
16943             q
16944           }
16945           /^X\(\/\/\)$/{
16946             s//\1/
16947             q
16948           }
16949           /^X\(\/\).*/{
16950             s//\1/
16951             q
16952           }
16953           s/.*/./; q'`
16954   as_dir="$ac_dir"; as_fn_mkdir_p
16955   ac_builddir=.
16956
16957 case "$ac_dir" in
16958 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16959 *)
16960   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16961   # A ".." for each directory in $ac_dir_suffix.
16962   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16963   case $ac_top_builddir_sub in
16964   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16965   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16966   esac ;;
16967 esac
16968 ac_abs_top_builddir=$ac_pwd
16969 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16970 # for backward compatibility:
16971 ac_top_builddir=$ac_top_build_prefix
16972
16973 case $srcdir in
16974   .)  # We are building in place.
16975     ac_srcdir=.
16976     ac_top_srcdir=$ac_top_builddir_sub
16977     ac_abs_top_srcdir=$ac_pwd ;;
16978   [\\/]* | ?:[\\/]* )  # Absolute name.
16979     ac_srcdir=$srcdir$ac_dir_suffix;
16980     ac_top_srcdir=$srcdir
16981     ac_abs_top_srcdir=$srcdir ;;
16982   *) # Relative name.
16983     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16984     ac_top_srcdir=$ac_top_build_prefix$srcdir
16985     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16986 esac
16987 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16988
16989
16990   case $ac_mode in
16991   :F)
16992   #
16993   # CONFIG_FILE
16994   #
16995
16996   case $INSTALL in
16997   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16998   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16999   esac
17000   ac_MKDIR_P=$MKDIR_P
17001   case $MKDIR_P in
17002   [\\/$]* | ?:[\\/]* ) ;;
17003   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17004   esac
17005 _ACEOF
17006
17007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17008 # If the template does not know about datarootdir, expand it.
17009 # FIXME: This hack should be removed a few years after 2.60.
17010 ac_datarootdir_hack=; ac_datarootdir_seen=
17011 ac_sed_dataroot='
17012 /datarootdir/ {
17013   p
17014   q
17015 }
17016 /@datadir@/p
17017 /@docdir@/p
17018 /@infodir@/p
17019 /@localedir@/p
17020 /@mandir@/p'
17021 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17022 *datarootdir*) ac_datarootdir_seen=yes;;
17023 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17024   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17025 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17026 _ACEOF
17027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17028   ac_datarootdir_hack='
17029   s&@datadir@&$datadir&g
17030   s&@docdir@&$docdir&g
17031   s&@infodir@&$infodir&g
17032   s&@localedir@&$localedir&g
17033   s&@mandir@&$mandir&g
17034   s&\\\${datarootdir}&$datarootdir&g' ;;
17035 esac
17036 _ACEOF
17037
17038 # Neutralize VPATH when `$srcdir' = `.'.
17039 # Shell code in configure.ac might set extrasub.
17040 # FIXME: do we really want to maintain this feature?
17041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17042 ac_sed_extra="$ac_vpsub
17043 $extrasub
17044 _ACEOF
17045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17046 :t
17047 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17048 s|@configure_input@|$ac_sed_conf_input|;t t
17049 s&@top_builddir@&$ac_top_builddir_sub&;t t
17050 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17051 s&@srcdir@&$ac_srcdir&;t t
17052 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17053 s&@top_srcdir@&$ac_top_srcdir&;t t
17054 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17055 s&@builddir@&$ac_builddir&;t t
17056 s&@abs_builddir@&$ac_abs_builddir&;t t
17057 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17058 s&@INSTALL@&$ac_INSTALL&;t t
17059 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17060 $ac_datarootdir_hack
17061 "
17062 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17063   || as_fn_error "could not create $ac_file" "$LINENO" 5
17064
17065 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17066   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17067   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17068   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17069 which seems to be undefined.  Please make sure it is defined." >&5
17070 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17071 which seems to be undefined.  Please make sure it is defined." >&2;}
17072
17073   rm -f "$tmp/stdin"
17074   case $ac_file in
17075   -) cat "$tmp/out" && rm -f "$tmp/out";;
17076   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17077   esac \
17078   || as_fn_error "could not create $ac_file" "$LINENO" 5
17079  ;;
17080   :H)
17081   #
17082   # CONFIG_HEADER
17083   #
17084   if test x"$ac_file" != x-; then
17085     {
17086       $as_echo "/* $configure_input  */" \
17087       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17088     } >"$tmp/config.h" \
17089       || as_fn_error "could not create $ac_file" "$LINENO" 5
17090     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17091       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17092 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17093     else
17094       rm -f "$ac_file"
17095       mv "$tmp/config.h" "$ac_file" \
17096         || as_fn_error "could not create $ac_file" "$LINENO" 5
17097     fi
17098   else
17099     $as_echo "/* $configure_input  */" \
17100       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17101       || as_fn_error "could not create -" "$LINENO" 5
17102   fi
17103 # Compute "$ac_file"'s index in $config_headers.
17104 _am_arg="$ac_file"
17105 _am_stamp_count=1
17106 for _am_header in $config_headers :; do
17107   case $_am_header in
17108     $_am_arg | $_am_arg:* )
17109       break ;;
17110     * )
17111       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17112   esac
17113 done
17114 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17115 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17116          X"$_am_arg" : 'X\(//\)[^/]' \| \
17117          X"$_am_arg" : 'X\(//\)$' \| \
17118          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17119 $as_echo X"$_am_arg" |
17120     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17121             s//\1/
17122             q
17123           }
17124           /^X\(\/\/\)[^/].*/{
17125             s//\1/
17126             q
17127           }
17128           /^X\(\/\/\)$/{
17129             s//\1/
17130             q
17131           }
17132           /^X\(\/\).*/{
17133             s//\1/
17134             q
17135           }
17136           s/.*/./; q'`/stamp-h$_am_stamp_count
17137  ;;
17138
17139   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17140 $as_echo "$as_me: executing $ac_file commands" >&6;}
17141  ;;
17142   esac
17143
17144
17145   case $ac_file$ac_mode in
17146     "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
17147 # are listed without --file.  Let's play safe and only enable the eval
17148 # if we detect the quoting.
17149 case $CONFIG_FILES in
17150 *\'*) eval set x "$CONFIG_FILES" ;;
17151 *)   set x $CONFIG_FILES ;;
17152 esac
17153 shift
17154 for mf
17155 do
17156   # Strip MF so we end up with the name of the file.
17157   mf=`echo "$mf" | sed -e 's/:.*$//'`
17158   # Check whether this is an Automake generated Makefile or not.
17159   # We used to match only the files named `Makefile.in', but
17160   # some people rename them; so instead we look at the file content.
17161   # Grep'ing the first line is not enough: some people post-process
17162   # each Makefile.in and add a new line on top of each file to say so.
17163   # Grep'ing the whole file is not good either: AIX grep has a line
17164   # limit of 2048, but all sed's we know have understand at least 4000.
17165   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17166     dirpart=`$as_dirname -- "$mf" ||
17167 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17168          X"$mf" : 'X\(//\)[^/]' \| \
17169          X"$mf" : 'X\(//\)$' \| \
17170          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17171 $as_echo X"$mf" |
17172     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17173             s//\1/
17174             q
17175           }
17176           /^X\(\/\/\)[^/].*/{
17177             s//\1/
17178             q
17179           }
17180           /^X\(\/\/\)$/{
17181             s//\1/
17182             q
17183           }
17184           /^X\(\/\).*/{
17185             s//\1/
17186             q
17187           }
17188           s/.*/./; q'`
17189   else
17190     continue
17191   fi
17192   # Extract the definition of DEPDIR, am__include, and am__quote
17193   # from the Makefile without running `make'.
17194   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17195   test -z "$DEPDIR" && continue
17196   am__include=`sed -n 's/^am__include = //p' < "$mf"`
17197   test -z "am__include" && continue
17198   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17199   # When using ansi2knr, U may be empty or an underscore; expand it
17200   U=`sed -n 's/^U = //p' < "$mf"`
17201   # Find all dependency output files, they are included files with
17202   # $(DEPDIR) in their names.  We invoke sed twice because it is the
17203   # simplest approach to changing $(DEPDIR) to its actual value in the
17204   # expansion.
17205   for file in `sed -n "
17206     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17207        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17208     # Make sure the directory exists.
17209     test -f "$dirpart/$file" && continue
17210     fdir=`$as_dirname -- "$file" ||
17211 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17212          X"$file" : 'X\(//\)[^/]' \| \
17213          X"$file" : 'X\(//\)$' \| \
17214          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17215 $as_echo X"$file" |
17216     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17217             s//\1/
17218             q
17219           }
17220           /^X\(\/\/\)[^/].*/{
17221             s//\1/
17222             q
17223           }
17224           /^X\(\/\/\)$/{
17225             s//\1/
17226             q
17227           }
17228           /^X\(\/\).*/{
17229             s//\1/
17230             q
17231           }
17232           s/.*/./; q'`
17233     as_dir=$dirpart/$fdir; as_fn_mkdir_p
17234     # echo "creating $dirpart/$file"
17235     echo '# dummy' > "$dirpart/$file"
17236   done
17237 done
17238  ;;
17239     "libtool":C)
17240
17241     # See if we are running on zsh, and set the options which allow our
17242     # commands through without removal of \ escapes.
17243     if test -n "${ZSH_VERSION+set}" ; then
17244       setopt NO_GLOB_SUBST
17245     fi
17246
17247     cfgfile="${ofile}T"
17248     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17249     $RM "$cfgfile"
17250
17251     cat <<_LT_EOF >> "$cfgfile"
17252 #! $SHELL
17253
17254 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17255 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
17256 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17257 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17258 #
17259 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17260 #                 2006, 2007, 2008 Free Software Foundation, Inc.
17261 #   Written by Gordon Matzigkeit, 1996
17262 #
17263 #   This file is part of GNU Libtool.
17264 #
17265 # GNU Libtool is free software; you can redistribute it and/or
17266 # modify it under the terms of the GNU General Public License as
17267 # published by the Free Software Foundation; either version 2 of
17268 # the License, or (at your option) any later version.
17269 #
17270 # As a special exception to the GNU General Public License,
17271 # if you distribute this file as part of a program or library that
17272 # is built using GNU Libtool, you may include this file under the
17273 # same distribution terms that you use for the rest of that program.
17274 #
17275 # GNU Libtool is distributed in the hope that it will be useful,
17276 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17277 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17278 # GNU General Public License for more details.
17279 #
17280 # You should have received a copy of the GNU General Public License
17281 # along with GNU Libtool; see the file COPYING.  If not, a copy
17282 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17283 # obtained by writing to the Free Software Foundation, Inc.,
17284 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17285
17286
17287 # The names of the tagged configurations supported by this script.
17288 available_tags="CXX "
17289
17290 # ### BEGIN LIBTOOL CONFIG
17291
17292 # Whether or not to build shared libraries.
17293 build_libtool_libs=$enable_shared
17294
17295 # Which release of libtool.m4 was used?
17296 macro_version=$macro_version
17297 macro_revision=$macro_revision
17298
17299 # Whether or not to build static libraries.
17300 build_old_libs=$enable_static
17301
17302 # What type of objects to build.
17303 pic_mode=$pic_mode
17304
17305 # Whether or not to optimize for fast installation.
17306 fast_install=$enable_fast_install
17307
17308 # The host system.
17309 host_alias=$host_alias
17310 host=$host
17311 host_os=$host_os
17312
17313 # The build system.
17314 build_alias=$build_alias
17315 build=$build
17316 build_os=$build_os
17317
17318 # A sed program that does not truncate output.
17319 SED=$lt_SED
17320
17321 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17322 Xsed="\$SED -e 1s/^X//"
17323
17324 # A grep program that handles long lines.
17325 GREP=$lt_GREP
17326
17327 # An ERE matcher.
17328 EGREP=$lt_EGREP
17329
17330 # A literal string matcher.
17331 FGREP=$lt_FGREP
17332
17333 # A BSD- or MS-compatible name lister.
17334 NM=$lt_NM
17335
17336 # Whether we need soft or hard links.
17337 LN_S=$lt_LN_S
17338
17339 # What is the maximum length of a command?
17340 max_cmd_len=$max_cmd_len
17341
17342 # Object file suffix (normally "o").
17343 objext=$ac_objext
17344
17345 # Executable file suffix (normally "").
17346 exeext=$exeext
17347
17348 # whether the shell understands "unset".
17349 lt_unset=$lt_unset
17350
17351 # turn spaces into newlines.
17352 SP2NL=$lt_lt_SP2NL
17353
17354 # turn newlines into spaces.
17355 NL2SP=$lt_lt_NL2SP
17356
17357 # How to create reloadable object files.
17358 reload_flag=$lt_reload_flag
17359 reload_cmds=$lt_reload_cmds
17360
17361 # Method to check whether dependent libraries are shared objects.
17362 deplibs_check_method=$lt_deplibs_check_method
17363
17364 # Command to use when deplibs_check_method == "file_magic".
17365 file_magic_cmd=$lt_file_magic_cmd
17366
17367 # The archiver.
17368 AR=$lt_AR
17369 AR_FLAGS=$lt_AR_FLAGS
17370
17371 # A symbol stripping program.
17372 STRIP=$lt_STRIP
17373
17374 # Commands used to install an old-style archive.
17375 RANLIB=$lt_RANLIB
17376 old_postinstall_cmds=$lt_old_postinstall_cmds
17377 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17378
17379 # A C compiler.
17380 LTCC=$lt_CC
17381
17382 # LTCC compiler flags.
17383 LTCFLAGS=$lt_CFLAGS
17384
17385 # Take the output of nm and produce a listing of raw symbols and C names.
17386 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17387
17388 # Transform the output of nm in a proper C declaration.
17389 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17390
17391 # Transform the output of nm in a C name address pair.
17392 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17393
17394 # Transform the output of nm in a C name address pair when lib prefix is needed.
17395 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17396
17397 # The name of the directory that contains temporary libtool files.
17398 objdir=$objdir
17399
17400 # Shell to use when invoking shell scripts.
17401 SHELL=$lt_SHELL
17402
17403 # An echo program that does not interpret backslashes.
17404 ECHO=$lt_ECHO
17405
17406 # Used to examine libraries when file_magic_cmd begins with "file".
17407 MAGIC_CMD=$MAGIC_CMD
17408
17409 # Must we lock files when doing compilation?
17410 need_locks=$lt_need_locks
17411
17412 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17413 DSYMUTIL=$lt_DSYMUTIL
17414
17415 # Tool to change global to local symbols on Mac OS X.
17416 NMEDIT=$lt_NMEDIT
17417
17418 # Old archive suffix (normally "a").
17419 libext=$libext
17420
17421 # Shared library suffix (normally ".so").
17422 shrext_cmds=$lt_shrext_cmds
17423
17424 # The commands to extract the exported symbol list from a shared archive.
17425 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17426
17427 # Variables whose values should be saved in libtool wrapper scripts and
17428 # restored at link time.
17429 variables_saved_for_relink=$lt_variables_saved_for_relink
17430
17431 # Do we need the "lib" prefix for modules?
17432 need_lib_prefix=$need_lib_prefix
17433
17434 # Do we need a version for libraries?
17435 need_version=$need_version
17436
17437 # Library versioning type.
17438 version_type=$version_type
17439
17440 # Shared library runtime path variable.
17441 runpath_var=$runpath_var
17442
17443 # Shared library path variable.
17444 shlibpath_var=$shlibpath_var
17445
17446 # Is shlibpath searched before the hard-coded library search path?
17447 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17448
17449 # Format of library name prefix.
17450 libname_spec=$lt_libname_spec
17451
17452 # List of archive names.  First name is the real one, the rest are links.
17453 # The last name is the one that the linker finds with -lNAME
17454 library_names_spec=$lt_library_names_spec
17455
17456 # The coded name of the library, if different from the real name.
17457 soname_spec=$lt_soname_spec
17458
17459 # Command to use after installation of a shared archive.
17460 postinstall_cmds=$lt_postinstall_cmds
17461
17462 # Command to use after uninstallation of a shared archive.
17463 postuninstall_cmds=$lt_postuninstall_cmds
17464
17465 # Commands used to finish a libtool library installation in a directory.
17466 finish_cmds=$lt_finish_cmds
17467
17468 # As "finish_cmds", except a single script fragment to be evaled but
17469 # not shown.
17470 finish_eval=$lt_finish_eval
17471
17472 # Whether we should hardcode library paths into libraries.
17473 hardcode_into_libs=$hardcode_into_libs
17474
17475 # Compile-time system search path for libraries.
17476 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17477
17478 # Run-time system search path for libraries.
17479 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17480
17481 # Whether dlopen is supported.
17482 dlopen_support=$enable_dlopen
17483
17484 # Whether dlopen of programs is supported.
17485 dlopen_self=$enable_dlopen_self
17486
17487 # Whether dlopen of statically linked programs is supported.
17488 dlopen_self_static=$enable_dlopen_self_static
17489
17490 # Commands to strip libraries.
17491 old_striplib=$lt_old_striplib
17492 striplib=$lt_striplib
17493
17494
17495 # The linker used to build libraries.
17496 LD=$lt_LD
17497
17498 # Commands used to build an old-style archive.
17499 old_archive_cmds=$lt_old_archive_cmds
17500
17501 # A language specific compiler.
17502 CC=$lt_compiler
17503
17504 # Is the compiler the GNU compiler?
17505 with_gcc=$GCC
17506
17507 # Compiler flag to turn off builtin functions.
17508 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17509
17510 # How to pass a linker flag through the compiler.
17511 wl=$lt_lt_prog_compiler_wl
17512
17513 # Additional compiler flags for building library objects.
17514 pic_flag=$lt_lt_prog_compiler_pic
17515
17516 # Compiler flag to prevent dynamic linking.
17517 link_static_flag=$lt_lt_prog_compiler_static
17518
17519 # Does compiler simultaneously support -c and -o options?
17520 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17521
17522 # Whether or not to add -lc for building shared libraries.
17523 build_libtool_need_lc=$archive_cmds_need_lc
17524
17525 # Whether or not to disallow shared libs when runtime libs are static.
17526 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17527
17528 # Compiler flag to allow reflexive dlopens.
17529 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17530
17531 # Compiler flag to generate shared objects directly from archives.
17532 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17533
17534 # Whether the compiler copes with passing no objects directly.
17535 compiler_needs_object=$lt_compiler_needs_object
17536
17537 # Create an old-style archive from a shared archive.
17538 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17539
17540 # Create a temporary old-style archive to link instead of a shared archive.
17541 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17542
17543 # Commands used to build a shared archive.
17544 archive_cmds=$lt_archive_cmds
17545 archive_expsym_cmds=$lt_archive_expsym_cmds
17546
17547 # Commands used to build a loadable module if different from building
17548 # a shared archive.
17549 module_cmds=$lt_module_cmds
17550 module_expsym_cmds=$lt_module_expsym_cmds
17551
17552 # Whether we are building with GNU ld or not.
17553 with_gnu_ld=$lt_with_gnu_ld
17554
17555 # Flag that allows shared libraries with undefined symbols to be built.
17556 allow_undefined_flag=$lt_allow_undefined_flag
17557
17558 # Flag that enforces no undefined symbols.
17559 no_undefined_flag=$lt_no_undefined_flag
17560
17561 # Flag to hardcode \$libdir into a binary during linking.
17562 # This must work even if \$libdir does not exist
17563 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17564
17565 # If ld is used when linking, flag to hardcode \$libdir into a binary
17566 # during linking.  This must work even if \$libdir does not exist.
17567 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17568
17569 # Whether we need a single "-rpath" flag with a separated argument.
17570 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17571
17572 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17573 # DIR into the resulting binary.
17574 hardcode_direct=$hardcode_direct
17575
17576 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17577 # DIR into the resulting binary and the resulting library dependency is
17578 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17579 # library is relocated.
17580 hardcode_direct_absolute=$hardcode_direct_absolute
17581
17582 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17583 # into the resulting binary.
17584 hardcode_minus_L=$hardcode_minus_L
17585
17586 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17587 # into the resulting binary.
17588 hardcode_shlibpath_var=$hardcode_shlibpath_var
17589
17590 # Set to "yes" if building a shared library automatically hardcodes DIR
17591 # into the library and all subsequent libraries and executables linked
17592 # against it.
17593 hardcode_automatic=$hardcode_automatic
17594
17595 # Set to yes if linker adds runtime paths of dependent libraries
17596 # to runtime path list.
17597 inherit_rpath=$inherit_rpath
17598
17599 # Whether libtool must link a program against all its dependency libraries.
17600 link_all_deplibs=$link_all_deplibs
17601
17602 # Fix the shell variable \$srcfile for the compiler.
17603 fix_srcfile_path=$lt_fix_srcfile_path
17604
17605 # Set to "yes" if exported symbols are required.
17606 always_export_symbols=$always_export_symbols
17607
17608 # The commands to list exported symbols.
17609 export_symbols_cmds=$lt_export_symbols_cmds
17610
17611 # Symbols that should not be listed in the preloaded symbols.
17612 exclude_expsyms=$lt_exclude_expsyms
17613
17614 # Symbols that must always be exported.
17615 include_expsyms=$lt_include_expsyms
17616
17617 # Commands necessary for linking programs (against libraries) with templates.
17618 prelink_cmds=$lt_prelink_cmds
17619
17620 # Specify filename containing input files.
17621 file_list_spec=$lt_file_list_spec
17622
17623 # How to hardcode a shared library path into an executable.
17624 hardcode_action=$hardcode_action
17625
17626 # The directories searched by this compiler when creating a shared library.
17627 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17628
17629 # Dependencies to place before and after the objects being linked to
17630 # create a shared library.
17631 predep_objects=$lt_predep_objects
17632 postdep_objects=$lt_postdep_objects
17633 predeps=$lt_predeps
17634 postdeps=$lt_postdeps
17635
17636 # The library search path used internally by the compiler when linking
17637 # a shared library.
17638 compiler_lib_search_path=$lt_compiler_lib_search_path
17639
17640 # ### END LIBTOOL CONFIG
17641
17642 _LT_EOF
17643
17644   case $host_os in
17645   aix3*)
17646     cat <<\_LT_EOF >> "$cfgfile"
17647 # AIX sometimes has problems with the GCC collect2 program.  For some
17648 # reason, if we set the COLLECT_NAMES environment variable, the problems
17649 # vanish in a puff of smoke.
17650 if test "X${COLLECT_NAMES+set}" != Xset; then
17651   COLLECT_NAMES=
17652   export COLLECT_NAMES
17653 fi
17654 _LT_EOF
17655     ;;
17656   esac
17657
17658
17659 ltmain="$ac_aux_dir/ltmain.sh"
17660
17661
17662   # We use sed instead of cat because bash on DJGPP gets confused if
17663   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17664   # text mode, it properly converts lines to CR/LF.  This bash problem
17665   # is reportedly fixed, but why not run on old versions too?
17666   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17667     || (rm -f "$cfgfile"; exit 1)
17668
17669   case $xsi_shell in
17670   yes)
17671     cat << \_LT_EOF >> "$cfgfile"
17672 # func_dirname file append nondir_replacement
17673 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17674 # otherwise set result to NONDIR_REPLACEMENT.
17675 func_dirname ()
17676 {
17677   case ${1} in
17678     */*) func_dirname_result="${1%/*}${2}" ;;
17679     *  ) func_dirname_result="${3}" ;;
17680   esac
17681 }
17682
17683 # func_basename file
17684 func_basename ()
17685 {
17686   func_basename_result="${1##*/}"
17687 }
17688
17689 # func_dirname_and_basename file append nondir_replacement
17690 # perform func_basename and func_dirname in a single function
17691 # call:
17692 #   dirname:  Compute the dirname of FILE.  If nonempty,
17693 #             add APPEND to the result, otherwise set result
17694 #             to NONDIR_REPLACEMENT.
17695 #             value returned in "$func_dirname_result"
17696 #   basename: Compute filename of FILE.
17697 #             value retuned in "$func_basename_result"
17698 # Implementation must be kept synchronized with func_dirname
17699 # and func_basename. For efficiency, we do not delegate to
17700 # those functions but instead duplicate the functionality here.
17701 func_dirname_and_basename ()
17702 {
17703   case ${1} in
17704     */*) func_dirname_result="${1%/*}${2}" ;;
17705     *  ) func_dirname_result="${3}" ;;
17706   esac
17707   func_basename_result="${1##*/}"
17708 }
17709
17710 # func_stripname prefix suffix name
17711 # strip PREFIX and SUFFIX off of NAME.
17712 # PREFIX and SUFFIX must not contain globbing or regex special
17713 # characters, hashes, percent signs, but SUFFIX may contain a leading
17714 # dot (in which case that matches only a dot).
17715 func_stripname ()
17716 {
17717   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17718   # positional parameters, so assign one to ordinary parameter first.
17719   func_stripname_result=${3}
17720   func_stripname_result=${func_stripname_result#"${1}"}
17721   func_stripname_result=${func_stripname_result%"${2}"}
17722 }
17723
17724 # func_opt_split
17725 func_opt_split ()
17726 {
17727   func_opt_split_opt=${1%%=*}
17728   func_opt_split_arg=${1#*=}
17729 }
17730
17731 # func_lo2o object
17732 func_lo2o ()
17733 {
17734   case ${1} in
17735     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17736     *)    func_lo2o_result=${1} ;;
17737   esac
17738 }
17739 _LT_EOF
17740     ;;
17741   *) # Bourne compatible functions.
17742     cat << \_LT_EOF >> "$cfgfile"
17743 # func_dirname file append nondir_replacement
17744 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17745 # otherwise set result to NONDIR_REPLACEMENT.
17746 func_dirname ()
17747 {
17748   # Extract subdirectory from the argument.
17749   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17750   if test "X$func_dirname_result" = "X${1}"; then
17751     func_dirname_result="${3}"
17752   else
17753     func_dirname_result="$func_dirname_result${2}"
17754   fi
17755 }
17756
17757 # func_basename file
17758 func_basename ()
17759 {
17760   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17761 }
17762
17763 # func_dirname_and_basename file append nondir_replacement
17764 # perform func_basename and func_dirname in a single function
17765 # call:
17766 #   dirname:  Compute the dirname of FILE.  If nonempty,
17767 #             add APPEND to the result, otherwise set result
17768 #             to NONDIR_REPLACEMENT.
17769 #             value returned in "$func_dirname_result"
17770 #   basename: Compute filename of FILE.
17771 #             value retuned in "$func_basename_result"
17772 # Implementation must be kept synchronized with func_dirname
17773 # and func_basename. For efficiency, we do not delegate to
17774 # those functions but instead duplicate the functionality here.
17775 func_dirname_and_basename ()
17776 {
17777   # Extract subdirectory from the argument.
17778   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17779   if test "X$func_dirname_result" = "X${1}"; then
17780     func_dirname_result="${3}"
17781   else
17782     func_dirname_result="$func_dirname_result${2}"
17783   fi
17784   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17785 }
17786
17787 # func_stripname prefix suffix name
17788 # strip PREFIX and SUFFIX off of NAME.
17789 # PREFIX and SUFFIX must not contain globbing or regex special
17790 # characters, hashes, percent signs, but SUFFIX may contain a leading
17791 # dot (in which case that matches only a dot).
17792 # func_strip_suffix prefix name
17793 func_stripname ()
17794 {
17795   case ${2} in
17796     .*) func_stripname_result=`$ECHO "X${3}" \
17797            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17798     *)  func_stripname_result=`$ECHO "X${3}" \
17799            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17800   esac
17801 }
17802
17803 # sed scripts:
17804 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17805 my_sed_long_arg='1s/^-[^=]*=//'
17806
17807 # func_opt_split
17808 func_opt_split ()
17809 {
17810   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17811   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17812 }
17813
17814 # func_lo2o object
17815 func_lo2o ()
17816 {
17817   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17818 }
17819 _LT_EOF
17820 esac
17821
17822 case $lt_shell_append in
17823   yes)
17824     cat << \_LT_EOF >> "$cfgfile"
17825
17826 # func_append var value
17827 # Append VALUE to the end of shell variable VAR.
17828 func_append ()
17829 {
17830   eval "$1+=\$2"
17831 }
17832 _LT_EOF
17833     ;;
17834   *)
17835     cat << \_LT_EOF >> "$cfgfile"
17836
17837 # func_append var value
17838 # Append VALUE to the end of shell variable VAR.
17839 func_append ()
17840 {
17841   eval "$1=\$$1\$2"
17842 }
17843 _LT_EOF
17844     ;;
17845   esac
17846
17847
17848   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17849     || (rm -f "$cfgfile"; exit 1)
17850
17851   mv -f "$cfgfile" "$ofile" ||
17852     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17853   chmod +x "$ofile"
17854
17855
17856     cat <<_LT_EOF >> "$ofile"
17857
17858 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17859
17860 # The linker used to build libraries.
17861 LD=$lt_LD_CXX
17862
17863 # Commands used to build an old-style archive.
17864 old_archive_cmds=$lt_old_archive_cmds_CXX
17865
17866 # A language specific compiler.
17867 CC=$lt_compiler_CXX
17868
17869 # Is the compiler the GNU compiler?
17870 with_gcc=$GCC_CXX
17871
17872 # Compiler flag to turn off builtin functions.
17873 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17874
17875 # How to pass a linker flag through the compiler.
17876 wl=$lt_lt_prog_compiler_wl_CXX
17877
17878 # Additional compiler flags for building library objects.
17879 pic_flag=$lt_lt_prog_compiler_pic_CXX
17880
17881 # Compiler flag to prevent dynamic linking.
17882 link_static_flag=$lt_lt_prog_compiler_static_CXX
17883
17884 # Does compiler simultaneously support -c and -o options?
17885 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17886
17887 # Whether or not to add -lc for building shared libraries.
17888 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17889
17890 # Whether or not to disallow shared libs when runtime libs are static.
17891 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17892
17893 # Compiler flag to allow reflexive dlopens.
17894 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17895
17896 # Compiler flag to generate shared objects directly from archives.
17897 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17898
17899 # Whether the compiler copes with passing no objects directly.
17900 compiler_needs_object=$lt_compiler_needs_object_CXX
17901
17902 # Create an old-style archive from a shared archive.
17903 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17904
17905 # Create a temporary old-style archive to link instead of a shared archive.
17906 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17907
17908 # Commands used to build a shared archive.
17909 archive_cmds=$lt_archive_cmds_CXX
17910 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17911
17912 # Commands used to build a loadable module if different from building
17913 # a shared archive.
17914 module_cmds=$lt_module_cmds_CXX
17915 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17916
17917 # Whether we are building with GNU ld or not.
17918 with_gnu_ld=$lt_with_gnu_ld_CXX
17919
17920 # Flag that allows shared libraries with undefined symbols to be built.
17921 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17922
17923 # Flag that enforces no undefined symbols.
17924 no_undefined_flag=$lt_no_undefined_flag_CXX
17925
17926 # Flag to hardcode \$libdir into a binary during linking.
17927 # This must work even if \$libdir does not exist
17928 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17929
17930 # If ld is used when linking, flag to hardcode \$libdir into a binary
17931 # during linking.  This must work even if \$libdir does not exist.
17932 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17933
17934 # Whether we need a single "-rpath" flag with a separated argument.
17935 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17936
17937 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17938 # DIR into the resulting binary.
17939 hardcode_direct=$hardcode_direct_CXX
17940
17941 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17942 # DIR into the resulting binary and the resulting library dependency is
17943 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17944 # library is relocated.
17945 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17946
17947 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17948 # into the resulting binary.
17949 hardcode_minus_L=$hardcode_minus_L_CXX
17950
17951 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17952 # into the resulting binary.
17953 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17954
17955 # Set to "yes" if building a shared library automatically hardcodes DIR
17956 # into the library and all subsequent libraries and executables linked
17957 # against it.
17958 hardcode_automatic=$hardcode_automatic_CXX
17959
17960 # Set to yes if linker adds runtime paths of dependent libraries
17961 # to runtime path list.
17962 inherit_rpath=$inherit_rpath_CXX
17963
17964 # Whether libtool must link a program against all its dependency libraries.
17965 link_all_deplibs=$link_all_deplibs_CXX
17966
17967 # Fix the shell variable \$srcfile for the compiler.
17968 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17969
17970 # Set to "yes" if exported symbols are required.
17971 always_export_symbols=$always_export_symbols_CXX
17972
17973 # The commands to list exported symbols.
17974 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17975
17976 # Symbols that should not be listed in the preloaded symbols.
17977 exclude_expsyms=$lt_exclude_expsyms_CXX
17978
17979 # Symbols that must always be exported.
17980 include_expsyms=$lt_include_expsyms_CXX
17981
17982 # Commands necessary for linking programs (against libraries) with templates.
17983 prelink_cmds=$lt_prelink_cmds_CXX
17984
17985 # Specify filename containing input files.
17986 file_list_spec=$lt_file_list_spec_CXX
17987
17988 # How to hardcode a shared library path into an executable.
17989 hardcode_action=$hardcode_action_CXX
17990
17991 # The directories searched by this compiler when creating a shared library.
17992 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17993
17994 # Dependencies to place before and after the objects being linked to
17995 # create a shared library.
17996 predep_objects=$lt_predep_objects_CXX
17997 postdep_objects=$lt_postdep_objects_CXX
17998 predeps=$lt_predeps_CXX
17999 postdeps=$lt_postdeps_CXX
18000
18001 # The library search path used internally by the compiler when linking
18002 # a shared library.
18003 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18004
18005 # ### END LIBTOOL TAG CONFIG: CXX
18006 _LT_EOF
18007
18008  ;;
18009
18010   esac
18011 done # for ac_tag
18012
18013
18014 as_fn_exit 0
18015 _ACEOF
18016 ac_clean_files=$ac_clean_files_save
18017
18018 test $ac_write_fail = 0 ||
18019   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18020
18021
18022 # configure is writing to config.log, and then calls config.status.
18023 # config.status does its own redirection, appending to config.log.
18024 # Unfortunately, on DOS this fails, as config.log is still kept open
18025 # by configure, so config.status won't be able to write to it; its
18026 # output is simply discarded.  So we exec the FD to /dev/null,
18027 # effectively closing config.log, so it can be properly (re)opened and
18028 # appended to by config.status.  When coming back to configure, we
18029 # need to make the FD available again.
18030 if test "$no_create" != yes; then
18031   ac_cs_success=:
18032   ac_config_status_args=
18033   test "$silent" = yes &&
18034     ac_config_status_args="$ac_config_status_args --quiet"
18035   exec 5>/dev/null
18036   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18037   exec 5>>config.log
18038   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18039   # would make configure fail if this is the last instruction.
18040   $ac_cs_success || as_fn_exit $?
18041 fi
18042
18043 #
18044 # CONFIG_SUBDIRS section.
18045 #
18046 if test "$no_recursion" != yes; then
18047
18048   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
18049   # so they do not pile up.
18050   ac_sub_configure_args=
18051   ac_prev=
18052   eval "set x $ac_configure_args"
18053   shift
18054   for ac_arg
18055   do
18056     if test -n "$ac_prev"; then
18057       ac_prev=
18058       continue
18059     fi
18060     case $ac_arg in
18061     -cache-file | --cache-file | --cache-fil | --cache-fi \
18062     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18063       ac_prev=cache_file ;;
18064     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18065     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18066     | --c=*)
18067       ;;
18068     --config-cache | -C)
18069       ;;
18070     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18071       ac_prev=srcdir ;;
18072     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18073       ;;
18074     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18075       ac_prev=prefix ;;
18076     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18077       ;;
18078     --disable-option-checking)
18079       ;;
18080     *)
18081       case $ac_arg in
18082       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18083       esac
18084       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
18085     esac
18086   done
18087
18088   # Always prepend --prefix to ensure using the same prefix
18089   # in subdir configurations.
18090   ac_arg="--prefix=$prefix"
18091   case $ac_arg in
18092   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18093   esac
18094   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
18095
18096   # Pass --silent
18097   if test "$silent" = yes; then
18098     ac_sub_configure_args="--silent $ac_sub_configure_args"
18099   fi
18100
18101   # Always prepend --disable-option-checking to silence warnings, since
18102   # different subdirs can have different --enable and --with options.
18103   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
18104
18105   ac_popdir=`pwd`
18106   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18107
18108     # Do not complain, so a configure script can configure whichever
18109     # parts of a large source tree are present.
18110     test -d "$srcdir/$ac_dir" || continue
18111
18112     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18113     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
18114     $as_echo "$ac_msg" >&6
18115     as_dir="$ac_dir"; as_fn_mkdir_p
18116     ac_builddir=.
18117
18118 case "$ac_dir" in
18119 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18120 *)
18121   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18122   # A ".." for each directory in $ac_dir_suffix.
18123   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18124   case $ac_top_builddir_sub in
18125   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18126   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18127   esac ;;
18128 esac
18129 ac_abs_top_builddir=$ac_pwd
18130 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18131 # for backward compatibility:
18132 ac_top_builddir=$ac_top_build_prefix
18133
18134 case $srcdir in
18135   .)  # We are building in place.
18136     ac_srcdir=.
18137     ac_top_srcdir=$ac_top_builddir_sub
18138     ac_abs_top_srcdir=$ac_pwd ;;
18139   [\\/]* | ?:[\\/]* )  # Absolute name.
18140     ac_srcdir=$srcdir$ac_dir_suffix;
18141     ac_top_srcdir=$srcdir
18142     ac_abs_top_srcdir=$srcdir ;;
18143   *) # Relative name.
18144     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18145     ac_top_srcdir=$ac_top_build_prefix$srcdir
18146     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18147 esac
18148 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18149
18150
18151     cd "$ac_dir"
18152
18153     # Check for guested configure; otherwise get Cygnus style configure.
18154     if test -f "$ac_srcdir/configure.gnu"; then
18155       ac_sub_configure=$ac_srcdir/configure.gnu
18156     elif test -f "$ac_srcdir/configure"; then
18157       ac_sub_configure=$ac_srcdir/configure
18158     elif test -f "$ac_srcdir/configure.in"; then
18159       # This should be Cygnus configure.
18160       ac_sub_configure=$ac_aux_dir/configure
18161     else
18162       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
18163 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18164       ac_sub_configure=
18165     fi
18166
18167     # The recursion is here.
18168     if test -n "$ac_sub_configure"; then
18169       # Make the cache file name correct relative to the subdirectory.
18170       case $cache_file in
18171       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18172       *) # Relative name.
18173         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
18174       esac
18175
18176       { $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
18177 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18178       # The eval makes quoting arguments work.
18179       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
18180            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
18181         as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
18182     fi
18183
18184     cd "$ac_popdir"
18185   done
18186 fi
18187 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18188   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18189 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18190 fi
18191